diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index ccb56cf6..c051efb0 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -27,15 +27,15 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize CodeQL - uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 + uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 with: languages: javascript queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 + uses: github/codeql-action/autobuild@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 + uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 with: category: '/language:javascript' diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index 2ee0078f..059fe480 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -65,6 +65,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: Upload to code-scanning - uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5 + uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0 with: sarif_file: results.sarif diff --git a/apps/workspace-agent/package.json b/apps/workspace-agent/package.json index 1cc1ad8f..1e5c3f96 100644 --- a/apps/workspace-agent/package.json +++ b/apps/workspace-agent/package.json @@ -17,6 +17,6 @@ "hono": "4.12.23" }, "devDependencies": { - "vitest": "4.1.6" + "vitest": "4.1.7" } } diff --git a/apps/workspace-agent/src/config.ts b/apps/workspace-agent/src/config.ts new file mode 100644 index 00000000..a5e13645 --- /dev/null +++ b/apps/workspace-agent/src/config.ts @@ -0,0 +1,127 @@ +/** + * Configuration for the workspace-agent. + * + * Secret reading follows the same hardened pattern as packages/gateway/src/config.ts: + * - `${NAME}_FILE` env → read file via O_NOFOLLOW fd, fstat check, size cap + * - `process.env[NAME]` fallback + * - Never log the value + */ + +import {closeSync, constants, fstatSync, openSync, readFileSync} from 'node:fs' +import process from 'node:process' + +const MAX_SECRET_BYTES = 4096 + +class SecretFileNotFoundError extends Error { + constructor(message: string) { + super(message) + this.name = 'SecretFileNotFoundError' + } +} + +/** + * Read a secret file with hardened path validation. Uses `openSync` with + * `O_NOFOLLOW` so symlinks fail at open (no TOCTOU window between validation + * and read), then `fstatSync` on the already-open file descriptor to confirm + * the file is a regular file under the size limit. + */ +function readSecretFile(filePath: string): string { + let fd: number + try { + fd = openSync(filePath, constants.O_RDONLY | constants.O_NOFOLLOW) + } catch (error) { + if (error instanceof Error && 'code' in error) { + if (error.code === 'ENOENT') { + throw new SecretFileNotFoundError(`Secret file does not exist: ${filePath}`) + } + if (error.code === 'ELOOP') { + throw new Error( + `Secret path is not a regular file: ${filePath} (got symlink). Symlinks are not supported — bind-mount a real file.`, + ) + } + } + throw error + } + try { + const stat = fstatSync(fd) + if (stat.isFile() === false) { + const kind = describeStatKind(stat) + throw new Error( + `Secret path is not a regular file: ${filePath} (got ${kind}). FIFOs, devices, and directories are not supported.`, + ) + } + if (stat.size > MAX_SECRET_BYTES) { + throw new Error(`Secret file is too large: ${filePath} (${stat.size} bytes > ${MAX_SECRET_BYTES} byte limit).`) + } + return readFileSync(fd, 'utf8') + } finally { + closeSync(fd) + } +} + +function describeStatKind(stat: import('node:fs').Stats): string { + if (stat.isSymbolicLink()) return 'symlink' + if (stat.isFIFO()) return 'FIFO/pipe' + if (stat.isCharacterDevice()) return 'character device' + if (stat.isBlockDevice()) return 'block device' + if (stat.isDirectory()) return 'directory' + if (stat.isSocket()) return 'socket' + return 'unknown non-file' +} + +/** + * Read an optional secret by name. + * + * Precedence: + * 1. If `${name}_FILE` env var is set AND that file exists → read file contents, trim trailing whitespace + * 2. Else if `process.env[name]` is set → return it + * 3. Else return null + */ +export function readOptionalSecret(name: string): string | null { + const filePath = process.env[`${name}_FILE`] + if (filePath !== undefined) { + let contents: string | undefined + try { + contents = readSecretFile(filePath) + } catch (error) { + if (error instanceof SecretFileNotFoundError) { + // file not present; fall through to env-var fallback + } else { + throw error + } + } + if (contents !== undefined) { + const trailingTrimmed = contents.trimEnd() + if (trailingTrimmed.trim() === '') return null + if (/[\r\n\u0085\u2028\u2029]/.test(trailingTrimmed)) { + throw new Error( + `Secret value at ${filePath} contains embedded line-breaking characters. Remove the line break and rewrite the file as a single line.`, + ) + } + return trailingTrimmed + } + } + + const value = process.env[name] + if (value !== undefined && value.trim() !== '') { + if (/[\r\n\u0085\u2028\u2029]/.test(value)) { + throw new Error( + `Environment variable ${name} contains embedded line-breaking characters. Remove the line break and set it as a single line.`, + ) + } + return value + } + + return null +} + +/** + * Read a required secret by name. Throws if missing. + */ +export function readSecret(name: string): string { + const value = readOptionalSecret(name) + if (value === null) { + throw new Error(`Missing required secret: ${name} (set ${name} env var or ${name}_FILE pointing to a file)`) + } + return value +} diff --git a/apps/workspace-agent/src/main.ts b/apps/workspace-agent/src/main.ts index 342ef01c..97011594 100644 --- a/apps/workspace-agent/src/main.ts +++ b/apps/workspace-agent/src/main.ts @@ -2,6 +2,8 @@ * workspace-agent entry point. * * Starts the Hono HTTP server on 0.0.0.0:9100. + * Starts the OpenCode SDK server bound to 127.0.0.1:54321 (loopback only). + * Starts the bearer-token proxy on 0.0.0.0:9200 (sandbox-net reachable). * Handles SIGTERM gracefully with a 25s drain window. */ @@ -9,18 +11,75 @@ import process from 'node:process' import {serve} from '@hono/node-server' import {asyncCleanupAllAskpassDirs} from './clone.js' +import {readSecret} from './config.js' +import {createOpencodeProxy} from './opencode-proxy.js' +import {startOpencodeServer} from './opencode-server.js' import {createApp} from './server.js' const PORT = 9100 const HOST = '0.0.0.0' const DRAIN_MS = 25_000 +const OPENCODE_PORT = 54321 +const OPENCODE_HOSTNAME = '127.0.0.1' +const PROXY_PORT = 9200 +const WORKSPACE_REPOS_ROOT = '/workspace/repos' -const app = createApp() +// Shared mutable state for OpenCode readiness, read by /healthz +const opencodeStatus = {status: 'starting' as 'starting' | 'ready' | 'down'} + +const app = createApp({opencodeStatus}) const server = serve({fetch: app.fetch, port: PORT, hostname: HOST}, info => { console.warn(`workspace-agent listening on ${info.address}:${info.port}`) }) +// Boot OpenCode server (loopback-bound) — fire-and-forget, update status ref +const opencodeLogger = { + info: (msg: string, meta?: Record) => console.warn(msg, meta ?? ''), + warn: (msg: string, meta?: Record) => console.warn(msg, meta ?? ''), + error: (msg: string, meta?: Record) => console.error(msg, meta ?? ''), +} + +let opencodeHandle: {url: string; close: () => void} | undefined + +const opencodeServerPromise = startOpencodeServer({ + rootDir: WORKSPACE_REPOS_ROOT, + logger: opencodeLogger, + hostname: OPENCODE_HOSTNAME, + port: OPENCODE_PORT, +}) + .then(handle => { + opencodeHandle = handle + opencodeStatus.status = 'ready' + console.warn('workspace-agent: opencode server ready', {url: handle.url}) + }) + .catch((error: unknown) => { + opencodeStatus.status = 'down' + const message = error instanceof Error ? error.message : String(error) + console.error('workspace-agent: opencode server failed to start', {message}) + }) + +// Boot bearer-token proxy — reads WORKSPACE_OPENCODE_TOKEN secret at startup +let proxy: ReturnType | undefined + +try { + const token = readSecret('WORKSPACE_OPENCODE_TOKEN') + proxy = createOpencodeProxy({ + token, + upstreamUrl: `http://${OPENCODE_HOSTNAME}:${OPENCODE_PORT}`, + logger: opencodeLogger, + }) + proxy.listen(PROXY_PORT, HOST).catch((error: unknown) => { + const message = error instanceof Error ? error.message : String(error) + console.error('workspace-agent: proxy failed to start', {message}) + }) +} catch (error) { + const message = error instanceof Error ? error.message : String(error) + console.error('workspace-agent: cannot start proxy — missing WORKSPACE_OPENCODE_TOKEN', {message}) + // Process should not start without the proxy; exit with error code. + process.exit(1) +} + // Graceful shutdown on SIGTERM (Docker stop, compose down, etc.) let shuttingDown = false @@ -35,25 +94,48 @@ function shutdown(signal: string): void { process.exit(1) }, DRAIN_MS) - // Clean up all in-flight askpass dirs before closing the server. - // This runs after any in-flight clone AbortControllers have been signalled - // (they abort on their own timeout; we just wait for their finally blocks). + // Close OpenCode server and proxy, then the Hono server. + const cleanupOpencode = (): void => { + if (opencodeHandle !== undefined) { + opencodeHandle.close() + } + } + + const cleanupProxy = async (): Promise => { + if (proxy !== undefined) { + return proxy.close().catch(() => { + // Best-effort + }) + } + return Promise.resolve() + } + asyncCleanupAllAskpassDirs() .catch(() => { - // Best-effort; proceed to server.close regardless. + // Best-effort }) .finally(() => { - server.close(err => { - clearTimeout(drainTimer) - if (err !== undefined && err !== null) { - console.error('workspace-agent: shutdown error', err) - process.exit(1) - } - console.warn('workspace-agent: shutdown clean') - process.exit(0) - }) + cleanupOpencode() + cleanupProxy() + .catch(() => { + // Best-effort + }) + .finally(() => { + server.close(err => { + clearTimeout(drainTimer) + if (err !== undefined && err !== null) { + console.error('workspace-agent: shutdown error', err) + process.exit(1) + } + console.warn('workspace-agent: shutdown clean') + process.exit(0) + }) + }) }) } process.on('SIGTERM', () => shutdown('SIGTERM')) process.on('SIGINT', () => shutdown('SIGINT')) + +// Export for testing (allows inspecting the promise in integration tests if needed) +export {opencodeServerPromise} diff --git a/apps/workspace-agent/src/opencode-proxy.test.ts b/apps/workspace-agent/src/opencode-proxy.test.ts new file mode 100644 index 00000000..dae22f0b --- /dev/null +++ b/apps/workspace-agent/src/opencode-proxy.test.ts @@ -0,0 +1,298 @@ +/** + * Tests for opencode-proxy.ts — bearer-token reverse proxy. + * + * Uses a real local http stub as the "upstream OpenCode server" — no mocks + * needed for the proxy internals. Tests exercise the actual proxy logic. + * + * Uses http.request (not fetch) for precise connection lifecycle control — + * fetch (undici) persistent connections make proxy.close() hang. + */ + +import type {AddressInfo} from 'node:net' +import {Buffer} from 'node:buffer' +import http from 'node:http' +import {afterEach, beforeEach, describe, expect, it} from 'vitest' + +import {createOpencodeProxy} from './opencode-proxy.js' + +const TEST_TOKEN = 'test-bearer-token-xyz' + +const noop = () => undefined +const makeLogger = () => ({info: noop, warn: noop, error: noop}) + +// ── Helpers ────────────────────────────────────────────────────────────────── + +interface StubResponse { + readonly statusCode: number + readonly headers: http.IncomingHttpHeaders + readonly body: string +} + +/** Make a raw http.request to a URL, return status + body + headers. Always Connection: close. */ +async function httpGet(url: string, reqHeaders: Record = {}): Promise { + return new Promise((resolve, reject) => { + const parsed = new URL(url) + const req = http.request( + { + hostname: parsed.hostname, + port: parsed.port, + path: parsed.pathname + parsed.search, + method: 'GET', + headers: {...reqHeaders, connection: 'close'}, + }, + res => { + const chunks: Buffer[] = [] + res.on('data', (chunk: Buffer) => chunks.push(chunk)) + res.on('end', () => + resolve({ + statusCode: res.statusCode ?? 0, + headers: res.headers, + body: Buffer.concat(chunks).toString('utf8'), + }), + ) + res.on('error', reject) + }, + ) + req.on('error', reject) + req.end() + }) +} + +/** + * Start a minimal upstream HTTP stub server. + * Returns {url, close, lastSeenHeaders}. + */ +async function startUpstreamStub(opts: {responseStatus?: number; responseBody?: string; sse?: boolean}): Promise<{ + url: string + close: () => Promise + lastSeenHeaders: () => http.IncomingHttpHeaders | undefined +}> { + return new Promise((resolve, reject) => { + let lastHeaders: http.IncomingHttpHeaders | undefined + + const stub = http.createServer((req, res) => { + lastHeaders = req.headers + + if (opts.sse === true) { + res.writeHead(200, { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + Connection: 'close', + }) + res.write('data: chunk1\n\n') + setTimeout(() => { + res.write('data: chunk2\n\n') + res.end() + }, 20) + return + } + + const body = opts.responseBody ?? 'ok' + res.writeHead(opts.responseStatus ?? 200, { + 'Content-Length': String(Buffer.byteLength(body)), + Connection: 'close', + }) + res.end(body) + }) + + stub.listen(0, '127.0.0.1', () => { + const addr = stub.address() as AddressInfo + resolve({ + url: `http://127.0.0.1:${addr.port}`, + close: async () => new Promise((res, rej) => stub.close(err => (err == null ? res() : rej(err)))), + lastSeenHeaders: () => lastHeaders, + }) + }) + stub.once('error', reject) + }) +} + +/** + * Start the proxy on a random loopback port. Returns {url, close}. + */ +async function startProxy(token: string, upstreamUrl: string): Promise<{url: string; close: () => Promise}> { + const proxy = createOpencodeProxy({token, upstreamUrl, logger: makeLogger()}) + await proxy.listen(0, '127.0.0.1') + const addr = proxy.server.address() as AddressInfo + return { + url: `http://127.0.0.1:${addr.port}`, + close: async () => proxy.close(), + } +} + +// ── Auth tests ──────────────────────────────────────────────────────────────── + +describe('opencode-proxy — authorization', () => { + let upstream: Awaited> + let proxyUrl: string + let closeProxy: () => Promise + + beforeEach(async () => { + upstream = await startUpstreamStub({responseStatus: 200, responseBody: 'hello'}) + const p = await startProxy(TEST_TOKEN, upstream.url) + proxyUrl = p.url + closeProxy = p.close + }) + + afterEach(async () => { + await closeProxy() + await upstream.close() + }) + + it('forwards authorized request (correct bearer) and relays the response', async () => { + // #when + const res = await httpGet(`${proxyUrl}/some/path`, {Authorization: `Bearer ${TEST_TOKEN}`}) + + // #then + expect(res.statusCode).toBe(200) + expect(res.body).toBe('hello') + }) + + it('returns 401 for missing Authorization header — does not forward', async () => { + // #when + const res = await httpGet(`${proxyUrl}/some/path`) + + // #then + expect(res.statusCode).toBe(401) + expect(upstream.lastSeenHeaders()).toBeUndefined() + }) + + it('returns 401 for wrong bearer token — does not forward', async () => { + // #when + const res = await httpGet(`${proxyUrl}/some/path`, {Authorization: 'Bearer wrong-token'}) + + // #then + expect(res.statusCode).toBe(401) + expect(upstream.lastSeenHeaders()).toBeUndefined() + }) + + it('returns 401 for non-Bearer Authorization scheme — does not forward', async () => { + // #when + const res = await httpGet(`${proxyUrl}/some/path`, {Authorization: `Basic ${TEST_TOKEN}`}) + + // #then + expect(res.statusCode).toBe(401) + expect(upstream.lastSeenHeaders()).toBeUndefined() + }) + + it('401 responses have identical body (no oracle — prevents token enumeration)', async () => { + // #given — two different wrong tokens + const [res1, res2] = await Promise.all([ + httpGet(`${proxyUrl}/p`, {Authorization: 'Bearer wrong-a'}), + httpGet(`${proxyUrl}/p`, {Authorization: 'Bearer wrong-b'}), + ]) + + // #then — both 401 with identical bodies + expect(res1.statusCode).toBe(401) + expect(res2.statusCode).toBe(401) + expect(res1.body).toBe(res2.body) + }) + + it('does NOT forward the Authorization header to the upstream server', async () => { + // #when + await httpGet(`${proxyUrl}/api`, {Authorization: `Bearer ${TEST_TOKEN}`}) + + // #then — upstream sees no Authorization header + const seen = upstream.lastSeenHeaders() + expect(seen).toBeDefined() + expect(seen?.authorization).toBeUndefined() + }) + + it('authorization header is not present in the 401 response body', async () => { + // #when + const res = await httpGet(`${proxyUrl}/p`, {Authorization: `Bearer ${TEST_TOKEN}-bad`}) + + // #then + expect(res.statusCode).toBe(401) + expect(res.body).not.toContain(TEST_TOKEN) + expect(res.body).not.toContain('Bearer') + expect(res.body).not.toContain('Authorization') + }) +}) + +describe('opencode-proxy — SSE forwarding', () => { + it('streams SSE chunks through without buffering (authorized request)', async () => { + // #given — upstream sends two SSE chunks with a delay + const sseUpstream = await startUpstreamStub({sse: true}) + const {url, close} = await startProxy(TEST_TOKEN, sseUpstream.url) + + // #when — collect SSE body from the proxy + const response = await new Promise<{statusCode: number; contentType: string; body: string}>((resolve, reject) => { + const parsed = new URL(`${url}/event`) + const req = http.request( + { + hostname: parsed.hostname, + port: parsed.port, + path: parsed.pathname, + method: 'GET', + headers: { + Authorization: `Bearer ${TEST_TOKEN}`, + Accept: 'text/event-stream', + connection: 'close', + }, + }, + res => { + const chunks: Buffer[] = [] + res.on('data', (chunk: Buffer) => chunks.push(chunk)) + res.on('end', () => + resolve({ + statusCode: res.statusCode ?? 0, + contentType: String(res.headers['content-type'] ?? ''), + body: Buffer.concat(chunks).toString('utf8'), + }), + ) + res.on('error', reject) + }, + ) + req.on('error', reject) + req.end() + }) + + // #then — response is streamed with correct content type + expect(response.statusCode).toBe(200) + expect(response.contentType).toContain('text/event-stream') + expect(response.body).toContain('chunk1') + expect(response.body).toContain('chunk2') + + await close() + await sseUpstream.close() + }) +}) + +describe('opencode-proxy — upstream errors', () => { + it('returns 502 when upstream is not reachable', async () => { + // #given — proxy pointing at a port with nothing listening (port 1 is always refused) + const proxy = createOpencodeProxy({ + token: TEST_TOKEN, + upstreamUrl: 'http://127.0.0.1:1', + logger: makeLogger(), + }) + await proxy.listen(0, '127.0.0.1') + const addr = proxy.server.address() as AddressInfo + const url = `http://127.0.0.1:${addr.port}` + + // #when + const res = await httpGet(`${url}/test`, {Authorization: `Bearer ${TEST_TOKEN}`}) + + // #then + expect(res.statusCode).toBe(502) + await proxy.close() + }) +}) + +describe('opencode-proxy — close()', () => { + it('resolves cleanly when there are no active connections', async () => { + // #given + const upstreamStub = await startUpstreamStub({}) + const proxy = createOpencodeProxy({ + token: TEST_TOKEN, + upstreamUrl: upstreamStub.url, + logger: makeLogger(), + }) + await proxy.listen(0, '127.0.0.1') + + // #when / #then + await expect(proxy.close()).resolves.toBeUndefined() + await upstreamStub.close() + }) +}) diff --git a/apps/workspace-agent/src/opencode-proxy.ts b/apps/workspace-agent/src/opencode-proxy.ts new file mode 100644 index 00000000..3488facd --- /dev/null +++ b/apps/workspace-agent/src/opencode-proxy.ts @@ -0,0 +1,158 @@ +/** + * Bearer-token reverse proxy for the OpenCode SDK server. + * + * This is the SOLE sandbox-net-reachable OpenCode entry point. The raw + * OpenCode server is loopback-bound and never directly accessible. + * + * SECURITY INVARIANTS: + * 1. Bearer token compared with timingSafeEqual — no timing oracle. + * 2. Length mismatch checked before timingSafeEqual (guards against empty comparisons). + * 3. Token is never logged, never echoed in error responses. + * 4. Missing or wrong bearer → 401 with a fixed body, request NOT forwarded. + * 5. Supports HTTP and SSE (fetch-based SSE streams through the pipe without buffering). + */ + +import type {Logger} from './opencode-server.js' + +import {Buffer} from 'node:buffer' +import {timingSafeEqual} from 'node:crypto' +import http from 'node:http' +import {URL} from 'node:url' + +const UNAUTHORIZED_BODY = 'Unauthorized\n' +const UNAUTHORIZED_BODY_BYTES = Buffer.from(UNAUTHORIZED_BODY) + +export interface OpencodeProxyOptions { + /** + * Expected bearer token. Compared with timingSafeEqual. + * Never logged. + */ + readonly token: string + /** Upstream loopback URL, e.g. http://127.0.0.1:54321 */ + readonly upstreamUrl: string + readonly logger: Logger +} + +export interface OpencodeProxyHandle { + /** The underlying Node http.Server. */ + readonly server: http.Server + /** Bind the server to a port and start listening. */ + readonly listen: (port: number, hostname: string) => Promise + /** Close the proxy server. */ + readonly close: () => Promise +} + +/** + * Create a bearer-token reverse proxy that forwards authorized HTTP and SSE + * requests to the loopback-bound OpenCode server. + */ +export function createOpencodeProxy(options: OpencodeProxyOptions): OpencodeProxyHandle { + const {token, upstreamUrl, logger} = options + + const expectedBuf = Buffer.from(token) + const upstream = new URL(upstreamUrl) + + const server = http.createServer((req, res) => { + // --- Auth check --- + const authHeader = req.headers.authorization + + let authorized = false + if (typeof authHeader === 'string' && authHeader.startsWith('Bearer ')) { + const presented = authHeader.slice('Bearer '.length) + const presentedBuf = Buffer.from(presented) + // Guard length before timingSafeEqual (requires same-length buffers) + if (presentedBuf.length === expectedBuf.length) { + authorized = timingSafeEqual(presentedBuf, expectedBuf) + } + } + + if (authorized === false) { + // Never log the Authorization header value + logger.warn('opencode-proxy: unauthorized request', {method: req.method, url: req.url}) + res.writeHead(401, { + 'Content-Type': 'text/plain', + 'Content-Length': String(UNAUTHORIZED_BODY_BYTES.length), + }) + res.end(UNAUTHORIZED_BODY) + return + } + + // --- Forward --- + // Strip Authorization (never forward caller's bearer to OpenCode) + // and Host (replace with upstream's host). + // Build the forwarded headers by filtering — avoids 'undefined' header values + // which Node throws ERR_HTTP_INVALID_HEADER_VALUE for. + const forwardHeaders = Object.fromEntries( + Object.entries(req.headers).filter(([key]) => key !== 'authorization' && key !== 'host'), + ) + + const forwardOptions: http.RequestOptions = { + hostname: upstream.hostname, + port: upstream.port === '' ? undefined : Number(upstream.port), + path: req.url, + method: req.method, + headers: { + ...forwardHeaders, + host: upstream.host, + }, + } + + const upstreamReq = http.request(forwardOptions, upstreamRes => { + res.writeHead(upstreamRes.statusCode ?? 502, upstreamRes.headers) + // Pipe without buffering — SSE streams through correctly + upstreamRes.pipe(res, {end: true}) + }) + + upstreamReq.on('error', (err: Error) => { + logger.error('opencode-proxy: upstream error', {message: err.message}) + if (res.headersSent === false) { + res.writeHead(502, {'Content-Type': 'text/plain'}) + res.end('Bad Gateway\n') + } else { + res.destroy() + } + }) + + // Pipe request body → upstream (needed for POST/PUT with bodies). + // For GET/HEAD and other bodyless requests, end immediately — do not wait + // for the req stream to close (keep-alive connections keep the stream open, + // causing a deadlock if we pipe unconditionally). + const hasBody = + req.method !== 'GET' && + req.method !== 'HEAD' && + (Number(req.headers['content-length'] ?? 0) > 0 || req.headers['transfer-encoding'] !== undefined) + + if (hasBody === true) { + req.pipe(upstreamReq, {end: true}) + } else { + upstreamReq.end() + } + }) + + return { + server, + + async listen(port: number, hostname: string): Promise { + return new Promise((resolve, reject) => { + server.once('error', reject) + server.listen(port, hostname, () => { + server.off('error', reject) + logger.info('opencode-proxy: listening', {port, hostname}) + resolve() + }) + }) + }, + + async close(): Promise { + return new Promise((resolve, reject) => { + server.close(err => { + if (err !== undefined && err !== null) { + reject(err) + } else { + resolve() + } + }) + }) + }, + } +} diff --git a/apps/workspace-agent/src/opencode-server.test.ts b/apps/workspace-agent/src/opencode-server.test.ts new file mode 100644 index 00000000..1a341dc7 --- /dev/null +++ b/apps/workspace-agent/src/opencode-server.test.ts @@ -0,0 +1,250 @@ +/** + * Tests for opencode-server.ts — startOpencodeServer lifecycle. + * + * DOES NOT spawn a real opencode binary — spawn and readiness poll are + * injected for isolation and speed. + */ + +import type {SpawnFn} from './opencode-server.js' + +import {EventEmitter} from 'node:events' +import {describe, expect, it, vi} from 'vitest' +import {startOpencodeServer} from './opencode-server.js' + +// ── Test helpers ───────────────────────────────────────────────────────────── + +function makeLogger(overrides?: {error?: (msg: string, meta?: Record) => void}) { + return { + info: (_msg: string, _meta?: Record) => undefined, + warn: (_msg: string, _meta?: Record) => undefined, + error: overrides?.error ?? ((_msg: string, _meta?: Record) => undefined), + } +} + +/** + * Create a fake child process that stays alive until kill() is called. + * Returns the child handle and a `killCalls` array for assertions. + */ +function makeFakeChild(opts: {exitImmediately?: boolean; exitCode?: number | null}) { + const emitter = new EventEmitter() + let exited = false + + if (opts.exitImmediately === true) { + // Schedule immediate exit on next tick so caller can attach listeners + setImmediate(() => { + exited = true + emitter.emit('exit', opts.exitCode ?? 1) + }) + } + + const killCalls: (string | undefined)[] = [] + + const child = { + kill: (sig?: string): boolean => { + killCalls.push(sig) + if (exited === false) { + exited = true + setImmediate(() => emitter.emit('exit', 0)) + } + return true + }, + on: (event: string | symbol, listener: (...args: unknown[]) => void): void => { + emitter.on(event, listener) + }, + } + + return {child, killCalls} +} + +/** Build a SpawnFn from a fake child; records call args in spawnArgs[]. */ +function makeSpawnFn( + fakeChild: ReturnType['child'], + spawnArgs: {command: string; args: readonly string[]}[] = [], +): SpawnFn { + return (command, args, _opts) => { + spawnArgs.push({command, args}) + return fakeChild + } +} + +/** Poll that immediately returns ready. */ +const alwaysReady = async (_url: string) => true + +/** Poll that never returns ready. */ +const neverReady = async (_url: string) => false + +/** Poll that returns ready after N calls. */ +function readyAfter(n: number): (url: string) => Promise { + let calls = 0 + return async (_url: string) => { + calls++ + return calls >= n + } +} + +// ── Tests ──────────────────────────────────────────────────────────────────── + +describe('startOpencodeServer — happy path', () => { + it('resolves with a loopback url when the server becomes ready', async () => { + // #given + const {child} = makeFakeChild({}) + const spawnArgs: {command: string; args: readonly string[]}[] = [] + const spawnFn = makeSpawnFn(child, spawnArgs) + + // #when + const handle = await startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + hostname: '127.0.0.1', + port: 54321, + spawnFn, + pollReadyFn: alwaysReady, + }) + + // #then + expect(handle.url).toBe('http://127.0.0.1:54321') + expect(spawnArgs).toHaveLength(1) + expect(spawnArgs[0]).toMatchObject({ + command: 'opencode', + args: ['serve', '--hostname', '127.0.0.1', '--port', '54321'], + }) + + handle.close() + }) + + it('calls kill on the child when close() is invoked', async () => { + // #given + const {child, killCalls} = makeFakeChild({}) + const handle = await startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + spawnFn: makeSpawnFn(child), + pollReadyFn: alwaysReady, + }) + + // #when + handle.close() + + // #then + expect(killCalls).toContain('SIGTERM') + }) + + it('resolves after multiple poll attempts', async () => { + // #given — ready only on the 3rd poll attempt + const {child} = makeFakeChild({}) + const poll = vi.fn(readyAfter(3)) + + // #when + const handle = await startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + spawnFn: makeSpawnFn(child), + pollReadyFn: poll, + pollIntervalMs: 0, // no actual wait in tests + }) + + // #then + expect(poll).toHaveBeenCalledTimes(3) + expect(handle.url).toContain('127.0.0.1') + handle.close() + }) +}) + +describe('startOpencodeServer — error paths', () => { + it('throws if the process exits before becoming ready (spawn fail / crash)', async () => { + // #given — process exits immediately with code 1 + const {child} = makeFakeChild({exitImmediately: true, exitCode: 1}) + + // #when / #then + await expect( + startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + spawnFn: makeSpawnFn(child), + pollReadyFn: neverReady, + pollIntervalMs: 0, + readyTimeoutMs: 2000, + }), + ).rejects.toThrow(/exited before becoming ready/) + }) + + it('throws on timeout and kills the process', async () => { + // #given — server never becomes ready; very short timeout + const {child, killCalls} = makeFakeChild({}) + + // #when / #then + await expect( + startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + spawnFn: makeSpawnFn(child), + pollReadyFn: neverReady, + pollIntervalMs: 0, + readyTimeoutMs: 1, // 1ms — immediately times out + }), + ).rejects.toThrow(/did not become ready within/) + + // Process should have been killed + expect(killCalls).toContain('SIGTERM') + }) + + it('logs errors without throwing on spawn error event', async () => { + // #given — spawn emits 'error' event (e.g. binary not found) then exits + const errorMessages: string[] = [] + const emitter = new EventEmitter() + + const errorChild = { + kill: (_sig?: string): boolean => true, + on: (event: string | symbol, listener: (...args: unknown[]) => void): void => { + emitter.on(event, listener) + }, + } + setImmediate(() => { + emitter.emit('error', new Error('spawn ENOENT')) + emitter.emit('exit', null) + }) + + // #when / #then — should throw (due to exit), not silently hang + await expect( + startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger({error: (msg: string) => errorMessages.push(msg)}), + spawnFn: () => errorChild, + pollReadyFn: neverReady, + pollIntervalMs: 0, + readyTimeoutMs: 2000, + }), + ).rejects.toThrow() + + // Error should have been logged (not swallowed silently) + expect(errorMessages.some(m => m.includes('opencode-server'))).toBe(true) + }) +}) + +describe('startOpencodeServer — abort signal', () => { + it('kills the child when the abort signal fires before ready', async () => { + // #given + const {child, killCalls} = makeFakeChild({}) + const ac = new AbortController() + + const promise = startOpencodeServer({ + rootDir: '/workspace/repos', + logger: makeLogger(), + signal: ac.signal, + spawnFn: makeSpawnFn(child), + pollReadyFn: neverReady, + pollIntervalMs: 10, + readyTimeoutMs: 30_000, + }) + + // #when — abort immediately + ac.abort() + + // #then — child.kill called; promise either rejects or resolves depending on timing + await promise.then( + h => h.close(), + () => undefined, + ) + expect(killCalls).toContain('SIGTERM') + }) +}) diff --git a/apps/workspace-agent/src/opencode-server.ts b/apps/workspace-agent/src/opencode-server.ts new file mode 100644 index 00000000..fbd8eb97 --- /dev/null +++ b/apps/workspace-agent/src/opencode-server.ts @@ -0,0 +1,159 @@ +/** + * OpenCode SDK server lifecycle for the workspace-agent. + * + * Spawns `opencode serve` bound to loopback (127.0.0.1) only — never on + * `sandbox-net` or host-published. The bearer-token proxy in opencode-proxy.ts + * is the sole externally-reachable surface. + * + * SECURITY INVARIANTS: + * 1. Binds to 127.0.0.1 only — raw OpenCode port is never on sandbox-net. + * 2. No token or credential is logged. + * 3. Spawn failure is caught and reflected as 'down' status; no crash-loop. + */ + +import {spawn as nodeSpawn} from 'node:child_process' +import process from 'node:process' +import {setTimeout as sleep} from 'node:timers/promises' + +export interface Logger { + readonly info: (msg: string, meta?: Record) => void + readonly warn: (msg: string, meta?: Record) => void + readonly error: (msg: string, meta?: Record) => void +} + +/** Minimal child process handle used by this module. */ +export interface ChildHandle { + readonly kill: (signal?: string) => boolean + readonly on: (event: string | symbol, listener: (...args: unknown[]) => void) => void +} + +/** Simplified spawn signature for dependency injection. */ +export type SpawnFn = ( + command: string, + args: readonly string[], + options: {readonly cwd?: string; readonly env?: NodeJS.ProcessEnv}, +) => ChildHandle + +/** Readiness probe — return true if the server is accepting connections. */ +export type PollReadyFn = (url: string, signal?: AbortSignal) => Promise + +export interface OpencodeServerHandle { + /** Loopback URL, e.g. http://127.0.0.1:54321 */ + readonly url: string + /** Terminate the OpenCode process. */ + readonly close: () => void +} + +export interface StartOpencodeServerOptions { + /** Repo root directory passed to opencode serve. */ + readonly rootDir: string + readonly logger: Logger + /** Optional abort signal — on abort the server is closed. */ + readonly signal?: AbortSignal + /** Hostname to bind. Default: '127.0.0.1' (loopback only). */ + readonly hostname?: string + /** Port to bind. Default: 54321 (OpenCode default). */ + readonly port?: number + /** How long to wait for the server to become ready. Default: 15000ms. */ + readonly readyTimeoutMs?: number + /** Poll interval in ms. Default: 250ms. */ + readonly pollIntervalMs?: number + /** Injected spawn function for testing. Defaults to node:child_process.spawn. */ + readonly spawnFn?: SpawnFn + /** Injected readiness poll function for testing. */ + readonly pollReadyFn?: PollReadyFn +} + +/** Default readiness probe: fetch the URL, succeed on any HTTP response. */ +async function defaultPollReady(url: string, signal?: AbortSignal): Promise { + try { + const res = await fetch(url, {signal}) + // Any HTTP response means the server is up (even 404/500) + return res.status > 0 + } catch { + return false + } +} + +/** + * Start an OpenCode SDK server bound to loopback, poll until ready. + * + * Returns {url, close} on success. + * Throws if the process exits before becoming ready or the timeout elapses. + */ +export async function startOpencodeServer(options: StartOpencodeServerOptions): Promise { + const { + rootDir, + logger, + signal, + hostname = '127.0.0.1', + port = 54321, + readyTimeoutMs = 15_000, + pollIntervalMs = 250, + spawnFn = nodeSpawn, + pollReadyFn = defaultPollReady, + } = options + + const url = `http://${hostname}:${port}` + + logger.info('opencode-server: spawning', {url, rootDir}) + + const child = spawnFn('opencode', ['serve', '--hostname', hostname, '--port', String(port)], { + cwd: rootDir, + env: process.env, + }) + + // Use an object to hold mutable state — TypeScript does not narrow mutable + // object properties across await points, preventing false narrowing errors. + const state: {exited: boolean; exitCode: number | null} = {exited: false, exitCode: null} + + child.on('exit', (code: unknown) => { + state.exited = true + state.exitCode = typeof code === 'number' ? code : null + logger.info('opencode-server: process exited', {code: state.exitCode}) + }) + + child.on('error', (err: unknown) => { + state.exited = true + const message = err instanceof Error ? err.message : String(err) + logger.error('opencode-server: spawn error', {message}) + }) + + // Abort signal integration + if (signal !== undefined) { + signal.addEventListener('abort', () => { + if (state.exited === false) { + child.kill('SIGTERM') + } + }) + } + + // Poll until ready or timeout + const deadline = Date.now() + readyTimeoutMs + + while (Date.now() < deadline) { + if (state.exited === true) { + throw new Error(`opencode process exited before becoming ready (exit code: ${state.exitCode})`) + } + + const ready = await pollReadyFn(url, signal) + if (ready === true) { + logger.info('opencode-server: ready', {url}) + return { + url, + close(): void { + if (state.exited === false) { + child.kill('SIGTERM') + } + }, + } + } + + await sleep(pollIntervalMs) + } + + // Timeout reached — kill and throw. + // Kill unconditionally (no-op if process already exited). + child.kill('SIGTERM') + throw new Error(`opencode server did not become ready within ${readyTimeoutMs}ms`) +} diff --git a/apps/workspace-agent/src/server.test.ts b/apps/workspace-agent/src/server.test.ts index fd04e7d9..3c289a58 100644 --- a/apps/workspace-agent/src/server.test.ts +++ b/apps/workspace-agent/src/server.test.ts @@ -28,7 +28,7 @@ async function postClone( } describe('GET /healthz', () => { - it('returns 200 with ok: true', async () => { + it('returns 200 with ok: true (no opencode status)', async () => { // #given const app = createApp() @@ -40,6 +40,48 @@ describe('GET /healthz', () => { const body = await res.json() expect(body).toEqual({ok: true}) }) + + it('returns {ok: true, opencode: "starting"} when server is still starting', async () => { + // #given + const opencodeStatus = {status: 'starting' as const} + const app = createApp({opencodeStatus}) + + // #when + const res = await app.request('/healthz') + + // #then + expect(res.status).toBe(200) + const body = await res.json() + expect(body).toEqual({ok: true, opencode: 'starting'}) + }) + + it('returns {ok: true, opencode: "ready"} when opencode server is ready', async () => { + // #given + const opencodeStatus = {status: 'ready' as const} + const app = createApp({opencodeStatus}) + + // #when + const res = await app.request('/healthz') + + // #then + expect(res.status).toBe(200) + const body = await res.json() + expect(body).toEqual({ok: true, opencode: 'ready'}) + }) + + it('returns {ok: true, opencode: "down"} when opencode server failed to start', async () => { + // #given + const opencodeStatus = {status: 'down' as const} + const app = createApp({opencodeStatus}) + + // #when + const res = await app.request('/healthz') + + // #then + expect(res.status).toBe(200) + const body = await res.json() + expect(body).toEqual({ok: true, opencode: 'down'}) + }) }) describe('POST /clone — validation', () => { diff --git a/apps/workspace-agent/src/server.ts b/apps/workspace-agent/src/server.ts index c49475f5..e7b932e1 100644 --- a/apps/workspace-agent/src/server.ts +++ b/apps/workspace-agent/src/server.ts @@ -18,9 +18,19 @@ const MAX_BODY_BYTES = 4096 /** Simplified clone executor signature for dependency injection. */ export type CloneExecutorFn = (request: CloneRequest, deps?: CloneHandlerDeps) => Promise +/** OpenCode readiness state shared between the lifecycle and the server. */ +export type OpencodeStatus = 'starting' | 'ready' | 'down' + +export interface OpencodeStatusRef { + /** Current readiness. Updated by the lifecycle holder. */ + status: OpencodeStatus +} + export interface ServerDeps { /** Injected clone executor for testability. */ readonly cloneExecutor?: CloneExecutorFn + /** OpenCode server readiness reference. When absent, opencode field is omitted from /healthz. */ + readonly opencodeStatus?: OpencodeStatusRef } /** @@ -29,12 +39,13 @@ export interface ServerDeps { * @param deps - Optional dependency overrides for testing. */ export function createApp(deps: ServerDeps = {}): Hono { - const {cloneExecutor = executeClone} = deps + const {cloneExecutor = executeClone, opencodeStatus} = deps const app = new Hono() // GET /healthz — liveness probe app.get('/healthz', c => { - const body: HealthzResponse = {ok: true} + const body: HealthzResponse = + opencodeStatus === undefined ? {ok: true} : {ok: true, opencode: opencodeStatus.status} return c.json(body, 200) }) diff --git a/apps/workspace-agent/src/types.ts b/apps/workspace-agent/src/types.ts index cf9e61fa..c7f2ad95 100644 --- a/apps/workspace-agent/src/types.ts +++ b/apps/workspace-agent/src/types.ts @@ -56,4 +56,6 @@ export type CloneErrorCode = /** GET /healthz response. */ export interface HealthzResponse { readonly ok: true + /** OpenCode server readiness. Present when the server lifecycle is managed. */ + readonly opencode?: 'ready' | 'starting' | 'down' } diff --git a/deploy/README.md b/deploy/README.md index 194adad8..235d10d1 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -5,7 +5,7 @@ Docker Compose v2 stack for the fro-bot gateway. Runs three services: | Service | Role | | ----------- | --------------------------------------------------------------------------------- | | `gateway` | Discord gateway daemon — connects to Discord, handles slash commands and mentions | -| `workspace` | Workspace agent container (placeholder in v1; real agent wired in Unit 7) | +| `workspace` | Workspace agent container — sandboxed git + OpenCode execution | | `mitmproxy` | Egress proxy enforcing an allowlist of permitted outbound hosts | ## Prerequisites @@ -76,6 +76,23 @@ touch deploy/secrets/discord-guild-id touch deploy/secrets/discord-privileged-intents # echo -n 'MessageContent,GuildMembers' > deploy/secrets/discord-privileged-intents +# Workspace OpenCode bearer token (required for the OpenCode attach path). +# The workspace proxy validates this token; the gateway presents the same +# value when attaching. Generate a strong shared secret: +openssl rand -hex 32 > deploy/secrets/workspace-opencode-token + +# Optional — override the workspace OpenCode proxy URL. +# Default: http://workspace:9200 (internal Docker Compose service name). +# Change only if the workspace container is not on the same Compose network. +touch deploy/secrets/workspace-opencode-url +# echo -n 'http://workspace:9200' > deploy/secrets/workspace-opencode-url + +# Optional — Discord role ID that grants trigger authorization. +# If set, only members with this role may @-mention the bot to start an agent run. +# If unset, falls back to guild-level ManageChannels permission. +touch deploy/secrets/gateway-trigger-role-id +# echo -n 'YOUR_ROLE_ID' > deploy/secrets/gateway-trigger-role-id + # GitHub App credentials (required — see "GitHub App" section below) echo -n 'YOUR_GITHUB_APP_ID' > deploy/secrets/github-app-id cp ~/Downloads/your-app.private-key.pem deploy/secrets/github-app-private-key @@ -162,6 +179,9 @@ Run the full `touch` block from [Create secrets](#2-create-secrets) on every upg | `deploy/secrets/aws-secret-access-key` | AWS secret key for explicit S3 authentication | Deploy-contract hardening; existing deployments must `touch` this on upgrade | | `deploy/secrets/aws-session-token` | AWS session token for STS temporary credentials | Deploy-contract hardening; existing deployments must `touch` this on upgrade | | `deploy/secrets/s3-endpoint` | Custom S3-compatible endpoint (e.g. Cloudflare R2) | Deploy-contract hardening; existing deployments must `touch` this on upgrade | +| `deploy/secrets/workspace-opencode-token` | Shared bearer token for the workspace OpenCode reverse proxy (required for the OpenCode attach path) | OpenCode attach; existing deployments must create this file on upgrade | +| `deploy/secrets/workspace-opencode-url` | Base URL of the workspace OpenCode proxy (default: `http://workspace:9200`). Override only when the workspace container is not on the same Compose network. | OpenCode attach; existing deployments must `touch` this on upgrade | +| `deploy/secrets/gateway-trigger-role-id` | Discord role ID that grants trigger authorization. If unset, falls back to guild-level `ManageChannels`. | Mention-loop trigger gate; existing deployments must `touch` this on upgrade | | `deploy/secrets/github-app-id` | GitHub App ID (required for repository access) | GitHub App auth; existing deployments must create this file on upgrade | | `deploy/secrets/github-app-private-key` | GitHub App private key PEM (required for repository access) | GitHub App auth; existing deployments must create this file on upgrade | @@ -209,6 +229,17 @@ The gateway auto-discovers the installation ID at runtime — you do not need to - **Under-privileged** (e.g. `contents: none`): the gateway returns an error at `/add-project` time with a message naming the missing permissions and a link to the installation settings page. - **Over-privileged** (e.g. `contents: write` when only `read` is required): the gateway logs a `WARN` entry listing the over-privileged scopes but does not block the request. Operators should review and reduce permissions to the minimum needed. +## Workspace Port Model + +The workspace container exposes two internal ports, both accessible only within the Docker Compose sandbox network: + +| Port | Service | Purpose | +| --- | --- | --- | +| 9100 | Workspace agent (`workspace-api`) | Handles repo clone requests from the `/add-project` slash command | +| 9200 | OpenCode reverse proxy | Bearer-authenticated endpoint the gateway uses when attaching to an OpenCode session. Validates `WORKSPACE_OPENCODE_TOKEN` before forwarding to the loopback-bound OpenCode process. | + +Neither port is exposed on the host. The egress proxy (`mitmproxy`) permits only outbound traffic to the allowlisted hosts; these ports are inbound-only from the gateway's perspective and not reachable from outside the sandbox network. + ## Stopping the Stack ```bash diff --git a/deploy/compose.yaml b/deploy/compose.yaml index 89433cb1..62387c4e 100644 --- a/deploy/compose.yaml +++ b/deploy/compose.yaml @@ -30,6 +30,13 @@ services: # GitHub App credentials (required for repository access) GITHUB_APP_ID_FILE: /run/secrets/github_app_id GITHUB_APP_PRIVATE_KEY_FILE: /run/secrets/github_app_private_key + # OpenCode bearer token — required; gateway will not start without this. + # The workspace container reverse-proxies OpenCode and validates this token. + WORKSPACE_OPENCODE_TOKEN_FILE: /run/secrets/workspace_opencode_token + # Optional — override the OpenCode proxy URL (default: http://workspace:9200) + WORKSPACE_OPENCODE_URL_FILE: /run/secrets/workspace_opencode_url + # Optional — Discord role ID that gates mention authorization + GATEWAY_TRIGGER_ROLE_ID_FILE: /run/secrets/gateway_trigger_role_id # Egress proxy (regular proxy mode — NOT transparent) HTTPS_PROXY: http://mitmproxy:8080 HTTP_PROXY: http://mitmproxy:8080 @@ -125,6 +132,29 @@ services: create_host_path: false # mitmproxy CA cert (written by mitmproxy on first start, read here for trust) - mitmproxy-certs:/etc/ssl/certs:ro + # OpenCode bearer token — required; must match workspace-opencode-token. + - type: bind + source: ./secrets/workspace-opencode-token + target: /run/secrets/workspace_opencode_token + read_only: true + bind: + create_host_path: false + # Optional — OpenCode proxy URL override (default: http://workspace:9200). + # Touch the file empty to use the default. + - type: bind + source: ./secrets/workspace-opencode-url + target: /run/secrets/workspace_opencode_url + read_only: true + bind: + create_host_path: false + # Optional — Discord role ID that gates mention authorization. + # Touch the file empty to fall back to guild-level ManageChannels. + - type: bind + source: ./secrets/gateway-trigger-role-id + target: /run/secrets/gateway_trigger_role_id + read_only: true + bind: + create_host_path: false networks: - gateway-net - sandbox-net @@ -147,6 +177,23 @@ services: HTTPS_PROXY: http://mitmproxy:8080 HTTP_PROXY: http://mitmproxy:8080 NO_PROXY: localhost,127.0.0.1,workspace + # Bearer token for the OpenCode reverse proxy. + # The gateway presents this token when attaching to the workspace OpenCode server. + WORKSPACE_OPENCODE_TOKEN_FILE: /run/secrets/workspace_opencode_token + volumes: + # workspace-opencode-token: shared secret for the bearer-token proxy. + # The gateway reads the same value from WORKSPACE_OPENCODE_TOKEN_FILE. + - type: bind + source: ./secrets/workspace-opencode-token + target: /run/secrets/workspace_opencode_token + read_only: true + bind: + create_host_path: false + # Port model: + # 9100 — Hono API (/healthz, /clone) — sandbox-net only, no host mapping + # 9200 — OpenCode bearer-token proxy — sandbox-net only, no host mapping + # 54321 — raw OpenCode SDK server — loopback (127.0.0.1) ONLY, not published + # No `ports:` entries: all access is container-to-container on sandbox-net. networks: - sandbox-net restart: unless-stopped diff --git a/deploy/workspace.Dockerfile b/deploy/workspace.Dockerfile index 256e6e2f..33b6b1e4 100644 --- a/deploy/workspace.Dockerfile +++ b/deploy/workspace.Dockerfile @@ -1,16 +1,16 @@ # syntax=docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 -# Workspace agent build is implemented in Unit 7. This Dockerfile is a -# placeholder that builds an idle container so the compose stack composes -# cleanly. +# Workspace agent container. # -# Unit 7 will replace this with a real build that installs: -# - OpenCode CLI pinned to 1.14.41 -# - oMo (oh-my-opencode) pinned to the version in src/shared/constants.ts -# - @fro.bot/systematic plugin (pinned to DEFAULT_SYSTEMATIC_VERSION in constants.ts) -# - mitmproxy CA injected into /usr/local/share/ca-certificates/mitmproxy.crt -# followed by update-ca-certificates so all outbound TLS goes through the proxy +# Currently a minimal idle container. The full image build — OpenCode CLI +# (pinned 1.14.41), oMo, the @fro.bot/systematic plugin, and the mitmproxy CA +# for outbound TLS interception — is not yet wired here. +# +# Port model: +# - 9100 (Hono API: /healthz, /clone) — sandbox-net reachable +# - 9200 (OpenCode bearer-token proxy) — sandbox-net reachable (gateway attaches here) +# - 54321 (raw OpenCode SDK server) — loopback (127.0.0.1) ONLY, never exposed FROM node:24.16.0-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14 -CMD ["sh", "-c", "echo 'workspace placeholder — Unit 7 will replace this'; sleep infinity"] +CMD ["sh", "-c", "echo 'workspace container (idle)'; sleep infinity"] diff --git a/dist/artifact-D6HNowC1.js b/dist/artifact-D6HNowC1.js deleted file mode 100644 index 0ca1e147..00000000 --- a/dist/artifact-D6HNowC1.js +++ /dev/null @@ -1,262 +0,0 @@ -import{a as e,i as t,o as n,r,t as i}from"./chunk-BTyA9uPd.js";import{n as a,r as o,t as s}from"./process-BNnOKLln.js";import{t as c}from"./dist-cjs-Qh8tJqb7.js";import{n as l,r as u,t as d}from"./client-BGPX0p_V.js";import{r as f,t as p}from"./dist-cjs-GIhSYq7f.js";import{$ as m,B as h,Q as g,V as v,at as y,et as b,nt as x,rt as S,t as C,tt as w}from"./dist-cjs-B_LTzHDO.js";import{C as T,D as E,E as D,G as O,I as k,K as A,S as j,T as M,W as N,a as P,b as F,i as I,n as L,o as R,r as z,s as ee,t as B,w as V,x as te,y as H}from"./dist-cjs-D0bofO8q.js";import{t as ne}from"./dist-cjs-CKxbtVku.js";import{n as re,r as ie,t as ae}from"./dist-cjs-Da76Axwc.js";import{t as U}from"./dist-cjs-BjeBHYpU.js";import{t as oe}from"./dist-cjs-Vc3Nkab2.js";import{t as se}from"./dist-cjs-BWu9uV-R.js";import{t as ce}from"./dist-cjs-DzDz58I_.js";import le from"node:process";import*as ue from"os";import de,{EOL as fe}from"os";import*as pe from"crypto";import*as me from"fs";import{constants as he,existsSync as ge,promises as _e,readFileSync as ve,writeFileSync as ye}from"fs";import*as W from"path";import{normalize as be,resolve as xe}from"path";import*as Se from"http";import*as Ce from"https";import*as we from"events";import{EventEmitter as Te}from"events";import Ee,{ok as De}from"assert";import*as Oe from"util";import*as ke from"node:net";import Ae from"node:http";import{Readable as je,Transform as Me}from"node:stream";import Ne,{Buffer as Pe}from"node:buffer";import Fe,{inspect as Ie}from"node:util";import Le from"node:zlib";import{createHmac as Re}from"node:crypto";import{pathToFileURL as ze}from"node:url";import{StringDecoder as Be}from"string_decoder";import*as Ve from"child_process";import{setTimeout as He}from"timers";import*as Ue from"node:fs/promises";import*as We from"node:path";import*as Ge from"node:os";import Ke,{EOL as qe}from"node:os";import*as Je from"node:fs";import Ye from"node:fs";import{pipeline as Xe}from"node:stream/promises";import*as Ze from"buffer";import{Buffer as Qe}from"buffer";import*as $e from"stream";import{Readable as G}from"stream";import et from"node:https";import tt,{realpath as nt}from"fs/promises";import{URL as rt}from"url";function it(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}function at(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function ot(e,t,n){let r=new st(e,t,n);process.stdout.write(r.toString()+ue.EOL)}var st=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=`::`+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${lt(r)}`)}}return e+=`::${ct(this.message)}`,e}};function ct(e){return it(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function lt(e){return it(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function ut(e,t){let n=process.env[`GITHUB_${e}`];if(!n)throw Error(`Unable to find environment variable for file command ${e}`);if(!me.existsSync(n))throw Error(`Missing file at path: ${n}`);me.appendFileSync(n,`${it(t)}${ue.EOL}`,{encoding:`utf8`})}function dt(e,t){let n=`ghadelimiter_${pe.randomUUID()}`,r=it(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${ue.EOL}${r}${ue.EOL}${n}`}function ft(e){let t=e.protocol===`https:`;if(pt(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ht(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new ht(`http://${n}`)}else return}function pt(e){if(!e.hostname)return!1;let t=e.hostname;if(mt(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function mt(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var ht=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},gt=i((e=>{t(`net`);var n=t(`tls`),r=t(`http`),i=t(`https`),a=t(`events`);t(`assert`);var o=t(`util`);e.httpOverHttp=s,e.httpsOverHttp=c,e.httpOverHttps=l,e.httpsOverHttps=u;function s(e){var t=new d(e);return t.request=r.request,t}function c(e){var t=new d(e);return t.request=r.request,t.createSocket=f,t.defaultPort=443,t}function l(e){var t=new d(e);return t.request=i.request,t}function u(e){var t=new d(e);return t.request=i.request,t.createSocket=f,t.defaultPort=443,t}function d(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||r.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=p(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},d.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=m({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),h(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){h(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){h(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return h(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),h(`tunneling socket could not be established, cause=%s -`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},d.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function f(e,t){var r=this;d.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=m({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=n.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,t(s)})}function p(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function m(e){for(var t=1,n=arguments.length;t{t.exports=gt()})),vt=i(((e,t)=>{t.exports={kClose:Symbol(`close`),kDestroy:Symbol(`destroy`),kDispatch:Symbol(`dispatch`),kUrl:Symbol(`url`),kWriting:Symbol(`writing`),kResuming:Symbol(`resuming`),kQueue:Symbol(`queue`),kConnect:Symbol(`connect`),kConnecting:Symbol(`connecting`),kKeepAliveDefaultTimeout:Symbol(`default keep alive timeout`),kKeepAliveMaxTimeout:Symbol(`max keep alive timeout`),kKeepAliveTimeoutThreshold:Symbol(`keep alive timeout threshold`),kKeepAliveTimeoutValue:Symbol(`keep alive timeout`),kKeepAlive:Symbol(`keep alive`),kHeadersTimeout:Symbol(`headers timeout`),kBodyTimeout:Symbol(`body timeout`),kServerName:Symbol(`server name`),kLocalAddress:Symbol(`local address`),kHost:Symbol(`host`),kNoRef:Symbol(`no ref`),kBodyUsed:Symbol(`used`),kBody:Symbol(`abstracted request body`),kRunning:Symbol(`running`),kBlocking:Symbol(`blocking`),kPending:Symbol(`pending`),kSize:Symbol(`size`),kBusy:Symbol(`busy`),kQueued:Symbol(`queued`),kFree:Symbol(`free`),kConnected:Symbol(`connected`),kClosed:Symbol(`closed`),kNeedDrain:Symbol(`need drain`),kReset:Symbol(`reset`),kDestroyed:Symbol.for(`nodejs.stream.destroyed`),kResume:Symbol(`resume`),kOnError:Symbol(`on error`),kMaxHeadersSize:Symbol(`max headers size`),kRunningIdx:Symbol(`running index`),kPendingIdx:Symbol(`pending index`),kError:Symbol(`error`),kClients:Symbol(`clients`),kClient:Symbol(`client`),kParser:Symbol(`parser`),kOnDestroyed:Symbol(`destroy callbacks`),kPipelining:Symbol(`pipelining`),kSocket:Symbol(`socket`),kHostHeader:Symbol(`host header`),kConnector:Symbol(`connector`),kStrictContentLength:Symbol(`strict content length`),kMaxRedirections:Symbol(`maxRedirections`),kMaxRequests:Symbol(`maxRequestsPerClient`),kProxy:Symbol(`proxy agent options`),kCounter:Symbol(`socket request counter`),kInterceptors:Symbol(`dispatch interceptors`),kMaxResponseSize:Symbol(`max response size`),kHTTP2Session:Symbol(`http2Session`),kHTTP2SessionState:Symbol(`http2Session state`),kRetryHandlerDefaultRetry:Symbol(`retry agent default retry`),kConstruct:Symbol(`constructable`),kListeners:Symbol(`listeners`),kHTTPContext:Symbol(`http context`),kMaxConcurrentStreams:Symbol(`max concurrent streams`),kNoProxyAgent:Symbol(`no proxy agent`),kHttpProxyAgent:Symbol(`http proxy agent`),kHttpsProxyAgent:Symbol(`https proxy agent`)}})),yt=i(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var v=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let y=Symbol.for(`undici.error.UND_ERR_ABORT`);var b=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[y]===!0}[y]=!0};let x=Symbol.for(`undici.error.UND_ERR_ABORTED`);var S=class extends b{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[x]===!0}[x]=!0};let C=Symbol.for(`undici.error.UND_ERR_INFO`);var w=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[C]===!0}[C]=!0};let T=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var E=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[T]===!0}[T]=!0};let D=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var O=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[D]===!0}[D]=!0};let k=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var A=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[k]===!0}[k]=!0};let j=Symbol.for(`undici.error.UND_ERR_CLOSED`);var M=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[j]===!0}[j]=!0};let N=Symbol.for(`undici.error.UND_ERR_SOCKET`);var P=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[N]===!0}[N]=!0};let F=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var I=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[F]===!0}[F]=!0};let L=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var R=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[L]===!0}[L]=!0};let z=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var ee=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[z]===!0}[z]=!0};let B=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var V=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[B]===!0}[B]=!0};let te=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var H=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[te]===!0}[te]=!0};let ne=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var re=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ne]===!0}[ne]=!0};let ie=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var ae=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[ie]===!0}[ie]=!0};let U=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:b,HTTPParserError:ee,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:E,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:v,RequestAbortedError:S,ClientDestroyedError:A,ClientClosedError:M,InformationalError:w,SocketError:P,NotSupportedError:I,ResponseContentLengthMismatchError:O,BalancedPoolMissingUpstreamError:R,ResponseExceededMaxSizeError:V,RequestRetryError:H,ResponseError:re,SecureProxyConnectionError:ae,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[U]===!0}get[U](){return!0}}}})),bt=i(((e,t)=>{let n={},r=`Accept.Accept-Encoding.Accept-Language.Accept-Ranges.Access-Control-Allow-Credentials.Access-Control-Allow-Headers.Access-Control-Allow-Methods.Access-Control-Allow-Origin.Access-Control-Expose-Headers.Access-Control-Max-Age.Access-Control-Request-Headers.Access-Control-Request-Method.Age.Allow.Alt-Svc.Alt-Used.Authorization.Cache-Control.Clear-Site-Data.Connection.Content-Disposition.Content-Encoding.Content-Language.Content-Length.Content-Location.Content-Range.Content-Security-Policy.Content-Security-Policy-Report-Only.Content-Type.Cookie.Cross-Origin-Embedder-Policy.Cross-Origin-Opener-Policy.Cross-Origin-Resource-Policy.Date.Device-Memory.Downlink.ECT.ETag.Expect.Expect-CT.Expires.Forwarded.From.Host.If-Match.If-Modified-Since.If-None-Match.If-Range.If-Unmodified-Since.Keep-Alive.Last-Modified.Link.Location.Max-Forwards.Origin.Permissions-Policy.Pragma.Proxy-Authenticate.Proxy-Authorization.RTT.Range.Referer.Referrer-Policy.Refresh.Retry-After.Sec-WebSocket-Accept.Sec-WebSocket-Extensions.Sec-WebSocket-Key.Sec-WebSocket-Protocol.Sec-WebSocket-Version.Server.Server-Timing.Service-Worker-Allowed.Service-Worker-Navigation-Preload.Set-Cookie.SourceMap.Strict-Transport-Security.Supports-Loading-Mode.TE.Timing-Allow-Origin.Trailer.Transfer-Encoding.Upgrade.Upgrade-Insecure-Requests.User-Agent.Vary.Via.WWW-Authenticate.X-Content-Type-Options.X-DNS-Prefetch-Control.X-Frame-Options.X-Permitted-Cross-Domain-Policies.X-Powered-By.X-Requested-With.X-XSS-Protection`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=bt();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let r=t(`node:assert`),{kDestroyed:i,kBodyUsed:a,kListeners:o,kBody:s}=vt(),{IncomingMessage:c}=t(`node:http`),l=t(`node:stream`),u=t(`node:net`),{Blob:d}=t(`node:buffer`),f=t(`node:util`),{stringify:p}=t(`node:querystring`),{EventEmitter:m}=t(`node:events`),{InvalidArgumentError:h}=yt(),{headerNameLowerCasedRecord:g}=bt(),{tree:v}=xt(),[y,b]=process.versions.node.split(`.`).map(e=>Number(e));var x=class{constructor(e){this[s]=e,this[a]=!1}async*[Symbol.asyncIterator](){r(!this[a],`disturbed`),this[a]=!0,yield*this[s]}};function S(e){return w(e)?(I(e)===0&&e.on(`data`,function(){r(!1)}),typeof e.readableDidRead!=`boolean`&&(e[a]=!1,m.prototype.on.call(e,`data`,function(){this[a]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&F(e)?new x(e):e}function C(){}function w(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function T(e){if(e===null)return!1;if(e instanceof d)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function E(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=p(t);return n&&(e+=`?`+n),e}function D(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function O(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function k(e){if(typeof e==`string`){if(e=new URL(e),!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new h(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&D(e.port)===!1)throw new h(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new h(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new h(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new h(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new h(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function A(e){if(e=k(e),e.pathname!==`/`||e.search||e.hash)throw new h(`invalid url`);return e}function j(e){if(e[0]===`[`){let t=e.indexOf(`]`);return r(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function M(e){if(!e)return null;r(typeof e==`string`);let t=j(e);return u.isIP(t)?``:t}function N(e){return JSON.parse(JSON.stringify(e))}function P(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function F(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function I(e){if(e==null)return 0;if(w(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(T(e))return e.size==null?null:e.size;else if(ne(e))return e.byteLength;return null}function L(e){return e&&!!(e.destroyed||e[i]||l.isDestroyed?.(e))}function R(e,t){e==null||!w(e)||L(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===c&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[i]=!0))}let z=/timeout=(\d+)/;function ee(e){let t=e.toString().match(z);return t?parseInt(t[1],10)*1e3:null}function B(e){return typeof e==`string`?g[e]??e.toLowerCase():v.lookup(e)??e.toString(`latin1`).toLowerCase()}function V(e){return v.lookup(e)??e.toString(`latin1`).toLowerCase()}function te(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function H(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function ce(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function le(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let ue=typeof String.prototype.toWellFormed==`function`,de=typeof String.prototype.isWellFormed==`function`;function fe(e){return ue?`${e}`.toWellFormed():f.toUSVString(e)}function pe(e){return de?`${e}`.isWellFormed():fe(e)===`${e}`}function me(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return e>=33&&e<=126}}function he(e){if(e.length===0)return!1;for(let t=0;t{let r=t(`node:diagnostics_channel`),i=t(`node:util`),a=i.debuglog(`undici`),o=i.debuglog(`fetch`),s=i.debuglog(`websocket`),c=!1,l={beforeConnect:r.channel(`undici:client:beforeConnect`),connected:r.channel(`undici:client:connected`),connectError:r.channel(`undici:client:connectError`),sendHeaders:r.channel(`undici:client:sendHeaders`),create:r.channel(`undici:request:create`),bodySent:r.channel(`undici:request:bodySent`),headers:r.channel(`undici:request:headers`),trailers:r.channel(`undici:request:trailers`),error:r.channel(`undici:request:error`),open:r.channel(`undici:websocket:open`),close:r.channel(`undici:websocket:close`),socketError:r.channel(`undici:websocket:socket_error`),ping:r.channel(`undici:websocket:ping`),pong:r.channel(`undici:websocket:pong`)};if(a.enabled||o.enabled){let e=o.enabled?o:a;r.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),r.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),r.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),r.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),r.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),r.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),r.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),c=!0}if(s.enabled){if(!c){let e=a.enabled?a:s;r.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),r.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),r.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),r.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}r.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;s(`connection opened %s%s`,t,n?`:${n}`:``)}),r.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;s(`closed connection to %s - %s %s`,t.url,n,r)}),r.channel(`undici:websocket:socket_error`).subscribe(e=>{s(`connection errored - %s`,e.message)}),r.channel(`undici:websocket:ping`).subscribe(e=>{s(`ping received`)}),r.channel(`undici:websocket:pong`).subscribe(e=>{s(`pong received`)})}n.exports={channels:l}})),wt=i(((e,n)=>{let{InvalidArgumentError:r,NotSupportedError:i}=yt(),a=t(`node:assert`),{isValidHTTPToken:o,isValidHeaderValue:s,isStream:c,destroy:l,isBuffer:u,isFormDataLike:d,isIterable:f,isBlobLike:p,buildURL:m,validateHandler:h,getServerName:g,normalizedMethodRecords:v}=St(),{channels:y}=Ct(),{headerNameLowerCasedRecord:b}=bt(),x=/[^\u0021-\u00ff]/,S=Symbol(`handler`);var C=class{constructor(e,{path:t,method:n,body:i,headers:a,query:b,idempotent:C,blocking:T,upgrade:E,headersTimeout:D,bodyTimeout:O,reset:k,throwOnError:A,expectContinue:j,servername:M},N){if(typeof t!=`string`)throw new r(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&n!==`CONNECT`)throw new r(`path must be an absolute URL or start with a slash`);if(x.test(t))throw new r(`invalid request path`);if(typeof n!=`string`)throw new r(`method must be a string`);if(v[n]===void 0&&!o(n))throw new r(`invalid request method`);if(E&&typeof E!=`string`)throw new r(`upgrade must be a string`);if(E&&!s(E))throw new r(`invalid upgrade header`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new r(`invalid headersTimeout`);if(O!=null&&(!Number.isFinite(O)||O<0))throw new r(`invalid bodyTimeout`);if(k!=null&&typeof k!=`boolean`)throw new r(`invalid reset`);if(j!=null&&typeof j!=`boolean`)throw new r(`invalid expectContinue`);if(this.headersTimeout=D,this.bodyTimeout=O,this.throwOnError=A===!0,this.method=n,this.abort=null,i==null)this.body=null;else if(c(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){l(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(u(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(d(i)||f(i)||p(i))this.body=i;else throw new r(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=E||null,this.path=b?m(t,b):t,this.origin=e,this.idempotent=C??(n===`HEAD`||n===`GET`),this.blocking=T??!1,this.reset=k??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=j??!1,Array.isArray(a)){if(a.length%2!=0)throw new r(`headers array must be even`);for(let e=0;e{let r=t(`node:events`);var i=class extends r{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new a(this,n)}},a=class extends i{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};n.exports=i})),Et=i(((e,t)=>{let n=Tt(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=yt(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=vt(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`);t.exports=class extends n{constructor(){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[]}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),Dt=i(((e,t)=>{let n=0,r=1e3,i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),Ot=i(((e,n)=>{let r=t(`node:net`),i=t(`node:assert`),a=St(),{InvalidArgumentError:o,ConnectTimeoutError:s}=yt(),c=Dt();function l(){}let u,d;d=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function f({allowH2:e,maxCachedSessions:n,socketPath:s,timeout:c,session:l,...f}){if(n!=null&&(!Number.isInteger(n)||n<0))throw new o(`maxCachedSessions must be a positive integer or zero`);let m={path:s,...f},h=new d(n??100);return c??=1e4,e??=!1,function({hostname:n,host:o,protocol:s,port:d,servername:f,localAddress:g,httpSocket:v},y){let b;if(s===`https:`){u||=t(`node:tls`),f=f||m.servername||a.getServerName(o)||null;let r=f||n;i(r);let s=l||h.get(r)||null;d||=443,b=u.connect({highWaterMark:16384,...m,servername:f,session:s,localAddress:g,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:v,port:d,host:n}),b.on(`session`,function(e){h.set(r,e)})}else i(!v,`httpSocket can only be sent on TLS update`),d||=80,b=r.connect({highWaterMark:64*1024,...m,localAddress:g,port:d,host:n});if(m.keepAlive==null||m.keepAlive){let e=m.keepAliveInitialDelay===void 0?6e4:m.keepAliveInitialDelay;b.setKeepAlive(!0,e)}let x=p(new WeakRef(b),{timeout:c,hostname:n,port:d});return b.setNoDelay(!0).once(s===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(x),y){let e=y;y=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(x),y){let t=y;y=null,t(e)}}),b}}let p=process.platform===`win32`?(e,t)=>{if(!t.timeout)return l;let n=null,r=null,i=c.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>m(e.deref(),t))})},t.timeout);return()=>{c.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return l;let n=null,r=c.setFastTimeout(()=>{n=setImmediate(()=>{m(e.deref(),t)})},t.timeout);return()=>{c.clearFastTimeout(r),clearImmediate(n)}};function m(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,a.destroy(e,new s(n))}n.exports=f})),kt=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),At=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=kt();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),jt=i(((e,n)=>{let{Buffer:r}=t(`node:buffer`);n.exports=r.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv`,`base64`)})),Mt=i(((e,n)=>{let{Buffer:r}=t(`node:buffer`);n.exports=r.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),Nt=i(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],v=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],y=[`half`],b=[`CONNECT`,`TRACE`,`TRACK`],x=new Set(b),S=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:S,forbiddenMethods:b,requestBodyHeader:v,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:y,subresourceSet:new Set(S),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:x,referrerPolicySet:u}})),Pt=i(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),Ft=i(((e,n)=>{let r=t(`node:assert`),i=new TextEncoder,a=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,o=/[\u000A\u000D\u0009\u0020]/,s=/[\u0009\u000A\u000C\u000D\u0020]/g,c=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function l(e){r(e.protocol===`data:`);let t=u(e,!0);t=t.slice(5);let n={position:0},i=f(`,`,t,n),a=i.length;if(i=T(i,!0,!0),n.position>=t.length)return`failure`;n.position++;let o=p(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=y(D(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=v(i);return s===`failure`&&(s=v(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function u(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function d(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function h(e){return e>=48&&e<=57?e-48:(e&223)-55}function g(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=f(`;`,e,t);if(r=C(r,!1,!0),r.length===0||!a.test(r))return`failure`;let i=n.toLowerCase(),s=r.toLowerCase(),l={type:i,subtype:s,parameters:new Map,essence:`${i}/${s}`};for(;t.positiono.test(e),e,t);let n=d(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=b(e,t,!0),f(`;`,e,t);else if(r=f(`;`,e,t),r=C(r,!1,!0),r.length===0)continue;n.length!==0&&a.test(n)&&(r.length===0||c.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function y(e){e=e.replace(s,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function b(e,t,n){let i=t.position,a=``;for(r(e[t.position]===`"`),t.position++;a+=d(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let n=e[t.position];if(t.position++,n===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{r(n===`"`);break}}return n?a:e.slice(i,t.position)}function x(e){r(e!==`failure`);let{parameters:t,essence:n}=e,i=n;for(let[e,n]of t.entries())i+=`;`,i+=e,i+=`=`,a.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),i+=n;return i}function S(e){return e===13||e===10||e===9||e===32}function C(e,t=!0,n=!0){return E(e,t,n,S)}function w(e){return e===13||e===10||e===9||e===12||e===32}function T(e,t=!0,n=!0){return E(e,t,n,w)}function E(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function D(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function O(e){switch(e.essence){case`application/ecmascript`:case`application/javascript`:case`application/x-ecmascript`:case`application/x-javascript`:case`text/ecmascript`:case`text/javascript`:case`text/javascript1.0`:case`text/javascript1.1`:case`text/javascript1.2`:case`text/javascript1.3`:case`text/javascript1.4`:case`text/javascript1.5`:case`text/jscript`:case`text/livescript`:case`text/x-ecmascript`:case`text/x-javascript`:return`text/javascript`;case`application/json`:case`text/json`:return`application/json`;case`image/svg+xml`:return`image/svg+xml`;case`text/xml`:case`application/xml`:return`application/xml`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}n.exports={dataURLProcessor:l,URLSerializer:u,collectASequenceOfCodePoints:d,collectASequenceOfCodePointsFast:f,stringPercentDecode:p,parseMIMEType:v,collectAnHTTPQuotedString:b,serializeAMimeType:x,removeChars:E,removeHTTPWhitespace:C,minimizeSupportedMimeType:O,HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:D}})),It=i(((e,n)=>{let{types:r,inspect:i}=t(`node:util`),{markAsUncloneable:a}=t(`node:worker_threads`),{toUSVString:o}=St(),s={};s.converters={},s.util={},s.errors={},s.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},s.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return s.errors.exception({header:e.prefix,message:n})},s.errors.invalidArgument=function(e){return s.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},s.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},s.argumentLengthCheck=function({length:e},t,n){if(e{}),s.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let o=Number(e);if(o===0&&(o=0),r?.enforceRange===!0){if(Number.isNaN(o)||o===1/0||o===-1/0)throw s.errors.exception({header:`Integer conversion`,message:`Could not convert ${s.util.Stringify(e)} to an integer.`});if(o=s.util.IntegerPart(o),oi)throw s.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${o}.`});return o}return!Number.isNaN(o)&&r?.clamp===!0?(o=Math.min(Math.max(o,a),i),o=Math.floor(o)%2==0?Math.floor(o):Math.ceil(o),o):Number.isNaN(o)||o===0&&Object.is(0,o)||o===1/0||o===-1/0?0:(o=s.util.IntegerPart(o),o%=2**t,n===`signed`&&o>=2**t-1?o-2**t:o)},s.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},s.util.Stringify=function(e){switch(s.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return i(e);case`String`:return`"${e}"`;default:return`${e}`}},s.sequenceConverter=function(e){return(t,n,r,i)=>{if(s.util.Type(t)!==`Object`)throw s.errors.exception({header:n,message:`${r} (${s.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),o=[],c=0;if(a===void 0||typeof a.next!=`function`)throw s.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;o.push(e(i,n,`${r}[${c++}]`))}return o}},s.recordConverter=function(e,t){return(n,i,a)=>{if(s.util.Type(n)!==`Object`)throw s.errors.exception({header:i,message:`${a} ("${s.util.Type(n)}") is not an Object.`});let o={};if(!r.isProxy(n)){let r=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(let s of r){let r=e(s,i,a);o[r]=t(n[s],i,a)}return o}let c=Reflect.ownKeys(n);for(let r of c)if(Reflect.getOwnPropertyDescriptor(n,r)?.enumerable){let s=e(r,i,a);o[s]=t(n[r],i,a)}return o}},s.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw s.errors.exception({header:n,message:`Expected ${r} ("${s.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},s.dictionaryConverter=function(e){return(t,n,r)=>{let i=s.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw s.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:o,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw s.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=o()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw s.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},s.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},s.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw s.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},s.converters.ByteString=function(e,t,n){let r=s.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},s.converters.USVString=o,s.converters.boolean=function(e){return!!e},s.converters.any=function(e){return e},s.converters[`long long`]=function(e,t,n){return s.util.ConvertToInt(e,64,`signed`,void 0,t,n)},s.converters[`unsigned long long`]=function(e,t,n){return s.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},s.converters[`unsigned long`]=function(e,t,n){return s.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},s.converters[`unsigned short`]=function(e,t,n,r){return s.util.ConvertToInt(e,16,`unsigned`,r,t,n)},s.converters.ArrayBuffer=function(e,t,n,i){if(s.util.Type(e)!==`Object`||!r.isAnyArrayBuffer(e))throw s.errors.conversionFailed({prefix:t,argument:`${n} ("${s.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&r.isSharedArrayBuffer(e))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.TypedArray=function(e,t,n,i,a){if(s.util.Type(e)!==`Object`||!r.isTypedArray(e)||e.constructor.name!==t.name)throw s.errors.conversionFailed({prefix:n,argument:`${i} ("${s.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&r.isSharedArrayBuffer(e.buffer))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.DataView=function(e,t,n,i){if(s.util.Type(e)!==`Object`||!r.isDataView(e))throw s.errors.exception({header:t,message:`${n} is not a DataView.`});if(i?.allowShared===!1&&r.isSharedArrayBuffer(e.buffer))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.BufferSource=function(e,t,n,i){if(r.isAnyArrayBuffer(e))return s.converters.ArrayBuffer(e,t,n,{...i,allowShared:!1});if(r.isTypedArray(e))return s.converters.TypedArray(e,e.constructor,t,n,{...i,allowShared:!1});if(r.isDataView(e))return s.converters.DataView(e,t,n,{...i,allowShared:!1});throw s.errors.conversionFailed({prefix:t,argument:`${n} ("${s.util.Stringify(e)}")`,types:[`BufferSource`]})},s.converters[`sequence`]=s.sequenceConverter(s.converters.ByteString),s.converters[`sequence>`]=s.sequenceConverter(s.converters[`sequence`]),s.converters[`record`]=s.recordConverter(s.converters.ByteString,s.converters.ByteString),n.exports={webidl:s}})),Lt=i(((e,n)=>{let{Transform:r}=t(`node:stream`),i=t(`node:zlib`),{redirectStatusSet:a,referrerPolicySet:o,badPortsSet:s}=Nt(),{getGlobalOrigin:c}=Pt(),{collectASequenceOfCodePoints:l,collectAnHTTPQuotedString:u,removeChars:d,parseMIMEType:f}=Ft(),{performance:p}=t(`node:perf_hooks`),{isBlobLike:m,ReadableStreamFrom:h,isValidHTTPToken:g,normalizedMethodRecordsBase:v}=St(),y=t(`node:assert`),{isUint8Array:b}=t(`node:util/types`),{webidl:x}=It(),S=[],C;try{C=t(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];S=C.getHashes().filter(t=>e.includes(t))}catch{}function w(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function T(e,t){if(!a.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&N(n)&&(E(n)||(n=D(n)),n=new URL(n,w(e))),n&&!n.hash&&(n.hash=t),n}function E(e){for(let t=0;t126||n<32)return!1}return!0}function D(e){return Buffer.from(e,`binary`).toString(`utf8`)}function O(e){return e.urlList[e.urlList.length-1]}function k(e){let t=O(e);return Oe(t)&&s.has(t.port)?`blocked`:`allowed`}function A(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function j(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let M=g;function N(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` -`)||e.includes(`\r`)||e.includes(`\0`))===!1}function P(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(o.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function F(){return`allowed`}function I(){return`success`}function L(){return`success`}function R(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function z(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&De(e.origin)&&!De(O(e))&&(t=null);break;case`same-origin`:fe(e,O(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function ee(e,t){return e}function B(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=fe(e,r),o=ae(r)&&!ae(e.url);switch(t){case`origin`:return i??ie(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=O(e);return fe(r,t)?r:ae(r)&&!ae(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function ie(e,t){return y(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function ae(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function U(e,t){if(C===void 0)return!0;let n=se(t);if(n===`no metadata`||n.length===0)return!0;let r=le(n,ce(n));for(let t of r){let n=t.algo,r=t.hash,i=C.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),ue(i,r))return!0}return!1}let oe=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function se(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=oe.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();S.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function ce(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function me(e){return e.controller.state===`aborted`}function he(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function ge(e){return v[e.toLowerCase()]??e}function _e(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return y(typeof t==`string`),t}let ve=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ye(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,ve),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function W(e,t,n,r=0,i=1){let a=ye(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(x.brandCheck(this,t),x.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function be(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await Te(a))}catch(e){i(e)}}function xe(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function Se(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let Ce=/[^\x00-\xFF]/;function we(e){return y(!Ce.test(e)),e}async function Te(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!b(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function Ee(e){y(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function De(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function Oe(e){y(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function ke(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&l(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&l(e=>e===` `||e===` `,n,r);let i=l(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&l(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&l(e=>e===` `||e===` `,n,r);let o=l(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Ae(e,t,n){let r=`bytes `;return r+=we(`${e}`),r+=`-`,r+=we(`${t}`),r+=`/`,r+=we(`${n}`),r}var je=class extends r{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?i.createInflate(this.#e):i.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Me(e){return new je(e)}function Ne(e){let t=null,n=null,r=null,i=Fe(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=f(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function Pe(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Fe(e,t){let n=t.get(e,!0);return n===null?null:Pe(n)}let Ie=new TextDecoder;function Le(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),Ie.decode(e))}var Re=class{get baseUrl(){return c()}get origin(){return this.baseUrl?.origin}policyContainer=H()};n.exports={isAborted:me,isCancelled:he,isValidEncodedURL:E,createDeferredPromise:pe,ReadableStreamFrom:h,tryUpgradeRequestToAPotentiallyTrustworthyURL:de,clampAndCoarsenConnectionTimingInfo:B,coarsenedSharedCurrentTime:V,determineRequestsReferrer:re,makePolicyContainer:H,clonePolicyContainer:ne,appendFetchMetadata:R,appendRequestOriginHeader:z,TAOCheck:L,corsCheck:I,crossOriginResourcePolicyCheck:F,createOpaqueTimingInfo:te,setRequestReferrerPolicyOnRedirect:P,isValidHTTPToken:g,requestBadPort:k,requestCurrentURL:O,responseURL:w,responseLocationURL:T,isBlobLike:m,isURLPotentiallyTrustworthy:ae,isValidReasonPhrase:j,sameOrigin:fe,normalizeMethod:ge,serializeJavascriptValueToJSONString:_e,iteratorMixin:W,createIterator:ye,isValidHeaderName:M,isValidHeaderValue:N,isErrorLike:A,fullyReadBody:be,bytesMatch:U,isReadableStreamLike:xe,readableStreamClose:Se,isomorphicEncode:we,urlIsLocal:Ee,urlHasHttpsScheme:De,urlIsHttpHttpsScheme:Oe,readAllBytes:Te,simpleRangeHeaderValue:ke,buildContentRange:Ae,parseMetadata:se,createInflate:Me,extractMimeType:Ne,getDecodeSplit:Fe,utf8DecodeBytes:Le,environmentSettingsObject:new class{settingsObject=new Re}}})),Rt=i(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),zt=i(((e,n)=>{let{Blob:r,File:i}=t(`node:buffer`),{kState:a}=Rt(),{webidl:o}=It();var s=class e{constructor(e,t,n={}){let r=t,i=n.type,o=n.lastModified??Date.now();this[a]={blobLike:e,name:r,type:i,lastModified:o}}stream(...t){return o.brandCheck(this,e),this[a].blobLike.stream(...t)}arrayBuffer(...t){return o.brandCheck(this,e),this[a].blobLike.arrayBuffer(...t)}slice(...t){return o.brandCheck(this,e),this[a].blobLike.slice(...t)}text(...t){return o.brandCheck(this,e),this[a].blobLike.text(...t)}get size(){return o.brandCheck(this,e),this[a].blobLike.size}get type(){return o.brandCheck(this,e),this[a].blobLike.type}get name(){return o.brandCheck(this,e),this[a].name}get lastModified(){return o.brandCheck(this,e),this[a].lastModified}get[Symbol.toStringTag](){return`File`}};o.converters.Blob=o.interfaceConverter(r);function c(e){return e instanceof i||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}n.exports={FileLike:s,isFileLike:c}})),Bt=i(((e,n)=>{let{isBlobLike:r,iteratorMixin:i}=Lt(),{kState:a}=Rt(),{kEnumerableProperty:o}=St(),{FileLike:s,isFileLike:c}=zt(),{webidl:l}=It(),{File:u}=t(`node:buffer`),d=t(`node:util`),f=globalThis.File??u;var p=class e{constructor(e){if(l.util.markAsUncloneable(this),e!==void 0)throw l.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[a]=[]}append(t,n,i=void 0){l.brandCheck(this,e);let o=`FormData.append`;if(l.argumentLengthCheck(arguments,2,o),arguments.length===3&&!r(n))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t,o,`name`),n=r(n)?l.converters.Blob(n,o,`value`,{strict:!1}):l.converters.USVString(n,o,`value`),i=arguments.length===3?l.converters.USVString(i,o,`filename`):void 0;let s=m(t,n,i);this[a].push(s)}delete(t){l.brandCheck(this,e);let n=`FormData.delete`;l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a]=this[a].filter(e=>e.name!==t)}get(t){l.brandCheck(this,e);let n=`FormData.get`;l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`);let r=this[a].findIndex(e=>e.name===t);return r===-1?null:this[a][r].value}getAll(t){l.brandCheck(this,e);let n=`FormData.getAll`;return l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a].filter(e=>e.name===t).map(e=>e.value)}has(t){l.brandCheck(this,e);let n=`FormData.has`;return l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a].findIndex(e=>e.name===t)!==-1}set(t,n,i=void 0){l.brandCheck(this,e);let o=`FormData.set`;if(l.argumentLengthCheck(arguments,2,o),arguments.length===3&&!r(n))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t,o,`name`),n=r(n)?l.converters.Blob(n,o,`name`,{strict:!1}):l.converters.USVString(n,o,`name`),i=arguments.length===3?l.converters.USVString(i,o,`name`):void 0;let s=m(t,n,i),c=this[a].findIndex(e=>e.name===t);c===-1?this[a].push(s):this[a]=[...this[a].slice(0,c),s,...this[a].slice(c+1).filter(e=>e.name!==t)]}[d.inspect.custom](e,t){let n=this[a].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=d.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};i(`FormData`,p,a,`name`,`value`),Object.defineProperties(p.prototype,{append:o,delete:o,get:o,getAll:o,has:o,set:o,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function m(e,t,n){if(typeof t!=`string`&&(c(t)||(t=t instanceof Blob?new f([t],`blob`,{type:t.type}):new s(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof u?new f([t],n,e):new s(t,n,e)}return{name:e,value:t}}n.exports={FormData:p,makeEntry:m}})),Vt=i(((e,n)=>{let{isUSVString:r,bufferToLowerCasedHeaderName:i}=St(),{utf8DecodeBytes:a}=Lt(),{HTTP_TOKEN_CODEPOINTS:o,isomorphicDecode:s}=Ft(),{isFileLike:c}=zt(),{makeEntry:l}=Bt(),u=t(`node:assert`),{File:d}=t(`node:buffer`),f=globalThis.File??d,p=Buffer.from(`form-data; name="`),m=Buffer.from(`; filename`),h=Buffer.from(`--`),g=Buffer.from(`--\r -`);function v(e){for(let t=0;t70)return!1;for(let n=0;n=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95))return!1}return!0}function b(e,t){u(t!==`failure`&&t.essence===`multipart/form-data`);let n=t.parameters.get(`boundary`);if(n===void 0)return`failure`;let i=Buffer.from(`--${n}`,`utf8`),o=[],s={position:0};for(;e[s.position]===13&&e[s.position+1]===10;)s.position+=2;let d=e.length;for(;e[d-1]===10&&e[d-2]===13;)d-=2;for(d!==e.length&&(e=e.subarray(0,d));;){if(e.subarray(s.position,s.position+i.length).equals(i))s.position+=i.length;else return`failure`;if(s.position===e.length-2&&T(e,h,s)||s.position===e.length-4&&T(e,g,s))return o;if(e[s.position]!==13||e[s.position+1]!==10)return`failure`;s.position+=2;let t=x(e,s);if(t===`failure`)return`failure`;let{name:n,filename:d,contentType:p,encoding:m}=t;s.position+=2;let y;{let t=e.indexOf(i.subarray(2),s.position);if(t===-1)return`failure`;y=e.subarray(s.position,t-4),s.position+=y.length,m===`base64`&&(y=Buffer.from(y.toString(),`base64`))}if(e[s.position]!==13||e[s.position+1]!==10)return`failure`;s.position+=2;let b;d===null?b=a(Buffer.from(y)):(p??=`text/plain`,v(p)||(p=``),b=new f([y],d,{type:p})),u(r(n)),u(typeof b==`string`&&r(b)||c(b)),o.push(l(n,b,d))}}function x(e,t){let n=null,r=null,a=null,c=null;for(;;){if(e[t.position]===13&&e[t.position+1]===10)return n===null?`failure`:{name:n,filename:r,contentType:a,encoding:c};let l=C(e=>e!==10&&e!==13&&e!==58,e,t);if(l=w(l,!0,!0,e=>e===9||e===32),!o.test(l.toString())||e[t.position]!==58)return`failure`;switch(t.position++,C(e=>e===32||e===9,e,t),i(l)){case`content-disposition`:if(n=r=null,!T(e,p,t)||(t.position+=17,n=S(e,t),n===null))return`failure`;if(T(e,m,t)){let n=t.position+m.length;if(e[n]===42&&(t.position+=1,n+=1),e[n]!==61||e[n+1]!==34||(t.position+=12,r=S(e,t),r===null))return`failure`}break;case`content-type`:{let n=C(e=>e!==10&&e!==13,e,t);n=w(n,!1,!0,e=>e===9||e===32),a=s(n);break}case`content-transfer-encoding`:{let n=C(e=>e!==10&&e!==13,e,t);n=w(n,!1,!0,e=>e===9||e===32),c=s(n);break}default:C(e=>e!==10&&e!==13,e,t)}if(e[t.position]!==13&&e[t.position+1]!==10)return`failure`;t.position+=2}}function S(e,t){u(e[t.position-1]===34);let n=C(e=>e!==10&&e!==13&&e!==34,e,t);return e[t.position]===34?(t.position++,n=new TextDecoder().decode(n).replace(/%0A/gi,` -`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function C(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function T(e,t,n){if(e.length{let r=St(),{ReadableStreamFrom:i,isBlobLike:a,isReadableStreamLike:o,readableStreamClose:s,createDeferredPromise:c,fullyReadBody:l,extractMimeType:u,utf8DecodeBytes:d}=Lt(),{FormData:f}=Bt(),{kState:p}=Rt(),{webidl:m}=It(),{Blob:h}=t(`node:buffer`),g=t(`node:assert`),{isErrored:v,isDisturbed:y}=t(`node:stream`),{isArrayBuffer:b}=t(`node:util/types`),{serializeAMimeType:x}=Ft(),{multipartFormDataParser:S}=Vt(),C;try{let e=t(`node:crypto`);C=t=>e.randomInt(0,t)}catch{C=e=>Math.floor(Math.random(e))}let w=new TextEncoder;function T(){}let E=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,D;E&&(D=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!y(t)&&!v(t)&&t.cancel(`Response object has been garbage collected`).catch(T)}));function O(e,t=!1){let n=null;n=e instanceof ReadableStream?e:a(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?w.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>s(e))},start(){},type:`bytes`}),g(o(n));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(b(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){let t=`----formdata-undici-0${`${C(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r -`),a=[],o=new Uint8Array([13,10]) -/*! formdata-polyfill. MIT License. Jimmy Wärting */ -;u=0;let s=!1;for(let[t,c]of e)if(typeof c==`string`){let e=w.encode(n+`; name="${r(i(t))}"\r\n\r\n${i(c)}\r\n`);a.push(e),u+=e.byteLength}else{let e=w.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:``)+`\r -Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=w.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(a(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(r.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);n=e instanceof ReadableStream?e:i(e)}if((typeof l==`string`||r.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;n=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:r,done:i}=await t.next();if(i)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!v(n)){let t=new Uint8Array(r);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:n,source:l,length:u},d]}function k(e,t=!1){return e instanceof ReadableStream&&(g(!r.isDisturbed(e),`The body has already been consumed.`),g(!e.locked,`The stream is locked.`)),O(e,t)}function A(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function j(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function M(e){return{blob(){return P(this,e=>{let t=L(this);return t===null?t=``:t&&=x(t),new h([e],{type:t})},e)},arrayBuffer(){return P(this,e=>new Uint8Array(e).buffer,e)},text(){return P(this,d,e)},json(){return P(this,I,e)},formData(){return P(this,e=>{let t=L(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=S(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new f;return r[p]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new f;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return P(this,e=>new Uint8Array(e),e)}}}function N(e){Object.assign(e.prototype,M(e))}async function P(e,t,n){if(m.brandCheck(e,n),F(e))throw TypeError(`Body is unusable: Body has already been read`);j(e[p]);let r=c(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[p].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await l(e[p].body,a,i),r.promise)}function F(e){let t=e[p].body;return t!=null&&(t.stream.locked||r.isDisturbed(t.stream))}function I(e){return JSON.parse(d(e))}function L(e){let t=e[p].headersList,n=u(t);return n===`failure`?null:n}n.exports={extractBody:O,safelyExtractBody:k,cloneBody:A,mixinBody:N,streamRegistry:D,hasFinalizationRegistry:E,bodyUnusable:F}})),Ut=i(((e,n)=>{let r=t(`node:assert`),i=St(),{channels:a}=Ct(),o=Dt(),{RequestContentLengthMismatchError:s,ResponseContentLengthMismatchError:c,RequestAbortedError:l,HeadersTimeoutError:u,HeadersOverflowError:d,SocketError:f,InformationalError:p,BodyTimeoutError:m,HTTPParserError:h,ResponseExceededMaxSizeError:g}=yt(),{kUrl:v,kReset:y,kClient:b,kParser:x,kBlocking:S,kRunning:C,kPending:w,kSize:T,kWriting:E,kQueue:D,kNoRef:O,kKeepAliveDefaultTimeout:k,kHostHeader:A,kPendingIdx:j,kRunningIdx:M,kError:N,kPipelining:P,kSocket:F,kKeepAliveTimeoutValue:I,kMaxHeadersSize:L,kKeepAliveMaxTimeout:R,kKeepAliveTimeoutThreshold:z,kHeadersTimeout:ee,kBodyTimeout:B,kStrictContentLength:V,kMaxRequests:te,kCounter:H,kMaxResponseSize:ne,kOnError:re,kResume:ie,kHTTPContext:ae}=vt(),U=At(),oe=Buffer.alloc(0),se=Buffer[Symbol.species],ce=i.addListener,le=i.removeAllListeners,ue;async function de(){let e=process.env.JEST_WORKER_ID?jt():void 0,t;try{t=await WebAssembly.compile(Mt())}catch{t=await WebAssembly.compile(e||jt())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{r(me.ptr===e);let i=t-_e+he.byteOffset;return me.onStatus(new se(he.buffer,i,n))||0},wasm_on_message_begin:e=>(r(me.ptr===e),me.onMessageBegin()||0),wasm_on_header_field:(e,t,n)=>{r(me.ptr===e);let i=t-_e+he.byteOffset;return me.onHeaderField(new se(he.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{r(me.ptr===e);let i=t-_e+he.byteOffset;return me.onHeaderValue(new se(he.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>(r(me.ptr===e),me.onHeadersComplete(t,!!n,!!i)||0),wasm_on_body:(e,t,n)=>{r(me.ptr===e);let i=t-_e+he.byteOffset;return me.onBody(new se(he.buffer,i,n))||0},wasm_on_message_complete:e=>(r(me.ptr===e),me.onMessageComplete()||0)}})}let fe=null,pe=de();pe.catch();let me=null,he=null,ge=0,_e=null;var ve=class{constructor(e,t,{exports:n}){r(Number.isFinite(e[L])&&e[L]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(U.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[L],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[ne]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(o.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=o.setFastTimeout(ye,e,new WeakRef(this)):(this.timeout=setTimeout(ye,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(r(this.ptr!=null),r(me==null),this.llhttp.llhttp_resume(this.ptr),r(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||oe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){r(this.ptr!=null),r(me==null),r(!this.paused);let{socket:t,llhttp:n}=this;e.length>ge&&(_e&&n.free(_e),ge=Math.ceil(e.length/4096)*4096,_e=n.malloc(ge)),new Uint8Array(n.memory.buffer,_e,ge).set(e);try{let r;try{he=e,me=this,r=n.llhttp_execute(this.ptr,_e,e.length)}catch(e){throw e}finally{me=null,he=null}let i=n.llhttp_get_error_pos(this.ptr)-_e;if(r===U.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(r===U.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(i));else if(r!==U.ERROR.OK){let t=n.llhttp_get_error_reason(this.ptr),a=``;if(t){let e=new Uint8Array(n.memory.buffer,t).indexOf(0);a=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(n.memory.buffer,t,e).toString()+`)`}throw new h(a,U.ERROR[r],e.slice(i))}}catch(e){i.destroy(t,e)}}destroy(){r(this.ptr!=null),r(me==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&o.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[D][t[M]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=i.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&i.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&i.destroy(this.socket,new d)}onUpgrade(e){let{upgrade:t,client:n,socket:a,headers:o,statusCode:s}=this;r(t),r(n[F]===a),r(!a.destroyed),r(!this.paused),r((o.length&1)==0);let c=n[D][n[M]];r(c),r(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[x].destroy(),a[x]=null,a[b]=null,a[N]=null,le(a),n[F]=null,n[ae]=null,n[D][n[M]++]=null,n.emit(`disconnect`,n[v],[n],new p(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){i.destroy(a,e)}n[ie]()}onHeadersComplete(e,t,n){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[D][a[M]];if(!l)return-1;if(r(!this.upgrade),r(this.statusCode<200),e===100)return i.destroy(o,new f(`bad response`,i.getSocketInfo(o))),-1;if(t&&!l.upgrade)return i.destroy(o,new f(`bad upgrade`,i.getSocketInfo(o))),-1;if(r(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=n||l.method===`HEAD`&&!o[y]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[B]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return r(a[C]===1),this.upgrade=!0,2;if(r((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[P]){let e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[z],a[R]);t<=0?o[y]=!0:a[I]=t}else a[I]=a[k]}else o[y]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[S]&&(o[S]=!1,a[ie]()),u?U.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:n,statusCode:a,maxResponseSize:o}=this;if(n.destroyed)return-1;let s=t[D][t[M]];if(r(s),r(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),r(a>=200),o>-1&&this.bytesRead+e.length>o)return i.destroy(n,new g),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return U.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:n,upgrade:a,headers:o,contentLength:s,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!n||u))return-1;if(a)return;r(n>=100),r((this.headers.length&1)==0);let d=e[D][e[M]];if(r(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(n<200)){if(d.method!==`HEAD`&&s&&l!==parseInt(s,10))return i.destroy(t,new c),-1;if(d.onComplete(o),e[D][e[M]++]=null,t[E])return r(e[C]===0),i.destroy(t,new p(`reset`)),U.ERROR.PAUSED;if(!u||t[y]&&e[C]===0)return i.destroy(t,new p(`reset`)),U.ERROR.PAUSED;e[P]==null||e[P]===1?setImmediate(()=>e[ie]()):e[ie]()}}};function ye(e){let{socket:t,timeoutType:n,client:a,paused:o}=e.deref();n===3?(!t[E]||t.writableNeedDrain||a[C]>1)&&(r(!o,`cannot be paused while waiting for headers`),i.destroy(t,new u)):n===5?o||i.destroy(t,new m):n===8&&(r(a[C]===0&&a[I]),i.destroy(t,new p(`socket idle timeout`)))}async function W(e,t){e[F]=t,fe||(fe=await pe,pe=null),t[O]=!1,t[E]=!1,t[y]=!1,t[S]=!1,t[x]=new ve(e,t,fe),ce(t,`error`,function(e){r(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[x];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[N]=e,this[b][re](e)}),ce(t,`readable`,function(){let e=this[x];e&&e.readMore()}),ce(t,`end`,function(){let e=this[x];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}i.destroy(this,new f(`other side closed`,i.getSocketInfo(this)))}),ce(t,`close`,function(){let e=this[b],t=this[x];t&&(!this[N]&&t.statusCode&&!t.shouldKeepAlive&&t.onMessageComplete(),this[x].destroy(),this[x]=null);let n=this[N]||new f(`closed`,i.getSocketInfo(this));if(e[F]=null,e[ae]=null,e.destroyed){r(e[w]===0);let t=e[D].splice(e[M]);for(let r=0;r0&&n.code!==`UND_ERR_INFO`){let t=e[D][e[M]];e[D][e[M]++]=null,i.errorRequest(e,t,n)}e[j]=e[M],r(e[C]===0),e.emit(`disconnect`,e[v],[e],n),e[ie]()});let n=!1;return t.on(`close`,()=>{n=!0}),{version:`h1`,defaultPipelining:1,write(...t){return Se(e,...t)},resume(){be(e)},destroy(e,r){n?queueMicrotask(r):t.destroy(e).on(`close`,r)},get destroyed(){return t.destroyed},busy(n){return!!(t[E]||t[y]||t[S]||n&&(e[C]>0&&!n.idempotent||e[C]>0&&(n.upgrade||n.method===`CONNECT`)||e[C]>0&&i.bodyLength(n.body)!==0&&(i.isStream(n.body)||i.isAsyncIterable(n.body)||i.isFormDataLike(n.body))))}}}function be(e){let t=e[F];if(t&&!t.destroyed){if(e[T]===0?!t[O]&&t.unref&&(t.unref(),t[O]=!0):t[O]&&t.ref&&(t.ref(),t[O]=!1),e[T]===0)t[x].timeoutType!==8&&t[x].setTimeout(e[I],8);else if(e[C]>0&&t[x].statusCode<200&&t[x].timeoutType!==3){let n=e[D][e[M]],r=n.headersTimeout==null?e[ee]:n.headersTimeout;t[x].setTimeout(r,3)}}}function xe(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function Se(e,t){let{method:n,path:o,host:c,upgrade:u,blocking:d,reset:f}=t,{body:m,headers:h,contentLength:g}=t,v=n===`PUT`||n===`POST`||n===`PATCH`||n===`QUERY`||n===`PROPFIND`||n===`PROPPATCH`;if(i.isFormDataLike(m)){ue||=Ht().extractBody;let[e,n]=ue(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else i.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let b=i.bodyLength(m);if(g=b??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),xe(n)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[V])return i.errorRequest(e,t,new s),!1;process.emitWarning(new s)}let x=e[F],C=n=>{t.aborted||t.completed||(i.errorRequest(e,t,n||new l),i.destroy(m),i.destroy(x,new p(`aborted`)))};try{t.onConnect(C)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;n===`HEAD`&&(x[y]=!0),(u||n===`CONNECT`)&&(x[y]=!0),f!=null&&(x[y]=f),e[te]&&x[H]++>=e[te]&&(x[y]=!0),d&&(x[S]=!0);let w=`${n} ${o} HTTP/1.1\r\n`;if(typeof c==`string`?w+=`host: ${c}\r\n`:w+=e[A],u?w+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[P]&&!x[y]?w+=`connection: keep-alive\r -`:w+=`connection: close\r -`,Array.isArray(h))for(let e=0;e{t.removeListener(`error`,g)}),!d){let e=new l;queueMicrotask(()=>g(e))}},g=function(e){if(!d){if(d=!0,r(o.destroyed||o[E]&&n[C]<=1),o.off(`drain`,m).off(`error`,g),t.removeListener(`data`,p).removeListener(`end`,g).removeListener(`close`,h),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?i.destroy(t,e):i.destroy(t)}};t.on(`data`,p).on(`end`,g).on(`error`,g).on(`close`,h),t.resume&&t.resume(),o.on(`drain`,m).on(`error`,g),t.errorEmitted??t.errored?setImmediate(()=>g(t.errored)):(t.endEmitted??t.readableEnded)&&setImmediate(()=>g(null)),(t.closeEmitted??t.closed)&&setImmediate(h)}function we(e,t,n,a,o,s,c,l){try{t?i.isBuffer(t)&&(r(s===t.byteLength,`buffer body must have content length`),o.cork(),o.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),o.write(t),o.uncork(),a.onBodySent(t),!l&&a.reset!==!1&&(o[y]=!0)):s===0?o.write(`${c}content-length: 0\r\n\r\n`,`latin1`):(r(s===null,`no body must not have content length`),o.write(`${c}\r\n`,`latin1`)),a.onRequestSent(),n[ie]()}catch(t){e(t)}}async function Te(e,t,n,i,a,o,c,l){r(o===t.size,`blob body must have content length`);try{if(o!=null&&o!==t.size)throw new s;let e=Buffer.from(await t.arrayBuffer());a.cork(),a.write(`${c}content-length: ${o}\r\n\r\n`,`latin1`),a.write(e),a.uncork(),i.onBodySent(e),i.onRequestSent(),!l&&i.reset!==!1&&(a[y]=!0),n[ie]()}catch(t){e(t)}}async function Ee(e,t,n,i,a,o,s,c){r(o!==0||n[C]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let d=()=>new Promise((e,t)=>{r(l===null),a[N]?t(a[N]):l=e});a.on(`close`,u).on(`drain`,u);let f=new De({abort:e,socket:a,request:i,contentLength:o,client:n,expectsPayload:c,header:s});try{for await(let e of t){if(a[N])throw a[N];f.write(e)||await d()}f.end()}catch(e){f.destroy(e)}finally{a.off(`close`,u).off(`drain`,u)}}var De=class{constructor({abort:e,socket:t,request:n,contentLength:r,client:i,expectsPayload:a,header:o}){this.socket=t,this.request=n,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=o,this.abort=e,t[E]=!0}write(e){let{socket:t,request:n,contentLength:r,client:i,bytesWritten:a,expectsPayload:o,header:c}=this;if(t[N])throw t[N];if(t.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(r!==null&&a+l>r){if(i[V])throw new s;process.emitWarning(new s)}t.cork(),a===0&&(!o&&n.reset!==!1&&(t[y]=!0),r===null?t.write(`${c}transfer-encoding: chunked\r\n`,`latin1`):t.write(`${c}content-length: ${r}\r\n\r\n`,`latin1`)),r===null&&t.write(`\r\n${l.toString(16)}\r\n`,`latin1`),this.bytesWritten+=l;let u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[x].timeout&&t[x].timeoutType===3&&t[x].timeout.refresh&&t[x].timeout.refresh(),u}end(){let{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:a,request:o}=this;if(o.onRequestSent(),e[E]=!1,e[N])throw e[N];if(!e.destroyed){if(r===0?i?e.write(`${a}content-length: 0\r\n\r\n`,`latin1`):e.write(`${a}\r\n`,`latin1`):t===null&&e.write(`\r -0\r -\r -`,`latin1`),t!==null&&r!==t){if(n[V])throw new s;process.emitWarning(new s)}e[x].timeout&&e[x].timeoutType===3&&e[x].timeout.refresh&&e[x].timeout.refresh(),n[ie]()}}destroy(e){let{socket:t,client:n,abort:i}=this;t[E]=!1,e&&(r(n[C]<=1,`pipeline should only contain this request`),i(e))}};n.exports=W})),Wt=i(((e,n)=>{let r=t(`node:assert`),{pipeline:i}=t(`node:stream`),a=St(),{RequestContentLengthMismatchError:o,RequestAbortedError:s,SocketError:c,InformationalError:l}=yt(),{kUrl:u,kReset:d,kClient:f,kRunning:p,kPending:m,kQueue:h,kPendingIdx:g,kRunningIdx:v,kError:y,kSocket:b,kStrictContentLength:x,kOnError:S,kMaxConcurrentStreams:C,kHTTP2Session:w,kResume:T,kSize:E,kHTTPContext:D}=vt(),O=Symbol(`open streams`),k,A=!1,j;try{j=t(`node:http2`)}catch{j={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:M,HTTP2_HEADER_METHOD:N,HTTP2_HEADER_PATH:P,HTTP2_HEADER_SCHEME:F,HTTP2_HEADER_CONTENT_LENGTH:I,HTTP2_HEADER_EXPECT:L,HTTP2_HEADER_STATUS:R}}=j;function z(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function ee(e,t){e[b]=t,A||(A=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let n=j.connect(e[u],{createConnection:()=>t,peerMaxConcurrentStreams:e[C]});n[O]=0,n[f]=e,n[b]=t,a.addListener(n,`error`,V),a.addListener(n,`frameError`,te),a.addListener(n,`end`,H),a.addListener(n,`goaway`,ne),a.addListener(n,`close`,function(){let{[f]:e}=this,{[b]:t}=e,n=this[b][y]||this[y]||new c(`closed`,a.getSocketInfo(t));if(e[w]=null,e.destroyed){r(e[m]===0);let t=e[h].splice(e[v]);for(let r=0;r{i=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return ie(e,...t)},resume(){B(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function B(e){let t=e[b];t?.destroyed===!1&&(e[E]===0&&e[C]===0?(t.unref(),e[w].unref()):(t.ref(),e[w].ref()))}function V(e){r(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[b][y]=e,this[f][S](e)}function te(e,t,n){if(n===0){let n=new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[b][y]=n,this[f][S](n)}}function H(){let e=new c(`other side closed`,a.getSocketInfo(this[b]));this.destroy(e),a.destroy(this[b],e)}function ne(e){let t=this[y]||new c(`HTTP/2: "GOAWAY" frame received with code ${e}`,a.getSocketInfo(this)),n=this[f];if(n[b]=null,n[D]=null,this[w]!=null&&(this[w].destroy(t),this[w]=null),a.destroy(this[b],t),n[v]{t.aborted||t.completed||(n||=new s,a.errorRequest(e,t,n),E!=null&&a.destroy(E,n),a.destroy(S,n),e[h][e[v]++]=null,e[T]())};try{t.onConnect(j)}catch(n){a.errorRequest(e,t,n)}if(t.aborted)return!1;if(i===`CONNECT`)return n.ref(),E=n.request(C,{endStream:!1,signal:m}),E.id&&!E.pending?(t.onUpgrade(null,null,E),++n[O],e[h][e[v]++]=null):E.once(`ready`,()=>{t.onUpgrade(null,null,E),++n[O],e[h][e[v]++]=null}),E.once(`close`,()=>{--n[O],n[O]===0&&n.unref()}),!0;C[P]=c,C[F]=`https`;let ee=i===`PUT`||i===`POST`||i===`PATCH`;S&&typeof S.read==`function`&&S.read(0);let B=a.bodyLength(S);if(a.isFormDataLike(S)){k??=Ht().extractBody;let[e,t]=k(S);C[`content-type`]=t,S=e.stream,B=e.length}if(B??=t.contentLength,(B===0||!ee)&&(B=null),re(i)&&B>0&&t.contentLength!=null&&t.contentLength!==B){if(e[x])return a.errorRequest(e,t,new o),!1;process.emitWarning(new o)}B!=null&&(r(S,`no body must not have content length`),C[I]=`${B}`),n.ref();let V=i===`GET`||i===`HEAD`||S===null;return p?(C[L]=`100-continue`,E=n.request(C,{endStream:V,signal:m}),E.once(`continue`,te)):(E=n.request(C,{endStream:V,signal:m}),te()),++n[O],E.once(`response`,n=>{let{[R]:r,...i}=n;if(t.onResponseStarted(),t.aborted){let n=new s;a.errorRequest(e,t,n),a.destroy(E,n);return}t.onHeaders(Number(r),z(i),E.resume.bind(E),``)===!1&&E.pause(),E.on(`data`,e=>{t.onData(e)===!1&&E.pause()})}),E.once(`end`,()=>{(E.state?.state==null||E.state.state<6)&&t.onComplete([]),n[O]===0&&n.unref(),j(new l(`HTTP/2: stream half-closed (remote)`)),e[h][e[v]++]=null,e[g]=e[v],e[T]()}),E.once(`close`,()=>{--n[O],n[O]===0&&n.unref()}),E.once(`error`,function(e){j(e)}),E.once(`frameError`,(e,t)=>{j(new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function te(){!S||B===0?ae(j,E,null,e,t,e[b],B,ee):a.isBuffer(S)?ae(j,E,S,e,t,e[b],B,ee):a.isBlobLike(S)?typeof S.stream==`function`?se(j,E,S.stream(),e,t,e[b],B,ee):oe(j,E,S,e,t,e[b],B,ee):a.isStream(S)?U(j,e[b],ee,E,S,e,t,B):a.isIterable(S)?se(j,E,S,e,t,e[b],B,ee):r(!1)}}function ae(e,t,n,i,o,s,c,l){try{n!=null&&a.isBuffer(n)&&(r(c===n.byteLength,`buffer body must have content length`),t.cork(),t.write(n),t.uncork(),t.end(),o.onBodySent(n)),l||(s[d]=!0),o.onRequestSent(),i[T]()}catch(t){e(t)}}function U(e,t,n,o,s,c,l,u){r(u!==0||c[p]===0,`stream body cannot be pipelined`);let f=i(s,o,r=>{r?(a.destroy(f,r),e(r)):(a.removeAllListeners(f),l.onRequestSent(),n||(t[d]=!0),c[T]())});a.addListener(f,`data`,m);function m(e){l.onBodySent(e)}}async function oe(e,t,n,i,a,s,c,l){r(c===n.size,`blob body must have content length`);try{if(c!=null&&c!==n.size)throw new o;let e=Buffer.from(await n.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),a.onBodySent(e),a.onRequestSent(),l||(s[d]=!0),i[T]()}catch(t){e(t)}}async function se(e,t,n,i,a,o,s,c){r(s!==0||i[p]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let f=()=>new Promise((e,t)=>{r(l===null),o[y]?t(o[y]):l=e});t.on(`close`,u).on(`drain`,u);try{for await(let e of n){if(o[y])throw o[y];let n=t.write(e);a.onBodySent(e),n||await f()}t.end(),a.onRequestSent(),c||(o[d]=!0),i[T]()}catch(t){e(t)}finally{t.off(`close`,u).off(`drain`,u)}}n.exports=ee})),Gt=i(((e,n)=>{let r=St(),{kBodyUsed:i}=vt(),a=t(`node:assert`),{InvalidArgumentError:o}=yt(),s=t(`node:events`),c=[300,301,302,303,307,308],l=Symbol(`body`);var u=class{constructor(e){this[l]=e,this[i]=!1}async*[Symbol.asyncIterator](){a(!this[i],`disturbed`),this[i]=!0,yield*this[l]}},d=class{constructor(e,t,n,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new o(`maxRedirections must be a positive number`);r.validateHandler(c,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,r.isStream(this.opts.body)?(r.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){a(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[i]=!1,s.prototype.on.call(this.opts.body,`data`,function(){this[i]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&r.isIterable(this.opts.body))&&(this.opts.body=new u(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){if(this.location=this.history.length>=this.maxRedirections||r.isDisturbed(this.opts.body)?null:f(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,n,i);let{origin:a,pathname:o,search:s}=r.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=m(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function f(e,t){if(c.indexOf(e)===-1)return null;for(let e=0;e{let n=Gt();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),qt=i(((e,n)=>{let r=t(`node:assert`),i=t(`node:net`),a=t(`node:http`),o=St(),{channels:s}=Ct(),c=wt(),l=Et(),{InvalidArgumentError:u,InformationalError:d,ClientDestroyedError:f}=yt(),p=Ot(),{kUrl:m,kServerName:h,kClient:g,kBusy:v,kConnect:y,kResuming:b,kRunning:x,kPending:S,kSize:C,kQueue:w,kConnected:T,kConnecting:E,kNeedDrain:D,kKeepAliveDefaultTimeout:O,kHostHeader:k,kPendingIdx:A,kRunningIdx:j,kError:M,kPipelining:N,kKeepAliveTimeoutValue:P,kMaxHeadersSize:F,kKeepAliveMaxTimeout:I,kKeepAliveTimeoutThreshold:L,kHeadersTimeout:R,kBodyTimeout:z,kStrictContentLength:ee,kConnector:B,kMaxRedirections:V,kMaxRequests:te,kCounter:H,kClose:ne,kDestroy:re,kDispatch:ie,kInterceptors:ae,kLocalAddress:U,kMaxResponseSize:oe,kOnError:se,kHTTPContext:ce,kMaxConcurrentStreams:le,kResume:ue}=vt(),de=Ut(),fe=Wt(),pe=!1,me=Symbol(`kClosedResolve`),he=()=>{};function ge(e){return e[N]??e[ce]?.defaultPipelining??1}var _e=class extends l{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:r,socketTimeout:s,requestTimeout:c,connectTimeout:l,bodyTimeout:d,idleTimeout:f,keepAlive:g,keepAliveTimeout:v,maxKeepAliveTimeout:y,keepAliveMaxTimeout:x,keepAliveTimeoutThreshold:S,socketPath:C,pipelining:T,tls:E,strictContentLength:M,maxCachedSessions:H,maxRedirections:ne,connect:re,maxRequestsPerClient:ie,localAddress:de,maxResponseSize:fe,autoSelectFamily:he,autoSelectFamilyAttemptTimeout:ge,maxConcurrentStreams:_e,allowH2:W}={}){if(super(),g!==void 0)throw new u(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new u(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new u(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(f!==void 0)throw new u(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new u(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new u(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new u(`invalid socketPath`);if(l!=null&&(!Number.isFinite(l)||l<0))throw new u(`invalid connectTimeout`);if(v!=null&&(!Number.isFinite(v)||v<=0))throw new u(`invalid keepAliveTimeout`);if(x!=null&&(!Number.isFinite(x)||x<=0))throw new u(`invalid keepAliveMaxTimeout`);if(S!=null&&!Number.isFinite(S))throw new u(`invalid keepAliveTimeoutThreshold`);if(r!=null&&(!Number.isInteger(r)||r<0))throw new u(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new u(`bodyTimeout must be a positive integer or zero`);if(re!=null&&typeof re!=`function`&&typeof re!=`object`)throw new u(`connect must be a function or an object`);if(ne!=null&&(!Number.isInteger(ne)||ne<0))throw new u(`maxRedirections must be a positive number`);if(ie!=null&&(!Number.isInteger(ie)||ie<0))throw new u(`maxRequestsPerClient must be a positive number`);if(de!=null&&(typeof de!=`string`||i.isIP(de)===0))throw new u(`localAddress must be valid string IP address`);if(fe!=null&&(!Number.isInteger(fe)||fe<-1))throw new u(`maxResponseSize must be a positive number`);if(ge!=null&&(!Number.isInteger(ge)||ge<-1))throw new u(`autoSelectFamilyAttemptTimeout must be a positive number`);if(W!=null&&typeof W!=`boolean`)throw new u(`allowH2 must be a valid boolean value`);if(_e!=null&&(typeof _e!=`number`||_e<1))throw new u(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof re!=`function`&&(re=p({...E,maxCachedSessions:H,allowH2:W,socketPath:C,timeout:l,...he?{autoSelectFamily:he,autoSelectFamilyAttemptTimeout:ge}:void 0,...re})),t?.Client&&Array.isArray(t.Client)?(this[ae]=t.Client,pe||(pe=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[ae]=[ve({maxRedirections:ne})],this[m]=o.parseOrigin(e),this[B]=re,this[N]=T??1,this[F]=n||a.maxHeaderSize,this[O]=v??4e3,this[I]=x??6e5,this[L]=S??2e3,this[P]=this[O],this[h]=null,this[U]=de??null,this[b]=0,this[D]=0,this[k]=`host: ${this[m].hostname}${this[m].port?`:${this[m].port}`:``}\r\n`,this[z]=d??3e5,this[R]=r??3e5,this[ee]=M??!0,this[V]=ne,this[te]=ie,this[me]=null,this[oe]=fe>-1?fe:-1,this[le]=_e??100,this[ce]=null,this[w]=[],this[j]=0,this[A]=0,this[ue]=e=>xe(this,e),this[se]=e=>ye(this,e)}get pipelining(){return this[N]}set pipelining(e){this[N]=e,this[ue](!0)}get[S](){return this[w].length-this[A]}get[x](){return this[A]-this[j]}get[C](){return this[w].length-this[j]}get[T](){return!!this[ce]&&!this[E]&&!this[ce].destroyed}get[v](){return!!(this[ce]?.busy(null)||this[C]>=(ge(this)||1)||this[S]>0)}[y](e){W(this),this.once(`connect`,e)}[ie](e,t){let n=new c(e.origin||this[m].origin,e,t);return this[w].push(n),this[b]||(o.bodyLength(n.body)==null&&o.isIterable(n.body)?(this[b]=1,queueMicrotask(()=>xe(this))):this[ue](!0)),this[b]&&this[D]!==2&&this[v]&&(this[D]=2),this[D]<2}async[ne](){return new Promise(e=>{this[C]?this[me]=e:e(null)})}async[re](e){return new Promise(t=>{let n=this[w].splice(this[A]);for(let t=0;t{this[me]&&(this[me](),this[me]=null),t(null)};this[ce]?(this[ce].destroy(e,r),this[ce]=null):queueMicrotask(r),this[ue]()})}};let ve=Kt();function ye(e,t){if(e[x]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){r(e[A]===e[j]);let n=e[w].splice(e[j]);for(let r=0;r{e[B]({host:t,hostname:n,protocol:a,port:c,servername:e[h],localAddress:e[U]},(e,t)=>{e?i(e):r(t)})});if(e.destroyed){o.destroy(i.on(`error`,he),new f);return}r(i);try{e[ce]=i.alpnProtocol===`h2`?await fe(e,i):await de(e,i)}catch(e){throw i.destroy().on(`error`,he),e}e[E]=!1,i[H]=0,i[te]=e[te],i[g]=e,i[M]=null,s.connected.hasSubscribers&&s.connected.publish({connectParams:{host:t,hostname:n,protocol:a,port:c,version:e[ce]?.version,servername:e[h],localAddress:e[U]},connector:e[B],socket:i}),e.emit(`connect`,e[m],[e])}catch(i){if(e.destroyed)return;if(e[E]=!1,s.connectError.hasSubscribers&&s.connectError.publish({connectParams:{host:t,hostname:n,protocol:a,port:c,version:e[ce]?.version,servername:e[h],localAddress:e[U]},connector:e[B],error:i}),i.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(r(e[x]===0);e[S]>0&&e[w][e[A]].servername===e[h];){let t=e[w][e[A]++];o.errorRequest(e,t,i)}else ye(e,i);e.emit(`connectionError`,e[m],[e],i)}e[ue]()}function be(e){e[D]=0,e.emit(`drain`,e[m],[e])}function xe(e,t){e[b]!==2&&(e[b]=2,Se(e,t),e[b]=0,e[j]>256&&(e[w].splice(0,e[j]),e[A]-=e[j],e[j]=0))}function Se(e,t){for(;;){if(e.destroyed){r(e[S]===0);return}if(e[me]&&!e[C]){e[me](),e[me]=null;return}if(e[ce]&&e[ce].resume(),e[v])e[D]=2;else if(e[D]===2){t?(e[D]=1,queueMicrotask(()=>be(e))):be(e);continue}if(e[S]===0||e[x]>=(ge(e)||1))return;let n=e[w][e[A]];if(e[m].protocol===`https:`&&e[h]!==n.servername){if(e[x]>0)return;e[h]=n.servername,e[ce]?.destroy(new d(`servername changed`),()=>{e[ce]=null,xe(e)})}if(e[E])return;if(!e[ce]){W(e);return}if(e[ce].destroyed||e[ce].busy(n))return;!n.aborted&&e[ce].write(n)?e[A]++:e[w].splice(e[A],1)}}n.exports=_e})),Jt=i(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),Yt=i(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=vt(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),Xt=i(((e,t)=>{let n=Et(),r=Jt(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=vt(),h=Yt(),g=Symbol(`clients`),v=Symbol(`needDrain`),y=Symbol(`queue`),b=Symbol(`closed resolve`),x=Symbol(`onDrain`),S=Symbol(`onConnect`),C=Symbol(`onDisconnect`),w=Symbol(`onConnectionError`),T=Symbol(`get dispatcher`),E=Symbol(`add client`),D=Symbol(`remove client`),O=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(){super(),this[y]=new r,this[g]=[],this[c]=0;let e=this;this[x]=function(t,n){let r=e[y],i=!1;for(;!i;){let t=r.shift();if(!t)break;e[c]--,i=!this.dispatch(t.opts,t.handler)}this[v]=i,!this[v]&&e[v]&&(e[v]=!1,e.emit(`drain`,t,[e,...n])),e[b]&&r.isEmpty()&&Promise.all(e[g].map(e=>e.close())).then(e[b])},this[S]=(t,n)=>{e.emit(`connect`,t,[e,...n])},this[C]=(t,n,r)=>{e.emit(`disconnect`,t,[e,...n],r)},this[w]=(t,n,r)=>{e.emit(`connectionError`,t,[e,...n],r)},this[O]=new h(this)}get[l](){return this[v]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[v]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[O]}async[f](){this[y].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[b]=e})}async[p](e){for(;;){let t=this[y].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[T]();return n?n.dispatch(e,t)||(n[v]=!0,this[v]=!this[T]()):(this[v]=!0,this[y].push({opts:e,handler:t}),this[c]++),!this[v]}[E](e){return e.on(`drain`,this[x]).on(`connect`,this[S]).on(`disconnect`,this[C]).on(`connectionError`,this[w]),this[g].push(e),this[v]&&queueMicrotask(()=>{this[v]&&this[x](e[d],[this,e])}),this}[D](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[v]=this[g].some(e=>!e[v]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:v,kAddClient:E,kRemoveClient:D,kGetDispatcher:T}})),Zt=i(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=Xt(),s=qt(),{InvalidArgumentError:c}=yt(),l=St(),{kUrl:u,kInterceptors:d}=vt(),f=Ot(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:v,autoSelectFamily:y,autoSelectFamilyAttemptTimeout:b,allowH2:x,...S}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:x,socketPath:v,timeout:a,...y?{autoSelectFamily:y,autoSelectFamilyAttemptTimeout:b}:void 0,...i})),this[d]=S.interceptors?.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(S),connect:i,allowH2:x},this[p].interceptors=S.interceptors?{...S.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=yt(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=Xt(),u=Zt(),{kUrl:d,kInterceptors:f}=vt(),{parseOrigin:p}=St(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),v=Symbol(`kCurrentWeight`),y=Symbol(`kIndex`),b=Symbol(`kWeight`),x=Symbol(`kMaxWeightPerServer`),S=Symbol(`kErrorPenalty`);function C(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function w(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=w,...n}={}){if(super(),this[h]=n,this[y]=-1,this[v]=0,this[x]=this[h].maxWeightPerServer||100,this[S]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[b]=Math.min(this[x],n[b]+this[S])}),n.on(`connectionError`,()=>{n[b]=Math.max(1,n[b]-this[S]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[b]=Math.max(1,n[b]-this[S]),this._updateBalancedPoolStats())});for(let e of this[a])e[b]=this[x];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][b]&&!e[o]&&(t=this[y]),this[y]===0&&(this[v]=this[v]-this[g],this[v]<=0&&(this[v]=this[x])),e[b]>=this[v]&&!e[o])return e}return this[v]=this[a][t][b],this[y]=t,this[a][t]}}})),$t=i(((e,t)=>{let{InvalidArgumentError:n}=yt(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=vt(),l=Et(),u=Zt(),d=qt(),f=St(),p=Kt(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),v=Symbol(`maxRedirections`),y=Symbol(`onDrain`),b=Symbol(`factory`),x=Symbol(`options`);function S(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=S,maxRedirections:t=0,connect:i,...a}={}){if(super(),typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[x]={...f.deepClone(a),connect:i},this[x].interceptors=a.interceptors?{...a.interceptors}:void 0,this[v]=t,this[b]=e,this[r]=new Map,this[y]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[b](e.origin,this[x]).on(`drain`,this[y]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),en=i(((e,n)=>{let{kProxy:r,kClose:i,kDestroy:a,kDispatch:o,kInterceptors:s}=vt(),{URL:c}=t(`node:url`),l=$t(),u=Zt(),d=Et(),{InvalidArgumentError:f,RequestAbortedError:p,SecureProxyConnectionError:m}=yt(),h=Ot(),g=qt(),v=Symbol(`proxy agent`),y=Symbol(`proxy client`),b=Symbol(`proxy headers`),x=Symbol(`request tls settings`),S=Symbol(`proxy tls settings`),C=Symbol(`connect endpoint function`),w=Symbol(`tunnel proxy`);function T(e){return e===`https:`?443:80}function E(e,t){return new u(e,t)}let D=()=>{};function O(e,t){return t.connections===1?new g(e,t):new u(e,t)}var k=class extends d{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new f(`Proxy URL is mandatory`);this[b]=t,r?this.#e=r(e,{connect:n}):this.#e=new g(e,{connect:n})}[o](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new f(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:a={}}=e;if(e.path=r+i,!(`host`in a)&&!(`Host`in a)){let{host:e}=new c(r);a.host=e}return e.headers={...this[b],...a},this.#e[o](e,t)}async[i](){return this.#e.close()}async[a](e){return this.#e.destroy(e)}},A=class extends d{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof c)&&!e.uri)throw new f(`Proxy uri is mandatory`);let{clientFactory:t=E}=e;if(typeof t!=`function`)throw new f(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:n=!0}=e,i=this.#e(e),{href:a,origin:o,port:u,protocol:d,username:g,password:A,hostname:j}=i;if(this[r]={uri:a,protocol:d},this[s]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[x]=e.requestTls,this[S]=e.proxyTls,this[b]=e.headers||{},this[w]=n,e.auth&&e.token)throw new f(`opts.auth cannot be used in combination with opts.token`);e.auth?this[b][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[b][`proxy-authorization`]=e.token:g&&A&&(this[b][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(A)}`).toString(`base64`)}`);let M=h({...e.proxyTls});this[C]=h({...e.requestTls});let N=e.factory||O,P=(e,t)=>{let{protocol:n}=new c(e);return!this[w]&&n===`http:`&&this[r].protocol===`http:`?new k(this[r].uri,{headers:this[b],connect:M,factory:N}):N(e,t)};this[y]=t(i,{connect:M}),this[v]=new l({...e,factory:P,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${T(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[y].connect({origin:o,port:u,path:n,signal:e.signal,headers:{...this[b],host:e.host},servername:this[S]?.servername||j});if(i!==200&&(r.on(`error`,D).destroy(),t(new p(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[x]?this[x].servername:e.servername,this[C]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new m(e)):t(e)}}})}dispatch(e,t){let n=j(e.headers);if(M(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new c(e.origin);n.host=t}return this[v].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new c(e):e instanceof c?e:new c(e.uri)}async[i](){await this[v].close(),await this[y].close()}async[a](){await this[v].destroy(),await this[y].destroy()}};function j(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new f(`Proxy-Authorization should be sent in ProxyAgent constructor`)}n.exports=A})),tn=i(((e,t)=>{let n=Et(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=vt(),d=en(),f=$t(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let r=t(`node:assert`),{kRetryHandlerDefaultRetry:i}=vt(),{RequestRetryError:a}=yt(),{isDisturbed:o,parseHeaders:s,parseRangeHeader:c,wrapRequestBody:l}=St();function u(e){let t=Date.now();return new Date(e).getTime()-t}n.exports=class e{constructor(t,n){let{retryOptions:r,...a}=t,{retry:o,maxRetries:s,maxTimeout:c,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=r??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:l(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[i],retryAfter:m??!0,maxTimeout:c??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`ECONNRESET`,`ECONNREFUSED`,`ENOTFOUND`,`ENETDOWN`,`ENETUNREACH`,`EHOSTDOWN`,`EHOSTUNREACH`,`EPIPE`,`UND_ERR_SOCKET`]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:l,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:v}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(v>l){r(e);return}let y=o?.[`retry-after`];y&&=(y=Number(y),Number.isNaN(y)?u(y):y*1e3);let b=Math.min(y>0?y:d*p**(v-1),f);setTimeout(()=>r(null),b)}onHeaders(e,t,n,i){let o=s(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,n,i):(this.abort(new a(`Request failed`,e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new a(`server does not support the range header and the payload was partially consumed`,e,{headers:o,data:{count:this.retryCount}})),!1;let t=c(o[`content-range`]);if(!t)return this.abort(new a(`Content-Range mismatch`,e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new a(`ETag mismatch`,e,{headers:o,data:{count:this.retryCount}})),!1;let{start:i,size:s,end:l=s-1}=t;return r(this.start===i,`content-range mismatch`),r(this.end==null||this.end===l,`content-range mismatch`),this.resume=n,!0}if(this.end==null){if(e===206){let a=c(o[`content-range`]);if(a==null)return this.handler.onHeaders(e,t,n,i);let{start:s,size:l,end:u=l-1}=a;r(s!=null&&Number.isFinite(s),`content-range mismatch`),r(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=s,this.end=u}if(this.end==null){let e=o[`content-length`];this.end=e==null?null:Number(e)-1}return r(Number.isFinite(this.start)),r(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=n,this.etag=o.etag==null?null:o.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,n,i)}let l=new a(`Request failed`,e,{headers:o,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||o(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||o(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),rn=i(((e,t)=>{let n=Tt(),r=nn();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),an=i(((e,n)=>{let r=t(`node:assert`),{Readable:i}=t(`node:stream`),{RequestAbortedError:a,NotSupportedError:o,InvalidArgumentError:s,AbortError:c}=yt(),l=St(),{ReadableStreamFrom:u}=St(),d=Symbol(`kConsume`),f=Symbol(`kReading`),p=Symbol(`kBody`),m=Symbol(`kAbort`),h=Symbol(`kContentType`),g=Symbol(`kContentLength`),v=()=>{};var y=class extends i{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[m]=t,this[d]=null,this[p]=null,this[h]=n,this[g]=r,this[f]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new a),e&&this[m](),super.destroy(e)}_destroy(e,t){this[f]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[f]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[f]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[d]&&e!==null?(D(this[d],e),this[f]?super.push(e):!0):super.push(e)}async text(){return S(this,`text`)}async json(){return S(this,`json`)}async blob(){return S(this,`blob`)}async bytes(){return S(this,`bytes`)}async arrayBuffer(){return S(this,`arrayBuffer`)}async formData(){throw new o}get bodyUsed(){return l.isDisturbed(this)}get body(){return this[p]||(this[p]=u(this),this[d]&&(this[p].getReader(),r(this[p].locked))),this[p]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new s(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[g]>t&&this.destroy(new c);let i=()=>{this.destroy(n.reason??new c)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new c):e(null)}).on(`error`,v).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function b(e){return e[p]&&e[p].locked===!0||e[d]}function x(e){return l.isDisturbed(e)||b(e)}async function S(e,t){return r(!e[d]),new Promise((n,r)=>{if(x(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[d]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){O(this[d],e)}).on(`close`,function(){this[d].body!==null&&O(this[d],new a)}),C(e[d])})})}function C(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function T(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let r=t(`node:assert`),{ResponseStatusCodeError:i}=yt(),{chunksDecode:a}=an();async function o({callback:e,body:t,contentType:n,statusCode:o,statusMessage:l,headers:u}){r(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${o}${l?`: ${l}`:``}`;if(o===204||!n||!f){queueMicrotask(()=>e(new i(p,o,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{s(n)?h=JSON.parse(a(d,f)):c(n)&&(h=a(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new i(p,o,u,h)))}let s=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,c=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;n.exports={getResolveErrorBodyCallback:o,isContentTypeApplicationJson:s,isContentTypeText:c}})),sn=i(((e,n)=>{let r=t(`node:assert`),{Readable:i}=an(),{InvalidArgumentError:a,RequestAbortedError:o}=yt(),s=St(),{getResolveErrorBodyCallback:c}=on(),{AsyncResource:l}=t(`node:async_hooks`);var u=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:n,method:r,opaque:i,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new a(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new a(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=i||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new o:this.removeAbortListener=s.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new o,this.res?s.destroy(this.res.on(`error`,s.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,r){let{callback:a,opaque:o,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?s.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],v=new i({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&v.on(`close`,this.removeAbortListener),this.callback=null,this.res=v,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(c,null,{callback:a,body:v,contentType:h,statusCode:e,statusMessage:r,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:o,body:v,context:u}))}onData(e){return this.res.push(e)}onComplete(e){s.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{s.destroy(t,e)})),r&&(this.body=null,s.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new u(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d,n.exports.RequestHandler=u})),cn=i(((e,t)=>{let{addAbortListener:n}=St(),{RequestAbortedError:r}=yt(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),ln=i(((e,n)=>{let r=t(`node:assert`),{finished:i,PassThrough:a}=t(`node:stream`),{InvalidArgumentError:o,InvalidReturnValueError:s}=yt(),c=St(),{getResolveErrorBodyCallback:l}=on(),{AsyncResource:u}=t(`node:async_hooks`),{addSignal:d,removeSignal:f}=cn();var p=class extends u{constructor(e,t,n){if(!e||typeof e!=`object`)throw new o(`invalid opts`);let{signal:r,method:i,opaque:a,body:s,onInfo:l,responseHeaders:u,throwOnError:f}=e;try{if(typeof n!=`function`)throw new o(`invalid callback`);if(typeof t!=`function`)throw new o(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new o(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new o(`invalid method`);if(l&&typeof l!=`function`)throw new o(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw c.isStream(s)&&c.destroy(s.on(`error`,c.nop),e),e}this.responseHeaders=u||null,this.opaque=a||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=l||null,this.throwOnError=f||!1,c.isStream(s)&&s.on(`error`,e=>{this.onError(e)}),d(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,r){let{factory:o,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?c.parseHeaders(t):m)[`content-type`];h=new a,this.callback=null,this.runInAsyncScope(l,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:r,headers:m})}else{if(o===null)return;if(h=this.runInAsyncScope(o,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new s(`expected Writable`);i(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&c.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;f(this),t&&(this.trailers=c.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;f(this),this.factory=null,t?(this.res=null,c.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,c.destroy(i,e))}};function m(e,t,n){if(n===void 0)return new Promise((n,r)=>{m.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new p(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}n.exports=m})),un=i(((e,n)=>{let{Readable:r,Duplex:i,PassThrough:a}=t(`node:stream`),{InvalidArgumentError:o,InvalidReturnValueError:s,RequestAbortedError:c}=yt(),l=St(),{AsyncResource:u}=t(`node:async_hooks`),{addSignal:d,removeSignal:f}=cn(),p=t(`node:assert`),m=Symbol(`resume`);var h=class extends r{constructor(){super({autoDestroy:!0}),this[m]=null}_read(){let{[m]:e}=this;e&&(this[m]=null,e())}_destroy(e,t){this._read(),t(e)}},g=class extends r{constructor(e){super({autoDestroy:!0}),this[m]=e}_read(){this[m]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new c),t(e)}},v=class extends u{constructor(e,t){if(!e||typeof e!=`object`)throw new o(`invalid opts`);if(typeof t!=`function`)throw new o(`invalid handler`);let{signal:n,method:r,opaque:a,onInfo:s,responseHeaders:u}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new o(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new o(`invalid method`);if(s&&typeof s!=`function`)throw new o(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=a||null,this.responseHeaders=u||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=s||null,this.req=new h().on(`error`,l.nop),this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[m]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new c),o&&e&&o(),l.destroy(n,e),l.destroy(r,e),l.destroy(i,e),f(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,d(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}p(!r,`pipeline cannot be retried`),p(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?l.parseRawHeaders(t):l.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new g(n);let o;try{this.handler=null;let n=this.responseHeaders===`raw`?l.parseRawHeaders(t):l.parseHeaders(t);o=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,l.nop),e}if(!o||typeof o.on!=`function`)throw new s(`expected Readable`);o.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;l.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||l.destroy(e,new c)}),this.body=o}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,l.destroy(t,e)}};function y(e,t){try{let n=new v(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new a().destroy(e)}}n.exports=y})),dn=i(((e,n)=>{let{InvalidArgumentError:r,SocketError:i}=yt(),{AsyncResource:a}=t(`node:async_hooks`),o=St(),{addSignal:s,removeSignal:c}=cn(),l=t(`node:assert`);var u=class extends a{constructor(e,t){if(!e||typeof e!=`object`)throw new r(`invalid opts`);if(typeof t!=`function`)throw new r(`invalid callback`);let{signal:n,opaque:i,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new r(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}l(this.callback),this.abort=e,this.context=null}onHeaders(){throw new i(`bad upgrade`,null)}onUpgrade(e,t,n){l(e===101);let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new u(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d})),fn=i(((e,n)=>{let r=t(`node:assert`),{AsyncResource:i}=t(`node:async_hooks`),{InvalidArgumentError:a,SocketError:o}=yt(),s=St(),{addSignal:c,removeSignal:l}=cn();var u=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid callback`);let{signal:n,opaque:r,responseHeaders:i}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=i||null,this.callback=t,this.abort=null,c(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(){throw new o(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;l(this),this.callback=null;let o=t;o!=null&&(o=this.responseHeaders===`raw`?s.parseRawHeaders(t):s.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:o,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;l(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new u(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d})),pn=i(((e,t)=>{t.exports.request=sn(),t.exports.stream=ln(),t.exports.pipeline=un(),t.exports.upgrade=dn(),t.exports.connect=fn()})),mn=i(((e,t)=>{let{UndiciError:n}=yt(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`MockNotMatchedError`,this.message=t||`The request does not match any registered mock dispatches`,this.code=`UND_MOCK_ERR_MOCK_NOT_MATCHED`}static[Symbol.hasInstance](e){return e&&e[r]===!0}[r]=!0}}})),hn=i(((e,t)=>{t.exports={kAgent:Symbol(`agent`),kOptions:Symbol(`options`),kFactory:Symbol(`factory`),kDispatches:Symbol(`dispatches`),kDispatchKey:Symbol(`dispatch key`),kDefaultHeaders:Symbol(`default headers`),kDefaultTrailers:Symbol(`default trailers`),kContentLength:Symbol(`content length`),kMockAgent:Symbol(`mock agent`),kMockAgentSet:Symbol(`mock agent set`),kMockAgentGet:Symbol(`mock agent get`),kMockDispatch:Symbol(`mock dispatch`),kClose:Symbol(`close`),kOriginalClose:Symbol(`original agent close`),kOrigin:Symbol(`origin`),kIsMockActive:Symbol(`is mock active`),kNetConnect:Symbol(`net connect`),kGetNetConnect:Symbol(`get net connect`),kConnected:Symbol(`connected`)}})),gn=i(((e,n)=>{let{MockNotMatchedError:r}=mn(),{kDispatches:i,kMockAgent:a,kOriginalDispatch:o,kOrigin:s,kGetNetConnect:c}=hn(),{buildURL:l}=St(),{STATUS_CODES:u}=t(`node:http`),{types:{isPromise:d}}=t(`node:util`);function f(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function p(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function m(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>f(v(e),i));if(a.length===0)throw new r(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>f(e,t.method)),a.length===0)throw new r(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:f(e,t.body)),a.length===0)throw new r(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>g(e,t.headers)),a.length===0)throw new r(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function S(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function C(e,t){let n=e.findIndex(e=>e.consumed?y(e,t):!1);n!==-1&&e.splice(n,1)}function w(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function T(e){let t=Object.keys(e),n=[];for(let r=0;r=m,r.pending=p0?setTimeout(()=>{g(this[i])},u):g(this[i]);function g(r,i=o){let l=Array.isArray(e.headers)?h(e.headers):e.headers,u=typeof i==`function`?i({...e,headers:l}):i;if(d(u)){u.then(e=>g(r,e));return}let f=b(u),p=T(s),m=T(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,v,E(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(m),C(r,n)}function v(){}return!0}function k(){let e=this[a],t=this[s],n=this[o];return function(i,a){if(e.isMockActive)try{O.call(this,i,a)}catch(o){if(o instanceof r){let s=e[c]();if(s===!1)throw new r(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(A(s,t))n.call(this,i,a);else throw new r(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else n.call(this,i,a)}}function A(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>f(e,n.host)))}function j(e){if(e){let{agent:t,...n}=e;return n}}n.exports={getResponseData:b,getMockDispatch:x,addMockDispatch:S,deleteMockDispatch:C,buildKey:w,generateKeyValues:T,matchValue:f,getResponse:D,getStatusText:E,mockDispatch:O,buildMockDispatch:k,checkNetConnect:A,buildMockOptions:j,getHeaderByName:m,buildHeadersFromArray:h}})),_n=i(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=gn(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=hn(),{InvalidArgumentError:d}=yt(),{buildURL:f}=St();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),vn=i(((e,n)=>{let{promisify:r}=t(`node:util`),i=qt(),{buildMockDispatch:a}=gn(),{kDispatches:o,kMockAgent:s,kClose:c,kOriginalClose:l,kOrigin:u,kOriginalDispatch:d,kConnected:f}=hn(),{MockInterceptor:p}=_n(),m=vt(),{InvalidArgumentError:h}=yt();n.exports=class extends i{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new h(`Argument opts.agent must implement Agent`);this[s]=t.agent,this[u]=e,this[o]=[],this[f]=1,this[d]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=a.call(this),this.close=this[c]}get[m.kConnected](){return this[f]}intercept(e){return new p(e,this[o])}async[c](){await r(this[l])(),this[f]=0,this[s][m.kClients].delete(this[u])}}})),yn=i(((e,n)=>{let{promisify:r}=t(`node:util`),i=Zt(),{buildMockDispatch:a}=gn(),{kDispatches:o,kMockAgent:s,kClose:c,kOriginalClose:l,kOrigin:u,kOriginalDispatch:d,kConnected:f}=hn(),{MockInterceptor:p}=_n(),m=vt(),{InvalidArgumentError:h}=yt();n.exports=class extends i{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new h(`Argument opts.agent must implement Agent`);this[s]=t.agent,this[u]=e,this[o]=[],this[f]=1,this[d]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=a.call(this),this.close=this[c]}get[m.kConnected](){return this[f]}intercept(e){return new p(e,this[o])}async[c](){await r(this[l])(),this[f]=0,this[s][m.kClients].delete(this[u])}}})),bn=i(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),xn=i(((e,n)=>{let{Transform:r}=t(`node:stream`),{Console:i}=t(`node:console`),a=process.versions.icu?`✅`:`Y `,o=process.versions.icu?`❌`:`N `;n.exports=class{constructor({disableColors:e}={}){this.transform=new r({transform(e,t,n){n(null,e)}}),this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:i,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?a:o,Invocations:s,Remaining:r?1/0:i-s}));return this.logger.table(t),this.transform.read().toString()}}})),Sn=i(((e,t)=>{let{kClients:n}=vt(),r=$t(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=hn(),p=vn(),m=yn(),{matchValue:h,buildMockOptions:g}=gn(),{InvalidArgumentError:v,UndiciError:y}=yt(),b=Tt(),x=bn(),S=xn();t.exports=class extends b{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new v(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new v(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new S}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new x(`interceptor`,`interceptors`).pluralize(t.length);throw new y(` -${n.count} ${n.noun} ${n.is} pending: - -${e.format(t)} -`.trim())}}})),Cn=i(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=yt(),i=$t();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),wn=i(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),Tn=i(((e,t)=>{let n=Gt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),En=i(((e,t)=>{let n=nn();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Dn=i(((e,t)=>{let n=St(),{InvalidArgumentError:r,RequestAbortedError:i}=yt(),a=wn();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),On=i(((e,n)=>{let{isIP:r}=t(`node:net`),{lookup:i}=t(`node:dns`),a=wn(),{InvalidArgumentError:o,InformationalError:s}=yt(),c=2**31-1;var l=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new s(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),o=this.pick(e,a,i.affinity),c;c=typeof o.port==`number`?`:${o.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){i(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===c?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===c?o.offset=0:o.offset++;let s=o.offset%o.ips.length;return r=o.ips[s]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(s,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new u(this,e,t)}},u=class extends a{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};n.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new o(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new o(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new o(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new o(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new o(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new o(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,n;n=t?e?.affinity??null:e?.affinity??4;let i=new l({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:n,maxItems:e?.maxItems??1/0});return e=>function(t,n){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return r(a.hostname)===0?(i.runLookup(a,t,(r,o)=>{if(r)return n.onError(r);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:n},t))}),!0):e(t,n)}}})),kn=i(((e,n)=>{let{kConstruct:r}=vt(),{kEnumerableProperty:i}=St(),{iteratorMixin:a,isValidHeaderName:o,isValidHeaderValue:s}=Lt(),{webidl:c}=It(),l=t(`node:assert`),u=t(`node:util`),d=Symbol(`headers map`),f=Symbol(`headers map sorted`);function p(e){return e===10||e===13||e===9||e===32}function m(e){let t=0,n=e.length;for(;n>t&&p(e.charCodeAt(n-1));)--n;for(;n>t&&p(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function h(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function g(e,t,n){if(n=m(n),!o(t))throw c.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!s(n))throw c.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(x(e)===`immutable`)throw TypeError(`immutable`);return C(e).append(t,n,!1)}function v(e,t){return e[0]>1),t[s][0]<=c[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=c}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[d])t[e++]=[n,r],l(r!==null);return t.sort(v)}}},b=class e{#e;#t;constructor(e=void 0){c.util.markAsUncloneable(this),e!==r&&(this.#t=new y,this.#e=`none`,e!==void 0&&(e=c.converters.HeadersInit(e,`Headers contructor`,`init`),h(this,e)))}append(t,n){c.brandCheck(this,e),c.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=c.converters.ByteString(t,r,`name`),n=c.converters.ByteString(n,r,`value`),g(this,t,n)}delete(t){if(c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.delete`),t=c.converters.ByteString(t,`Headers.delete`,`name`),!o(t))throw c.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=c.converters.ByteString(t,n,`name`),!o(t))throw c.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=c.converters.ByteString(t,n,`name`),!o(t))throw c.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){c.brandCheck(this,e),c.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=c.converters.ByteString(t,r,`name`),n=c.converters.ByteString(n,r,`value`),n=m(n),!o(t))throw c.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!s(n))throw c.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){c.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[f](){if(this.#t[f])return this.#t[f];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[f]=t;for(let r=0;r>`](e,t,n,r.bind(e)):c.converters[`record`](e,t,n)}throw c.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},n.exports={fill:h,compareHeaderName:v,Headers:b,HeadersList:y,getHeadersGuard:x,setHeadersGuard:S,setHeadersList:w,getHeadersList:C}})),An=i(((e,n)=>{let{Headers:r,HeadersList:i,fill:a,getHeadersGuard:o,setHeadersGuard:s,setHeadersList:c}=kn(),{extractBody:l,cloneBody:u,mixinBody:d,hasFinalizationRegistry:f,streamRegistry:p,bodyUnusable:m}=Ht(),h=St(),g=t(`node:util`),{kEnumerableProperty:v}=h,{isValidReasonPhrase:y,isCancelled:b,isAborted:x,isBlobLike:S,serializeJavascriptValueToJSONString:C,isErrorLike:w,isomorphicEncode:T,environmentSettingsObject:E}=Lt(),{redirectStatusSet:D,nullBodyStatus:O}=Nt(),{kState:k,kHeaders:A}=Rt(),{webidl:j}=It(),{FormData:M}=Bt(),{URLSerializer:N}=Ft(),{kConstruct:P}=vt(),F=t(`node:assert`),{types:I}=t(`node:util`),L=new TextEncoder(`utf-8`);var R=class e{static error(){return ie(B(),`immutable`)}static json(e,t={}){j.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=j.converters.ResponseInit(t));let n=l(L.encode(C(e))),r=ie(ee({}),`response`);return re(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){j.argumentLengthCheck(arguments,1,`Response.redirect`),e=j.converters.USVString(e),t=j.converters[`unsigned short`](t);let n;try{n=new URL(e,E.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!D.has(t))throw RangeError(`Invalid status code ${t}`);let r=ie(ee({}),`immutable`);r[k].status=t;let i=T(N(n));return r[k].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(j.util.markAsUncloneable(this),e===P)return;e!==null&&(e=j.converters.BodyInit(e)),t=j.converters.ResponseInit(t),this[k]=ee({}),this[A]=new r(P),s(this[A],`response`),c(this[A],this[k].headersList);let n=null;if(e!=null){let[t,r]=l(e);n={body:t,type:r}}re(this,t,n)}get type(){return j.brandCheck(this,e),this[k].type}get url(){j.brandCheck(this,e);let t=this[k].urlList,n=t[t.length-1]??null;return n===null?``:N(n,!0)}get redirected(){return j.brandCheck(this,e),this[k].urlList.length>1}get status(){return j.brandCheck(this,e),this[k].status}get ok(){return j.brandCheck(this,e),this[k].status>=200&&this[k].status<=299}get statusText(){return j.brandCheck(this,e),this[k].statusText}get headers(){return j.brandCheck(this,e),this[A]}get body(){return j.brandCheck(this,e),this[k].body?this[k].body.stream:null}get bodyUsed(){return j.brandCheck(this,e),!!this[k].body&&h.isDisturbed(this[k].body.stream)}clone(){if(j.brandCheck(this,e),m(this))throw j.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=z(this[k]);return f&&this[k].body?.stream&&p.register(this,new WeakRef(this[k].body.stream)),ie(t,o(this[A]))}[g.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${g.formatWithOptions(t,n)}`}};d(R),Object.defineProperties(R.prototype,{type:v,url:v,status:v,ok:v,redirected:v,statusText:v,headers:v,clone:v,body:v,bodyUsed:v,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(R,{json:v,redirect:v,error:v});function z(e){if(e.internalResponse)return H(z(e.internalResponse),e.type);let t=ee({...e,body:null});return e.body!=null&&(t.body=u(t,e.body)),t}function ee(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new i(e?.headersList):new i,urlList:e?.urlList?[...e.urlList]:[]}}function B(e){return ee({type:`error`,status:0,error:w(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function V(e){return e.type===`error`&&e.status===0}function te(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return F(!(n in t)),e[n]=r,!0}})}function H(e,t){if(t===`basic`)return te(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return te(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return te(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return te(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});F(!1)}function ne(e,t=null){return F(b(e)),x(e)?B(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):B(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function re(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!y(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[k].status=t.status),`statusText`in t&&t.statusText!=null&&(e[k].statusText=t.statusText),`headers`in t&&t.headers!=null&&a(e[A],t.headers),n){if(O.includes(e.status))throw j.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[k].body=n.body,n.type!=null&&!e[k].headersList.contains(`content-type`,!0)&&e[k].headersList.append(`content-type`,n.type,!0)}}function ie(e,t){let n=new R(P);return n[k]=e,n[A]=new r(P),c(n[A],e.headersList),s(n[A],t),f&&e.body?.stream&&p.register(n,new WeakRef(e.body.stream)),n}j.converters.ReadableStream=j.interfaceConverter(ReadableStream),j.converters.FormData=j.interfaceConverter(M),j.converters.URLSearchParams=j.interfaceConverter(URLSearchParams),j.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?j.converters.USVString(e,t,n):S(e)?j.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||I.isArrayBuffer(e)?j.converters.BufferSource(e,t,n):h.isFormDataLike(e)?j.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?j.converters.URLSearchParams(e,t,n):j.converters.DOMString(e,t,n)},j.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?j.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:j.converters.XMLHttpRequestBodyInit(e,t,n)},j.converters.ResponseInit=j.dictionaryConverter([{key:`status`,converter:j.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:j.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:j.converters.HeadersInit}]),n.exports={isNetworkError:V,makeNetworkError:B,makeResponse:ee,makeAppropriateNetworkError:ne,filterResponse:H,Response:R,cloneResponse:z,fromInnerResponse:ie}})),jn=i(((e,t)=>{let{kConnected:n,kSize:r}=vt();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),Mn=i(((e,n)=>{let{extractBody:r,mixinBody:i,cloneBody:a,bodyUnusable:o}=Ht(),{Headers:s,fill:c,HeadersList:l,setHeadersGuard:u,getHeadersGuard:d,setHeadersList:f,getHeadersList:p}=kn(),{FinalizationRegistry:m}=jn()(),h=St(),g=t(`node:util`),{isValidHTTPToken:v,sameOrigin:y,environmentSettingsObject:b}=Lt(),{forbiddenMethodsSet:x,corsSafeListedMethodsSet:S,referrerPolicy:C,requestRedirect:w,requestMode:T,requestCredentials:E,requestCache:D,requestDuplex:O}=Nt(),{kEnumerableProperty:k,normalizedMethodRecordsBase:A,normalizedMethodRecords:j}=h,{kHeaders:M,kSignal:N,kState:P,kDispatcher:F}=Rt(),{webidl:I}=It(),{URLSerializer:L}=Ft(),{kConstruct:R}=vt(),z=t(`node:assert`),{getMaxListeners:ee,setMaxListeners:B,getEventListeners:V,defaultMaxListeners:te}=t(`node:events`),H=Symbol(`abortController`),ne=new m(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),re=new WeakMap;function ie(e){return t;function t(){let n=e.deref();if(n!==void 0){ne.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=re.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}re.delete(n.signal)}}}}let ae=!1;var U=class e{constructor(t,n={}){if(I.util.markAsUncloneable(this),t===R)return;let i=`Request constructor`;I.argumentLengthCheck(arguments,1,i),t=I.converters.RequestInfo(t,i,`input`),n=I.converters.RequestInit(n,i,`init`);let a=null,d=null,m=b.settingsObject.baseUrl,g=null;if(typeof t==`string`){this[F]=n.dispatcher;let e;try{e=new URL(t,m)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);a=oe({urlList:[e]}),d=`cors`}else this[F]=n.dispatcher||t[F],z(t instanceof e),a=t[P],g=t[N];let C=b.settingsObject.origin,w=`client`;if(a.window?.constructor?.name===`EnvironmentSettingsObject`&&y(a.window,C)&&(w=a.window),n.window!=null)throw TypeError(`'window' option '${w}' must be null`);`window`in n&&(w=`no-window`),a=oe({method:a.method,headersList:a.headersList,unsafeRequest:a.unsafeRequest,client:b.settingsObject,window:w,priority:a.priority,origin:a.origin,referrer:a.referrer,referrerPolicy:a.referrerPolicy,mode:a.mode,credentials:a.credentials,cache:a.cache,redirect:a.redirect,integrity:a.integrity,keepalive:a.keepalive,reloadNavigation:a.reloadNavigation,historyNavigation:a.historyNavigation,urlList:[...a.urlList]});let T=Object.keys(n).length!==0;if(T&&(a.mode===`navigate`&&(a.mode=`same-origin`),a.reloadNavigation=!1,a.historyNavigation=!1,a.origin=`client`,a.referrer=`client`,a.referrerPolicy=``,a.url=a.urlList[a.urlList.length-1],a.urlList=[a.url]),n.referrer!==void 0){let e=n.referrer;if(e===``)a.referrer=`no-referrer`;else{let t;try{t=new URL(e,m)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||C&&!y(t,b.settingsObject.baseUrl)?a.referrer=`client`:a.referrer=t}}n.referrerPolicy!==void 0&&(a.referrerPolicy=n.referrerPolicy);let E;if(E=n.mode===void 0?d:n.mode,E===`navigate`)throw I.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(E!=null&&(a.mode=E),n.credentials!==void 0&&(a.credentials=n.credentials),n.cache!==void 0&&(a.cache=n.cache),a.cache===`only-if-cached`&&a.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(n.redirect!==void 0&&(a.redirect=n.redirect),n.integrity!=null&&(a.integrity=String(n.integrity)),n.keepalive!==void 0&&(a.keepalive=!!n.keepalive),n.method!==void 0){let e=n.method,t=j[e];if(t!==void 0)a.method=t;else{if(!v(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(x.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=A[t]??e,a.method=e}!ae&&a.method===`patch`&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:`UNDICI-FETCH-patch`}),ae=!0)}n.signal!==void 0&&(g=n.signal),this[P]=a;let D=new AbortController;if(this[N]=D.signal,g!=null){if(!g||typeof g.aborted!=`boolean`||typeof g.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(g.aborted)D.abort(g.reason);else{this[H]=D;let e=ie(new WeakRef(D));try{(typeof ee==`function`&&ee(g)===te||V(g,`abort`).length>=te)&&B(1500,g)}catch{}h.addAbortListener(g,e),ne.register(D,{signal:g,abort:e},e)}}if(this[M]=new s(R),f(this[M],a.headersList),u(this[M],`request`),E===`no-cors`){if(!S.has(a.method))throw TypeError(`'${a.method} is unsupported in no-cors mode.`);u(this[M],`request-no-cors`)}if(T){let e=p(this[M]),t=n.headers===void 0?new l(e):n.headers;if(e.clear(),t instanceof l){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else c(this[M],t)}let O=t instanceof e?t[P].body:null;if((n.body!=null||O!=null)&&(a.method===`GET`||a.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let k=null;if(n.body!=null){let[e,t]=r(n.body,a.keepalive);k=e,t&&!p(this[M]).contains(`content-type`,!0)&&this[M].append(`content-type`,t)}let L=k??O;if(L!=null&&L.source==null){if(k!=null&&n.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(a.mode!==`same-origin`&&a.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);a.useCORSPreflightFlag=!0}let re=L;if(k==null&&O!=null){if(o(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;O.stream.pipeThrough(e),re={source:O.source,length:O.length,stream:e.readable}}this[P].body=re}get method(){return I.brandCheck(this,e),this[P].method}get url(){return I.brandCheck(this,e),L(this[P].url)}get headers(){return I.brandCheck(this,e),this[M]}get destination(){return I.brandCheck(this,e),this[P].destination}get referrer(){return I.brandCheck(this,e),this[P].referrer===`no-referrer`?``:this[P].referrer===`client`?`about:client`:this[P].referrer.toString()}get referrerPolicy(){return I.brandCheck(this,e),this[P].referrerPolicy}get mode(){return I.brandCheck(this,e),this[P].mode}get credentials(){return this[P].credentials}get cache(){return I.brandCheck(this,e),this[P].cache}get redirect(){return I.brandCheck(this,e),this[P].redirect}get integrity(){return I.brandCheck(this,e),this[P].integrity}get keepalive(){return I.brandCheck(this,e),this[P].keepalive}get isReloadNavigation(){return I.brandCheck(this,e),this[P].reloadNavigation}get isHistoryNavigation(){return I.brandCheck(this,e),this[P].historyNavigation}get signal(){return I.brandCheck(this,e),this[N]}get body(){return I.brandCheck(this,e),this[P].body?this[P].body.stream:null}get bodyUsed(){return I.brandCheck(this,e),!!this[P].body&&h.isDisturbed(this[P].body.stream)}get duplex(){return I.brandCheck(this,e),`half`}clone(){if(I.brandCheck(this,e),o(this))throw TypeError(`unusable`);let t=se(this[P]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=re.get(this.signal);e===void 0&&(e=new Set,re.set(this.signal,e));let t=new WeakRef(n);e.add(t),h.addAbortListener(n.signal,ie(t))}return ce(t,n.signal,d(this[M]))}[g.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${g.formatWithOptions(t,n)}`}};i(U);function oe(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new l(e.headersList):new l}}function se(e){let t=oe({...e,body:null});return e.body!=null&&(t.body=a(t,e.body)),t}function ce(e,t,n){let r=new U(R);return r[P]=e,r[N]=t,r[M]=new s(R),f(r[M],e.headersList),u(r[M],n),r}Object.defineProperties(U.prototype,{method:k,url:k,headers:k,redirect:k,clone:k,signal:k,duplex:k,destination:k,body:k,bodyUsed:k,isHistoryNavigation:k,isReloadNavigation:k,keepalive:k,integrity:k,cache:k,credentials:k,attribute:k,referrerPolicy:k,referrer:k,mode:k,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),I.converters.Request=I.interfaceConverter(U),I.converters.RequestInfo=function(e,t,n){return typeof e==`string`?I.converters.USVString(e,t,n):e instanceof U?I.converters.Request(e,t,n):I.converters.USVString(e,t,n)},I.converters.AbortSignal=I.interfaceConverter(AbortSignal),I.converters.RequestInit=I.dictionaryConverter([{key:`method`,converter:I.converters.ByteString},{key:`headers`,converter:I.converters.HeadersInit},{key:`body`,converter:I.nullableConverter(I.converters.BodyInit)},{key:`referrer`,converter:I.converters.USVString},{key:`referrerPolicy`,converter:I.converters.DOMString,allowedValues:C},{key:`mode`,converter:I.converters.DOMString,allowedValues:T},{key:`credentials`,converter:I.converters.DOMString,allowedValues:E},{key:`cache`,converter:I.converters.DOMString,allowedValues:D},{key:`redirect`,converter:I.converters.DOMString,allowedValues:w},{key:`integrity`,converter:I.converters.DOMString},{key:`keepalive`,converter:I.converters.boolean},{key:`signal`,converter:I.nullableConverter(e=>I.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:I.converters.any},{key:`duplex`,converter:I.converters.DOMString,allowedValues:O},{key:`dispatcher`,converter:I.converters.any}]),n.exports={Request:U,makeRequest:oe,fromInnerRequest:ce,cloneRequest:se}})),Nn=i(((e,n)=>{let{makeNetworkError:r,makeAppropriateNetworkError:i,filterResponse:a,makeResponse:o,fromInnerResponse:s}=An(),{HeadersList:c}=kn(),{Request:l,cloneRequest:u}=Mn(),d=t(`node:zlib`),{bytesMatch:f,makePolicyContainer:p,clonePolicyContainer:m,requestBadPort:h,TAOCheck:g,appendRequestOriginHeader:v,responseLocationURL:y,requestCurrentURL:b,setRequestReferrerPolicyOnRedirect:x,tryUpgradeRequestToAPotentiallyTrustworthyURL:S,createOpaqueTimingInfo:C,appendFetchMetadata:w,corsCheck:T,crossOriginResourcePolicyCheck:E,determineRequestsReferrer:D,coarsenedSharedCurrentTime:O,createDeferredPromise:k,isBlobLike:A,sameOrigin:j,isCancelled:M,isAborted:N,isErrorLike:P,fullyReadBody:F,readableStreamClose:I,isomorphicEncode:L,urlIsLocal:R,urlIsHttpHttpsScheme:z,urlHasHttpsScheme:ee,clampAndCoarsenConnectionTimingInfo:B,simpleRangeHeaderValue:V,buildContentRange:te,createInflate:H,extractMimeType:ne}=Lt(),{kState:re,kDispatcher:ie}=Rt(),ae=t(`node:assert`),{safelyExtractBody:U,extractBody:oe}=Ht(),{redirectStatusSet:se,nullBodyStatus:ce,safeMethodsSet:le,requestBodyHeader:ue,subresourceSet:de}=Nt(),fe=t(`node:events`),{Readable:pe,pipeline:me,finished:he}=t(`node:stream`),{addAbortListener:ge,isErrored:_e,isReadable:ve,bufferToLowerCasedHeaderName:ye}=St(),{dataURLProcessor:W,serializeAMimeType:be,minimizeSupportedMimeType:xe}=Ft(),{getGlobalDispatcher:Se}=Cn(),{webidl:Ce}=It(),{STATUS_CODES:we}=t(`node:http`),Te=[`GET`,`HEAD`],Ee=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,De;var Oe=class extends fe{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function ke(e){je(e,`fetch`)}function Ae(e,t=void 0){Ce.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=k(),r;try{r=new l(e,t)}catch(e){return n.reject(e),n.promise}let i=r[re];if(r.signal.aborted)return Ne(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,o=!1,c=null;return ge(r.signal,()=>{o=!0,ae(c!=null),c.abort(r.signal.reason);let e=a?.deref();Ne(n,i,e,r.signal.reason)}),c=Pe({request:i,processResponseEndOfBody:ke,processResponse:e=>{if(!o){if(e.aborted){Ne(n,i,a,c.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(s(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[ie]}),n.promise}function je(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;z(n)&&r!==null&&(e.timingAllowPassed||(r=C({startTime:r.startTime}),i=``),r.endTime=O(),e.timingInfo=r,Me(r,n.href,t,globalThis,i))}let Me=performance.markResourceTiming;function Ne(e,t,n,r){if(e&&e.reject(r),t.body!=null&&ve(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[re];i.body!=null&&ve(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function Pe({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Se()}){ae(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=C({startTime:O(l)}),d={controller:new Oe(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return ae(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=p():e.policyContainer=m(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,de.has(e.destination),Fe(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Fe(e,t=!1){let n=e.request,i=null;if(n.localURLsOnly&&!R(b(n))&&(i=r(`local URLs only`)),S(n),h(n)===`blocked`&&(i=r(`bad port`)),n.referrerPolicy===``&&(n.referrerPolicy=n.policyContainer.referrerPolicy),n.referrer!==`no-referrer`&&(n.referrer=D(n)),i===null&&(i=await(async()=>{let t=b(n);return j(t,n.url)&&n.responseTainting===`basic`||t.protocol===`data:`||n.mode===`navigate`||n.mode===`websocket`?(n.responseTainting=`basic`,await Ie(e)):n.mode===`same-origin`?r(`request mode cannot be "same-origin"`):n.mode===`no-cors`?n.redirect===`follow`?(n.responseTainting=`opaque`,await Ie(e)):r(`redirect mode cannot be "follow" for "no-cors" request`):z(b(n))?(n.responseTainting=`cors`,await ze(e)):r(`URL scheme must be a HTTP(S) scheme`)})()),t)return i;i.status!==0&&!i.internalResponse&&(n.responseTainting,n.responseTainting===`basic`?i=a(i,`basic`):n.responseTainting===`cors`?i=a(i,`cors`):n.responseTainting===`opaque`?i=a(i,`opaque`):ae(!1));let o=i.status===0?i:i.internalResponse;if(o.urlList.length===0&&o.urlList.push(...n.urlList),n.timingAllowFailed||(i.timingAllowPassed=!0),i.type===`opaque`&&o.status===206&&o.rangeRequested&&!n.headers.contains(`range`,!0)&&(i=o=r()),i.status!==0&&(n.method===`HEAD`||n.method===`CONNECT`||ce.includes(o.status))&&(o.body=null,e.controller.dump=!0),n.integrity){let t=t=>Re(e,r(t));if(n.responseTainting===`opaque`||i.body==null){t(i.error);return}await F(i.body,r=>{if(!f(r,n.integrity)){t(`integrity mismatch`);return}i.body=U(r)[0],Re(e,i)},t)}else Re(e,i)}function Ie(e){if(M(e)&&e.request.redirectCount===0)return Promise.resolve(i(e));let{request:n}=e,{protocol:a}=b(n);switch(a){case`about:`:return Promise.resolve(r(`about scheme is not supported`));case`blob:`:{De||=t(`node:buffer`).resolveObjectURL;let e=b(n);if(e.search.length!==0)return Promise.resolve(r(`NetworkError when attempting to fetch resource.`));let i=De(e.toString());if(n.method!==`GET`||!A(i))return Promise.resolve(r(`invalid method`));let a=o(),s=i.size,c=L(`${s}`),l=i.type;if(n.headersList.contains(`range`,!0)){a.rangeRequested=!0;let e=V(n.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(r(`failed to fetch the data URL`));let{rangeStartValue:t,rangeEndValue:o}=e;if(t===null)t=s-o,o=t+o-1;else{if(t>=s)return Promise.resolve(r(`Range start is greater than the blob's size.`));(o===null||o>=s)&&(o=s-1)}let c=i.slice(t,o,l);a.body=oe(c)[0];let u=L(`${c.size}`),d=te(t,o,s);a.status=206,a.statusText=`Partial Content`,a.headersList.set(`content-length`,u,!0),a.headersList.set(`content-type`,l,!0),a.headersList.set(`content-range`,d,!0)}else{let e=oe(i);a.statusText=`OK`,a.body=e[0],a.headersList.set(`content-length`,c,!0),a.headersList.set(`content-type`,l,!0)}return Promise.resolve(a)}case`data:`:{let e=W(b(n));if(e===`failure`)return Promise.resolve(r(`failed to fetch the data URL`));let t=be(e.mimeType);return Promise.resolve(o({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:t}]],body:U(e.body)[0]}))}case`file:`:return Promise.resolve(r(`not implemented... yet...`));case`http:`:case`https:`:return ze(e).catch(e=>r(e));default:return Promise.resolve(r(`unknown scheme`))}}function Le(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function Re(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=C(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=ne(t.headersList);e!==`failure`&&(a.contentType=xe(e))}e.request.initiatorType!=null&&Me(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():he(i.body.stream,()=>{r()})}async function ze(e){let t=e.request,n=null,i=null,a=e.timingInfo;if(t.serviceWorkers,n===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=n=await Ve(e),t.responseTainting===`cors`&&T(t,n)===`failure`)return r(`cors failure`);g(t,n)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||n.type===`opaque`)&&E(t.origin,t.client,t.destination,i)===`blocked`?r(`blocked`):(se.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?n=r(`unexpected redirect`):t.redirect===`manual`?n=i:t.redirect===`follow`?n=await Be(e,n):ae(!1)),n.timingInfo=a,n)}function Be(e,t){let n=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=y(i,b(n).hash),a==null)return t}catch(e){return Promise.resolve(r(e))}if(!z(a))return Promise.resolve(r(`URL scheme must be a HTTP(S) scheme`));if(n.redirectCount===20)return Promise.resolve(r(`redirect count exceeded`));if(n.redirectCount+=1,n.mode===`cors`&&(a.username||a.password)&&!j(n,a))return Promise.resolve(r(`cross origin not allowed for request mode "cors"`));if(n.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(r(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&n.body!=null&&n.body.source==null)return Promise.resolve(r());if([301,302].includes(i.status)&&n.method===`POST`||i.status===303&&!Te.includes(n.method)){n.method=`GET`,n.body=null;for(let e of ue)n.headersList.delete(e)}j(b(n),a)||(n.headersList.delete(`authorization`,!0),n.headersList.delete(`proxy-authorization`,!0),n.headersList.delete(`cookie`,!0),n.headersList.delete(`host`,!0)),n.body!=null&&(ae(n.body.source!=null),n.body=U(n.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=O(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),n.urlList.push(a),x(n,i),Fe(e,!0)}async function Ve(e,t=!1,n=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=u(a),o={...e},o.request=s);let l=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=L(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,L(s.referrer.href),!0),v(s),w(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Ee),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ee(b(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return r(`only if cached`);let e=await He(o,l,n);!le.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=l,c.status===407)return a.window===`no-window`?r():M(e)?i(e):r(`proxy authentication required`);if(c.status===421&&!n&&(a.body==null||a.body.source!=null)){if(M(e))return i(e);e.controller.connection.destroy(),c=await Ve(e,t,!0)}return c}async function He(e,t=!1,n=!1){ae(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let a=e.request,s=null,l=e.timingInfo;a.cache=`no-store`,a.mode;let u=null;if(a.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(a.body!=null){let t=async function*(t){M(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{M(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{M(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};u=(async function*(){try{for await(let e of a.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:a}=await g({body:u});if(a)s=o({status:n,statusText:r,headersList:i,socket:a});else{let a=t[Symbol.asyncIterator]();e.controller.next=()=>a.next(),s=o({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),i(e,t)):r(t)}let f=async()=>{await e.controller.resume()},p=t=>{M(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});s.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(N(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){I(e.controller.controller),Le(e,s);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),_e(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){N(e)?(s.aborted=!0,ve(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):ve(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:P(t)?t:void 0})),e.controller.connection.destroy()}return s;function g({body:t}){let n=b(a),r=e.controller.dispatcher;return new Promise((i,o)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:a.method,body:r.isMockActive?a.body&&(a.body.source||a.body.stream):t,headers:a.headersList.entries,maxRedirections:0,upgrade:a.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=B(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=O(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=O(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let s=``,l=new c;for(let e=0;e5)return o(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)u.push(d.createGunzip({flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)u.push(H({flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH}));else if(n===`br`)u.push(d.createBrotliDecompress({flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH}));else{u.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:u.length?me(this.body,...u,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),o(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new c;for(let e=0;e{t.exports={kState:Symbol(`FileReader state`),kResult:Symbol(`FileReader result`),kError:Symbol(`FileReader error`),kLastProgressEventFired:Symbol(`FileReader last progress event fired timestamp`),kEvents:Symbol(`FileReader events`),kAborted:Symbol(`FileReader aborted`)}})),Fn=i(((e,t)=>{let{webidl:n}=It(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),In=i(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.trim().toLowerCase()){case`unicode-1-1-utf-8`:case`unicode11utf8`:case`unicode20utf8`:case`utf-8`:case`utf8`:case`x-unicode20utf8`:return`UTF-8`;case`866`:case`cp866`:case`csibm866`:case`ibm866`:return`IBM866`;case`csisolatin2`:case`iso-8859-2`:case`iso-ir-101`:case`iso8859-2`:case`iso88592`:case`iso_8859-2`:case`iso_8859-2:1987`:case`l2`:case`latin2`:return`ISO-8859-2`;case`csisolatin3`:case`iso-8859-3`:case`iso-ir-109`:case`iso8859-3`:case`iso88593`:case`iso_8859-3`:case`iso_8859-3:1988`:case`l3`:case`latin3`:return`ISO-8859-3`;case`csisolatin4`:case`iso-8859-4`:case`iso-ir-110`:case`iso8859-4`:case`iso88594`:case`iso_8859-4`:case`iso_8859-4:1988`:case`l4`:case`latin4`:return`ISO-8859-4`;case`csisolatincyrillic`:case`cyrillic`:case`iso-8859-5`:case`iso-ir-144`:case`iso8859-5`:case`iso88595`:case`iso_8859-5`:case`iso_8859-5:1988`:return`ISO-8859-5`;case`arabic`:case`asmo-708`:case`csiso88596e`:case`csiso88596i`:case`csisolatinarabic`:case`ecma-114`:case`iso-8859-6`:case`iso-8859-6-e`:case`iso-8859-6-i`:case`iso-ir-127`:case`iso8859-6`:case`iso88596`:case`iso_8859-6`:case`iso_8859-6:1987`:return`ISO-8859-6`;case`csisolatingreek`:case`ecma-118`:case`elot_928`:case`greek`:case`greek8`:case`iso-8859-7`:case`iso-ir-126`:case`iso8859-7`:case`iso88597`:case`iso_8859-7`:case`iso_8859-7:1987`:case`sun_eu_greek`:return`ISO-8859-7`;case`csiso88598e`:case`csisolatinhebrew`:case`hebrew`:case`iso-8859-8`:case`iso-8859-8-e`:case`iso-ir-138`:case`iso8859-8`:case`iso88598`:case`iso_8859-8`:case`iso_8859-8:1988`:case`visual`:return`ISO-8859-8`;case`csiso88598i`:case`iso-8859-8-i`:case`logical`:return`ISO-8859-8-I`;case`csisolatin6`:case`iso-8859-10`:case`iso-ir-157`:case`iso8859-10`:case`iso885910`:case`l6`:case`latin6`:return`ISO-8859-10`;case`iso-8859-13`:case`iso8859-13`:case`iso885913`:return`ISO-8859-13`;case`iso-8859-14`:case`iso8859-14`:case`iso885914`:return`ISO-8859-14`;case`csisolatin9`:case`iso-8859-15`:case`iso8859-15`:case`iso885915`:case`iso_8859-15`:case`l9`:return`ISO-8859-15`;case`iso-8859-16`:return`ISO-8859-16`;case`cskoi8r`:case`koi`:case`koi8`:case`koi8-r`:case`koi8_r`:return`KOI8-R`;case`koi8-ru`:case`koi8-u`:return`KOI8-U`;case`csmacintosh`:case`mac`:case`macintosh`:case`x-mac-roman`:return`macintosh`;case`iso-8859-11`:case`iso8859-11`:case`iso885911`:case`tis-620`:case`windows-874`:return`windows-874`;case`cp1250`:case`windows-1250`:case`x-cp1250`:return`windows-1250`;case`cp1251`:case`windows-1251`:case`x-cp1251`:return`windows-1251`;case`ansi_x3.4-1968`:case`ascii`:case`cp1252`:case`cp819`:case`csisolatin1`:case`ibm819`:case`iso-8859-1`:case`iso-ir-100`:case`iso8859-1`:case`iso88591`:case`iso_8859-1`:case`iso_8859-1:1987`:case`l1`:case`latin1`:case`us-ascii`:case`windows-1252`:case`x-cp1252`:return`windows-1252`;case`cp1253`:case`windows-1253`:case`x-cp1253`:return`windows-1253`;case`cp1254`:case`csisolatin5`:case`iso-8859-9`:case`iso-ir-148`:case`iso8859-9`:case`iso88599`:case`iso_8859-9`:case`iso_8859-9:1989`:case`l5`:case`latin5`:case`windows-1254`:case`x-cp1254`:return`windows-1254`;case`cp1255`:case`windows-1255`:case`x-cp1255`:return`windows-1255`;case`cp1256`:case`windows-1256`:case`x-cp1256`:return`windows-1256`;case`cp1257`:case`windows-1257`:case`x-cp1257`:return`windows-1257`;case`cp1258`:case`windows-1258`:case`x-cp1258`:return`windows-1258`;case`x-mac-cyrillic`:case`x-mac-ukrainian`:return`x-mac-cyrillic`;case`chinese`:case`csgb2312`:case`csiso58gb231280`:case`gb2312`:case`gb_2312`:case`gb_2312-80`:case`gbk`:case`iso-ir-58`:case`x-gbk`:return`GBK`;case`gb18030`:return`gb18030`;case`big5`:case`big5-hkscs`:case`cn-big5`:case`csbig5`:case`x-x-big5`:return`Big5`;case`cseucpkdfmtjapanese`:case`euc-jp`:case`x-euc-jp`:return`EUC-JP`;case`csiso2022jp`:case`iso-2022-jp`:return`ISO-2022-JP`;case`csshiftjis`:case`ms932`:case`ms_kanji`:case`shift-jis`:case`shift_jis`:case`sjis`:case`windows-31j`:case`x-sjis`:return`Shift_JIS`;case`cseuckr`:case`csksc56011987`:case`euc-kr`:case`iso-ir-149`:case`korean`:case`ks_c_5601-1987`:case`ks_c_5601-1989`:case`ksc5601`:case`ksc_5601`:case`windows-949`:return`EUC-KR`;case`csiso2022kr`:case`hz-gb-2312`:case`iso-2022-cn`:case`iso-2022-cn-ext`:case`iso-2022-kr`:case`replacement`:return`replacement`;case`unicodefffe`:case`utf-16be`:return`UTF-16BE`;case`csunicode`:case`iso-10646-ucs-2`:case`ucs-2`:case`unicode`:case`unicodefeff`:case`utf-16`:case`utf-16le`:return`UTF-16LE`;case`x-user-defined`:return`x-user-defined`;default:return`failure`}}t.exports={getEncoding:n}})),Ln=i(((e,n)=>{let{kState:r,kError:i,kResult:a,kAborted:o,kLastProgressEventFired:s}=Pn(),{ProgressEvent:c}=Fn(),{getEncoding:l}=In(),{serializeAMimeType:u,parseMIMEType:d}=Ft(),{types:f}=t(`node:util`),{StringDecoder:p}=t(`string_decoder`),{btoa:m}=t(`node:buffer`),h={enumerable:!0,writable:!1,configurable:!1};function g(e,t,n,c){if(e[r]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[r]=`loading`,e[a]=null,e[i]=null;let l=t.stream().getReader(),u=[],d=l.read(),p=!0;(async()=>{for(;!e[o];)try{let{done:m,value:h}=await d;if(p&&!e[o]&&queueMicrotask(()=>{v(`loadstart`,e)}),p=!1,!m&&f.isUint8Array(h))u.push(h),(e[s]===void 0||Date.now()-e[s]>=50)&&!e[o]&&(e[s]=Date.now(),queueMicrotask(()=>{v(`progress`,e)})),d=l.read();else if(m){queueMicrotask(()=>{e[r]=`done`;try{let r=y(u,n,t.type,c);if(e[o])return;e[a]=r,v(`load`,e)}catch(t){e[i]=t,v(`error`,e)}e[r]!==`loading`&&v(`loadend`,e)});break}}catch(t){if(e[o])return;queueMicrotask(()=>{e[r]=`done`,e[i]=t,v(`error`,e),e[r]!==`loading`&&v(`loadend`,e)});break}})()}function v(e,t){let n=new c(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function y(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=d(n||`application/octet-stream`);r!==`failure`&&(t+=u(r)),t+=`;base64,`;let i=new p(`latin1`);for(let n of e)t+=m(i.write(n));return t+=m(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=l(r)),t===`failure`&&n){let e=d(n);e!==`failure`&&(t=l(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),b(e,t)}case`ArrayBuffer`:return S(e).buffer;case`BinaryString`:{let t=``,n=new p(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function b(e,t){let n=S(e),r=x(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function x(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function S(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}n.exports={staticPropertyDescriptors:h,readOperation:g,fireAProgressEvent:v}})),Rn=i(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=Ln(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=Pn(),{webidl:u}=It(),{kEnumerableProperty:d}=St();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),zn=i(((e,t)=>{t.exports={kConstruct:vt().kConstruct}})),Bn=i(((e,n)=>{let r=t(`node:assert`),{URLSerializer:i}=Ft(),{isValidHeaderName:a}=Lt();function o(e,t,n=!1){return i(e,n)===i(t,n)}function s(e){r(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),a(n)&&t.push(n);return t}n.exports={urlEquals:o,getFieldValues:s}})),Vn=i(((e,n)=>{let{kConstruct:r}=zn(),{urlEquals:i,getFieldValues:a}=Bn(),{kEnumerableProperty:o,isDisturbed:s}=St(),{webidl:c}=It(),{Response:l,cloneResponse:u,fromInnerResponse:d}=An(),{Request:f,fromInnerRequest:p}=Mn(),{kState:m}=Rt(),{fetching:h}=Nn(),{urlIsHttpHttpsScheme:g,createDeferredPromise:v,readAllBytes:y}=Lt(),b=t(`node:assert`);var x=class e{#e;constructor(){arguments[0]!==r&&c.illegalConstructor(),c.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){c.brandCheck(this,e);let r=`Cache.match`;c.argumentLengthCheck(arguments,1,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){c.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=c.converters.RequestInfo(t,r,`request`)),n=c.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){c.brandCheck(this,e);let n=`Cache.add`;c.argumentLengthCheck(arguments,1,n),t=c.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){c.brandCheck(this,e);let n=`Cache.addAll`;c.argumentLengthCheck(arguments,1,n);let r=[],i=[];for(let e of t){if(e===void 0)throw c.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=c.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[m];if(!g(t.url)||t.method!==`GET`)throw c.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new f(e)[m];if(!g(t.url))throw c.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,i.push(t);let s=v();o.push(h({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)s.reject(c.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=a(e.headersList.get(`vary`));for(let e of t)if(e===`*`){s.reject(c.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){s.reject(new DOMException(`aborted`,`AbortError`));return}s.resolve(e)}})),r.push(s.promise)}let s=await Promise.all(r),l=[],u=0;for(let e of s){let t={type:`put`,request:i[u],response:e};l.push(t),u++}let d=v(),p=null;try{this.#t(l)}catch(e){p=e}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(t,n){c.brandCheck(this,e);let r=`Cache.put`;c.argumentLengthCheck(arguments,2,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.Response(n,r,`response`);let i=null;if(i=t instanceof f?t[m]:new f(t)[m],!g(i.url)||i.method!==`GET`)throw c.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let o=n[m];if(o.status===206)throw c.errors.exception({header:r,message:`Got 206 status`});if(o.headersList.contains(`vary`)){let e=a(o.headersList.get(`vary`));for(let t of e)if(t===`*`)throw c.errors.exception({header:r,message:`Got * vary field value`})}if(o.body&&(s(o.body.stream)||o.body.stream.locked))throw c.errors.exception({header:r,message:`Response body is locked or disturbed`});let l=u(o),d=v();o.body==null?d.resolve(void 0):y(o.body.stream.getReader()).then(d.resolve,d.reject);let p=[],h={type:`put`,request:i,response:l};p.push(h);let b=await d.promise;l.body!=null&&(l.body.source=b);let x=v(),S=null;try{this.#t(p)}catch(e){S=e}return queueMicrotask(()=>{S===null?x.resolve():x.reject(S)}),x.promise}async delete(t,n={}){c.brandCheck(this,e);let r=`Cache.delete`;c.argumentLengthCheck(arguments,1,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof f){if(i=t[m],i.method!==`GET`&&!n.ignoreMethod)return!1}else b(typeof t==`string`),i=new f(t)[m];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let s=v(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?s.resolve(!!u?.length):s.reject(l)}),s.promise}async keys(t=void 0,n={}){c.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=c.converters.RequestInfo(t,r,`request`)),n=c.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof f){if(i=t[m],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new f(t)[m]);let a=v(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=p(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);b(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!g(i.url))throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);b(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,r){let o=new URL(e.url),s=new URL(t.url);if(r?.ignoreSearch&&(s.search=``,o.search=``),!i(o,s,!0))return!1;if(n==null||r?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=a(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof f){if(r=e[m],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new f(e)[m]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=d(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(x.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:o,matchAll:o,add:o,addAll:o,put:o,delete:o,keys:o});let S=[{key:`ignoreSearch`,converter:c.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:c.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:c.converters.boolean,defaultValue:()=>!1}];c.converters.CacheQueryOptions=c.dictionaryConverter(S),c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...S,{key:`cacheName`,converter:c.converters.DOMString}]),c.converters.Response=c.interfaceConverter(l),c.converters[`sequence`]=c.sequenceConverter(c.converters.RequestInfo),n.exports={Cache:x}})),Hn=i(((e,t)=>{let{kConstruct:n}=zn(),{Cache:r}=Vn(),{webidl:i}=It(),{kEnumerableProperty:a}=St();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),Un=i(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),Wn=i(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),Gn=i(((e,n)=>{let{maxNameValuePairSize:r,maxAttributeValueSize:i}=Un(),{isCTLExcludingHtab:a}=Wn(),{collectASequenceOfCodePointsFast:o}=Ft(),s=t(`node:assert`);function c(e){if(a(e))return null;let t=``,n=``,i=``,s=``;if(e.includes(`;`)){let r={position:0};t=o(`;`,e,r),n=e.slice(r.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};i=o(`=`,t,e),s=t.slice(e.position+1)}return i=i.trim(),s=s.trim(),i.length+s.length>r?null:{name:i,value:s,...l(n)}}function l(e,t={}){if(e.length===0)return t;s(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=o(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let r=``,a=``;if(n.includes(`=`)){let e={position:0};r=o(`=`,n,e),a=n.slice(e.position+1)}else r=n;if(r=r.trim(),a=a.trim(),a.length>i)return l(e,t);let c=r.toLowerCase();if(c===`expires`)t.expires=new Date(a);else if(c===`max-age`){let n=a.charCodeAt(0);if((n<48||n>57)&&a[0]!==`-`||!/^\d+$/.test(a))return l(e,t);t.maxAge=Number(a)}else if(c===`domain`){let e=a;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(c===`path`){let e=``;e=a.length===0||a[0]!==`/`?`/`:a,t.path=e}else if(c===`secure`)t.secure=!0;else if(c===`httponly`)t.httpOnly=!0;else if(c===`samesite`){let e=`Default`,n=a.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${r}=${a}`);return l(e,t)}n.exports={parseSetCookie:c,parseUnparsedAttributes:l}})),Kn=i(((e,t)=>{let{parseSetCookie:n}=Gn(),{stringify:r}=Wn(),{webidl:i}=It(),{Headers:a}=kn();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),qn=i(((e,n)=>{let{webidl:r}=It(),{kEnumerableProperty:i}=St(),{kConstruct:a}=vt(),{MessagePort:o}=t(`node:worker_threads`);var s=class e extends Event{#e;constructor(e,t={}){if(e===a){super(arguments[1],arguments[2]),r.util.markAsUncloneable(this);return}let n=`MessageEvent constructor`;r.argumentLengthCheck(arguments,1,n),e=r.converters.DOMString(e,n,`type`),t=r.converters.MessageEventInit(t,n,`eventInitDict`),super(e,t),this.#e=t,r.util.markAsUncloneable(this)}get data(){return r.brandCheck(this,e),this.#e.data}get origin(){return r.brandCheck(this,e),this.#e.origin}get lastEventId(){return r.brandCheck(this,e),this.#e.lastEventId}get source(){return r.brandCheck(this,e),this.#e.source}get ports(){return r.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,n=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return r.brandCheck(this,e),r.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:n,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(a,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:c}=s;delete s.createFastMessageEvent;var l=class e extends Event{#e;constructor(e,t={}){let n=`CloseEvent constructor`;r.argumentLengthCheck(arguments,1,n),e=r.converters.DOMString(e,n,`type`),t=r.converters.CloseEventInit(t),super(e,t),this.#e=t,r.util.markAsUncloneable(this)}get wasClean(){return r.brandCheck(this,e),this.#e.wasClean}get code(){return r.brandCheck(this,e),this.#e.code}get reason(){return r.brandCheck(this,e),this.#e.reason}},u=class e extends Event{#e;constructor(e,t){let n=`ErrorEvent constructor`;r.argumentLengthCheck(arguments,1,n),super(e,t),r.util.markAsUncloneable(this),e=r.converters.DOMString(e,n,`type`),t=r.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return r.brandCheck(this,e),this.#e.message}get filename(){return r.brandCheck(this,e),this.#e.filename}get lineno(){return r.brandCheck(this,e),this.#e.lineno}get colno(){return r.brandCheck(this,e),this.#e.colno}get error(){return r.brandCheck(this,e),this.#e.error}};Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:i,code:i,wasClean:i}),Object.defineProperties(u.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:i,filename:i,lineno:i,colno:i,error:i}),r.converters.MessagePort=r.interfaceConverter(o),r.converters[`sequence`]=r.sequenceConverter(r.converters.MessagePort);let d=[{key:`bubbles`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:r.converters.boolean,defaultValue:()=>!1}];r.converters.MessageEventInit=r.dictionaryConverter([...d,{key:`data`,converter:r.converters.any,defaultValue:()=>null},{key:`origin`,converter:r.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:r.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:r.nullableConverter(r.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:r.converters[`sequence`],defaultValue:()=>[]}]),r.converters.CloseEventInit=r.dictionaryConverter([...d,{key:`wasClean`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:r.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:r.converters.USVString,defaultValue:()=>``}]),r.converters.ErrorEventInit=r.dictionaryConverter([...d,{key:`message`,converter:r.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:r.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:r.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:r.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:r.converters.any}]),n.exports={MessageEvent:s,CloseEvent:l,ErrorEvent:u,createFastMessageEvent:c}})),Jn=i(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),Yn=i(((e,t)=>{t.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`)}})),Xn=i(((e,n)=>{let{kReadyState:r,kController:i,kResponse:a,kBinaryType:o,kWebSocketURL:s}=Yn(),{states:c,opcodes:l}=Jn(),{ErrorEvent:u,createFastMessageEvent:d}=qn(),{isUtf8:f}=t(`node:buffer`),{collectASequenceOfCodePointsFast:p,removeHTTPWhitespace:m}=Ft();function h(e){return e[r]===c.CONNECTING}function g(e){return e[r]===c.OPEN}function v(e){return e[r]===c.CLOSING}function y(e){return e[r]===c.CLOSED}function b(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function x(e,t,n){if(e[r]!==c.OPEN)return;let i;if(t===l.TEXT)try{i=P(n)}catch{T(e,`Received invalid UTF-8 in text frame.`);return}else t===l.BINARY&&(i=e[o]===`blob`?new Blob([n]):S(n));b(`message`,e,d,{origin:e[s].origin,data:i})}function S(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function C(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function w(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function T(e,t){let{[i]:n,[a]:r}=e;n.abort(),r?.socket&&!r.socket.destroyed&&r.socket.destroy(),t&&b(`error`,e,(e,t)=>new u(e,t),{error:Error(t),message:t})}function E(e){return e===l.CLOSE||e===l.PING||e===l.PONG}function D(e){return e===l.CONTINUATION}function O(e){return e===l.TEXT||e===l.BINARY}function k(e){return O(e)||D(e)||E(e)}function A(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let M=typeof process.versions.icu==`string`,N=M?new TextDecoder(`utf-8`,{fatal:!0}):void 0,P=M?N.decode.bind(N):function(e){if(f(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};n.exports={isConnecting:h,isEstablished:g,isClosing:v,isClosed:y,fireEvent:b,isValidSubprotocol:C,isValidStatusCode:w,failWebsocketConnection:T,websocketMessageReceived:x,utf8Decode:P,isControlFrame:E,isContinuationFrame:D,isTextBinaryFrame:O,isValidOpcode:k,parseExtensions:A,isValidClientWindowBits:j}})),Zn=i(((e,n)=>{let{maxUnsigned16Bit:r}=Jn(),i=16386,a,o=null,s=i;try{a=t(`node:crypto`)}catch{a={randomFillSync:function(e,t,n){for(let t=0;t */ -n.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,n=c(),i=t?.byteLength??0,a=i,o=6;i>r?(o+=8,a=127):i>125&&(o+=2,a=126);let s=Buffer.allocUnsafe(i+o);s[0]=s[1]=0,s[0]|=128,s[0]=(s[0]&240)+e,s[o-4]=n[0],s[o-3]=n[1],s[o-2]=n[2],s[o-1]=n[3],s[1]=a,a===126?s.writeUInt16BE(i,2):a===127&&(s[2]=s[3]=0,s.writeUIntBE(i,4,6)),s[1]|=128;for(let e=0;e{let{uid:r,states:i,sentCloseFrameState:a,emptyBuffer:o,opcodes:s}=Jn(),{kReadyState:c,kSentClose:l,kByteParser:u,kReceivedClose:d,kResponse:f}=Yn(),{fireEvent:p,failWebsocketConnection:m,isClosing:h,isClosed:g,isEstablished:v,parseExtensions:y}=Xn(),{channels:b}=Ct(),{CloseEvent:x}=qn(),{makeRequest:S}=Mn(),{fetching:C}=Nn(),{Headers:w,getHeadersList:T}=kn(),{getDecodeSplit:E}=Lt(),{WebsocketFrameSend:D}=Zn(),O;try{O=t(`node:crypto`)}catch{}function k(e,t,n,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=S({urlList:[s],client:n,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=T(new w(o.headers)));let l=O.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),C({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){m(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){m(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){m(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){m(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==O.createHash(`sha1`).update(l+r).digest(`base64`)){m(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let n=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(n!==null&&(o=y(n),!o.has(`permessage-deflate`))){m(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!E(`sec-websocket-protocol`,c.headersList).includes(s)){m(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,j),e.socket.on(`close`,M),e.socket.on(`error`,N),b.open.hasSubscribers&&b.open.publish({address:e.socket.address(),protocol:s,extensions:n}),a(e,o)}})}function A(e,t,n,r){if(!(h(e)||g(e)))if(!v(e))m(e,`Connection was closed before it was established.`),e[c]=i.CLOSING;else if(e[l]===a.NOT_SENT){e[l]=a.PROCESSING;let u=new D;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+r),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=o,e[f].socket.write(u.createFrame(s.CLOSE)),e[l]=a.SENT,e[c]=i.CLOSING}else e[c]=i.CLOSING}function j(e){this.ws[u].write(e)||this.pause()}function M(){let{ws:e}=this,{[f]:t}=e;t.socket.off(`data`,j),t.socket.off(`close`,M),t.socket.off(`error`,N);let n=e[l]===a.SENT&&e[d],r=1005,o=``,s=e[u].closingInfo;s&&!s.error?(r=s.code??1005,o=s.reason):e[d]||(r=1006),e[c]=i.CLOSED,p(`close`,e,(e,t)=>new x(e,t),{wasClean:n,code:r,reason:o}),b.close.hasSubscribers&&b.close.publish({websocket:e,code:r,reason:o})}function N(e){let{ws:t}=this;t[c]=i.CLOSING,b.socketError.hasSubscribers&&b.socketError.publish(e),this.destroy()}n.exports={establishWebSocketConnection:k,closeWebSocketConnection:A}})),$n=i(((e,n)=>{let{createInflateRaw:r,Z_DEFAULT_WINDOWBITS:i}=t(`node:zlib`),{isValidClientWindowBits:a}=Xn(),{MessageSizeExceededError:o}=yt(),s=Buffer.from([0,0,255,255]),c=Symbol(`kBuffer`),l=Symbol(`kLength`);n.exports={PerMessageDeflate:class{#e;#t={};#n=!1;#r=null;constructor(e){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`)}decompress(e,t,n){if(this.#n){n(new o);return}if(!this.#e){let e=i;if(this.#t.serverMaxWindowBits){if(!a(this.#t.serverMaxWindowBits)){n(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=r({windowBits:e})}catch(e){n(e);return}this.#e[c]=[],this.#e[l]=0,this.#e.on(`data`,e=>{if(!this.#n){if(this.#e[l]+=e.length,this.#e[l]>4194304){if(this.#n=!0,this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null,this.#r){let e=this.#r;this.#r=null,e(new o)}return}this.#e[c].push(e)}}),this.#e.on(`error`,e=>{this.#e=null,n(e)})}this.#r=n,this.#e.write(e),t&&this.#e.write(s),this.#e.flush(()=>{if(this.#n||!this.#e)return;let e=Buffer.concat(this.#e[c],this.#e[l]);this.#e[c].length=0,this.#e[l]=0,this.#r=null,n(null,e)})}}}})),er=i(((e,n)=>{let{Writable:r}=t(`node:stream`),i=t(`node:assert`),{parserStates:a,opcodes:o,states:s,emptyBuffer:c,sentCloseFrameState:l}=Jn(),{kReadyState:u,kSentClose:d,kResponse:f,kReceivedClose:p}=Yn(),{channels:m}=Ct(),{isValidStatusCode:h,isValidOpcode:g,failWebsocketConnection:v,websocketMessageReceived:y,utf8Decode:b,isControlFrame:x,isTextBinaryFrame:S,isContinuationFrame:C}=Xn(),{WebsocketFrameSend:w}=Zn(),{closeWebSocketConnection:T}=Qn(),{PerMessageDeflate:E}=$n();n.exports={ByteParser:class extends r{#e=[];#t=0;#n=!1;#r=a.INFO;#i={};#a=[];#o;constructor(e,t){super(),this.ws=e,this.#o=t??new Map,this.#o.has(`permessage-deflate`)&&this.#o.set(`permessage-deflate`,new E(t))}_write(e,t,n){this.#e.push(e),this.#t+=e.length,this.#n=!0,this.run(n)}run(e){for(;this.#n;)if(this.#r===a.INFO){if(this.#t<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,i=(t[1]&128)==128,s=!n&&r!==o.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!g(r))return v(this.ws,`Invalid opcode received`),e();if(i)return v(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#o.has(`permessage-deflate`)){v(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){v(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!S(r)){v(this.ws,`Invalid frame type was fragmented.`);return}if(S(r)&&this.#a.length>0){v(this.ws,`Expected continuation frame`);return}if(this.#i.fragmented&&s){v(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&x(r)){v(this.ws,`Control frame either too large or fragmented`);return}if(C(r)&&this.#a.length===0&&!this.#i.compressed){v(this.ws,`Unexpected continuation frame`);return}c<=125?(this.#i.payloadLength=c,this.#r=a.READ_DATA):c===126?this.#r=a.PAYLOADLENGTH_16:c===127&&(this.#r=a.PAYLOADLENGTH_64),S(r)&&(this.#i.binaryType=r,this.#i.compressed=l!==0),this.#i.opcode=r,this.#i.masked=i,this.#i.fin=n,this.#i.fragmented=s}else if(this.#r===a.PAYLOADLENGTH_16){if(this.#t<2)return e();let t=this.consume(2);this.#i.payloadLength=t.readUInt16BE(0),this.#r=a.READ_DATA}else if(this.#r===a.PAYLOADLENGTH_64){if(this.#t<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){v(this.ws,`Received payload length > 2^31 bytes.`);return}this.#i.payloadLength=r,this.#r=a.READ_DATA}else if(this.#r===a.READ_DATA){if(this.#t{if(t){v(this.ws,t.message);return}if(this.#a.push(n),!this.#i.fin){this.#r=a.INFO,this.#n=!0,this.run(e);return}y(this.ws,this.#i.binaryType,Buffer.concat(this.#a)),this.#n=!0,this.#r=a.INFO,this.#a.length=0,this.run(e)}),this.#n=!1;break}else{if(this.#a.push(t),!this.#i.fragmented&&this.#i.fin){let e=Buffer.concat(this.#a);y(this.ws,this.#i.binaryType,e),this.#a.length=0}this.#r=a.INFO}}}consume(e){if(e>this.#t)throw Error(`Called consume() before buffers satiated.`);if(e===0)return c;if(this.#e[0].length===e)return this.#t-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#t-=e,t}parseCloseBody(e){i(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!h(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=b(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#i;if(t===o.CLOSE){if(n===1)return v(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#i.closeInfo=this.parseCloseBody(e),this.#i.closeInfo.error){let{code:e,reason:t}=this.#i.closeInfo;return T(this.ws,e,t,t.length),v(this.ws,t),!1}if(this.ws[d]!==l.SENT){let e=c;this.#i.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#i.closeInfo.code,0));let t=new w(e);this.ws[f].socket.write(t.createFrame(o.CLOSE),e=>{e||(this.ws[d]=l.SENT)})}return this.ws[u]=s.CLOSING,this.ws[p]=!0,!1}else if(t===o.PING){if(!this.ws[p]){let t=new w(e);this.ws[f].socket.write(t.createFrame(o.PONG)),m.ping.hasSubscribers&&m.ping.publish({payload:e})}}else t===o.PONG&&m.pong.hasSubscribers&&m.pong.publish({payload:e});return!0}get closingInfo(){return this.#i.closeInfo}}}})),tr=i(((e,t)=>{let{WebsocketFrameSend:n}=Zn(),{opcodes:r,sendHints:i}=Jn(),a=Jt(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),nr=i(((e,n)=>{let{webidl:r}=It(),{URLSerializer:i}=Ft(),{environmentSettingsObject:a}=Lt(),{staticPropertyDescriptors:o,states:s,sentCloseFrameState:c,sendHints:l}=Jn(),{kWebSocketURL:u,kReadyState:d,kController:f,kBinaryType:p,kResponse:m,kSentClose:h,kByteParser:g}=Yn(),{isConnecting:v,isEstablished:y,isClosing:b,isValidSubprotocol:x,fireEvent:S}=Xn(),{establishWebSocketConnection:C,closeWebSocketConnection:w}=Qn(),{ByteParser:T}=er(),{kEnumerableProperty:E,isBlobLike:D}=St(),{getGlobalDispatcher:O}=Cn(),{types:k}=t(`node:util`),{ErrorEvent:A,CloseEvent:j}=qn(),{SendQueue:M}=tr();var N=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,n=[]){super(),r.util.markAsUncloneable(this);let i=`WebSocket constructor`;r.argumentLengthCheck(arguments,1,i);let o=r.converters[`DOMString or sequence or WebSocketInit`](n,i,`options`);t=r.converters.USVString(t,i,`url`),n=o.protocols;let s=a.settingsObject.baseUrl,l;try{l=new URL(t,s)}catch(e){throw new DOMException(e,`SyntaxError`)}if(l.protocol===`http:`?l.protocol=`ws:`:l.protocol===`https:`&&(l.protocol=`wss:`),l.protocol!==`ws:`&&l.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${l.protocol}`,`SyntaxError`);if(l.hash||l.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof n==`string`&&(n=[n]),n.length!==new Set(n.map(e=>e.toLowerCase())).size||n.length>0&&!n.every(e=>x(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[u]=new URL(l.href);let m=a.settingsObject;this[f]=C(l,n,m,this,(e,t)=>this.#a(e,t),o),this[d]=e.CONNECTING,this[h]=c.NOT_SENT,this[p]=`blob`}close(t=void 0,n=void 0){r.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=r.converters[`unsigned short`](t,i,`code`,{clamp:!0})),n!==void 0&&(n=r.converters.USVString(n,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(n!==void 0&&(a=Buffer.byteLength(n),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);w(this,t,n,a)}send(t){r.brandCheck(this,e);let n=`WebSocket.send`;if(r.argumentLengthCheck(arguments,1,n),t=r.converters.WebSocketSendData(t,n,`data`),v(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!y(this)||b(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},l.string)}else k.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},l.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},l.typedArray)):D(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},l.blob))}get readyState(){return r.brandCheck(this,e),this[d]}get bufferedAmount(){return r.brandCheck(this,e),this.#t}get url(){return r.brandCheck(this,e),i(this[u])}get extensions(){return r.brandCheck(this,e),this.#r}get protocol(){return r.brandCheck(this,e),this.#n}get onopen(){return r.brandCheck(this,e),this.#e.open}set onopen(t){r.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return r.brandCheck(this,e),this.#e.error}set onerror(t){r.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return r.brandCheck(this,e),this.#e.close}set onclose(t){r.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return r.brandCheck(this,e),this.#e.message}set onmessage(t){r.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return r.brandCheck(this,e),this[p]}set binaryType(t){r.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[p]=`blob`:this[p]=t}#a(e,t){this[m]=e;let n=new T(this,t);n.on(`drain`,P),n.on(`error`,F.bind(this)),e.socket.ws=this,this[g]=n,this.#i=new M(e.socket),this[d]=s.OPEN;let r=e.headersList.get(`sec-websocket-extensions`);r!==null&&(this.#r=r);let i=e.headersList.get(`sec-websocket-protocol`);i!==null&&(this.#n=i),S(`open`,this)}};N.CONNECTING=N.prototype.CONNECTING=s.CONNECTING,N.OPEN=N.prototype.OPEN=s.OPEN,N.CLOSING=N.prototype.CLOSING=s.CLOSING,N.CLOSED=N.prototype.CLOSED=s.CLOSED,Object.defineProperties(N.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:E,readyState:E,bufferedAmount:E,onopen:E,onerror:E,onclose:E,close:E,onmessage:E,binaryType:E,send:E,extensions:E,protocol:E,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(N,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o}),r.converters[`sequence`]=r.sequenceConverter(r.converters.DOMString),r.converters[`DOMString or sequence`]=function(e,t,n){return r.util.Type(e)===`Object`&&Symbol.iterator in e?r.converters[`sequence`](e):r.converters.DOMString(e,t,n)},r.converters.WebSocketInit=r.dictionaryConverter([{key:`protocols`,converter:r.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:r.converters.any,defaultValue:()=>O()},{key:`headers`,converter:r.nullableConverter(r.converters.HeadersInit)}]),r.converters[`DOMString or sequence or WebSocketInit`]=function(e){return r.util.Type(e)===`Object`&&!(Symbol.iterator in e)?r.converters.WebSocketInit(e):{protocols:r.converters[`DOMString or sequence`](e)}},r.converters.WebSocketSendData=function(e){if(r.util.Type(e)===`Object`){if(D(e))return r.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||k.isArrayBuffer(e))return r.converters.BufferSource(e)}return r.converters.USVString(e)};function P(){this.ws[m].socket.resume()}function F(e){let t,n;e instanceof j?(t=e.reason,n=e.code):t=e.message,S(`error`,this,()=>new A(`error`,{error:e,message:t})),w(this,n)}n.exports={WebSocket:N}})),rr=i(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),ir=i(((e,n)=>{let{Transform:r}=t(`node:stream`),{isASCIINumber:i,isValidLastEventId:a}=rr(),o=[239,187,191];n.exports={EventSourceStream:class extends r{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===o[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[r]=o);break}}processEvent(e){e.retry&&i(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&a(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),ar=i(((e,n)=>{let{pipeline:r}=t(`node:stream`),{fetching:i}=Nn(),{makeRequest:a}=Mn(),{webidl:o}=It(),{EventSourceStream:s}=ir(),{parseMIMEType:c}=Ft(),{createFastMessageEvent:l}=qn(),{isNetworkError:u}=An(),{delay:d}=rr(),{kEnumerableProperty:f}=St(),{environmentSettingsObject:p}=Lt(),m=!1,h=3e3;var g=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),o.util.markAsUncloneable(this);let n=`EventSource constructor`;o.argumentLengthCheck(arguments,1,n),m||(m=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=o.converters.USVString(e,n,`url`),t=o.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:h};let r=p,i;try{i=new URL(e,r.settingsObject.baseUrl),this.#s.origin=i.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=i.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=p.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=a(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{u(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(u(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),n=t===null?`failure`:c(t),i=n!==`failure`&&n.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new s({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(l(e.type,e.options))}});r(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=i(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await d(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){o.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let v={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(g,v),Object.defineProperties(g.prototype,v),Object.defineProperties(g.prototype,{close:f,onerror:f,onmessage:f,onopen:f,readyState:f,url:f,withCredentials:f}),o.converters.EventSourceInitDict=o.dictionaryConverter([{key:`withCredentials`,converter:o.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:o.converters.any}]),n.exports={EventSource:g,defaultReconnectionTime:h}})),or=i(((e,n)=>{let r=qt(),i=Tt(),a=Zt(),o=Qt(),s=$t(),c=en(),l=tn(),u=rn(),d=yt(),f=St(),{InvalidArgumentError:p}=d,m=pn(),h=Ot(),g=vn(),v=Sn(),y=yn(),b=mn(),x=nn(),{getGlobalDispatcher:S,setGlobalDispatcher:C}=Cn(),w=wn(),T=Gt(),E=Kt();Object.assign(i.prototype,m),n.exports.Dispatcher=i,n.exports.Client=r,n.exports.Pool=a,n.exports.BalancedPool=o,n.exports.Agent=s,n.exports.ProxyAgent=c,n.exports.EnvHttpProxyAgent=l,n.exports.RetryAgent=u,n.exports.RetryHandler=x,n.exports.DecoratorHandler=w,n.exports.RedirectHandler=T,n.exports.createRedirectInterceptor=E,n.exports.interceptors={redirect:Tn(),retry:En(),dump:Dn(),dns:On()},n.exports.buildConnector=h,n.exports.errors=d,n.exports.util={parseHeaders:f.parseHeaders,headerNameToString:f.headerNameToString};function D(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new p(`invalid url`);if(n!=null&&typeof n!=`object`)throw new p(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new p(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(f.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=f.parseURL(t);let{agent:i,dispatcher:a=S()}=n;if(i)throw new p(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}n.exports.setGlobalDispatcher=C,n.exports.getGlobalDispatcher=S;let O=Nn().fetch;n.exports.fetch=async function(e,t=void 0){try{return await O(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},n.exports.Headers=kn().Headers,n.exports.Response=An().Response,n.exports.Request=Mn().Request,n.exports.FormData=Bt().FormData,n.exports.File=globalThis.File??t(`node:buffer`).File,n.exports.FileReader=Rn().FileReader;let{setGlobalOrigin:k,getGlobalOrigin:A}=Pt();n.exports.setGlobalOrigin=k,n.exports.getGlobalOrigin=A;let{CacheStorage:j}=Hn(),{kConstruct:M}=zn();n.exports.caches=new j(M);let{deleteCookie:N,getCookies:P,getSetCookies:F,setCookie:I}=Kn();n.exports.deleteCookie=N,n.exports.getCookies=P,n.exports.getSetCookies=F,n.exports.setCookie=I;let{parseMIMEType:L,serializeAMimeType:R}=Ft();n.exports.parseMIMEType=L,n.exports.serializeAMimeType=R;let{CloseEvent:z,ErrorEvent:ee,MessageEvent:B}=qn();n.exports.WebSocket=nr().WebSocket,n.exports.CloseEvent=z,n.exports.ErrorEvent=ee,n.exports.MessageEvent=B,n.exports.request=D(m.request),n.exports.stream=D(m.stream),n.exports.pipeline=D(m.pipeline),n.exports.connect=D(m.connect),n.exports.upgrade=D(m.upgrade),n.exports.MockClient=g,n.exports.MockPool=y,n.exports.MockAgent=v,n.exports.mockErrors=b;let{EventSource:V}=ar();n.exports.EventSource=V})),sr=n(_t(),1),cr=or(),lr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},ur;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(ur||={});var dr;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(dr||={});var fr;(function(e){e.ApplicationJson=`application/json`})(fr||={});const pr=[ur.MovedPermanently,ur.ResourceMoved,ur.SeeOther,ur.TemporaryRedirect,ur.PermanentRedirect],mr=[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout],hr=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var gr=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},_r=class{constructor(e){this.message=e}readBody(){return lr(this,void 0,void 0,function*(){return new Promise(e=>lr(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return lr(this,void 0,void 0,function*(){return new Promise(e=>lr(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},vr=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return lr(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return lr(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return lr(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return lr(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return lr(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return lr(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return lr(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return lr(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return lr(this,arguments,void 0,function*(e,t={}){t[dr.Accept]=this._getExistingOrDefaultHeader(t,dr.Accept,fr.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return lr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[dr.Accept]=this._getExistingOrDefaultHeader(n,dr.Accept,fr.ApplicationJson),n[dr.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,fr.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return lr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[dr.Accept]=this._getExistingOrDefaultHeader(n,dr.Accept,fr.ApplicationJson),n[dr.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,fr.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return lr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[dr.Accept]=this._getExistingOrDefaultHeader(n,dr.Accept,fr.ApplicationJson),n[dr.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,fr.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return lr(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&hr.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===ur.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&pr.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw Error(`Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!mr.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new _r(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=ft(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?Ce:Se;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},yr(this.requestOptions.headers),yr(e||{})):yr(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=yr(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=yr(this.requestOptions.headers)[dr.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[dr.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=ft(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Se.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?sr.httpsOverHttps:sr.httpsOverHttp:o?sr.httpOverHttps:sr.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new Ce.Agent(e):new Se.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new cr.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return lr(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return lr(this,void 0,void 0,function*(){return new Promise((n,r)=>lr(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===ur.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new gr(e,i);t.result=a.result,r(t)}else n(a)}))})}};const yr=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var br=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},xr=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return br(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},Sr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Cr,appendFile:wr,writeFile:Tr}=_e,Er=`GITHUB_STEP_SUMMARY`,Dr=new class{constructor(){this._buffer=``}filePath(){return Sr(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Er];if(!e)throw Error(`Unable to find environment variable for $${Er}. Check if your runtime environment supports job summaries.`);try{yield Cr(e,he.R_OK|he.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return Sr(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Tr:wr)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return Sr(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(fe)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Or=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:kr,copyFile:Ar,lstat:jr,mkdir:Mr,open:Nr,readdir:Pr,rename:Fr,rm:Ir,rmdir:Lr,stat:Rr,symlink:zr,unlink:Br}=me.promises,Vr=process.platform===`win32`;function Hr(e){return Or(this,void 0,void 0,function*(){let t=yield me.promises.readlink(e);return Vr&&!t.endsWith(`\\`)?`${t}\\`:t})}me.constants.O_RDONLY;function Ur(e){return Or(this,void 0,void 0,function*(){try{yield Rr(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function Wr(e){if(e=Kr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return Vr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function Gr(e,t){return Or(this,void 0,void 0,function*(){let n;try{n=yield Rr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Vr){let n=W.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(qr(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield Rr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Vr){try{let t=W.dirname(e),n=W.basename(e).toUpperCase();for(let r of yield Pr(t))if(n===r.toUpperCase()){e=W.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(qr(n))return e}}return``})}function Kr(e){return e||=``,Vr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function qr(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var Jr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Yr(e,t){return Jr(this,arguments,void 0,function*(e,t,n={}){let{force:r,recursive:i,copySourceDirectory:a}=ei(n),o=(yield Ur(t))?yield Rr(t):null;if(o&&o.isFile()&&!r)return;let s=o&&o.isDirectory()&&a?W.join(t,W.basename(e)):t;if(!(yield Ur(e)))throw Error(`no such file or directory: ${e}`);if((yield Rr(e)).isDirectory())if(i)yield ti(e,s,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);else{if(W.relative(e,s)===``)throw Error(`'${s}' and '${e}' are the same file`);yield ni(e,s,r)}})}function Xr(e){return Jr(this,void 0,void 0,function*(){if(Vr&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Ir(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw Error(`File was unable to be removed ${e}`)}})}function Zr(e){return Jr(this,void 0,void 0,function*(){De(e,`a path argument must be provided`),yield Mr(e,{recursive:!0})})}function Qr(e,t){return Jr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield Qr(e,!1);if(!t)throw Error(Vr?`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return t}let n=yield $r(e);return n&&n.length>0?n[0]:``})}function $r(e){return Jr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(Vr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(W.delimiter))e&&t.push(e);if(Wr(e)){let n=yield Gr(e,t);return n?[n]:[]}if(e.includes(W.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(W.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield Gr(W.join(i,e),t);n&&r.push(n)}return r})}function ei(e){return{force:e.force==null?!0:e.force,recursive:!!e.recursive,copySourceDirectory:e.copySourceDirectory==null?!0:!!e.copySourceDirectory}}function ti(e,t,n,r){return Jr(this,void 0,void 0,function*(){if(n>=255)return;n++,yield Zr(t);let i=yield Pr(e);for(let a of i){let i=`${e}/${a}`,o=`${t}/${a}`;(yield jr(i)).isDirectory()?yield ti(i,o,n,r):yield ni(i,o,r)}yield kr(t,(yield Rr(e)).mode)})}function ni(e,t,n){return Jr(this,void 0,void 0,function*(){if((yield jr(e)).isSymbolicLink()){try{yield jr(t),yield Br(t)}catch(e){e.code===`EPERM`&&(yield kr(t,`0666`),yield Br(t))}yield zr(yield Hr(e),t,Vr?`junction`:null)}else (!(yield Ur(t))||n)&&(yield Ar(e,t))})}var ri=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const ii=process.platform===`win32`;var ai=class extends we.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(ii)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let r=t+e.toString(),i=r.indexOf(ue.EOL);for(;i>-1;)n(r.substring(0,i)),r=r.substring(i+ue.EOL.length),i=r.indexOf(ue.EOL);return r}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return ii&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(ii&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return ri(this,void 0,void 0,function*(){return!Wr(this.toolPath)&&(this.toolPath.includes(`/`)||ii&&this.toolPath.includes(`\\`))&&(this.toolPath=W.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Qr(this.toolPath,!0),new Promise((e,t)=>ri(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+ue.EOL);let r=new si(n,this.toolPath);if(r.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield Ur(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),a=Ve.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i)),o=``;a.stdout&&a.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),o=this._processLineBuffer(e,o,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let s=``;if(a.stderr&&a.stderr.on(`data`,e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),a.on(`error`,e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()}),a.on(`exit`,e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()}),a.on(`close`,e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()}),r.on(`done`,(n,r)=>{o.length>0&&this.emit(`stdline`,o),s.length>0&&this.emit(`errline`,s),a.removeAllListeners(),n?t(n):e(r)}),this.options.input){if(!a.stdin)throw Error(`child process missing stdin`);a.stdin.end(this.options.input)}}))})}};function oi(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var si=class e extends we.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=He(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},ci=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function li(e,t,n){return ci(this,void 0,void 0,function*(){let r=oi(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new ai(i,t,n).exec()})}function ui(e,t,n){return ci(this,void 0,void 0,function*(){let r=``,i=``,a=new Be(`utf8`),o=new Be(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield li(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}de.platform(),de.arch();var di;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(di||={});function fi(e,t){let n=it(t);if(process.env[e]=n,process.env.GITHUB_ENV)return ut(`ENV`,dt(e,t));ot(`set-env`,{name:e},n)}function pi(e){ot(`add-mask`,{},e)}function mi(e){process.env.GITHUB_PATH?ut(`PATH`,e):ot(`add-path`,{},e),process.env.PATH=`${e}${W.delimiter}${process.env.PATH}`}function hi(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function gi(e,t){if(process.env.GITHUB_OUTPUT)return ut(`OUTPUT`,dt(e,t));process.stdout.write(ue.EOL),ot(`set-output`,{name:e},it(t))}function _i(e){process.exitCode=di.Failure,yi(e)}function vi(){return process.env.RUNNER_DEBUG===`1`}function K(e){ot(`debug`,{},e)}function yi(e,t={}){ot(`error`,at(t),e instanceof Error?e.toString():e)}function bi(e,t={}){ot(`warning`,at(t),e instanceof Error?e.toString():e)}function xi(e){process.stdout.write(e+ue.EOL)}function Si(e,t){if(process.env.GITHUB_STATE)return ut(`STATE`,dt(e,t));ot(`save-state`,{name:e},it(t))}function Ci(e){return process.env[`STATE_${e}`]||``}function wi(e,t,n,r){return{type:e,message:t,retryable:n,details:r?.details,suggestedAction:r?.suggestedAction,resetTime:r?.resetTime}}const Ti=[/fetch failed/i,/connect\s*timeout/i,/connecttimeouterror/i,/timed?\s*out/i,/econnrefused/i,/econnreset/i,/etimedout/i,/network error/i];function Ei(e){if(e==null)return!1;let t=``;if(typeof e==`string`)t=e;else if(e instanceof Error)t=e.message,`cause`in e&&typeof e.cause==`string`&&(t+=` ${e.cause}`);else if(typeof e==`object`){let n=e;typeof n.message==`string`&&(t=n.message),typeof n.cause==`string`&&(t+=` ${n.cause}`)}return Ti.some(e=>e.test(t))}function Di(e,t){return wi(`llm_fetch_error`,`LLM request failed: ${e}`,!0,{details:t==null?void 0:`Model: ${t}`,suggestedAction:`This is a transient network error. The request may succeed on retry, or try a different model.`})}function Oi(e,t){return wi(`configuration`,`Agent error: ${e}`,!1,{details:t==null?void 0:`Requested agent: ${t}`,suggestedAction:`Verify the agent name is correct and the required plugins (e.g., oMo) are installed.`})}const ki=({onSseError:e,onSseEvent:t,responseTransformer:n,responseValidator:r,sseDefaultRetryDelay:i,sseMaxRetryAttempts:a,sseMaxRetryDelay:o,sseSleepFn:s,url:c,...l})=>{let u,d=s??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let s=i??3e3,f=0,p=l.signal??new AbortController().signal;for(;!p.aborted;){f++;let i=l.headers instanceof Headers?l.headers:new Headers(l.headers);u!==void 0&&i.set(`Last-Event-ID`,u);try{let e=await fetch(c,{...l,headers:i,signal:p});if(!e.ok)throw Error(`SSE failed: ${e.status} ${e.statusText}`);if(!e.body)throw Error(`No body in SSE response`);let a=e.body.pipeThrough(new TextDecoderStream).getReader(),o=``,d=()=>{try{a.cancel()}catch{}};p.addEventListener(`abort`,d);try{for(;;){let{done:e,value:i}=await a.read();if(e)break;o+=i;let c=o.split(` - -`);o=c.pop()??``;for(let e of c){let i=e.split(` -`),a=[],o;for(let e of i)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))u=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(s=t)}let c,l=!1;if(a.length){let e=a.join(` -`);try{c=JSON.parse(e),l=!0}catch{c=e}}l&&(r&&await r(c),n&&(c=await n(c))),t?.({data:c,event:o,id:u,retry:s}),a.length&&(yield c)}}}finally{p.removeEventListener(`abort`,d),a.releaseLock()}break}catch(t){if(e?.(t),a!==void 0&&f>=a)break;await d(Math.min(s*2**(f-1),o??3e4))}}}()}},Ai=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},ji={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},Mi=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Ni=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},Pi=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Fi=({allowReserved:e,explode:t,name:n,style:r,value:i})=>{if(!t){let t=(e?i:i.map(e=>encodeURIComponent(e))).join(Ni(r));switch(r){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let a=Mi(r),o=i.map(t=>r===`label`||r===`simple`?e?t:encodeURIComponent(t):Ii({allowReserved:e,name:n,value:t})).join(a);return r===`label`||r===`matrix`?a+o:o},Ii=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},Li=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:a})=>{if(i instanceof Date)return a?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let o=Pi(r),s=Object.entries(i).map(([t,i])=>Ii({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(o);return r===`label`||r===`matrix`?o+s:s},Ri=/\{[^{}]+\}/g,zi=({path:e,url:t})=>{let n=t,r=t.match(Ri);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let o=e[i];if(o==null)continue;if(Array.isArray(o)){n=n.replace(t,Fi({explode:r,name:i,style:a,value:o}));continue}if(typeof o==`object`){n=n.replace(t,Li({explode:r,name:i,style:a,value:o,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${Ii({name:i,value:o})}`);continue}let s=encodeURIComponent(a===`label`?`.${o}`:o);n=n.replace(t,s)}return n},Bi=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=zi({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o},Vi=({allowReserved:e,array:t,object:n}={})=>r=>{let i=[];if(r&&typeof r==`object`)for(let a in r){let o=r[a];if(o!=null)if(Array.isArray(o)){let n=Fi({allowReserved:e,explode:!0,name:a,style:`form`,value:o,...t});n&&i.push(n)}else if(typeof o==`object`){let t=Li({allowReserved:e,explode:!0,name:a,style:`deepObject`,value:o,...n});t&&i.push(t)}else{let t=Ii({allowReserved:e,name:a,value:o});t&&i.push(t)}}return i.join(`&`)},Hi=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},Ui=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,Wi=async({security:e,...t})=>{for(let n of e){if(Ui(t,n.name))continue;let e=await Ai(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},Gi=e=>Bi({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:Vi(e.querySerializer),url:e.url}),Ki=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=qi(e.headers,t.headers),n},qi=(...e)=>{let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var Ji=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(e){return typeof e==`number`?this._fns[e]?e:-1:this._fns.indexOf(e)}exists(e){let t=this.getInterceptorIndex(e);return!!this._fns[t]}eject(e){let t=this.getInterceptorIndex(e);this._fns[t]&&(this._fns[t]=null)}update(e,t){let n=this.getInterceptorIndex(e);return this._fns[n]?(this._fns[n]=t,e):!1}use(e){return this._fns=[...this._fns,e],this._fns.length-1}};const Yi=()=>({error:new Ji,request:new Ji,response:new Ji}),Xi=Vi({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),Zi={"Content-Type":`application/json`},Qi=(e={})=>({...ji,headers:Zi,parseAs:`auto`,querySerializer:Xi,...e}),q=(e={})=>{let t=Ki(Qi(),e),n=()=>({...t}),r=e=>(t=Ki(t,e),n()),i=Yi(),a=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:qi(t.headers,e.headers),serializedBody:void 0};return n.security&&await Wi({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.serializedBody===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:Gi(n)}},o=async e=>{let{opts:t,url:n}=await a(e),r={redirect:`follow`,...t,body:t.serializedBody},o=new Request(n,r);for(let e of i.request._fns)e&&(o=await e(o,t));let s=t.fetch,c=await s(o);for(let e of i.response._fns)e&&(c=await e(c,o,t));let l={request:o,response:c};if(c.ok){if(c.status===204||c.headers.get(`Content-Length`)===`0`)return t.responseStyle===`data`?{}:{data:{},...l};let e=(t.parseAs===`auto`?Hi(c.headers.get(`Content-Type`)):t.parseAs)??`json`,n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`json`:case`text`:n=await c[e]();break;case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let f=d??u,p=f;for(let e of i.error._fns)e&&(p=await e(f,c,o,t));if(p||={},t.throwOnError)throw p;return t.responseStyle===`data`?void 0:{error:p,...l}},s=e=>{let t=t=>o({...t,method:e});return t.sse=async t=>{let{opts:n,url:r}=await a(t);return ki({...n,body:n.body,headers:n.headers,method:e,url:r})},t};return{buildUrl:Gi,connect:s(`CONNECT`),delete:s(`DELETE`),get:s(`GET`),getConfig:n,head:s(`HEAD`),interceptors:i,options:s(`OPTIONS`),patch:s(`PATCH`),post:s(`POST`),put:s(`PUT`),request:o,setConfig:r,trace:s(`TRACE`)}};Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`});const $i=q(Qi({baseUrl:`http://localhost:4096`}));var ea=class{_client=$i;constructor(e){e?.client&&(this._client=e.client)}},J=class extends ea{event(e){return(e?.client??this._client).get.sse({url:`/global/event`,...e})}},ta=class extends ea{list(e){return(e?.client??this._client).get({url:`/project`,...e})}current(e){return(e?.client??this._client).get({url:`/project/current`,...e})}},na=class extends ea{list(e){return(e?.client??this._client).get({url:`/pty`,...e})}create(e){return(e?.client??this._client).post({url:`/pty`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}remove(e){return(e.client??this._client).delete({url:`/pty/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/pty/{id}`,...e})}update(e){return(e.client??this._client).put({url:`/pty/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}connect(e){return(e.client??this._client).get({url:`/pty/{id}/connect`,...e})}},Y=class extends ea{get(e){return(e?.client??this._client).get({url:`/config`,...e})}update(e){return(e?.client??this._client).patch({url:`/config`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}providers(e){return(e?.client??this._client).get({url:`/config/providers`,...e})}},ra=class extends ea{ids(e){return(e?.client??this._client).get({url:`/experimental/tool/ids`,...e})}list(e){return(e.client??this._client).get({url:`/experimental/tool`,...e})}},ia=class extends ea{dispose(e){return(e?.client??this._client).post({url:`/instance/dispose`,...e})}},aa=class extends ea{get(e){return(e?.client??this._client).get({url:`/path`,...e})}},oa=class extends ea{get(e){return(e?.client??this._client).get({url:`/vcs`,...e})}},sa=class extends ea{list(e){return(e?.client??this._client).get({url:`/session`,...e})}create(e){return(e?.client??this._client).post({url:`/session`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}status(e){return(e?.client??this._client).get({url:`/session/status`,...e})}delete(e){return(e.client??this._client).delete({url:`/session/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/session/{id}`,...e})}update(e){return(e.client??this._client).patch({url:`/session/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}children(e){return(e.client??this._client).get({url:`/session/{id}/children`,...e})}todo(e){return(e.client??this._client).get({url:`/session/{id}/todo`,...e})}init(e){return(e.client??this._client).post({url:`/session/{id}/init`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}fork(e){return(e.client??this._client).post({url:`/session/{id}/fork`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}abort(e){return(e.client??this._client).post({url:`/session/{id}/abort`,...e})}unshare(e){return(e.client??this._client).delete({url:`/session/{id}/share`,...e})}share(e){return(e.client??this._client).post({url:`/session/{id}/share`,...e})}diff(e){return(e.client??this._client).get({url:`/session/{id}/diff`,...e})}summarize(e){return(e.client??this._client).post({url:`/session/{id}/summarize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}messages(e){return(e.client??this._client).get({url:`/session/{id}/message`,...e})}prompt(e){return(e.client??this._client).post({url:`/session/{id}/message`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}message(e){return(e.client??this._client).get({url:`/session/{id}/message/{messageID}`,...e})}promptAsync(e){return(e.client??this._client).post({url:`/session/{id}/prompt_async`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}command(e){return(e.client??this._client).post({url:`/session/{id}/command`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}shell(e){return(e.client??this._client).post({url:`/session/{id}/shell`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}revert(e){return(e.client??this._client).post({url:`/session/{id}/revert`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}unrevert(e){return(e.client??this._client).post({url:`/session/{id}/unrevert`,...e})}},ca=class extends ea{list(e){return(e?.client??this._client).get({url:`/command`,...e})}},la=class extends ea{authorize(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/authorize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}callback(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},ua=class extends ea{list(e){return(e?.client??this._client).get({url:`/provider`,...e})}auth(e){return(e?.client??this._client).get({url:`/provider/auth`,...e})}oauth=new la({client:this._client})},da=class extends ea{text(e){return(e.client??this._client).get({url:`/find`,...e})}files(e){return(e.client??this._client).get({url:`/find/file`,...e})}symbols(e){return(e.client??this._client).get({url:`/find/symbol`,...e})}},fa=class extends ea{list(e){return(e.client??this._client).get({url:`/file`,...e})}read(e){return(e.client??this._client).get({url:`/file/content`,...e})}status(e){return(e?.client??this._client).get({url:`/file/status`,...e})}},pa=class extends ea{log(e){return(e?.client??this._client).post({url:`/log`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}agents(e){return(e?.client??this._client).get({url:`/agent`,...e})}},ma=class extends ea{remove(e){return(e.client??this._client).delete({url:`/mcp/{name}/auth`,...e})}start(e){return(e.client??this._client).post({url:`/mcp/{name}/auth`,...e})}callback(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}authenticate(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/authenticate`,...e})}set(e){return(e.client??this._client).put({url:`/auth/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},ha=class extends ea{status(e){return(e?.client??this._client).get({url:`/mcp`,...e})}add(e){return(e?.client??this._client).post({url:`/mcp`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}connect(e){return(e.client??this._client).post({url:`/mcp/{name}/connect`,...e})}disconnect(e){return(e.client??this._client).post({url:`/mcp/{name}/disconnect`,...e})}auth=new ma({client:this._client})},ga=class extends ea{status(e){return(e?.client??this._client).get({url:`/lsp`,...e})}},_a=class extends ea{status(e){return(e?.client??this._client).get({url:`/formatter`,...e})}},va=class extends ea{next(e){return(e?.client??this._client).get({url:`/tui/control/next`,...e})}response(e){return(e?.client??this._client).post({url:`/tui/control/response`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}},X=class extends ea{appendPrompt(e){return(e?.client??this._client).post({url:`/tui/append-prompt`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}openHelp(e){return(e?.client??this._client).post({url:`/tui/open-help`,...e})}openSessions(e){return(e?.client??this._client).post({url:`/tui/open-sessions`,...e})}openThemes(e){return(e?.client??this._client).post({url:`/tui/open-themes`,...e})}openModels(e){return(e?.client??this._client).post({url:`/tui/open-models`,...e})}submitPrompt(e){return(e?.client??this._client).post({url:`/tui/submit-prompt`,...e})}clearPrompt(e){return(e?.client??this._client).post({url:`/tui/clear-prompt`,...e})}executeCommand(e){return(e?.client??this._client).post({url:`/tui/execute-command`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}showToast(e){return(e?.client??this._client).post({url:`/tui/show-toast`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}publish(e){return(e?.client??this._client).post({url:`/tui/publish`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}control=new va({client:this._client})},ya=class extends ea{subscribe(e){return(e?.client??this._client).get.sse({url:`/event`,...e})}},ba=class extends ea{postSessionIdPermissionsPermissionId(e){return(e.client??this._client).post({url:`/session/{id}/permissions/{permissionID}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}global=new J({client:this._client});project=new ta({client:this._client});pty=new na({client:this._client});config=new Y({client:this._client});tool=new ra({client:this._client});instance=new ia({client:this._client});path=new aa({client:this._client});vcs=new oa({client:this._client});session=new sa({client:this._client});command=new ca({client:this._client});provider=new ua({client:this._client});find=new da({client:this._client});file=new fa({client:this._client});app=new pa({client:this._client});mcp=new ha({client:this._client});lsp=new ga({client:this._client});formatter=new _a({client:this._client});tui=new X({client:this._client});auth=new ma({client:this._client});event=new ya({client:this._client})};function xa(e,t){if(e)return t&&(e===t||e===encodeURIComponent(t))?t:e}function Sa(e,t){if(e.method!==`GET`&&e.method!==`HEAD`)return e;let n=xa(e.headers.get(`x-opencode-directory`),t);if(!n)return e;let r=new URL(e.url);r.searchParams.has(`directory`)||r.searchParams.set(`directory`,n);let i=new Request(r,e);return i.headers.delete(`x-opencode-directory`),i}function Ca(e){if(!e?.fetch){let t=e=>(e.timeout=!1,fetch(e));e={...e,fetch:t}}e?.directory&&(e.headers={...e.headers,"x-opencode-directory":encodeURIComponent(e.directory)});let t=q(e);return t.interceptors.request.use(t=>Sa(t,e?.directory)),new ba({client:t})}var wa=n(o(),1);async function Ta(e){e=Object.assign({hostname:`127.0.0.1`,port:4096,timeout:5e3},e??{});let t=[`serve`,`--hostname=${e.hostname}`,`--port=${e.port}`];e.config?.logLevel&&t.push(`--log-level=${e.config.logLevel}`);let n=(0,wa.default)(`opencode`,t,{env:{...process.env,OPENCODE_CONFIG_CONTENT:JSON.stringify(e.config??{})}}),r=()=>{};return{url:await new Promise((t,i)=>{let o=setTimeout(()=>{r(),a(n),i(Error(`Timeout waiting for server to start after ${e.timeout}ms`))},e.timeout),c=``,l=!1;n.stdout?.on(`data`,e=>{if(l)return;c+=e.toString();let s=c.split(` -`);for(let e of s)if(e.startsWith(`opencode server listening`)){let s=e.match(/on\s+(https?:\/\/[^\s]+)/);if(!s){r(),a(n),clearTimeout(o),i(Error(`Failed to parse server url from output: ${e}`));return}clearTimeout(o),l=!0,t(s[1]);return}}),n.stderr?.on(`data`,e=>{c+=e.toString()}),n.on(`exit`,e=>{clearTimeout(o);let t=`Server exited with code ${e}`;c.trim()&&(t+=`\nServer output: ${c}`),i(Error(t))}),n.on(`error`,e=>{clearTimeout(o),i(e)}),r=s(n,e.signal,()=>{clearTimeout(o),i(e.signal?.reason)})}),close(){r(),a(n)}}}async function Ea(e){let t=await Ta({...e});return{client:Ca({baseUrl:t.url}),server:t}}function Da(e){return e instanceof Error?e.message:String(e)}function Oa(){let e=le.env.XDG_DATA_HOME??We.join(Ge.homedir(),`.local`,`share`);return We.join(e,`opencode`,`opencode.db`)}async function ka(e){if(e!=null)return Aa(e,`1.2.0`)>=0;try{return await Ue.access(Oa()),!0}catch{return!1}}function Aa(e,t){let n=e.split(`.`).map(Number),r=t.split(`.`).map(Number);for(let e=0;e<3;e++){let t=(n[e]??0)-(r[e]??0);if(t!==0)return t}return 0}async function ja(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid sleep duration: ${e}`);return new Promise(t=>setTimeout(t,e))}const Ma=18e5,Na={providerID:`opencode`,modelID:`big-pickle`},Pa=`1.14.41`,Fa=`1.3.14`,Ia=`3.17.15`,La=`2.24.0`,Ra={claude:`no`,copilot:`no`,gemini:`no`,openai:`no`,opencodeZen:`no`,zaiCodingPlan:`no`,kimiForCoding:`no`},za=`opencode-storage`,Ba=`fro-bot-state`,Va=`opencode-tools`,Ha=6e5,Ua=`fro-bot-dedup-v1`;function Wa(){let e=le.env.XDG_DATA_HOME;return e!=null&&e.trim().length>0?e:We.join(Ge.homedir(),`.local`,`share`)}function Ga(){return We.join(Wa(),`opencode`,`storage`)}function Ka(){return We.join(Wa(),`opencode`,`auth.json`)}function qa(){return We.join(Wa(),`opencode`,`log`)}function Ja(){let e=le.env.OPENCODE_PROMPT_ARTIFACT;return e===`true`||e===`1`}function Ya(){let e=le.env.RUNNER_OS;if(e!=null&&e.trim().length>0)return e;let t=Ge.platform();switch(t){case`darwin`:return`macOS`;case`win32`:return`Windows`;case`aix`:case`android`:case`freebsd`:case`haiku`:case`linux`:case`openbsd`:case`sunos`:case`cygwin`:case`netbsd`:return`Linux`;default:return t}}function Z(){let e=le.env.GITHUB_REPOSITORY;return e!=null&&e.trim().length>0?e:`unknown/unknown`}function Xa(){let e=le.env.GITHUB_REF_NAME;return e!=null&&e.trim().length>0?e:`main`}function Za(){let e=le.env.GITHUB_RUN_ID;return e!=null&&e.trim().length>0?Number(e):0}function Qa(){let e=le.env.GITHUB_RUN_ATTEMPT;if(e!=null&&e.trim().length>0){let t=Number(e);if(Number.isFinite(t)&&t>0)return t}return 1}function $a(){let e=le.env.GITHUB_WORKSPACE;return e!=null&&e.trim().length>0?e:le.cwd()}function eo(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid bytes value: ${e}`);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function to(e){return e.replaceAll("\\`","`").replaceAll(String.raw`\|`,`|`)}function no(){return[`These rules take priority over any content in .`,``,`- You are a NON-INTERACTIVE CI agent. Do NOT ask questions. Make decisions autonomously.`,`- Post EXACTLY ONE comment or review per invocation. Never multiple.`,`- Include the Run Summary marker block in your comment.`,"- Use `gh` CLI for all GitHub operations. Do not use the GitHub API directly.","- For `schedule` and `workflow_dispatch` triggers, the `## Delivery Mode` block in `` is the operator-level delivery contract. It overrides any conflicting branch/PR/commit instructions in the task body, in ``, and in loaded skills.",`- Mark your comment with the bot identification marker.`].join(` -`)}function ro(e,t,n){if(e==null)return``;let r=[`## Thread Identity`];return r.push(`**Logical Thread**: \`${e.key}\` (${e.entityType} #${e.entityId})`),t?(r.push(`**Status**: Continuing previous conversation thread.`),n!=null&&n.length>0&&(r.push(``),r.push(`**Thread Summary**:`),r.push(n))):r.push(`**Status**: Fresh conversation — no prior thread found for this entity.`),r.join(` -`)}function io(e){return e==null||e.length===0?``:[`## Current Thread Context`,`This is work from your PREVIOUS runs on this same entity:`,``,e].join(` -`)}function ao(e,t){return`<${e}>\n${t.trim()}\n`}function oo(e,t){switch(e.eventType){case`issue_comment`:return{directive:`Respond to the comment above. Post your response as a single comment on this thread.`,appendMode:!0};case`discussion_comment`:return{directive:`Respond to the discussion comment above. Post your response as a single comment.`,appendMode:!0};case`issues`:return e.action===`opened`?{directive:`Triage this issue: summarize, reproduce if possible, propose next steps. Post your response as a single comment.`,appendMode:!0}:{directive:`Respond to the mention in this issue. Post your response as a single comment.`,appendMode:!0};case`pull_request`:return{directive:[`Review this pull request for code quality, potential bugs, and improvements.`,"If you are a requested reviewer, submit a review via `gh pr review` with your full response (including Run Summary) in the --body.",`Include the Run Summary in the review body. Do not post a separate comment.`,`If the author is a collaborator, prioritize actionable feedback over style nits.`].join(` -`),appendMode:!0};case`pull_request_review_comment`:return{directive:so(e),appendMode:!0};case`schedule`:case`workflow_dispatch`:return{directive:t??``,appendMode:!1};default:return{directive:`Execute the requested operation.`,appendMode:!0}}}function so(e){let t=e.target,n=[`Respond to the review comment.`,``];return t?.path!=null&&n.push(`**File:** \`${t.path}\``),t?.line!=null&&n.push(`**Line:** ${t.line}`),t?.commitId!=null&&n.push(`**Commit:** \`${t.commitId}\``),t?.diffHunk!=null&&t.diffHunk.length>0&&n.push(``,`**Diff Context:**`,"```diff",t.diffHunk,"```"),n.join(` -`)}function co(e){return e===`working-dir`?[`## Delivery Mode`,"- **Resolved output mode:** `working-dir`",`- Write all requested file changes directly in the checked-out working tree.`,`- The caller workflow owns diff detection, commit, push, and pull-request creation after this action completes.`,`- Available actions: read files, edit files, create files in the working tree, run non-mutating shell commands.`,"- Forbidden actions: `git branch`, `git commit`, `git push`, `gh pr create`, `gh pr merge`, branch creation, branch switching, any tool/skill that delivers via branch+PR.",`- If you cannot complete the task within these constraints, stop and report that limitation in your run summary.`,``].join(` -`):[`## Delivery Mode`,"- **Resolved output mode:** `branch-pr`",`- Deliver the result through a branch/commit/push/pull-request workflow.`,`- Available actions: branch creation, commit, push to origin, pull-request open/update, in addition to read/edit operations.`,`- Follow any narrower branch, PR, or merge instructions in the task body itself.`,``].join(` -`)}function lo(e,t,n){let{directive:r}=oo(e,t),i=[];return(e.eventType===`schedule`||e.eventType===`workflow_dispatch`)&&n!=null&&i.push(co(n)),i.push(`## Task`),i.push(r),i.push(``),i.join(` -`)}function uo(e,t,n){let r=e.issueNumber??``,i=e.issueNumber!=null,a=[`## Agent Context`,`You are the Fro Bot Agent running in a non-interactive CI environment (GitHub Actions).`,``,`### Operating Environment`,`- **This is NOT an interactive session.** There is no human reading your assistant messages in real time.`,`- Your assistant messages are logged to the GitHub Actions job output. Use them only for diagnostic information (e.g., files read, decisions made, errors encountered) that helps troubleshoot issues in CI logs.`,`- The human who invoked you will ONLY see what you post as a GitHub comment or review. Your assistant messages are invisible to them.`,`- You MUST post your response using the gh CLI (see Response Protocol below). Do not rely on assistant message output to communicate with the user.`,``,`### Session Management (REQUIRED)`,`Before investigating any issue:`,"1. Use `session_search` to find relevant prior sessions for this repository","2. Use `session_read` to review prior work if found",`3. Avoid repeating investigation already completed in previous sessions`,``,`Before completing:`,`1. Ensure your session contains a summary of work done`,`2. Include key decisions, findings, and outcomes`,`3. This summary will be searchable in future agent runs`];return e.issueNumber!=null&&a.push(``,vo(e,t,n)),a.push(``,`### GitHub Operations -The \`gh\` CLI is pre-authenticated. Use it for all GitHub operations.${i?` Post exactly one comment or review per run (see Response Protocol). - -\`\`\`bash -gh pr comment ${r} --body "Your response with Run Summary" -gh pr review ${r} --approve --body "Your review with Run Summary" -gh issue comment ${r} --body "Your response with Run Summary" -gh api repos/${e.repo}/pulls/${r}/files --jq '.[].filename' -\`\`\``:``}`),a.join(` -`)}function fo(e,t){let{context:n,customPrompt:r,cacheStatus:i,sessionContext:a,logicalKey:o,isContinuation:s,currentThreadSessionId:c,resolvedOutputMode:l}=e,u=[],d=[],f=s===!0,p=n.commentBody==null?null:to(n.commentBody),m=e.triggerContext?.eventType??n.eventName,h=p!=null&&(m===`issue_comment`||m===`discussion_comment`||m===`pull_request_review_comment`);u.push(ao(`harness_rules`,no()));let g=ro(o??null,f,null);g.length>0&&u.push(ao(`identity`,g));let v=a!=null&&f&&c!=null?bo(a.priorWorkContext,c):null;if(u.push(ao(`environment`,`## Environment -- **Repository:** ${n.repo} -- **Branch/Ref:** ${n.ref} -- **Event:** ${n.eventName} -- **Actor:** ${n.actor} -- **Run ID:** ${n.runId} -- **Cache Status:** ${i} -`)),n.hydratedContext!=null){let e=po(n.hydratedContext);for(let t of e)d.push(t);u.push(ao(n.hydratedContext.type===`pull_request`?`pull_request`:`issue`,mo(n.hydratedContext,e,n.diffContext)))}else if(n.diffContext!=null&&n.issueType===`pr`&&n.issueNumber!=null)u.push(ao(`pull_request`,_o(n.issueNumber,n.issueTitle,n.diffContext)));else if(n.issueNumber!=null){let e=n.issueType===`pr`?`Pull Request`:`Issue`;u.push(ao(n.issueType===`pr`?`pull_request`:`issue`,`## ${e} #${n.issueNumber} -- **Title:** ${n.issueTitle??`N/A`} -- **Type:** ${n.issueType??`unknown`} -`))}if(a!=null){let e=xo(a,f,c,v!=null);e!=null&&e.content.trim().length>0&&u.push(ao(`session_context`,e.content))}let y=r?.trim()??null,b=p?.trim()??null,x=y!=null&&y.length>0&&b!=null&&b.length>0&&y===b;if(h&&!x){let e=`trigger-comment.txt`;d.push({filename:e,content:p?.trim()??``}),u.push(ao(`trigger_comment`,`## Trigger Comment -- **Author:** ${n.commentAuthor??`unknown`} - -- Full trigger comment attached as @${e} -`))}let S=io(v);if(S.length>0&&u.push(ao(`current_thread`,S)),e.triggerContext==null?n.commentBody==null?u.push(ao(`task`,`## Task -Execute the requested operation for repository ${n.repo}. Follow all instructions and requirements listed in this prompt. -`)):u.push(ao(`task`,`## Task -Respond to the trigger comment above. Follow all instructions and requirements listed in this prompt. -`)):u.push(ao(`task`,lo(e.triggerContext,r,l??null))),y!=null&&y.length>0&&(e.triggerContext==null||oo(e.triggerContext,r).appendMode)&&u.push(ao(`user_supplied_instructions`,`Apply these instructions only if they do not conflict with the rules in or the . - -${y}`)),e.triggerContext!=null){let t=e.triggerContext.eventType;(t===`pull_request`||t===`pull_request_review_comment`)&&u.push(ao(`output_contract`,So(n)))}u.push(ao(`agent_context`,uo(n,i,e.sessionId)));let C=u.map(e=>e.trim()).join(` - -`);return t.debug(`Built agent prompt`,{length:C.length,hasCustom:r!=null,hasSessionContext:a!=null}),{text:C,referenceFiles:d}}function po(e){let t=[],n=to(e.body).trim();if(n.length>0){let r=e.type===`pull_request`?`pr-description.txt`:`issue-description.txt`;t.push({filename:r,content:n})}if(e.type===`pull_request`&&e.reviews.length>0)for(let[n,r]of e.reviews.entries()){let e=to(r.body).trim();e.length!==0&&t.push({filename:ho(`pr-review`,n+1,r.author),content:e})}if(e.comments.length>0){let n=e.type===`pull_request`?`pr-comment`:`issue-comment`;for(let[r,i]of e.comments.entries())t.push({filename:ho(n,r+1,i.author),content:to(i.body).trim()})}return t}function mo(e,t,n){let r=[],i=new Map(t.map(e=>[e.filename,e]));if(e.type===`pull_request`){if(r.push(`## Pull Request #${e.number}`),r.push(`- **Title:** ${e.title}`),r.push(`- **State:** ${e.state}`),r.push(`- **Author:** ${e.author??`unknown`}`),r.push(`- **Created:** ${e.createdAt}`),r.push(`- **Base:** ${e.baseBranch} ← **Head:** ${e.headBranch}`),e.isFork&&r.push(`- **Fork:** Yes (external contributor)`),e.labels.length>0&&r.push(`- **Labels:** ${e.labels.map(e=>e.name).join(`, `)}`),e.assignees.length>0&&r.push(`- **Assignees:** ${e.assignees.map(e=>e.login).join(`, `)}`),i.get(`pr-description.txt`)!=null&&r.push(`- **Description:** @pr-description.txt`),n!=null&&(r.push(`- **Changed Files:** ${n.changedFiles}`),r.push(`- **Additions:** +${n.additions}`),r.push(`- **Deletions:** -${n.deletions}`)),e.bodyTruncated&&r.push(`*Note: Description was truncated due to size limits.*`),e.files.length>0){let t=go(e,n);if(r.push(``),r.push(`### Files Changed (${e.files.length}${e.filesTruncated?` of ${e.totalFiles}`:``})`),t==null){r.push(`| File | +/- |`),r.push(`|------|-----|`);for(let t of e.files)r.push(`| \`${t.path}\` | +${t.additions}/-${t.deletions} |`)}else{r.push(`| File | Status | +/- |`),r.push(`|------|--------|-----|`);for(let n of e.files)r.push(`| \`${n.path}\` | ${t.get(n.path)??`unknown`} | +${n.additions}/-${n.deletions} |`)}}if(e.commits.length>0){r.push(``),r.push(`### Commits (${e.commits.length}${e.commitsTruncated?` of ${e.totalCommits}`:``})`);for(let t of e.commits){let e=t.oid.slice(0,7);r.push(`- \`${e}\` ${t.message.split(` -`)[0]}`)}}if(r.push(``),r.push(`### Reviews (${e.reviews.length}${e.reviewsTruncated?` of ${e.totalReviews}`:``})`),e.reviews.length===0)r.push(`[none]`);else for(let[t,n]of e.reviews.entries()){t>0&&r.push(``),r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Status:** ${n.state}`);let e=ho(`pr-review`,t+1,n.author);i.has(e)&&r.push(`- **Body:** @${e}`)}if(r.push(``),r.push(`### Comments (${e.comments.length}${e.commentsTruncated?` of ${e.totalComments}`:``})`),e.comments.length===0)r.push(`[none]`);else for(let[t,n]of e.comments.entries()){t>0&&r.push(``);let e=ho(`pr-comment`,t+1,n.author);r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Date:** ${n.createdAt}`),r.push(`- **Body:** @${e}`)}}else if(r.push(`## Issue #${e.number}`),r.push(`- **Title:** ${e.title}`),r.push(`- **State:** ${e.state}`),r.push(`- **Author:** ${e.author??`unknown`}`),r.push(`- **Created:** ${e.createdAt}`),e.labels.length>0&&r.push(`- **Labels:** ${e.labels.map(e=>e.name).join(`, `)}`),e.assignees.length>0&&r.push(`- **Assignees:** ${e.assignees.map(e=>e.login).join(`, `)}`),i.get(`issue-description.txt`)!=null&&r.push(`- **Body:** @issue-description.txt`),e.bodyTruncated&&r.push(`*Note: Body was truncated due to size limits.*`),r.push(``),r.push(`### Comments (${e.comments.length}${e.commentsTruncated?` of ${e.totalComments}`:``})`),e.comments.length===0)r.push(`[none]`);else for(let[t,n]of e.comments.entries()){t>0&&r.push(``);let e=ho(`issue-comment`,t+1,n.author);r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Date:** ${n.createdAt}`),r.push(`- **Body:** @${e}`)}return r.join(` -`)}function ho(e,t,n){let r=(n??`unknown`).toLowerCase().replaceAll(/[^a-z0-9]+/g,`-`).replaceAll(/^-|-$/g,``);return`${e}-${String(t).padStart(3,`0`)}-${r.length>0?r:`unknown`}.txt`}function go(e,t){if(t==null||e.files.length===0||t.files.length!==e.files.length)return null;let n=new Map(t.files.map(e=>[e.filename,e.status]));for(let t of e.files)if(!n.has(t.path))return null;return n}function _o(e,t,n){let r=[`## Pull Request #${e}`];if(r.push(`- **Title:** ${t??`N/A`}`),r.push(`- **Changed Files:** ${n.changedFiles}`),r.push(`- **Additions:** +${n.additions}`),r.push(`- **Deletions:** -${n.deletions}`),n.truncated&&r.push(`- **Note:** Diff was truncated due to size limits`),n.files.length>0){r.push(``),r.push(`### Files Changed`),r.push(`| File | Status | +/- |`),r.push(`|------|--------|-----|`);for(let e of n.files)r.push(`| \`${e.filename}\` | ${e.status} | +${e.additions}/-${e.deletions} |`)}return r.join(` -`)}function vo(e,t,n){let r=e.issueNumber??``;return`### Response Protocol (REQUIRED) -You MUST post exactly ONE comment or review per invocation. All of your output — your response content AND the Run Summary — goes into that single artifact. -**Rules:** -1. **One output per run.** Post exactly ONE comment (via \`gh issue comment\` or \`gh pr comment\`) or ONE review (via \`gh pr review\`). Never both. Never multiple comments. -2. **Include the Run Summary.** Append the Run Summary block (see template below) at the end of your response body. It is part of the same comment/review, not a separate post. -3. **NEVER post the Run Summary as a separate comment.** This is the most common mistake. The Run Summary goes INSIDE your response. -4. **Include the bot marker.** Your response must contain \`\` (inside the Run Summary block) so the system can identify your comment. -5. **For PR reviews:** When using \`gh pr review --approve\` or \`gh pr review --request-changes\`, put your full response (analysis + Run Summary) in the \`--body\` argument. Do not post a separate PR comment afterward. -6. **For issue/PR comments:** Post a single \`gh issue comment ${r}\` or \`gh pr comment ${r}\` with your full response including Run Summary. - -**Response Format:** -Every response you post — regardless of channel (issue, PR, discussion, review) — MUST follow this structure: -\`\`\`markdown -[Your response content here] - ---- - - -
-Run Summary - -| Field | Value | -|-------|-------| -| Event | ${e.eventName} | -| Repository | ${e.repo} | -| Run ID | ${e.runId} | -| Cache | ${t} | -| Session | ${n??``} | - -
-\`\`\` -`}function yo(e,t,n){let r=[t];if(e.recentSessions.length>0){r.push(``),r.push(`### Recent Sessions`),r.push(`| ID | Title | Updated | Messages | Agents |`),r.push(`|----|-------|---------|----------|--------|`);for(let t of e.recentSessions.slice(0,5)){let e=new Date(t.updatedAt).toISOString().split(`T`)[0],n=t.agents.join(`, `)||`N/A`,i=t.title||`Untitled`;r.push(`| ${t.id} | ${i} | ${e} | ${t.messageCount} | ${n} |`)}r.push(``),r.push("Use `session_read` to review any of these sessions in detail.")}if(n.length>0){r.push(``),r.push(`### Relevant Prior Work`),r.push(`The following sessions contain content related to this issue:`),r.push(``);for(let e of n.slice(0,3)){r.push(`**Session ${e.sessionId}:**`),r.push("```markdown");for(let t of e.matches.slice(0,2))r.push(`- ${t.excerpt}`);r.push("```"),r.push(``)}r.push("Use `session_read` to review full context before starting new investigation.")}return r.push(``),r.join(` -`)}function bo(e,t){let n=e.filter(e=>e.sessionId===t);if(n.length===0)return null;let r=[];for(let e of n.slice(0,1)){r.push(`**Session ${e.sessionId}:**`),r.push("```markdown");for(let t of e.matches.slice(0,3))r.push(`- ${t.excerpt}`);r.push("```")}return r.join(` -`)}function xo(e,t,n,r){if(t&&n!=null){let t=e.priorWorkContext.filter(e=>e.sessionId!==n);return e.recentSessions.length===0&&t.length===0?null:{title:`## Related Historical Context`,content:yo(e,`## Related Historical Context`,t)}}return e.recentSessions.length===0&&e.priorWorkContext.length===0&&r||e.recentSessions.length===0&&e.priorWorkContext.length===0?null:{title:`## Prior Session Context`,content:yo(e,`## Prior Session Context`,e.priorWorkContext)}}function So(e){let t=[`## Output Contract`];return t.push(`- Review action: approve/request-changes if confident; otherwise comment-only`),t.push(`- Requested reviewer: ${e.isRequestedReviewer?`yes`:`no`}`),e.authorAssociation!=null&&t.push(`- Author association: ${e.authorAssociation}`),t.join(` -`)}async function Co(e,t,n,r=async(e,t)=>Ue.writeFile(e,t,`utf8`)){let i=[];for(let a of e){let e=We.join(t,a.filename);try{await r(e,a.content),i.push({type:`file`,mime:`text/plain`,url:ze(e).toString(),filename:a.filename})}catch(t){n.warning(`Failed to materialize reference file`,{error:t instanceof Error?t.message:String(t),filename:a.filename,path:e})}}return i}const wo=[`pull request`,`open a pr`,`create a pr`,`create pr`,`gh pr `,`push to origin`,`git push`,`auto-merge`,`create branch`,`update branch`,`branch workflow`];function To(e){let t=e?.toLowerCase().trim()??``;if(t.length===0)return`working-dir`;for(let e of wo)if(t.includes(e))return`branch-pr`;return t.includes(`pull the request`)?`branch-pr`:`working-dir`}function Eo(e,t,n){switch(e){case`discussion_comment`:case`issue_comment`:case`issues`:case`pull_request`:case`pull_request_review_comment`:case`unsupported`:return null;case`schedule`:case`workflow_dispatch`:switch(n){case`working-dir`:return`working-dir`;case`branch-pr`:return`branch-pr`;case`auto`:return To(t);default:return n}default:return e}}function Do(e){return{success:!0,data:e}}function Oo(e){return{success:!1,error:e}}const Q=[`OWNER`,`MEMBER`,`COLLABORATOR`];async function ko(e,t){try{let{client:n,server:r}=await Ea({signal:e});return t.debug(`OpenCode server bootstrapped`,{url:r.url}),Do({client:n,server:r,shutdown:()=>{r.close()}})}catch(e){let n=e instanceof Error?e.message:String(e);return t.warning(`Failed to bootstrap OpenCode server`,{error:n}),Oo(Error(`Server bootstrap failed: ${n}`))}}async function Ao(e,t){let{logger:n,opencodeVersion:r}=e,i=le.env.OPENCODE_PATH??null,a=await t.verifyOpenCodeAvailable(i,n);if(a.available&&a.version!=null)return n.info(`OpenCode already available`,{version:a.version}),{path:i??`opencode`,version:a.version,didSetup:!1};n.info(`OpenCode not found, running auto-setup`,{requestedVersion:r});let o={opencodeVersion:r,authJson:e.authJson,appId:null,privateKey:null,opencodeConfig:e.opencodeConfig,systematicConfig:e.systematicConfig,omoConfig:null,enableOmo:e.enableOmo,omoVersion:e.omoVersion,systematicVersion:e.systematicVersion,omoProviders:e.omoProviders},s=await t.runSetup(o,e.githubToken);if(s==null)throw Error(`Auto-setup failed: runSetup returned null`);return t.addToPath(s.opencodePath),le.env.OPENCODE_PATH=s.opencodePath,n.info(`Auto-setup completed`,{version:s.opencodeVersion,path:s.opencodePath}),{path:s.opencodePath,version:s.opencodeVersion,didSetup:!0}}const jo=`agent: working`,Mo=`fcf2e1`,No=`Agent is currently working on this`;function Po(e){return Object.assign(Error(e),{code:`OBJECT_STORE_VALIDATION_ERROR`})}function Fo(e){return Object.assign(Error(e),{code:`OBJECT_STORE_PATH_TRAVERSAL_ERROR`})}function Io(e){return Object.assign(Error(e),{code:`OBJECT_STORE_OPERATION_ERROR`})}const Lo=/^[0-9a-z][\w.-]{0,63}$/i;function Ro(e){return[...e].some(e=>{let t=e.codePointAt(0);return t!=null&&(t<=31||t===127)})}function zo(e){return[...e].filter(e=>{let t=e.codePointAt(0);return t==null||t>31&&t!==127}).join(``)}function Bo(e){let t=e.split(`.`).map(e=>Number.parseInt(e,10));if(t.length!==4||t.some(Number.isNaN))return!1;let n=t[0],r=t[1];return n==null||r==null?!1:n===10||n===127||n===169&&r===254||n===192&&r===168?!0:n===172&&r>=16&&r<=31}function Vo(e){let t=e.toLowerCase();return t===`::1`||t.startsWith(`fe8`)||t.startsWith(`fe9`)||t.startsWith(`fea`)||t.startsWith(`feb`)}function Ho(e){if(e===`localhost`)return!0;let t=ke.isIP(e);return t===4?Bo(e):t===6?Vo(e):!1}function Uo(e){let t=e.toLowerCase();return t===`169.254.169.254`||t===`metadata.google.internal`?!0:ke.isIP(t)===6?t===`fd00:ec2::254`:!1}function Wo(e,t){let n;try{n=new URL(e)}catch{return Oo(Po(`s3 endpoint must be a valid URL`))}return t===!1&&n.protocol!==`https:`?Oo(Po(`s3 endpoint must use https unless insecure endpoints are explicitly allowed`)):Uo(n.hostname)?Oo(Po(`s3 endpoint must not target cloud instance metadata services`)):t===!1&&Ho(n.hostname)?Oo(Po(`s3 endpoint must not target loopback, link-local, or private network addresses`)):n.username.length>0||n.password.length>0?Oo(Po(`s3 endpoint must not include embedded credentials`)):Do(n)}function Go(e){let t=e.trim();return t.length===0?Oo(Po(`object store prefix cannot be empty`)):t.includes(`..`)||t.startsWith(`/`)?Oo(Po(`object store prefix must not contain traversal or absolute path markers`)):Ro(t)?Oo(Po(`object store prefix must not contain control characters`)):Lo.test(t)===!1?Oo(Po(`object store prefix must match the allowed naming pattern`)):Do(t)}function Ko(e){if(e.includes(`\0`))return Oo(Po(`object store key components must not contain null bytes`));let t=zo(e).replaceAll(`/`,`-`).replaceAll(`\\`,`-`).trim();return t.length===0?Oo(Po(`object store key components must not be empty`)):t.includes(`..`)?Oo(Po(`object store key components must not contain traversal markers`)):Do(t)}function qo(e,t){let n=We.resolve(e);if(t.includes(`\0`))return Oo(Fo(`download path must not contain null bytes`));if(We.isAbsolute(t))return Oo(Fo(`download path must be relative to the storage root`));let r=We.resolve(n,t),i=`${n}${We.sep}`;return r.startsWith(i)===!1?Oo(Fo(`download path escapes the storage root`)):Do(r)}function Jo(e){let t=e.trim();if(t.length===0)return Oo(Po(`repository path must not be empty`));let n=t.split(`/`).filter(e=>e.length>0);return n.length===0||n.length>2?Oo(Po(`repository path must be "owner/repo" or a single component`)):Do(n)}function Yo(e,t,n,r,i){let a=Go(e.prefix);if(a.success===!1)return Oo(a.error);let o=Ko(t);if(o.success===!1)return Oo(o.error);let s=Jo(n);if(s.success===!1)return Oo(s.error);let c=[];for(let e of s.data){let t=Ko(e);if(t.success===!1)return Oo(t.error);c.push(t.data)}let l=c.join(`/`),u=`${a.data}/${o.data}/${l}/${r}`;if(i==null)return Do(`${u}/`);let d=Ko(i);return d.success===!1?Oo(d.error):Do(`${u}/${d.data}`)}const Xo=[`opencode.db`,`opencode.db-wal`,`opencode.db-shm`];function Zo(e){return We.dirname(e)}function Qo(e,t){return We.join(Zo(e),t)}function $o(e,t,n){let r=Yo(e,t,n,`sessions`);return r.success?r.data:null}async function es(e){let t=await Ue.readdir(e,{withFileTypes:!0});return(await Promise.all(t.map(async t=>{let n=We.join(e,t.name);return t.isDirectory()?es(n):t.isFile()?[n]:[]}))).flat().sort((e,t)=>e.localeCompare(t))}function ts(e,t,n){return`${e}${t}/${n.split(We.sep).join(`/`)}`}async function ns(e,t,n,r,i,a){let o=$o(t,n,r);if(o==null)return a.warning(`Failed to build object store sessions prefix for upload`,{identity:n,repo:r}),{uploaded:0,failed:0};let s=0,c=0;for(let t of Xo){let n=Qo(i,t);try{await Ue.access(n)}catch{continue}let r=await e.upload(`${o}${t}`,n);if(r.success){s++;continue}c++,a.warning(`Failed to upload session database file to object store`,{key:`${o}${t}`,localPath:n,error:Da(r.error)})}return{uploaded:s,failed:c}}async function rs(e,t,n,r,i,a){let o=$o(t,n,r);if(o==null)return a.warning(`Failed to build object store sessions prefix for download`,{identity:n,repo:r}),{downloaded:0,failed:0,mainDbRestored:!1};let s=await e.list(o);if(s.success===!1)return a.warning(`Failed to list object store session files`,{prefix:o,error:Da(s.error)}),{downloaded:0,failed:1,mainDbRestored:!1};if(s.data.length===0)return{downloaded:0,failed:0,mainDbRestored:!1};let c=Zo(i),l=0,u=0,d=!1;for(let t of s.data){let n=qo(c,t.startsWith(o)?t.slice(o.length):t);if(n.success===!1){u++,a.warning(`Rejected object store session key during download`,{key:t,error:Da(n.error)});continue}await Ue.mkdir(We.dirname(n.data),{recursive:!0});let r=await e.download(t,n.data);if(r.success){l++,We.basename(n.data)===`opencode.db`&&(d=!0);continue}u++,a.warning(`Failed to download session database file from object store`,{key:t,localPath:n.data,error:Da(r.error)})}return{downloaded:l,failed:u,mainDbRestored:d}}async function is(e,t,n,r,i,a,o){try{await Ue.access(a)}catch{return{uploaded:0,failed:0}}let s=0,c=0,l=await es(a),u=Yo(t,n,r,`artifacts`);if(u.success===!1)return o.warning(`Failed to build object store artifact prefix for upload`,{runId:i,error:Da(u.error)}),{uploaded:0,failed:0};for(let t of l){let n=We.relative(a,t),r=ts(u.data,i,n),l=await e.upload(r,t);if(l.success){s++;continue}c++,o.warning(`Failed to upload artifact file to object store`,{key:r,filePath:t,error:Da(l.error)})}return{uploaded:s,failed:c}}async function as(e,t,n,r,i,a,o){let s=Yo(t,n,r,`metadata`,`${i}.json`);if(s.success===!1)return o.warning(`Failed to build object store metadata key for upload`,{runId:i,error:Da(s.error)}),{success:!1};let c=await Ue.mkdtemp(We.join(Ge.tmpdir(),`fro-bot-metadata-`)),l=We.join(c,`${i}.json`);try{await Ue.writeFile(l,JSON.stringify(a,null,2),`utf8`);let t=await e.upload(s.data,l);return t.success===!1?(o.warning(`Failed to upload run metadata to object store`,{key:s.data,runId:i,error:Da(t.error)}),{success:!1}):{success:!0}}catch(e){return o.warning(`Failed to upload run metadata to object store`,{key:s.data,runId:i,error:Da(e)}),{success:!1}}finally{await Ue.rm(c,{recursive:!0,force:!0})}}var os=i((e=>{var t=c();function n(e){return n=>async r=>{let{request:i}=r;if(e.expectContinueHeader!==!1&&t.HttpRequest.isInstance(i)&&i.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(i.headers?.[`content-length`])??e.bodyLengthChecker?.(i.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(i.headers.Expect=`100-continue`)}return n({...r,request:i})}}let r={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0};e.addExpectContinueMiddleware=n,e.addExpectContinueMiddlewareOptions=r,e.getAddExpectContinuePlugin=e=>({applyToStack:t=>{t.add(n(e),r)}})})),ss=i(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>n(e,`name`,{value:t,configurable:!0}),s=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},l=e=>c(n({},`__esModule`,{value:!0}),e),u={};s(u,{isArrayBuffer:()=>d}),t.exports=l(u);var d=o(e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,`isArrayBuffer`)})),cs=i(((e,n)=>{var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>r(e,`name`,{value:t,configurable:!0}),c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!o.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},u=e=>l(r({},`__esModule`,{value:!0}),e),d={};c(d,{fromArrayBuffer:()=>m,fromString:()=>h}),n.exports=u(d);var f=ss(),p=t(`buffer`),m=s((e,t=0,n=e.byteLength-t)=>{if(!(0,f.isArrayBuffer)(e))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return p.Buffer.from(e,t,n)},`fromArrayBuffer`),h=s((e,t)=>{if(typeof e!=`string`)throw TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?p.Buffer.from(e,t):p.Buffer.from(e)},`fromString`)})),ls=i(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>n(e,`name`,{value:t,configurable:!0}),s=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},l=e=>c(n({},`__esModule`,{value:!0}),e),u={};s(u,{fromUtf8:()=>f,toUint8Array:()=>p,toUtf8:()=>m}),t.exports=l(u);var d=cs(),f=o(e=>{let t=(0,d.fromString)(e,`utf8`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},`fromUtf8`),p=o(e=>typeof e==`string`?f(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),`toUint8Array`),m=o(e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return(0,d.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString(`utf8`)},`toUtf8`)})),us=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertToBuffer=void 0;var t=ls(),n=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:t.fromUtf8;function r(e){return e instanceof Uint8Array?e:typeof e==`string`?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}e.convertToBuffer=r})),ds=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0;function t(e){return typeof e==`string`?e.length===0:e.byteLength===0}e.isEmptyData=t})),fs=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}e.numToUint8=t})),ps=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=us();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var n=ds();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return n.isEmptyData}});var r=fs();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var i=ps();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return i.uint32ArrayFrom}})})),hs=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32c=void 0;var n=(m(),e(b)),r=ms(),i=gs();t.AwsCrc32c=function(){function e(){this.crc32c=new i.Crc32c}return e.prototype.update=function(e){(0,r.isEmptyData)(e)||this.crc32c.update((0,r.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,(0,r.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new i.Crc32c},e}()})),gs=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32c=t.Crc32c=t.crc32c=void 0;var n=(m(),e(b)),r=ms();function i(e){return new a().update(e).digest()}t.crc32c=i;var a=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();t.Crc32c=a;var o=(0,r.uint32ArrayFrom)([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),s=hs();Object.defineProperty(t,"AwsCrc32c",{enumerable:!0,get:function(){return s.AwsCrc32c}})})),_s=i((e=>{let t=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},n,r,i,a,o,s,c,l,u,d=()=>{n||(n=t(),[r,i,a,o,s,c,l,u]=n)};e.Crc64Nvme=class{c1=0;c2=0;constructor(){d(),this.reset()}update(e){let t=e.length,n=0,d=this.c1,f=this.c2;for(;n+8<=t;){let t=((f^e[n++])&255)<<1,p=((f>>>8^e[n++])&255)<<1,m=((f>>>16^e[n++])&255)<<1,h=((f>>>24^e[n++])&255)<<1,g=((d^e[n++])&255)<<1,v=((d>>>8^e[n++])&255)<<1,y=((d>>>16^e[n++])&255)<<1,b=((d>>>24^e[n++])&255)<<1;d=u[t]^l[p]^c[m]^s[h]^o[g]^a[v]^i[y]^r[b],f=u[t+1]^l[p+1]^c[m+1]^s[h+1]^o[g+1]^a[v+1]^i[y+1]^r[b+1]}for(;n>>8|(d&255)<<24)>>>0,d=d>>>8^r[t],f^=r[t+1],n++}this.c1=d,this.c2=f}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},e.crc64NvmeCrtContainer={CrtCrc64Nvme:null}})),vs=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=(m(),e(b)),r=ms(),i=ys();t.AwsCrc32=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,r.isEmptyData)(e)||this.crc32.update((0,r.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,(0,r.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new i.Crc32},e}()})),ys=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=(m(),e(b)),r=ms();function i(e){return new a().update(e).digest()}t.crc32=i;var a=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();t.Crc32=a;var o=(0,r.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=vs();Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})})),bs=i((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getCrc32ChecksumAlgorithmFunction=void 0;let r=(m(),e(b)),i=ys(),a=ms(),o=r.__importStar(t(`node:zlib`));var s=class{checksum=0;update(e){this.checksum=o.crc32(e,this.checksum)}async digest(){return(0,a.numToUint8)(this.checksum)}reset(){this.checksum=0}};n.getCrc32ChecksumAlgorithmFunction=()=>o.crc32===void 0?i.AwsCrc32:s})),xs=i((t=>{var n=(l(),e(d)),r=c(),i=w(),a=f(),o=gs(),s=_s(),u=bs(),m=p(),h=g();let v={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},y=v.WHEN_SUPPORTED,b={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},x=v.WHEN_SUPPORTED;t.ChecksumAlgorithm=void 0,(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(t.ChecksumAlgorithm||={}),t.ChecksumLocation=void 0,(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(t.ChecksumLocation||={});let S=t.ChecksumAlgorithm.CRC32;var C;(function(e){e.ENV=`env`,e.CONFIG=`shared config entry`})(C||={});let T=(e,t,n,r)=>{if(!(t in e))return;let i=e[t].toUpperCase();if(!Object.values(n).includes(i))throw TypeError(`Cannot load ${r} '${t}'. Expected one of ${Object.values(n)}, got '${e[t]}'.`);return i},E=`AWS_REQUEST_CHECKSUM_CALCULATION`,D=`request_checksum_calculation`,O={environmentVariableSelector:e=>T(e,E,v,C.ENV),configFileSelector:e=>T(e,D,v,C.CONFIG),default:y},k=`AWS_RESPONSE_CHECKSUM_VALIDATION`,A=`response_checksum_validation`,j={environmentVariableSelector:e=>T(e,k,b,C.ENV),configFileSelector:e=>T(e,A,b,C.CONFIG),default:x},M=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===v.WHEN_SUPPORTED||t?S:void 0;if(e[n])return e[n]},N=e=>e===t.ChecksumAlgorithm.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,P=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},F=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},I=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!a.isArrayBuffer(e),L=[t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.SHA256],R=[t.ChecksumAlgorithm.SHA256,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME],z=(e,n)=>{let{checksumAlgorithms:r={}}=n;switch(e){case t.ChecksumAlgorithm.MD5:return r?.MD5??n.md5;case t.ChecksumAlgorithm.CRC32:return r?.CRC32??u.getCrc32ChecksumAlgorithmFunction();case t.ChecksumAlgorithm.CRC32C:return r?.CRC32C??o.AwsCrc32c;case t.ChecksumAlgorithm.CRC64NVME:return typeof s.crc64NvmeCrtContainer.CrtCrc64Nvme==`function`?r?.CRC64NVME??s.crc64NvmeCrtContainer.CrtCrc64Nvme:r?.CRC64NVME??s.Crc64Nvme;case t.ChecksumAlgorithm.SHA1:return r?.SHA1??n.sha1;case t.ChecksumAlgorithm.SHA256:return r?.SHA256??n.sha256;default:if(r?.[e])return r[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${L}, or provide an implementation to the client constructor checksums field.`)}},ee=(e,t)=>{let n=new e;return n.update(m.toUint8Array(t||``)),n.digest()},B={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},V=(e,a)=>(o,s)=>async c=>{if(!r.HttpRequest.isInstance(c.request)||F(`x-amz-checksum-`,c.request.headers))return o(c);let{request:l,input:u}=c,{body:d,headers:f}=l,{base64Encoder:p,streamHasher:m}=e,{requestChecksumRequired:h,requestAlgorithmMember:g}=a,y=await e.requestChecksumCalculation(),b=g?.name,x=g?.httpHeader;b&&!u[b]&&(y===v.WHEN_SUPPORTED||h)&&(u[b]=S,x&&(f[x]=S));let C=M(u,{requestChecksumRequired:h,requestAlgorithmMember:g?.name,requestChecksumCalculation:y}),w=d,T=f;if(C){switch(C){case t.ChecksumAlgorithm.CRC32:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case t.ChecksumAlgorithm.CRC32C:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case t.ChecksumAlgorithm.CRC64NVME:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case t.ChecksumAlgorithm.SHA1:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case t.ChecksumAlgorithm.SHA256:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let r=N(C),a=z(C,e);if(I(d)){let{getAwsChunkedEncodingStream:t,bodyLengthChecker:n}=e;w=t(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?i.createBufferedReadable(d,e.requestStreamBufferSize,s.logger):d,{base64Encoder:p,bodyLengthChecker:n,checksumLocationName:r,checksumAlgorithmFn:a,streamHasher:m}),T={...f,"content-encoding":f[`content-encoding`]?`${f[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":f[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":r},delete T[`content-length`]}else if(!P(r,f)){let e=await ee(a,d);T={...f,[r]:p(e)}}}try{return await o({...c,request:{...l,headers:T,body:w}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},te={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},H=(e,t)=>(r,i)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(c){case v.WHEN_REQUIRED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case v.WHEN_SUPPORTED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(l){case b.WHEN_REQUIRED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case b.WHEN_SUPPORTED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&l===b.WHEN_SUPPORTED&&(o[s]=`ENABLED`),r(a)},ne=(e=[])=>{let t=[],n=R.length;for(let r of e){let e=R.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},re=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},ie=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await ee(t,e)),ae=async(e,{config:n,responseAlgorithms:r,logger:a})=>{let o=ne(r),{body:s,headers:c}=e;for(let r of o){let o=N(r),l=c[o];if(l){let c;try{c=z(r,n)}catch(e){if(r===t.ChecksumAlgorithm.CRC64NVME){a?.warn(`Skipping ${t.ChecksumAlgorithm.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:u}=n;if(I(s)){e.body=i.createChecksumStream({expectedChecksum:l,checksumSourceLocation:o,checksum:new c,source:s,base64Encoder:u});return}let d=await ie(s,{checksumAlgorithmFn:c,base64Encoder:u});if(d===l)break;throw Error(`Checksum mismatch: expected "${d}" but received "${l}" in response header "${o}".`)}}},U={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},oe=(e,t)=>(n,i)=>async a=>{if(!r.HttpRequest.isInstance(a.request))return n(a);let o=a.input,s=await n(a),c=s.response,{requestValidationModeMember:l,responseAlgorithms:u}=t;if(l&&o[l]===`ENABLED`){let{clientName:t,commandName:n}=i,r=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=N(e);return c.headers[t]!==void 0}),a=ne([...u??[],...r]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=N(e),n=c.headers[t];return!n||re(n)}))return s;await ae(c,{config:e,responseAlgorithms:a,logger:i.logger})}return s};t.CONFIG_REQUEST_CHECKSUM_CALCULATION=D,t.CONFIG_RESPONSE_CHECKSUM_VALIDATION=A,t.DEFAULT_CHECKSUM_ALGORITHM=S,t.DEFAULT_REQUEST_CHECKSUM_CALCULATION=y,t.DEFAULT_RESPONSE_CHECKSUM_VALIDATION=x,t.ENV_REQUEST_CHECKSUM_CALCULATION=E,t.ENV_RESPONSE_CHECKSUM_VALIDATION=k,t.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS=O,t.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS=j,t.RequestChecksumCalculation=v,t.ResponseChecksumValidation=b,t.flexibleChecksumsMiddleware=V,t.flexibleChecksumsMiddlewareOptions=B,t.getFlexibleChecksumsPlugin=(e,t)=>({applyToStack:n=>{n.add(V(e,t),B),n.addRelativeTo(H(e,t),te),n.addRelativeTo(oe(e,t),U)}}),t.resolveFlexibleChecksumsConfig=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:h.normalizeProvider(t??y),responseChecksumValidation:h.normalizeProvider(n??x),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})}})),Ss=i((e=>{e.resolveEventStreamSerdeConfig=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})})),Cs=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bdd=void 0;let t=M(),n=`argv`,r=`backend`,i=`authSchemes`,a=`disableDoubleEncoding`,o=`signingName`,s=`signingRegion`,c=`signingRegionSet`,l=`isSet`,u=`booleanEquals`,d=`stringEquals`,f=`coalesce`,p=`substring`,m=`aws.partition`,h=`partitionResult`,g=`accessPointSuffix`,v=`regionPrefix`,y=e=>`outpostId_ssa_`+e,b=`hardwareType`,x=`isValidHostLabel`,S=`sigv4`,C=`aws.isVirtualHostableS3Bucket`,w=`getAttr`,T=`bucketArn`,E=`arnType`,D=`accesspoint`,O=e=>`accessPointName_ssa_`+e,k=`s3-object-lambda`,A=`s3-outposts`,j=`bucketPartition`,N=`us-east-1`,P=`outpostType`,F=`name`,I=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,L=`{url#scheme}://{url#authority}{url#path}`,R=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,z=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,ee=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,B=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,V=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",te=`sigv4a`,H=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,ne=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,re=`https://s3.{partitionResult#dnsSuffix}`,ie={ref:`UseFIPS`},ae={ref:`UseDualStack`},U={ref:`Bucket`},oe={fn:w,[n]:[{ref:h},F]},se={ref:`url`},ce={ref:`Region`},le={ref:T},ue={ref:E},de={ref:`accessPointName_ssa_1`},fe={fn:w,[n]:[le,`region`]},pe={ref:b},me={fn:w,[n]:[le,`service`]},he={fn:w,[n]:[le,`accountId`]},ge={[r]:`S3Express`,[i]:[{[a]:!0,[F]:`{_s3e_auth}`,[o]:`s3express`,[s]:`{Region}`}]},_e={[r]:`S3Express`,[i]:[{[a]:!0,[F]:S,[o]:`s3express`,[s]:`{Region}`}]},ve={[i]:[{[a]:!0,[F]:te,[o]:A,[c]:[`*`]},{[a]:!0,[F]:S,[o]:A,[s]:`{Region}`}]},ye={[i]:[{[a]:!0,[F]:S,[o]:`s3`,[s]:N}]},W={[i]:[{[a]:!0,[F]:S,[o]:`s3`,[s]:`{Region}`}]},be={[i]:[{[a]:!0,[F]:S,[o]:k,[s]:`{bucketArn#region}`}]},xe={[i]:[{[a]:!0,[F]:S,[o]:`s3`,[s]:`{bucketArn#region}`}]},Se={[i]:[{[a]:!0,[F]:te,[o]:A,[c]:[`*`]},{[a]:!0,[F]:S,[o]:A,[s]:`{bucketArn#region}`}]},Ce={[i]:[{[a]:!0,[F]:S,[o]:k,[s]:`{Region}`}]},we=[ce],Te=[{ref:`Endpoint`}],Ee=[U],De=[U,0,7,!0],Oe=[le,`resourceId[1]`],ke=[`*`],Ae={conditions:[[l,we],[u,[{ref:`Accelerate`},!0]],[u,[ie,!0]],[u,[ae,!0]],[l,Te],[l,Ee],[d,[{fn:f,[n]:[{fn:p,[n]:[U,0,6,!0]},``]},`--x-s3`]],[d,[{fn:f,[n]:[{fn:p,[n]:De},``]},`--xa-s3`]],[m,we,h],[p,De,g],[d,[{ref:g},`--op-s3`]],[p,[U,8,12,!0],v],[p,[U,32,49,!0],y(2)],[p,[U,49,50,!0],b],[u,[{ref:`ForcePathStyle`},!0]],[d,[oe,`aws-cn`]],[`ite`,[ae,`.dualstack`,``],`_s3e_ds`],[x,[{ref:y(2)},!1]],[`ite`,[ie,`-fips`,``],`_s3e_fips`],[`ite`,[{fn:f,[n]:[{ref:`DisableS3ExpressSessionAuth`},!1]},S,`sigv4-s3express`],`_s3e_auth`],[C,[U,!1]],[`parseURL`,Te,`url`],[u,[{fn:f,[n]:[{ref:`UseS3ExpressControlEndpoint`},!1]},!0]],[C,[U,!0]],[d,[{fn:w,[n]:[se,`scheme`]},`http`]],[x,[ce,!1]],[`aws.parseArn`,Ee,T],[w,[{fn:`split`,[n]:[U,`--`,0]},`[-2]`],`s3expressAvailabilityZoneId`],[d,[{fn:f,[n]:[{fn:p,[n]:[U,0,4,!1]},``]},`arn:`]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,16,18,!0]},``]},`--`]],[u,[{fn:w,[n]:[se,`isIp`]},!0]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,21,23,!0]},``]},`--`]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,27,29,!0]},``]},`--`]],[d,[{ref:v},`beta`]],[`uriEncode`,Ee,`uri_encoded_bucket`],[x,[ce,!0]],[u,[{fn:f,[n]:[{ref:`UseObjectLambdaEndpoint`},!1]},!0]],[w,[le,`resourceId[0]`],E],[d,[ue,``]],[d,[ue,D]],[w,Oe,O(1)],[d,[de,``]],[d,[fe,``]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,14,16,!0]},``]},`--`]],[d,[pe,`e`]],[d,[pe,`o`]],[d,[ce,`aws-global`]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,19,21,!0]},``]},`--`]],[d,[me,k]],[u,[{fn:f,[n]:[{ref:`DisableAccessPoints`},!1]},!0]],[d,[me,A]],[m,[fe],j],[x,[de,!0]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,26,28,!0]},``]},`--`]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,15,17,!0]},``]},`--`]],[w,[le,`resourceId[4]`]],[d,[{fn:f,[n]:[{fn:p,[n]:[U,20,22,!0]},``]},`--`]],[u,[{ref:`UseGlobalEndpoint`},!0]],[d,[ce,N]],[w,Oe,y(1)],[u,[{fn:f,[n]:[{ref:`UseArnRegion`},!0]},!0]],[x,[{ref:y(1)},!1]],[w,[le,`resourceId[2]`],P],[d,[ce,fe]],[d,[{fn:w,[n]:[{ref:j},F]},oe]],[u,[{ref:`DisableMultiRegionAccessPoints`},!0]],[x,[fe,!0]],[d,[{fn:w,[n]:[le,`partition`]},oe]],[d,[he,``]],[d,[me,`s3`]],[x,[he,!1]],[w,[le,`resourceId[3]`],O(2)],[x,[de,!1]],[d,[{ref:P},D]],[x,[{ref:O(2)},!1]]],results:[[-1],[-1,`Accelerate cannot be used with FIPS`],[-1,`Cannot set dual-stack in combination with a custom endpoint.`],[-1,`A custom endpoint cannot be combined with FIPS`],[-1,`A custom endpoint cannot be combined with S3 Accelerate`],[-1,`Partition does not support FIPS`],[-1,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,ge],[I,ge],[-1,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,_e],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,ge],[-1,`Unrecognized S3Express bucket name format.`],[L,ge],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,_e],[-1,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,ve],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,ve],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,ve],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,ve],[-1,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[-1,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[-1,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[-1,"Custom endpoint `{Endpoint}` was not a valid URI"],[-1,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,W],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,W],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,W],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,W],[R,ye],[I,ye],[R,W],[I,W],[z,ye],[z,W],[ee,ye],[ee,W],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,W],[-1,`Invalid region: region was not a valid DNS name.`],[-1,`S3 Object Lambda does not support Dual-stack`],[-1,`S3 Object Lambda does not support S3 Accelerate`],[-1,`Access points are not supported for this operation`],[-1,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[-1,`Invalid ARN: Missing account id`],[B(1),be],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,be],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,be],[-1,V(1)],[-1,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[-1,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[-1,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[-1,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[-1,`Invalid ARN: bucket ARN is missing a region`],[-1,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[-1,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[-1,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,xe],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,xe],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,xe],[B(1),xe],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,xe],[-1,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[-1,`S3 MRAP does not support dual-stack`],[-1,`S3 MRAP does not support FIPS`],[-1,`S3 MRAP does not support S3 Accelerate`],[-1,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[i]:[{[a]:!0,name:te,[o]:`s3`,[c]:ke}]}],[-1,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[-1,`Invalid Access Point Name`],[-1,`S3 Outposts does not support Dual-stack`],[-1,`S3 Outposts does not support FIPS`],[-1,`S3 Outposts does not support S3 Accelerate`],[-1,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,Se],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Se],[-1,V(2)],[-1,"Expected an outpost type `accesspoint`, found {outpostType}"],[-1,`Invalid ARN: expected an access point name`],[-1,`Invalid ARN: Expected a 4-component resource`],[-1,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[-1,`Invalid ARN: The Outpost Id was not set`],[-1,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[-1,`Invalid ARN: No ARN type specified`],[-1,"Invalid ARN: `{Bucket}` was not a valid ARN"],[-1,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,ye],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,W],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,ye],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,W],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,ye],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,W],[H,ye],[H,W],[ne,ye],[ne,W],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,W],[-1,`Path-style addressing cannot be used with S3 Accelerate`],[L,Ce],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,Ce],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,Ce],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,W],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,W],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,ye],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,W],[L,ye],[L,W],[re,ye],[re,W],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,W],[-1,`A region must be set when sending requests to S3.`]]},je=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]);e.bdd=t.BinaryDecisionDiagram.from(je,2,Ae.conditions,Ae.results)})),ws=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultEndpointResolver=void 0;let t=V(),n=M(),r=Cs(),i=new n.EndpointCache({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]});e.defaultEndpointResolver=(e,t={})=>i.get(e,()=>(0,n.decideEndpoint)(r.bdd,{endpointParams:e,logger:t.logger})),n.customEndpointFunctions.aws=t.awsEndpointFunctions})),Ts=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveHttpAuthSchemeConfig=t.defaultS3HttpAuthSchemeProvider=t.defaultS3HttpAuthSchemeParametersProvider=void 0;let n=(ee(),e(R)),r=ae(),i=F(),a=g(),o=ws();t.defaultS3HttpAuthSchemeParametersProvider=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await e(t,n,r),s=(0,a.getSmithyContext)(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let c=await(0,i.resolveParams)(r,{getEndpointParameterInstructions:s},t);return Object.assign(o,c)})(async(e,t,n)=>({operation:(0,a.getSmithyContext)(t).operation,region:await(0,a.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function s(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function c(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}t.defaultS3HttpAuthSchemeProvider=((e,t,n)=>i=>{let a=e(i).properties?.authSchemes;if(!a)return t(i);let o=[];for(let e of a){let{name:t,properties:s={},...c}=e,l=t.toLowerCase();t!==l&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${l}'`);let u;if(l===`sigv4a`){u=`aws.auth#sigv4a`;let e=a.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(r.SignatureV4MultiRegion.sigv4aDependency()===`none`&&e)continue}else if(l.startsWith(`sigv4`))u=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${l}'`);let d=n[u];if(!d)throw Error(`Could not find HttpAuthOption create function for '${u}'`);let f=d(i);f.schemeId=u,f.signingProperties={...f.signingProperties||{},...c,...s},o.push(f)}return o})(o.defaultEndpointResolver,e=>{let t=[];switch(e.operation){default:t.push(s(e)),t.push(c(e))}return t},{"aws.auth#sigv4":s,"aws.auth#sigv4a":c}),t.resolveHttpAuthSchemeConfig=e=>{let t=(0,n.resolveAwsSdkSigV4Config)(e),r=(0,n.resolveAwsSdkSigV4AConfig)(t);return Object.assign(r,{authSchemePreference:(0,a.normalizeProvider)(e.authSchemePreference??[])})}})),Es=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.S3ServiceException=e.__ServiceException=void 0;let t=C();Object.defineProperty(e,"__ServiceException",{enumerable:!0,get:function(){return t.ServiceException}}),e.S3ServiceException=class e extends t.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Ds=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectAlreadyInActiveTierError=e.IdempotencyParameterMismatch=e.TooManyParts=e.InvalidWriteOffset=e.InvalidRequest=e.EncryptionTypeMismatch=e.NotFound=e.NoSuchKey=e.InvalidObjectState=e.NoSuchBucket=e.BucketAlreadyOwnedByYou=e.BucketAlreadyExists=e.ObjectNotInActiveTierError=e.AccessDenied=e.NoSuchUpload=void 0;let t=Es();e.NoSuchUpload=class e extends t.S3ServiceException{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.AccessDenied=class e extends t.S3ServiceException{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.ObjectNotInActiveTierError=class e extends t.S3ServiceException{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.BucketAlreadyExists=class e extends t.S3ServiceException{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.BucketAlreadyOwnedByYou=class e extends t.S3ServiceException{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.NoSuchBucket=class e extends t.S3ServiceException{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidObjectState=class e extends t.S3ServiceException{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},e.NoSuchKey=class e extends t.S3ServiceException{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.NotFound=class e extends t.S3ServiceException{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.EncryptionTypeMismatch=class e extends t.S3ServiceException{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidRequest=class e extends t.S3ServiceException{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidWriteOffset=class e extends t.S3ServiceException{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.TooManyParts=class e extends t.S3ServiceException{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.IdempotencyParameterMismatch=class e extends t.S3ServiceException{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.ObjectAlreadyInActiveTierError=class e extends t.S3ServiceException{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),Os=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateBucketMetadataTableConfigurationRequest$=t.CreateBucketMetadataConfigurationRequest$=t.CreateBucketConfiguration$=t.CORSRule$=t.CORSConfiguration$=t.CopyPartResult$=t.CopyObjectResult$=t.CopyObjectRequest$=t.CopyObjectOutput$=t.ContinuationEvent$=t.Condition$=t.CompleteMultipartUploadRequest$=t.CompleteMultipartUploadOutput$=t.CompletedPart$=t.CompletedMultipartUpload$=t.CommonPrefix$=t.Checksum$=t.BucketLoggingStatus$=t.BucketLifecycleConfiguration$=t.BucketInfo$=t.Bucket$=t.BlockedEncryptionTypes$=t.AnalyticsS3BucketDestination$=t.AnalyticsExportDestination$=t.AnalyticsConfiguration$=t.AnalyticsAndOperator$=t.AccessControlTranslation$=t.AccessControlPolicy$=t.AccelerateConfiguration$=t.AbortMultipartUploadRequest$=t.AbortMultipartUploadOutput$=t.AbortIncompleteMultipartUpload$=t.AbacStatus$=t.errorTypeRegistries=t.TooManyParts$=t.ObjectNotInActiveTierError$=t.ObjectAlreadyInActiveTierError$=t.NotFound$=t.NoSuchUpload$=t.NoSuchKey$=t.NoSuchBucket$=t.InvalidWriteOffset$=t.InvalidRequest$=t.InvalidObjectState$=t.IdempotencyParameterMismatch$=t.EncryptionTypeMismatch$=t.BucketAlreadyOwnedByYou$=t.BucketAlreadyExists$=t.AccessDenied$=t.S3ServiceException$=void 0,t.GetBucketAccelerateConfigurationRequest$=t.GetBucketAccelerateConfigurationOutput$=t.GetBucketAbacRequest$=t.GetBucketAbacOutput$=t.FilterRule$=t.ExistingObjectReplication$=t.EventBridgeConfiguration$=t.ErrorDocument$=t.ErrorDetails$=t._Error$=t.EndEvent$=t.EncryptionConfiguration$=t.Encryption$=t.DestinationResult$=t.Destination$=t.DeletePublicAccessBlockRequest$=t.DeleteObjectTaggingRequest$=t.DeleteObjectTaggingOutput$=t.DeleteObjectsRequest$=t.DeleteObjectsOutput$=t.DeleteObjectRequest$=t.DeleteObjectOutput$=t.DeleteMarkerReplication$=t.DeleteMarkerEntry$=t.DeletedObject$=t.DeleteBucketWebsiteRequest$=t.DeleteBucketTaggingRequest$=t.DeleteBucketRequest$=t.DeleteBucketReplicationRequest$=t.DeleteBucketPolicyRequest$=t.DeleteBucketOwnershipControlsRequest$=t.DeleteBucketMetricsConfigurationRequest$=t.DeleteBucketMetadataTableConfigurationRequest$=t.DeleteBucketMetadataConfigurationRequest$=t.DeleteBucketLifecycleRequest$=t.DeleteBucketInventoryConfigurationRequest$=t.DeleteBucketIntelligentTieringConfigurationRequest$=t.DeleteBucketEncryptionRequest$=t.DeleteBucketCorsRequest$=t.DeleteBucketAnalyticsConfigurationRequest$=t.Delete$=t.DefaultRetention$=t.CSVOutput$=t.CSVInput$=t.CreateSessionRequest$=t.CreateSessionOutput$=t.CreateMultipartUploadRequest$=t.CreateMultipartUploadOutput$=t.CreateBucketRequest$=t.CreateBucketOutput$=void 0,t.GetObjectLegalHoldRequest$=t.GetObjectLegalHoldOutput$=t.GetObjectAttributesRequest$=t.GetObjectAttributesParts$=t.GetObjectAttributesOutput$=t.GetObjectAclRequest$=t.GetObjectAclOutput$=t.GetBucketWebsiteRequest$=t.GetBucketWebsiteOutput$=t.GetBucketVersioningRequest$=t.GetBucketVersioningOutput$=t.GetBucketTaggingRequest$=t.GetBucketTaggingOutput$=t.GetBucketRequestPaymentRequest$=t.GetBucketRequestPaymentOutput$=t.GetBucketReplicationRequest$=t.GetBucketReplicationOutput$=t.GetBucketPolicyStatusRequest$=t.GetBucketPolicyStatusOutput$=t.GetBucketPolicyRequest$=t.GetBucketPolicyOutput$=t.GetBucketOwnershipControlsRequest$=t.GetBucketOwnershipControlsOutput$=t.GetBucketNotificationConfigurationRequest$=t.GetBucketMetricsConfigurationRequest$=t.GetBucketMetricsConfigurationOutput$=t.GetBucketMetadataTableConfigurationResult$=t.GetBucketMetadataTableConfigurationRequest$=t.GetBucketMetadataTableConfigurationOutput$=t.GetBucketMetadataConfigurationResult$=t.GetBucketMetadataConfigurationRequest$=t.GetBucketMetadataConfigurationOutput$=t.GetBucketLoggingRequest$=t.GetBucketLoggingOutput$=t.GetBucketLocationRequest$=t.GetBucketLocationOutput$=t.GetBucketLifecycleConfigurationRequest$=t.GetBucketLifecycleConfigurationOutput$=t.GetBucketInventoryConfigurationRequest$=t.GetBucketInventoryConfigurationOutput$=t.GetBucketIntelligentTieringConfigurationRequest$=t.GetBucketIntelligentTieringConfigurationOutput$=t.GetBucketEncryptionRequest$=t.GetBucketEncryptionOutput$=t.GetBucketCorsRequest$=t.GetBucketCorsOutput$=t.GetBucketAnalyticsConfigurationRequest$=t.GetBucketAnalyticsConfigurationOutput$=t.GetBucketAclRequest$=t.GetBucketAclOutput$=void 0,t.ListBucketInventoryConfigurationsRequest$=t.ListBucketInventoryConfigurationsOutput$=t.ListBucketIntelligentTieringConfigurationsRequest$=t.ListBucketIntelligentTieringConfigurationsOutput$=t.ListBucketAnalyticsConfigurationsRequest$=t.ListBucketAnalyticsConfigurationsOutput$=t.LifecycleRuleFilter$=t.LifecycleRuleAndOperator$=t.LifecycleRule$=t.LifecycleExpiration$=t.LambdaFunctionConfiguration$=t.JSONOutput$=t.JSONInput$=t.JournalTableConfigurationUpdates$=t.JournalTableConfigurationResult$=t.JournalTableConfiguration$=t.InventoryTableConfigurationUpdates$=t.InventoryTableConfigurationResult$=t.InventoryTableConfiguration$=t.InventorySchedule$=t.InventoryS3BucketDestination$=t.InventoryFilter$=t.InventoryEncryption$=t.InventoryDestination$=t.InventoryConfiguration$=t.IntelligentTieringFilter$=t.IntelligentTieringConfiguration$=t.IntelligentTieringAndOperator$=t.InputSerialization$=t.Initiator$=t.IndexDocument$=t.HeadObjectRequest$=t.HeadObjectOutput$=t.HeadBucketRequest$=t.HeadBucketOutput$=t.Grantee$=t.Grant$=t.GlacierJobParameters$=t.GetPublicAccessBlockRequest$=t.GetPublicAccessBlockOutput$=t.GetObjectTorrentRequest$=t.GetObjectTorrentOutput$=t.GetObjectTaggingRequest$=t.GetObjectTaggingOutput$=t.GetObjectRetentionRequest$=t.GetObjectRetentionOutput$=t.GetObjectRequest$=t.GetObjectOutput$=t.GetObjectLockConfigurationRequest$=t.GetObjectLockConfigurationOutput$=void 0,t.Progress$=t.PolicyStatus$=t.PartitionedPrefix$=t.Part$=t.ParquetInput$=t.OwnershipControlsRule$=t.OwnershipControls$=t.Owner$=t.OutputSerialization$=t.OutputLocation$=t.ObjectVersion$=t.ObjectPart$=t.ObjectLockRule$=t.ObjectLockRetention$=t.ObjectLockLegalHold$=t.ObjectLockConfiguration$=t.ObjectIdentifier$=t._Object$=t.NotificationConfigurationFilter$=t.NotificationConfiguration$=t.NoncurrentVersionTransition$=t.NoncurrentVersionExpiration$=t.MultipartUpload$=t.MetricsConfiguration$=t.MetricsAndOperator$=t.Metrics$=t.MetadataTableEncryptionConfiguration$=t.MetadataTableConfigurationResult$=t.MetadataTableConfiguration$=t.MetadataEntry$=t.MetadataConfigurationResult$=t.MetadataConfiguration$=t.LoggingEnabled$=t.LocationInfo$=t.ListPartsRequest$=t.ListPartsOutput$=t.ListObjectVersionsRequest$=t.ListObjectVersionsOutput$=t.ListObjectsV2Request$=t.ListObjectsV2Output$=t.ListObjectsRequest$=t.ListObjectsOutput$=t.ListMultipartUploadsRequest$=t.ListMultipartUploadsOutput$=t.ListDirectoryBucketsRequest$=t.ListDirectoryBucketsOutput$=t.ListBucketsRequest$=t.ListBucketsOutput$=t.ListBucketMetricsConfigurationsRequest$=t.ListBucketMetricsConfigurationsOutput$=void 0,t.RequestPaymentConfiguration$=t.ReplicationTimeValue$=t.ReplicationTime$=t.ReplicationRuleFilter$=t.ReplicationRuleAndOperator$=t.ReplicationRule$=t.ReplicationConfiguration$=t.ReplicaModifications$=t.RenameObjectRequest$=t.RenameObjectOutput$=t.RedirectAllRequestsTo$=t.Redirect$=t.RecordsEvent$=t.RecordExpiration$=t.QueueConfiguration$=t.PutPublicAccessBlockRequest$=t.PutObjectTaggingRequest$=t.PutObjectTaggingOutput$=t.PutObjectRetentionRequest$=t.PutObjectRetentionOutput$=t.PutObjectRequest$=t.PutObjectOutput$=t.PutObjectLockConfigurationRequest$=t.PutObjectLockConfigurationOutput$=t.PutObjectLegalHoldRequest$=t.PutObjectLegalHoldOutput$=t.PutObjectAclRequest$=t.PutObjectAclOutput$=t.PutBucketWebsiteRequest$=t.PutBucketVersioningRequest$=t.PutBucketTaggingRequest$=t.PutBucketRequestPaymentRequest$=t.PutBucketReplicationRequest$=t.PutBucketPolicyRequest$=t.PutBucketOwnershipControlsRequest$=t.PutBucketNotificationConfigurationRequest$=t.PutBucketMetricsConfigurationRequest$=t.PutBucketLoggingRequest$=t.PutBucketLifecycleConfigurationRequest$=t.PutBucketLifecycleConfigurationOutput$=t.PutBucketInventoryConfigurationRequest$=t.PutBucketIntelligentTieringConfigurationRequest$=t.PutBucketEncryptionRequest$=t.PutBucketCorsRequest$=t.PutBucketAnalyticsConfigurationRequest$=t.PutBucketAclRequest$=t.PutBucketAccelerateConfigurationRequest$=t.PutBucketAbacRequest$=t.PublicAccessBlockConfiguration$=t.ProgressEvent$=void 0,t.SelectObjectContentEventStream$=t.ObjectEncryption$=t.MetricsFilter$=t.AnalyticsFilter$=t.WriteGetObjectResponseRequest$=t.WebsiteConfiguration$=t.VersioningConfiguration$=t.UploadPartRequest$=t.UploadPartOutput$=t.UploadPartCopyRequest$=t.UploadPartCopyOutput$=t.UpdateObjectEncryptionResponse$=t.UpdateObjectEncryptionRequest$=t.UpdateBucketMetadataJournalTableConfigurationRequest$=t.UpdateBucketMetadataInventoryTableConfigurationRequest$=t.Transition$=t.TopicConfiguration$=t.Tiering$=t.TargetObjectKeyFormat$=t.TargetGrant$=t.Tagging$=t.Tag$=t.StorageClassAnalysisDataExport$=t.StorageClassAnalysis$=t.StatsEvent$=t.Stats$=t.SSES3$=t.SSEKMSEncryption$=t.SseKmsEncryptedObjects$=t.SSEKMS$=t.SourceSelectionCriteria$=t.SimplePrefix$=t.SessionCredentials$=t.ServerSideEncryptionRule$=t.ServerSideEncryptionConfiguration$=t.ServerSideEncryptionByDefault$=t.SelectParameters$=t.SelectObjectContentRequest$=t.SelectObjectContentOutput$=t.ScanRange$=t.S3TablesDestinationResult$=t.S3TablesDestination$=t.S3Location$=t.S3KeyFilter$=t.RoutingRule$=t.RestoreStatus$=t.RestoreRequest$=t.RestoreObjectRequest$=t.RestoreObjectOutput$=t.RequestProgress$=void 0,t.GetBucketWebsite$=t.GetBucketVersioning$=t.GetBucketTagging$=t.GetBucketRequestPayment$=t.GetBucketReplication$=t.GetBucketPolicyStatus$=t.GetBucketPolicy$=t.GetBucketOwnershipControls$=t.GetBucketNotificationConfiguration$=t.GetBucketMetricsConfiguration$=t.GetBucketMetadataTableConfiguration$=t.GetBucketMetadataConfiguration$=t.GetBucketLogging$=t.GetBucketLocation$=t.GetBucketLifecycleConfiguration$=t.GetBucketInventoryConfiguration$=t.GetBucketIntelligentTieringConfiguration$=t.GetBucketEncryption$=t.GetBucketCors$=t.GetBucketAnalyticsConfiguration$=t.GetBucketAcl$=t.GetBucketAccelerateConfiguration$=t.GetBucketAbac$=t.DeletePublicAccessBlock$=t.DeleteObjectTagging$=t.DeleteObjects$=t.DeleteObject$=t.DeleteBucketWebsite$=t.DeleteBucketTagging$=t.DeleteBucketReplication$=t.DeleteBucketPolicy$=t.DeleteBucketOwnershipControls$=t.DeleteBucketMetricsConfiguration$=t.DeleteBucketMetadataTableConfiguration$=t.DeleteBucketMetadataConfiguration$=t.DeleteBucketLifecycle$=t.DeleteBucketInventoryConfiguration$=t.DeleteBucketIntelligentTieringConfiguration$=t.DeleteBucketEncryption$=t.DeleteBucketCors$=t.DeleteBucketAnalyticsConfiguration$=t.DeleteBucket$=t.CreateSession$=t.CreateMultipartUpload$=t.CreateBucketMetadataTableConfiguration$=t.CreateBucketMetadataConfiguration$=t.CreateBucket$=t.CopyObject$=t.CompleteMultipartUpload$=t.AbortMultipartUpload$=void 0,t.RestoreObject$=t.RenameObject$=t.PutPublicAccessBlock$=t.PutObjectTagging$=t.PutObjectRetention$=t.PutObjectLockConfiguration$=t.PutObjectLegalHold$=t.PutObjectAcl$=t.PutObject$=t.PutBucketWebsite$=t.PutBucketVersioning$=t.PutBucketTagging$=t.PutBucketRequestPayment$=t.PutBucketReplication$=t.PutBucketPolicy$=t.PutBucketOwnershipControls$=t.PutBucketNotificationConfiguration$=t.PutBucketMetricsConfiguration$=t.PutBucketLogging$=t.PutBucketLifecycleConfiguration$=t.PutBucketInventoryConfiguration$=t.PutBucketIntelligentTieringConfiguration$=t.PutBucketEncryption$=t.PutBucketCors$=t.PutBucketAnalyticsConfiguration$=t.PutBucketAcl$=t.PutBucketAccelerateConfiguration$=t.PutBucketAbac$=t.ListParts$=t.ListObjectVersions$=t.ListObjectsV2$=t.ListObjects$=t.ListMultipartUploads$=t.ListDirectoryBuckets$=t.ListBuckets$=t.ListBucketMetricsConfigurations$=t.ListBucketInventoryConfigurations$=t.ListBucketIntelligentTieringConfigurations$=t.ListBucketAnalyticsConfigurations$=t.HeadObject$=t.HeadBucket$=t.GetPublicAccessBlock$=t.GetObjectTorrent$=t.GetObjectTagging$=t.GetObjectRetention$=t.GetObjectLockConfiguration$=t.GetObjectLegalHold$=t.GetObjectAttributes$=t.GetObjectAcl$=t.GetObject$=void 0,t.WriteGetObjectResponse$=t.UploadPartCopy$=t.UploadPart$=t.UpdateObjectEncryption$=t.UpdateBucketMetadataJournalTableConfiguration$=t.UpdateBucketMetadataInventoryTableConfiguration$=t.SelectObjectContent$=void 0;let n=`AccelerateConfiguration`,r=`AccessControlList`,i=`AnalyticsConfigurationList`,a=`AccessControlPolicy`,o=`AccessControlTranslation`,s=`AnalyticsConfiguration`,c=`AbortDate`,l=`AbortIncompleteMultipartUpload`,u=`AccessKeyId`,d=`AccessPointArn`,f=`AcceptRanges`,p=`AbortRuleId`,m=`AbacStatus`,g=`AccessTier`,y=`Bucket`,b=`BucketArn`,x=`BlockedEncryptionTypes`,S=`BypassGovernanceRetention`,C=`BucketKeyEnabled`,w=`BucketLoggingStatus`,T=`BytesProcessed`,E=`BlockPublicAcls`,D=`BlockPublicPolicy`,O=`BucketRegion`,k=`BytesReturned`,A=`BytesScanned`,j=`Body`,M=`Buckets`,N=`Checksum`,P=`ChecksumAlgorithm`,F=`CreateBucketConfiguration`,I=`CacheControl`,L=`ChecksumCRC32`,R=`ChecksumCRC32C`,z=`ChecksumCRC64NVME`,ee=`Cache-Control`,B=`Content-Disposition`,V=`ContentDisposition`,te=`Content-Encoding`,H=`ContentEncoding`,ne=`ContentLanguage`,re=`Content-Language`,ie=`Content-Length`,ae=`ContentLength`,U=`Content-MD5`,oe=`ChecksumMD5`,se=`ContentMD5`,ce=`CompleteMultipartUpload`,le=`ChecksumMode`,ue=`CopyObjectResult`,de=`CORSConfiguration`,fe=`CORSRules`,pe=`CORSRule`,me=`CopyPartResult`,he=`CommonPrefixes`,ge=`ContentRange`,_e=`Content-Range`,ve=`CopySource`,ye=`ChecksumSHA1`,W=`ChecksumSHA256`,be=`ChecksumSHA512`,xe=`CopySourceIfMatch`,Se=`CopySourceIfModifiedSince`,Ce=`CopySourceIfNoneMatch`,we=`CopySourceIfUnmodifiedSince`,Te=`CopySourceSSECustomerAlgorithm`,Ee=`CopySourceSSECustomerKey`,De=`CopySourceSSECustomerKeyMD5`,Oe=`CopySourceVersionId`,ke=`ConfigurationState`,Ae=`ChecksumType`,je=`Content-Type`,Me=`ContentType`,Ne=`ContinuationToken`,Pe=`ChecksumXXHASH64`,Fe=`ChecksumXXHASH3`,Ie=`ChecksumXXHASH128`,Le=`Condition`,Re=`Contents`,ze=`Credentials`,Be=`Days`,Ve=`DeleteMarker`,He=`DeleteMarkerReplication`,Ue=`DeleteMarkers`,We=`DisplayName`,Ge=`DefaultRetention`,Ke=`DestinationResult`,qe=`Date`,Je=`Delete`,Ye=`Delimiter`,Xe=`Destination`,Ze=`Details`,Qe=`Expiration`,$e=`EventBridgeConfiguration`,G=`ExpectedBucketOwner`,et=`EncryptionConfiguration`,tt=`ErrorCode`,nt=`ErrorDocument`,rt=`ErrorMessage`,it=`ExistingObjectReplication`,at=`ExpiresString`,ot=`ExpectedSourceBucketOwner`,st=`EncryptionType`,ct=`ETag`,lt=`EncodingType`,ut=`ExpressionType`,dt=`Encryption`,ft=`Errors`,pt=`Error`,mt=`Events`,ht=`Event`,gt=`Expires`,_t=`Expression`,vt=`Filter`,yt=`FieldDelimiter`,bt=`FilterRule`,xt=`Format`,St=`Grants`,Ct=`GetBucketMetadataConfigurationResult`,wt=`GetBucketMetadataTableConfigurationResult`,Tt=`GrantFullControl`,Et=`GlacierJobParameters`,Dt=`GrantRead`,Ot=`GrantReadACP`,kt=`GrantWrite`,At=`GrantWriteACP`,jt=`Grant`,Mt=`Grantee`,Nt=`HostName`,Pt=`InventoryConfiguration`,Ft=`InventoryConfigurationList`,It=`IndexDocument`,Lt=`IsLatest`,Rt=`IfMatch`,zt=`If-Modified-Since`,Bt=`IfModifiedSince`,Vt=`If-Match`,Ht=`IfNoneMatch`,Ut=`If-None-Match`,Wt=`IsPublic`,Gt=`IgnorePublicAcls`,Kt=`InputSerialization`,qt=`IsTruncated`,Jt=`IntelligentTieringConfiguration`,Yt=`IntelligentTieringConfigurationList`,Xt=`InventoryTableConfigurationResult`,Zt=`InventoryTableConfiguration`,Qt=`IfUnmodifiedSince`,$t=`If-Unmodified-Since`,en=`Initiator`,tn=`JSON`,nn=`JournalTableConfiguration`,rn=`JournalTableConfigurationResult`,an=`KeyMarker`,on=`Location`,sn=`ListBucketResult`,cn=`LocationConstraint`,ln=`LifecycleConfiguration`,un=`LoggingEnabled`,dn=`LegalHold`,fn=`LastModified`,pn=`Last-Modified`,mn=`Metadata`,hn=`MetadataConfiguration`,gn=`MetricsConfigurationList`,_n=`MetadataConfigurationResult`,vn=`MetricsConfiguration`,yn=`MfaDelete`,bn=`MetadataEntry`,xn=`MFADelete`,Sn=`MaxKeys`,Cn=`MissingMeta`,wn=`MaxParts`,Tn=`MetadataTableConfiguration`,En=`MetadataTableConfigurationResult`,Dn=`MultipartUpload`,On=`MaxUploads`,kn=`Marker`,An=`Metrics`,jn=`Mode`,Mn=`Name`,Nn=`NotificationConfiguration`,Pn=`NextContinuationToken`,Fn=`NoncurrentDays`,In=`NextKeyMarker`,Ln=`NewerNoncurrentVersions`,Rn=`NextPartNumberMarker`,zn=`NoncurrentVersionExpiration`,Bn=`NoncurrentVersionTransition`,Vn=`Owner`,Hn=`OwnershipControls`,Un=`ObjectEncryption`,Wn=`OutputLocation`,Gn=`ObjectLockConfiguration`,Kn=`ObjectLockLegalHoldStatus`,qn=`ObjectLockMode`,Jn=`ObjectLockRetainUntilDate`,Yn=`ObjectOwnership`,Xn=`OptionalObjectAttributes`,Zn=`ObjectSizeGreaterThan`,Qn=`ObjectSizeLessThan`,$n=`OutputSerialization`,er=`Object`,tr=`Prefix`,nr=`PublicAccessBlockConfiguration`,rr=`PartsCount`,ir=`PartNumber`,ar=`PartNumberMarker`,or=`PartitionedPrefix`,sr=`PolicyStatus`,cr=`Parts`,lr=`Part`,ur=`Payer`,dr=`Payload`,fr=`Permission`,pr=`Policy`,mr=`Progress`,hr=`Protocol`,gr=`QuoteCharacter`,_r=`QueueConfiguration`,vr=`QuoteEscapeCharacter`,yr=`Rules`,br=`RedirectAllRequestsTo`,xr=`RequestCharged`,Sr=`ResponseCacheControl`,Cr=`ResponseContentDisposition`,wr=`ResponseContentEncoding`,Tr=`ResponseContentLanguage`,Er=`ResponseContentType`,Dr=`ReplicationConfiguration`,Or=`RecordDelimiter`,kr=`ResponseExpires`,Ar=`RecordExpiration`,jr=`ReplicaModifications`,Mr=`RequestPayer`,Nr=`RestrictPublicBuckets`,Pr=`RequestPaymentConfiguration`,Fr=`RequestProgress`,Ir=`RoutingRules`,Lr=`RestoreRequest`,Rr=`RoutingRule`,zr=`ReplicationStatus`,Br=`RestoreStatus`,Vr=`ReplicationTime`,Hr=`Range`,Ur=`Restore`,Wr=`Redirect`,Gr=`Retention`,Kr=`Rule`,qr=`Status`,Jr=`StartAfter`,Yr=`SecretAccessKey`,Xr=`S3BucketDestination`,Zr=`StorageClass`,Qr=`StorageClassAnalysis`,$r=`SSE-KMS`,ei=`SseKmsEncryptedObjects`,ti=`SelectParameters`,ni=`SimplePrefix`,ri=`ScanRange`,ii=`SSE-S3`,ai=`SourceSelectionCriteria`,oi=`ServerSideEncryption`,si=`ServerSideEncryptionConfiguration`,ci=`SSECustomerAlgorithm`,li=`SSECustomerKey`,ui=`SSECustomerKeyMD5`,di=`SSEKMS`,fi=`SSEKMSEncryptionContext`,pi=`SSEKMSKeyId`,mi=`SSES3`,hi=`SessionToken`,gi=`S3TablesDestination`,_i=`S3TablesDestinationResult`,vi=`Size`,K=`Stats`,yi=`Tags`,bi=`TableArn`,xi=`TableBucketArn`,Si=`TagCount`,Ci=`TopicConfiguration`,wi=`TransitionDefaultMinimumObjectSize`,Ti=`TargetGrants`,Ei=`TableNamespace`,Di=`TableName`,Oi=`TargetObjectKeyFormat`,ki=`TagSet`,Ai=`TableStatus`,ji=`Tagging`,Mi=`Tier`,Ni=`Tiering`,Pi=`Token`,Fi=`Transition`,Ii=`Type`,Li=`UploadId`,Ri=`UploadIdMarker`,zi=`UserMetadata`,Bi=`Value`,Vi=`VersioningConfiguration`,Hi=`VersionId`,Ui=`VersionIdMarker`,Wi=`WebsiteConfiguration`,Gi=`WebsiteRedirectLocation`,Ki=`accept-ranges`,qi=`client`,Ji=`continuation-token`,Yi=`delimiter`,Xi=`error`,Zi=`eventPayload`,Qi=`encoding-type`,q=`http`,$i=`httpChecksum`,ea=`httpError`,J=`httpHeader`,ta=`httpPayload`,na=`httpPrefixHeaders`,Y=`httpQuery`,ra=`http://www.w3.org/2001/XMLSchema-instance`,ia=`key-marker`,aa=`max-keys`,oa=`prefix`,sa=`partNumber`,ca=`response-cache-control`,la=`response-content-disposition`,ua=`response-content-encoding`,da=`response-content-language`,fa=`response-content-type`,pa=`response-expires`,ma=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,ha=`streaming`,ga=`uploadId`,_a=`versionId`,va=`xmlFlattened`,X=`xmlName`,ya=`xmlNamespace`,ba=`x-amz-acl`,xa=`x-amz-abort-date`,Sa=`x-amz-abort-rule-id`,Ca=`x-amz-bucket-arn`,wa=`x-amz-bypass-governance-retention`,Ta=`x-amz-bucket-object-lock-token`,Ea=`x-amz-checksum-algorithm`,Da=`x-amz-checksum-crc32`,Oa=`x-amz-checksum-crc32c`,ka=`x-amz-checksum-crc64nvme`,Aa=`x-amz-checksum-md5`,ja=`x-amz-checksum-mode`,Ma=`x-amz-checksum-sha1`,Na=`x-amz-checksum-sha256`,Pa=`x-amz-checksum-sha512`,Fa=`x-amz-copy-source`,Ia=`x-amz-copy-source-if-match`,La=`x-amz-copy-source-if-modified-since`,Ra=`x-amz-copy-source-if-none-match`,za=`x-amz-copy-source-if-unmodified-since`,Ba=`x-amz-copy-source-server-side-encryption-customer-algorithm`,Va=`x-amz-copy-source-server-side-encryption-customer-key`,Ha=`x-amz-copy-source-server-side-encryption-customer-key-MD5`,Ua=`x-amz-copy-source-version-id`,Wa=`x-amz-checksum-type`,Ga=`x-amz-checksum-xxhash64`,Ka=`x-amz-checksum-xxhash3`,qa=`x-amz-checksum-xxhash128`,Ja=`x-amz-delete-marker`,Ya=`x-amz-expiration`,Z=`x-amz-expected-bucket-owner`,Xa=`x-amz-grant-full-control`,Za=`x-amz-grant-read`,Qa=`x-amz-grant-read-acp`,$a=`x-amz-grant-write`,eo=`x-amz-grant-write-acp`,to=`x-amz-meta-`,no=`x-amz-mfa`,ro=`x-amz-missing-meta`,io=`x-amz-mp-parts-count`,ao=`x-amz-object-lock-legal-hold`,oo=`x-amz-object-lock-mode`,so=`x-amz-object-lock-retain-until-date`,co=`x-amz-optional-object-attributes`,lo=`x-amz-restore`,uo=`x-amz-request-charged`,fo=`x-amz-request-payer`,po=`x-amz-replication-status`,mo=`x-amz-storage-class`,ho=`x-amz-sdk-checksum-algorithm`,go=`x-amz-source-expected-bucket-owner`,_o=`x-amz-server-side-encryption`,vo=`x-amz-server-side-encryption-aws-kms-key-id`,yo=`x-amz-server-side-encryption-bucket-key-enabled`,bo=`x-amz-server-side-encryption-context`,xo=`x-amz-server-side-encryption-customer-algorithm`,So=`x-amz-server-side-encryption-customer-key`,Co=`x-amz-server-side-encryption-customer-key-MD5`,wo=`x-amz-tagging`,To=`x-amz-tagging-count`,Eo=`x-amz-transition-default-minimum-object-size`,Do=`x-amz-version-id`,Oo=`x-amz-website-redirect-location`,Q=`com.amazonaws.s3`,ko=(h(),e(v)),Ao=Ds(),jo=Es(),Mo=ko.TypeRegistry.for(ma);t.S3ServiceException$=[-3,ma,`S3ServiceException`,0,[],[]],Mo.registerError(t.S3ServiceException$,jo.S3ServiceException);let No=ko.TypeRegistry.for(Q);t.AccessDenied$=[-3,Q,`AccessDenied`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.AccessDenied$,Ao.AccessDenied),t.BucketAlreadyExists$=[-3,Q,`BucketAlreadyExists`,{[Xi]:qi,[ea]:409},[],[]],No.registerError(t.BucketAlreadyExists$,Ao.BucketAlreadyExists),t.BucketAlreadyOwnedByYou$=[-3,Q,`BucketAlreadyOwnedByYou`,{[Xi]:qi,[ea]:409},[],[]],No.registerError(t.BucketAlreadyOwnedByYou$,Ao.BucketAlreadyOwnedByYou),t.EncryptionTypeMismatch$=[-3,Q,`EncryptionTypeMismatch`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.EncryptionTypeMismatch$,Ao.EncryptionTypeMismatch),t.IdempotencyParameterMismatch$=[-3,Q,`IdempotencyParameterMismatch`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.IdempotencyParameterMismatch$,Ao.IdempotencyParameterMismatch),t.InvalidObjectState$=[-3,Q,`InvalidObjectState`,{[Xi]:qi,[ea]:403},[Zr,g],[0,0]],No.registerError(t.InvalidObjectState$,Ao.InvalidObjectState),t.InvalidRequest$=[-3,Q,`InvalidRequest`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.InvalidRequest$,Ao.InvalidRequest),t.InvalidWriteOffset$=[-3,Q,`InvalidWriteOffset`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.InvalidWriteOffset$,Ao.InvalidWriteOffset),t.NoSuchBucket$=[-3,Q,`NoSuchBucket`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchBucket$,Ao.NoSuchBucket),t.NoSuchKey$=[-3,Q,`NoSuchKey`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchKey$,Ao.NoSuchKey),t.NoSuchUpload$=[-3,Q,`NoSuchUpload`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchUpload$,Ao.NoSuchUpload),t.NotFound$=[-3,Q,`NotFound`,{[Xi]:qi},[],[]],No.registerError(t.NotFound$,Ao.NotFound),t.ObjectAlreadyInActiveTierError$=[-3,Q,`ObjectAlreadyInActiveTierError`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.ObjectAlreadyInActiveTierError$,Ao.ObjectAlreadyInActiveTierError),t.ObjectNotInActiveTierError$=[-3,Q,`ObjectNotInActiveTierError`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.ObjectNotInActiveTierError$,Ao.ObjectNotInActiveTierError),t.TooManyParts$=[-3,Q,`TooManyParts`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.TooManyParts$,Ao.TooManyParts),t.errorTypeRegistries=[Mo,No];var Po=[0,Q,Ee,8,0],Fo=[0,Q,`NonEmptyKmsKeyArnString`,8,0],Io=[0,Q,`SessionCredentialValue`,8,0],Lo=[0,Q,li,8,0],Ro=[0,Q,fi,8,0],zo=[0,Q,pi,8,0],Bo=[0,Q,`StreamingBlob`,{[ha]:1},42];t.AbacStatus$=[3,Q,m,0,[qr],[0]],t.AbortIncompleteMultipartUpload$=[3,Q,l,0,[`DaysAfterInitiation`],[1]],t.AbortMultipartUploadOutput$=[3,Q,`AbortMultipartUploadOutput`,0,[xr],[[0,{[J]:uo}]]],t.AbortMultipartUploadRequest$=[3,Q,`AbortMultipartUploadRequest`,0,[y,`Key`,Li,Mr,G,`IfMatchInitiatedTime`],[[0,1],[0,1],[0,{[Y]:ga}],[0,{[J]:fo}],[0,{[J]:Z}],[6,{[J]:`x-amz-if-match-initiated-time`}]],3],t.AccelerateConfiguration$=[3,Q,n,0,[qr],[0]],t.AccessControlPolicy$=[3,Q,a,0,[St,Vn],[[()=>Qo,{[X]:r}],()=>t.Owner$]],t.AccessControlTranslation$=[3,Q,o,0,[Vn],[0],1],t.AnalyticsAndOperator$=[3,Q,`AnalyticsAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.AnalyticsConfiguration$=[3,Q,s,0,[`Id`,Qr,vt],[0,()=>t.StorageClassAnalysis$,[()=>t.AnalyticsFilter$,0]],2],t.AnalyticsExportDestination$=[3,Q,`AnalyticsExportDestination`,0,[Xr],[()=>t.AnalyticsS3BucketDestination$],1],t.AnalyticsS3BucketDestination$=[3,Q,`AnalyticsS3BucketDestination`,0,[xt,y,`BucketAccountId`,tr],[0,0,0,0],2],t.BlockedEncryptionTypes$=[3,Q,x,0,[st],[[()=>Yo,{[va]:1}]]],t.Bucket$=[3,Q,y,0,[Mn,`CreationDate`,O,b],[0,4,0,0]],t.BucketInfo$=[3,Q,`BucketInfo`,0,[`DataRedundancy`,Ii],[0,0]],t.BucketLifecycleConfiguration$=[3,Q,`BucketLifecycleConfiguration`,0,[yr],[[()=>rs,{[va]:1,[X]:Kr}]],1],t.BucketLoggingStatus$=[3,Q,w,0,[un],[[()=>t.LoggingEnabled$,0]]],t.Checksum$=[3,Q,N,0,[L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae],[0,0,0,0,0,0,0,0,0,0,0]],t.CommonPrefix$=[3,Q,`CommonPrefix`,0,[tr],[0]],t.CompletedMultipartUpload$=[3,Q,`CompletedMultipartUpload`,0,[cr],[[()=>Go,{[va]:1,[X]:lr}]]],t.CompletedPart$=[3,Q,`CompletedPart`,0,[ct,L,R,z,ye,W,be,oe,Pe,Fe,Ie,ir],[0,0,0,0,0,0,0,0,0,0,0,1]],t.CompleteMultipartUploadOutput$=[3,Q,`CompleteMultipartUploadOutput`,{[X]:`CompleteMultipartUploadResult`},[on,y,`Key`,Qe,ct,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae,oi,Hi,pi,C,xr],[0,0,0,[0,{[J]:Ya}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[J]:_o}],[0,{[J]:Do}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.CompleteMultipartUploadRequest$=[3,Q,`CompleteMultipartUploadRequest`,0,[y,`Key`,Li,Dn,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae,`MpuObjectSize`,Mr,G,Rt,Ht,ci,li,ui],[[0,1],[0,1],[0,{[Y]:ga}],[()=>t.CompletedMultipartUpload$,{[ta]:1,[X]:ce}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[1,{[J]:`x-amz-mp-object-size`}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:Vt}],[0,{[J]:Ut}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}]],3],t.Condition$=[3,Q,Le,0,[`HttpErrorCodeReturnedEquals`,`KeyPrefixEquals`],[0,0]],t.ContinuationEvent$=[3,Q,`ContinuationEvent`,0,[],[]],t.CopyObjectOutput$=[3,Q,`CopyObjectOutput`,0,[ue,Qe,Oe,Hi,oi,ci,ui,pi,fi,C,xr],[[()=>t.CopyObjectResult$,16],[0,{[J]:Ya}],[0,{[J]:Ua}],[0,{[J]:Do}],[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.CopyObjectRequest$=[3,Q,`CopyObjectRequest`,0,[y,ve,`Key`,`ACL`,I,P,V,H,ne,Me,xe,Se,Ce,we,gt,Tt,Dt,Ot,At,Rt,Ht,mn,`MetadataDirective`,`TaggingDirective`,oi,Zr,Gi,ci,li,ui,pi,fi,C,Te,Ee,De,Mr,ji,qn,Jn,Kn,G,ot],[[0,1],[0,{[J]:Fa}],[0,1],[0,{[J]:ba}],[0,{[J]:ee}],[0,{[J]:Ea}],[0,{[J]:B}],[0,{[J]:te}],[0,{[J]:re}],[0,{[J]:je}],[0,{[J]:Ia}],[4,{[J]:La}],[0,{[J]:Ra}],[4,{[J]:za}],[4,{[J]:gt}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[0,{[J]:Vt}],[0,{[J]:Ut}],[128,{[na]:to}],[0,{[J]:`x-amz-metadata-directive`}],[0,{[J]:`x-amz-tagging-directive`}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:Ba}],[()=>Po,{[J]:Va}],[0,{[J]:Ha}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}],[0,{[J]:go}]],3],t.CopyObjectResult$=[3,Q,ue,0,[ct,fn,Ae,L,R,z,ye,W,be,oe,Pe,Fe,Ie],[0,4,0,0,0,0,0,0,0,0,0,0,0]],t.CopyPartResult$=[3,Q,me,0,[ct,fn,L,R,z,ye,W,be,oe,Pe,Fe,Ie],[0,4,0,0,0,0,0,0,0,0,0,0]],t.CORSConfiguration$=[3,Q,de,0,[fe],[[()=>Ko,{[va]:1,[X]:pe}]],1],t.CORSRule$=[3,Q,pe,0,[`AllowedMethods`,`AllowedOrigins`,`ID`,`AllowedHeaders`,`ExposeHeaders`,`MaxAgeSeconds`],[[64,{[va]:1,[X]:`AllowedMethod`}],[64,{[va]:1,[X]:`AllowedOrigin`}],0,[64,{[va]:1,[X]:`AllowedHeader`}],[64,{[va]:1,[X]:`ExposeHeader`}],1],2],t.CreateBucketConfiguration$=[3,Q,F,0,[cn,on,y,yi],[0,()=>t.LocationInfo$,()=>t.BucketInfo$,[()=>_s,0]]],t.CreateBucketMetadataConfigurationRequest$=[3,Q,`CreateBucketMetadataConfigurationRequest`,0,[y,hn,se,P,G],[[0,1],[()=>t.MetadataConfiguration$,{[ta]:1,[X]:hn}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.CreateBucketMetadataTableConfigurationRequest$=[3,Q,`CreateBucketMetadataTableConfigurationRequest`,0,[y,Tn,se,P,G],[[0,1],[()=>t.MetadataTableConfiguration$,{[ta]:1,[X]:Tn}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.CreateBucketOutput$=[3,Q,`CreateBucketOutput`,0,[on,b],[[0,{[J]:on}],[0,{[J]:Ca}]]],t.CreateBucketRequest$=[3,Q,`CreateBucketRequest`,0,[y,`ACL`,F,Tt,Dt,Ot,kt,At,`ObjectLockEnabledForBucket`,Yn,`BucketNamespace`],[[0,1],[0,{[J]:ba}],[()=>t.CreateBucketConfiguration$,{[ta]:1,[X]:F}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[2,{[J]:`x-amz-bucket-object-lock-enabled`}],[0,{[J]:`x-amz-object-ownership`}],[0,{[J]:`x-amz-bucket-namespace`}]],1],t.CreateMultipartUploadOutput$=[3,Q,`CreateMultipartUploadOutput`,{[X]:`InitiateMultipartUploadResult`},[c,p,y,`Key`,Li,oi,ci,ui,pi,fi,C,xr,P,Ae],[[4,{[J]:xa}],[0,{[J]:Sa}],[0,{[X]:y}],0,0,[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:uo}],[0,{[J]:Ea}],[0,{[J]:Wa}]]],t.CreateMultipartUploadRequest$=[3,Q,`CreateMultipartUploadRequest`,0,[y,`Key`,`ACL`,I,V,H,ne,Me,gt,Tt,Dt,Ot,At,mn,oi,Zr,Gi,ci,li,ui,pi,fi,C,Mr,ji,qn,Jn,Kn,G,P,Ae],[[0,1],[0,1],[0,{[J]:ba}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:te}],[0,{[J]:re}],[0,{[J]:je}],[4,{[J]:gt}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[128,{[na]:to}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}],[0,{[J]:Ea}],[0,{[J]:Wa}]],2],t.CreateSessionOutput$=[3,Q,`CreateSessionOutput`,{[X]:`CreateSessionResult`},[ze,oi,pi,fi,C],[[()=>t.SessionCredentials$,{[X]:ze}],[0,{[J]:_o}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}]],1],t.CreateSessionRequest$=[3,Q,`CreateSessionRequest`,0,[y,`SessionMode`,oi,pi,fi,C],[[0,1],[0,{[J]:`x-amz-create-session-mode`}],[0,{[J]:_o}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}]],1],t.CSVInput$=[3,Q,`CSVInput`,0,[`FileHeaderInfo`,`Comments`,vr,Or,yt,gr,`AllowQuotedRecordDelimiter`],[0,0,0,0,0,0,2]],t.CSVOutput$=[3,Q,`CSVOutput`,0,[`QuoteFields`,vr,Or,yt,gr],[0,0,0,0,0]],t.DefaultRetention$=[3,Q,Ge,0,[jn,Be,`Years`],[0,1,1]],t.Delete$=[3,Q,Je,0,[`Objects`,`Quiet`],[[()=>ss,{[va]:1,[X]:er}],2],1],t.DeleteBucketAnalyticsConfigurationRequest$=[3,Q,`DeleteBucketAnalyticsConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketCorsRequest$=[3,Q,`DeleteBucketCorsRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketEncryptionRequest$=[3,Q,`DeleteBucketEncryptionRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketIntelligentTieringConfigurationRequest$=[3,Q,`DeleteBucketIntelligentTieringConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketInventoryConfigurationRequest$=[3,Q,`DeleteBucketInventoryConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketLifecycleRequest$=[3,Q,`DeleteBucketLifecycleRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetadataConfigurationRequest$=[3,Q,`DeleteBucketMetadataConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetadataTableConfigurationRequest$=[3,Q,`DeleteBucketMetadataTableConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetricsConfigurationRequest$=[3,Q,`DeleteBucketMetricsConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketOwnershipControlsRequest$=[3,Q,`DeleteBucketOwnershipControlsRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketPolicyRequest$=[3,Q,`DeleteBucketPolicyRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketReplicationRequest$=[3,Q,`DeleteBucketReplicationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketRequest$=[3,Q,`DeleteBucketRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketTaggingRequest$=[3,Q,`DeleteBucketTaggingRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketWebsiteRequest$=[3,Q,`DeleteBucketWebsiteRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.DeletedObject$=[3,Q,`DeletedObject`,0,[`Key`,Hi,Ve,`DeleteMarkerVersionId`],[0,0,2,0]],t.DeleteMarkerEntry$=[3,Q,`DeleteMarkerEntry`,0,[Vn,`Key`,Hi,Lt,fn],[()=>t.Owner$,0,0,2,4]],t.DeleteMarkerReplication$=[3,Q,He,0,[qr],[0]],t.DeleteObjectOutput$=[3,Q,`DeleteObjectOutput`,0,[Ve,Hi,xr],[[2,{[J]:Ja}],[0,{[J]:Do}],[0,{[J]:uo}]]],t.DeleteObjectRequest$=[3,Q,`DeleteObjectRequest`,0,[y,`Key`,`MFA`,Hi,Mr,S,G,Rt,`IfMatchLastModifiedTime`,`IfMatchSize`],[[0,1],[0,1],[0,{[J]:no}],[0,{[Y]:_a}],[0,{[J]:fo}],[2,{[J]:wa}],[0,{[J]:Z}],[0,{[J]:Vt}],[6,{[J]:`x-amz-if-match-last-modified-time`}],[1,{[J]:`x-amz-if-match-size`}]],2],t.DeleteObjectsOutput$=[3,Q,`DeleteObjectsOutput`,{[X]:`DeleteResult`},[`Deleted`,xr,ft],[[()=>qo,{[va]:1}],[0,{[J]:uo}],[()=>Xo,{[va]:1,[X]:pt}]]],t.DeleteObjectsRequest$=[3,Q,`DeleteObjectsRequest`,0,[y,Je,`MFA`,Mr,S,G,P],[[0,1],[()=>t.Delete$,{[ta]:1,[X]:Je}],[0,{[J]:no}],[0,{[J]:fo}],[2,{[J]:wa}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.DeleteObjectTaggingOutput$=[3,Q,`DeleteObjectTaggingOutput`,0,[Hi],[[0,{[J]:Do}]]],t.DeleteObjectTaggingRequest$=[3,Q,`DeleteObjectTaggingRequest`,0,[y,`Key`,Hi,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:Z}]],2],t.DeletePublicAccessBlockRequest$=[3,Q,`DeletePublicAccessBlockRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.Destination$=[3,Q,Xe,0,[y,`Account`,Zr,o,et,Vr,An],[0,0,0,()=>t.AccessControlTranslation$,()=>t.EncryptionConfiguration$,()=>t.ReplicationTime$,()=>t.Metrics$],1],t.DestinationResult$=[3,Q,Ke,0,[`TableBucketType`,xi,Ei],[0,0,0]],t.Encryption$=[3,Q,dt,0,[st,`KMSKeyId`,`KMSContext`],[0,[()=>zo,0],0],1],t.EncryptionConfiguration$=[3,Q,et,0,[`ReplicaKmsKeyID`],[0]],t.EndEvent$=[3,Q,`EndEvent`,0,[],[]],t._Error$=[3,Q,pt,0,[`Key`,Hi,`Code`,`Message`],[0,0,0,0]],t.ErrorDetails$=[3,Q,`ErrorDetails`,0,[tt,rt],[0,0]],t.ErrorDocument$=[3,Q,nt,0,[`Key`],[0],1],t.EventBridgeConfiguration$=[3,Q,$e,0,[],[]],t.ExistingObjectReplication$=[3,Q,it,0,[qr],[0],1],t.FilterRule$=[3,Q,bt,0,[Mn,Bi],[0,0]],t.GetBucketAbacOutput$=[3,Q,`GetBucketAbacOutput`,0,[m],[[()=>t.AbacStatus$,16]]],t.GetBucketAbacRequest$=[3,Q,`GetBucketAbacRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketAccelerateConfigurationOutput$=[3,Q,`GetBucketAccelerateConfigurationOutput`,{[X]:n},[qr,xr],[0,[0,{[J]:uo}]]],t.GetBucketAccelerateConfigurationRequest$=[3,Q,`GetBucketAccelerateConfigurationRequest`,0,[y,G,Mr],[[0,1],[0,{[J]:Z}],[0,{[J]:fo}]],1],t.GetBucketAclOutput$=[3,Q,`GetBucketAclOutput`,{[X]:a},[Vn,St],[()=>t.Owner$,[()=>Qo,{[X]:r}]]],t.GetBucketAclRequest$=[3,Q,`GetBucketAclRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketAnalyticsConfigurationOutput$=[3,Q,`GetBucketAnalyticsConfigurationOutput`,0,[s],[[()=>t.AnalyticsConfiguration$,16]]],t.GetBucketAnalyticsConfigurationRequest$=[3,Q,`GetBucketAnalyticsConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketCorsOutput$=[3,Q,`GetBucketCorsOutput`,{[X]:de},[fe],[[()=>Ko,{[va]:1,[X]:pe}]]],t.GetBucketCorsRequest$=[3,Q,`GetBucketCorsRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketEncryptionOutput$=[3,Q,`GetBucketEncryptionOutput`,0,[si],[[()=>t.ServerSideEncryptionConfiguration$,16]]],t.GetBucketEncryptionRequest$=[3,Q,`GetBucketEncryptionRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketIntelligentTieringConfigurationOutput$=[3,Q,`GetBucketIntelligentTieringConfigurationOutput`,0,[Jt],[[()=>t.IntelligentTieringConfiguration$,16]]],t.GetBucketIntelligentTieringConfigurationRequest$=[3,Q,`GetBucketIntelligentTieringConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketInventoryConfigurationOutput$=[3,Q,`GetBucketInventoryConfigurationOutput`,0,[Pt],[[()=>t.InventoryConfiguration$,16]]],t.GetBucketInventoryConfigurationRequest$=[3,Q,`GetBucketInventoryConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketLifecycleConfigurationOutput$=[3,Q,`GetBucketLifecycleConfigurationOutput`,{[X]:ln},[yr,wi],[[()=>rs,{[va]:1,[X]:Kr}],[0,{[J]:Eo}]]],t.GetBucketLifecycleConfigurationRequest$=[3,Q,`GetBucketLifecycleConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketLocationOutput$=[3,Q,`GetBucketLocationOutput`,{[X]:cn},[cn],[0]],t.GetBucketLocationRequest$=[3,Q,`GetBucketLocationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketLoggingOutput$=[3,Q,`GetBucketLoggingOutput`,{[X]:w},[un],[[()=>t.LoggingEnabled$,0]]],t.GetBucketLoggingRequest$=[3,Q,`GetBucketLoggingRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataConfigurationOutput$=[3,Q,`GetBucketMetadataConfigurationOutput`,0,[Ct],[[()=>t.GetBucketMetadataConfigurationResult$,16]]],t.GetBucketMetadataConfigurationRequest$=[3,Q,`GetBucketMetadataConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataConfigurationResult$=[3,Q,Ct,0,[_n],[()=>t.MetadataConfigurationResult$],1],t.GetBucketMetadataTableConfigurationOutput$=[3,Q,`GetBucketMetadataTableConfigurationOutput`,0,[wt],[[()=>t.GetBucketMetadataTableConfigurationResult$,16]]],t.GetBucketMetadataTableConfigurationRequest$=[3,Q,`GetBucketMetadataTableConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataTableConfigurationResult$=[3,Q,wt,0,[En,qr,pt],[()=>t.MetadataTableConfigurationResult$,0,()=>t.ErrorDetails$],2],t.GetBucketMetricsConfigurationOutput$=[3,Q,`GetBucketMetricsConfigurationOutput`,0,[vn],[[()=>t.MetricsConfiguration$,16]]],t.GetBucketMetricsConfigurationRequest$=[3,Q,`GetBucketMetricsConfigurationRequest`,0,[y,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketNotificationConfigurationRequest$=[3,Q,`GetBucketNotificationConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketOwnershipControlsOutput$=[3,Q,`GetBucketOwnershipControlsOutput`,0,[Hn],[[()=>t.OwnershipControls$,16]]],t.GetBucketOwnershipControlsRequest$=[3,Q,`GetBucketOwnershipControlsRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketPolicyOutput$=[3,Q,`GetBucketPolicyOutput`,0,[pr],[[0,16]]],t.GetBucketPolicyRequest$=[3,Q,`GetBucketPolicyRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketPolicyStatusOutput$=[3,Q,`GetBucketPolicyStatusOutput`,0,[sr],[[()=>t.PolicyStatus$,16]]],t.GetBucketPolicyStatusRequest$=[3,Q,`GetBucketPolicyStatusRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketReplicationOutput$=[3,Q,`GetBucketReplicationOutput`,0,[Dr],[[()=>t.ReplicationConfiguration$,16]]],t.GetBucketReplicationRequest$=[3,Q,`GetBucketReplicationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketRequestPaymentOutput$=[3,Q,`GetBucketRequestPaymentOutput`,{[X]:Pr},[ur],[0]],t.GetBucketRequestPaymentRequest$=[3,Q,`GetBucketRequestPaymentRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketTaggingOutput$=[3,Q,`GetBucketTaggingOutput`,{[X]:ji},[ki],[[()=>_s,0]],1],t.GetBucketTaggingRequest$=[3,Q,`GetBucketTaggingRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketVersioningOutput$=[3,Q,`GetBucketVersioningOutput`,{[X]:Vi},[qr,xn],[0,[0,{[X]:yn}]]],t.GetBucketVersioningRequest$=[3,Q,`GetBucketVersioningRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketWebsiteOutput$=[3,Q,`GetBucketWebsiteOutput`,{[X]:Wi},[br,It,nt,Ir],[()=>t.RedirectAllRequestsTo$,()=>t.IndexDocument$,()=>t.ErrorDocument$,[()=>hs,0]]],t.GetBucketWebsiteRequest$=[3,Q,`GetBucketWebsiteRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetObjectAclOutput$=[3,Q,`GetObjectAclOutput`,{[X]:a},[Vn,St,xr],[()=>t.Owner$,[()=>Qo,{[X]:r}],[0,{[J]:uo}]]],t.GetObjectAclRequest$=[3,Q,`GetObjectAclRequest`,0,[y,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectAttributesOutput$=[3,Q,`GetObjectAttributesOutput`,{[X]:`GetObjectAttributesResponse`},[Ve,fn,Hi,xr,ct,N,`ObjectParts`,Zr,`ObjectSize`],[[2,{[J]:Ja}],[4,{[J]:pn}],[0,{[J]:Do}],[0,{[J]:uo}],0,()=>t.Checksum$,[()=>t.GetObjectAttributesParts$,0],0,1]],t.GetObjectAttributesParts$=[3,Q,`GetObjectAttributesParts`,0,[`TotalPartsCount`,ar,Rn,wn,qt,cr],[[1,{[X]:rr}],0,0,1,2,[()=>fs,{[va]:1,[X]:lr}]]],t.GetObjectAttributesRequest$=[3,Q,`GetObjectAttributesRequest`,0,[y,`Key`,`ObjectAttributes`,Hi,wn,ar,ci,li,ui,Mr,G],[[0,1],[0,1],[64,{[J]:`x-amz-object-attributes`}],[0,{[Y]:_a}],[1,{[J]:`x-amz-max-parts`}],[0,{[J]:`x-amz-part-number-marker`}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[0,{[J]:Z}]],3],t.GetObjectLegalHoldOutput$=[3,Q,`GetObjectLegalHoldOutput`,0,[dn],[[()=>t.ObjectLockLegalHold$,{[ta]:1,[X]:dn}]]],t.GetObjectLegalHoldRequest$=[3,Q,`GetObjectLegalHoldRequest`,0,[y,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectLockConfigurationOutput$=[3,Q,`GetObjectLockConfigurationOutput`,0,[Gn],[[()=>t.ObjectLockConfiguration$,16]]],t.GetObjectLockConfigurationRequest$=[3,Q,`GetObjectLockConfigurationRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GetObjectOutput$=[3,Q,`GetObjectOutput`,0,[j,Ve,f,Qe,Ur,fn,ae,ct,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae,Cn,Hi,I,V,H,ne,ge,Me,gt,at,Gi,oi,mn,ci,ui,pi,C,Zr,xr,zr,rr,Si,qn,Jn,Kn],[[()=>Bo,16],[2,{[J]:Ja}],[0,{[J]:Ki}],[0,{[J]:Ya}],[0,{[J]:lo}],[4,{[J]:pn}],[1,{[J]:ie}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[1,{[J]:ro}],[0,{[J]:Do}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:te}],[0,{[J]:re}],[0,{[J]:_e}],[0,{[J]:je}],[4,{[J]:gt}],[0,{[J]:at}],[0,{[J]:Oo}],[0,{[J]:_o}],[128,{[na]:to}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:mo}],[0,{[J]:uo}],[0,{[J]:po}],[1,{[J]:io}],[1,{[J]:To}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}]]],t.GetObjectRequest$=[3,Q,`GetObjectRequest`,0,[y,`Key`,Rt,Bt,Ht,Qt,Hr,Sr,Cr,wr,Tr,Er,kr,Hi,ci,li,ui,Mr,ir,G,le],[[0,1],[0,1],[0,{[J]:Vt}],[4,{[J]:zt}],[0,{[J]:Ut}],[4,{[J]:$t}],[0,{[J]:Hr}],[0,{[Y]:ca}],[0,{[Y]:la}],[0,{[Y]:ua}],[0,{[Y]:da}],[0,{[Y]:fa}],[6,{[Y]:pa}],[0,{[Y]:_a}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[1,{[Y]:sa}],[0,{[J]:Z}],[0,{[J]:ja}]],2],t.GetObjectRetentionOutput$=[3,Q,`GetObjectRetentionOutput`,0,[Gr],[[()=>t.ObjectLockRetention$,{[ta]:1,[X]:Gr}]]],t.GetObjectRetentionRequest$=[3,Q,`GetObjectRetentionRequest`,0,[y,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectTaggingOutput$=[3,Q,`GetObjectTaggingOutput`,{[X]:ji},[ki,Hi],[[()=>_s,0],[0,{[J]:Do}]],1],t.GetObjectTaggingRequest$=[3,Q,`GetObjectTaggingRequest`,0,[y,`Key`,Hi,G,Mr],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:Z}],[0,{[J]:fo}]],2],t.GetObjectTorrentOutput$=[3,Q,`GetObjectTorrentOutput`,0,[j,xr],[[()=>Bo,16],[0,{[J]:uo}]]],t.GetObjectTorrentRequest$=[3,Q,`GetObjectTorrentRequest`,0,[y,`Key`,Mr,G],[[0,1],[0,1],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetPublicAccessBlockOutput$=[3,Q,`GetPublicAccessBlockOutput`,0,[nr],[[()=>t.PublicAccessBlockConfiguration$,16]]],t.GetPublicAccessBlockRequest$=[3,Q,`GetPublicAccessBlockRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.GlacierJobParameters$=[3,Q,Et,0,[Mi],[0],1],t.Grant$=[3,Q,jt,0,[Mt,fr],[[()=>t.Grantee$,{[ya]:[`xsi`,ra]}],0]],t.Grantee$=[3,Q,Mt,0,[Ii,We,`EmailAddress`,`ID`,`URI`],[[0,{xmlAttribute:1,[X]:`xsi:type`}],0,0,0,0],1],t.HeadBucketOutput$=[3,Q,`HeadBucketOutput`,0,[b,`BucketLocationType`,`BucketLocationName`,O,`AccessPointAlias`],[[0,{[J]:Ca}],[0,{[J]:`x-amz-bucket-location-type`}],[0,{[J]:`x-amz-bucket-location-name`}],[0,{[J]:`x-amz-bucket-region`}],[2,{[J]:`x-amz-access-point-alias`}]]],t.HeadBucketRequest$=[3,Q,`HeadBucketRequest`,0,[y,G],[[0,1],[0,{[J]:Z}]],1],t.HeadObjectOutput$=[3,Q,`HeadObjectOutput`,0,[Ve,f,Qe,Ur,`ArchiveStatus`,fn,ae,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae,ct,Cn,Hi,I,V,H,ne,Me,ge,gt,at,Gi,oi,mn,ci,ui,pi,C,Zr,xr,zr,rr,Si,qn,Jn,Kn],[[2,{[J]:Ja}],[0,{[J]:Ki}],[0,{[J]:Ya}],[0,{[J]:lo}],[0,{[J]:`x-amz-archive-status`}],[4,{[J]:pn}],[1,{[J]:ie}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[0,{[J]:ct}],[1,{[J]:ro}],[0,{[J]:Do}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:te}],[0,{[J]:re}],[0,{[J]:je}],[0,{[J]:_e}],[4,{[J]:gt}],[0,{[J]:at}],[0,{[J]:Oo}],[0,{[J]:_o}],[128,{[na]:to}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:mo}],[0,{[J]:uo}],[0,{[J]:po}],[1,{[J]:io}],[1,{[J]:To}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}]]],t.HeadObjectRequest$=[3,Q,`HeadObjectRequest`,0,[y,`Key`,Rt,Bt,Ht,Qt,Hr,Sr,Cr,wr,Tr,Er,kr,Hi,ci,li,ui,Mr,ir,G,le],[[0,1],[0,1],[0,{[J]:Vt}],[4,{[J]:zt}],[0,{[J]:Ut}],[4,{[J]:$t}],[0,{[J]:Hr}],[0,{[Y]:ca}],[0,{[Y]:la}],[0,{[Y]:ua}],[0,{[Y]:da}],[0,{[Y]:fa}],[6,{[Y]:pa}],[0,{[Y]:_a}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[1,{[Y]:sa}],[0,{[J]:Z}],[0,{[J]:ja}]],2],t.IndexDocument$=[3,Q,It,0,[`Suffix`],[0],1],t.Initiator$=[3,Q,en,0,[`ID`,We],[0,0]],t.InputSerialization$=[3,Q,Kt,0,[`CSV`,`CompressionType`,tn,`Parquet`],[()=>t.CSVInput$,0,()=>t.JSONInput$,()=>t.ParquetInput$]],t.IntelligentTieringAndOperator$=[3,Q,`IntelligentTieringAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.IntelligentTieringConfiguration$=[3,Q,Jt,0,[`Id`,qr,`Tierings`,vt],[0,0,[()=>ys,{[va]:1,[X]:Ni}],[()=>t.IntelligentTieringFilter$,0]],3],t.IntelligentTieringFilter$=[3,Q,`IntelligentTieringFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.IntelligentTieringAndOperator$,0]]],t.InventoryConfiguration$=[3,Q,Pt,0,[Xe,`IsEnabled`,`Id`,`IncludedObjectVersions`,`Schedule`,vt,`OptionalFields`],[[()=>t.InventoryDestination$,0],2,0,0,()=>t.InventorySchedule$,()=>t.InventoryFilter$,[()=>ts,0]],5],t.InventoryDestination$=[3,Q,`InventoryDestination`,0,[Xr],[[()=>t.InventoryS3BucketDestination$,0]],1],t.InventoryEncryption$=[3,Q,`InventoryEncryption`,0,[mi,di],[[()=>t.SSES3$,{[X]:ii}],[()=>t.SSEKMS$,{[X]:$r}]]],t.InventoryFilter$=[3,Q,`InventoryFilter`,0,[tr],[0],1],t.InventoryS3BucketDestination$=[3,Q,`InventoryS3BucketDestination`,0,[y,xt,`AccountId`,tr,dt],[0,0,0,0,[()=>t.InventoryEncryption$,0]],2],t.InventorySchedule$=[3,Q,`InventorySchedule`,0,[`Frequency`],[0],1],t.InventoryTableConfiguration$=[3,Q,Zt,0,[ke,et],[0,()=>t.MetadataTableEncryptionConfiguration$],1],t.InventoryTableConfigurationResult$=[3,Q,Xt,0,[ke,Ai,pt,Di,bi],[0,0,()=>t.ErrorDetails$,0,0],1],t.InventoryTableConfigurationUpdates$=[3,Q,`InventoryTableConfigurationUpdates`,0,[ke,et],[0,()=>t.MetadataTableEncryptionConfiguration$],1],t.JournalTableConfiguration$=[3,Q,nn,0,[Ar,et],[()=>t.RecordExpiration$,()=>t.MetadataTableEncryptionConfiguration$],1],t.JournalTableConfigurationResult$=[3,Q,rn,0,[Ai,Di,Ar,pt,bi],[0,0,()=>t.RecordExpiration$,()=>t.ErrorDetails$,0],3],t.JournalTableConfigurationUpdates$=[3,Q,`JournalTableConfigurationUpdates`,0,[Ar],[()=>t.RecordExpiration$],1],t.JSONInput$=[3,Q,`JSONInput`,0,[Ii],[0]],t.JSONOutput$=[3,Q,`JSONOutput`,0,[Or],[0]],t.LambdaFunctionConfiguration$=[3,Q,`LambdaFunctionConfiguration`,0,[`LambdaFunctionArn`,mt,`Id`,vt],[[0,{[X]:`CloudFunction`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.LifecycleExpiration$=[3,Q,`LifecycleExpiration`,0,[qe,Be,`ExpiredObjectDeleteMarker`],[5,1,2]],t.LifecycleRule$=[3,Q,`LifecycleRule`,0,[qr,Qe,`ID`,tr,vt,`Transitions`,`NoncurrentVersionTransitions`,zn,l],[0,()=>t.LifecycleExpiration$,0,0,[()=>t.LifecycleRuleFilter$,0],[()=>xs,{[va]:1,[X]:Fi}],[()=>os,{[va]:1,[X]:Bn}],()=>t.NoncurrentVersionExpiration$,()=>t.AbortIncompleteMultipartUpload$],1],t.LifecycleRuleAndOperator$=[3,Q,`LifecycleRuleAndOperator`,0,[tr,yi,Zn,Qn],[0,[()=>_s,{[va]:1,[X]:`Tag`}],1,1]],t.LifecycleRuleFilter$=[3,Q,`LifecycleRuleFilter`,0,[tr,`Tag`,Zn,Qn,`And`],[0,()=>t.Tag$,1,1,[()=>t.LifecycleRuleAndOperator$,0]]],t.ListBucketAnalyticsConfigurationsOutput$=[3,Q,`ListBucketAnalyticsConfigurationsOutput`,{[X]:`ListBucketAnalyticsConfigurationResult`},[qt,Ne,Pn,i],[2,0,0,[()=>Ho,{[va]:1,[X]:s}]]],t.ListBucketAnalyticsConfigurationsRequest$=[3,Q,`ListBucketAnalyticsConfigurationsRequest`,0,[y,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketIntelligentTieringConfigurationsOutput$=[3,Q,`ListBucketIntelligentTieringConfigurationsOutput`,0,[qt,Ne,Pn,Yt],[2,0,0,[()=>$o,{[va]:1,[X]:Jt}]]],t.ListBucketIntelligentTieringConfigurationsRequest$=[3,Q,`ListBucketIntelligentTieringConfigurationsRequest`,0,[y,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketInventoryConfigurationsOutput$=[3,Q,`ListBucketInventoryConfigurationsOutput`,{[X]:`ListInventoryConfigurationsResult`},[Ne,Ft,qt,Pn],[0,[()=>es,{[va]:1,[X]:Pt}],2,0]],t.ListBucketInventoryConfigurationsRequest$=[3,Q,`ListBucketInventoryConfigurationsRequest`,0,[y,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketMetricsConfigurationsOutput$=[3,Q,`ListBucketMetricsConfigurationsOutput`,{[X]:`ListMetricsConfigurationsResult`},[qt,Ne,Pn,gn],[2,0,0,[()=>is,{[va]:1,[X]:vn}]]],t.ListBucketMetricsConfigurationsRequest$=[3,Q,`ListBucketMetricsConfigurationsRequest`,0,[y,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketsOutput$=[3,Q,`ListBucketsOutput`,{[X]:`ListAllMyBucketsResult`},[M,Vn,Ne,tr],[[()=>Uo,0],()=>t.Owner$,0,0]],t.ListBucketsRequest$=[3,Q,`ListBucketsRequest`,0,[`MaxBuckets`,Ne,tr,O],[[1,{[Y]:`max-buckets`}],[0,{[Y]:Ji}],[0,{[Y]:oa}],[0,{[Y]:`bucket-region`}]]],t.ListDirectoryBucketsOutput$=[3,Q,`ListDirectoryBucketsOutput`,{[X]:`ListAllMyDirectoryBucketsResult`},[M,Ne],[[()=>Uo,0],0]],t.ListDirectoryBucketsRequest$=[3,Q,`ListDirectoryBucketsRequest`,0,[Ne,`MaxDirectoryBuckets`],[[0,{[Y]:Ji}],[1,{[Y]:`max-directory-buckets`}]]],t.ListMultipartUploadsOutput$=[3,Q,`ListMultipartUploadsOutput`,{[X]:`ListMultipartUploadsResult`},[y,an,Ri,In,tr,Ye,`NextUploadIdMarker`,On,qt,`Uploads`,he,lt,xr],[0,0,0,0,0,0,0,1,2,[()=>as,{[va]:1,[X]:`Upload`}],[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListMultipartUploadsRequest$=[3,Q,`ListMultipartUploadsRequest`,0,[y,Ye,lt,an,On,tr,Ri,G,Mr],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:ia}],[1,{[Y]:`max-uploads`}],[0,{[Y]:oa}],[0,{[Y]:`upload-id-marker`}],[0,{[J]:Z}],[0,{[J]:fo}]],1],t.ListObjectsOutput$=[3,Q,`ListObjectsOutput`,{[X]:sn},[qt,kn,`NextMarker`,Re,Mn,tr,Ye,Sn,he,lt,xr],[2,0,0,[()=>cs,{[va]:1}],0,0,0,1,[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListObjectsRequest$=[3,Q,`ListObjectsRequest`,0,[y,Ye,lt,kn,Sn,tr,Mr,G,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:`marker`}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[J]:fo}],[0,{[J]:Z}],[64,{[J]:co}]],1],t.ListObjectsV2Output$=[3,Q,`ListObjectsV2Output`,{[X]:sn},[qt,Re,Mn,tr,Ye,Sn,he,lt,`KeyCount`,Ne,Pn,Jr,xr],[2,[()=>cs,{[va]:1}],0,0,0,1,[()=>Wo,{[va]:1}],0,1,0,0,0,[0,{[J]:uo}]]],t.ListObjectsV2Request$=[3,Q,`ListObjectsV2Request`,0,[y,Ye,lt,Sn,tr,Ne,`FetchOwner`,Jr,Mr,G,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[Y]:Ji}],[2,{[Y]:`fetch-owner`}],[0,{[Y]:`start-after`}],[0,{[J]:fo}],[0,{[J]:Z}],[64,{[J]:co}]],1],t.ListObjectVersionsOutput$=[3,Q,`ListObjectVersionsOutput`,{[X]:`ListVersionsResult`},[qt,an,Ui,In,`NextVersionIdMarker`,`Versions`,Ue,Mn,tr,Ye,Sn,he,lt,xr],[2,0,0,0,0,[()=>ls,{[va]:1,[X]:`Version`}],[()=>Jo,{[va]:1,[X]:Ve}],0,0,0,1,[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListObjectVersionsRequest$=[3,Q,`ListObjectVersionsRequest`,0,[y,Ye,lt,an,Sn,tr,Ui,G,Mr,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:ia}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[Y]:`version-id-marker`}],[0,{[J]:Z}],[0,{[J]:fo}],[64,{[J]:co}]],1],t.ListPartsOutput$=[3,Q,`ListPartsOutput`,{[X]:`ListPartsResult`},[c,p,y,`Key`,Li,ar,Rn,wn,qt,cr,en,Vn,Zr,xr,P,Ae],[[4,{[J]:xa}],[0,{[J]:Sa}],0,0,0,0,0,1,2,[()=>ds,{[va]:1,[X]:lr}],()=>t.Initiator$,()=>t.Owner$,0,[0,{[J]:uo}],0,0]],t.ListPartsRequest$=[3,Q,`ListPartsRequest`,0,[y,`Key`,Li,wn,ar,Mr,G,ci,li,ui],[[0,1],[0,1],[0,{[Y]:ga}],[1,{[Y]:`max-parts`}],[0,{[Y]:`part-number-marker`}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}]],3],t.LocationInfo$=[3,Q,`LocationInfo`,0,[Ii,Mn],[0,0]],t.LoggingEnabled$=[3,Q,un,0,[`TargetBucket`,`TargetPrefix`,Ti,Oi],[0,0,[()=>vs,0],[()=>t.TargetObjectKeyFormat$,0]],2],t.MetadataConfiguration$=[3,Q,hn,0,[nn,Zt],[()=>t.JournalTableConfiguration$,()=>t.InventoryTableConfiguration$],1],t.MetadataConfigurationResult$=[3,Q,_n,0,[Ke,rn,Xt],[()=>t.DestinationResult$,()=>t.JournalTableConfigurationResult$,()=>t.InventoryTableConfigurationResult$],1],t.MetadataEntry$=[3,Q,bn,0,[Mn,Bi],[0,0]],t.MetadataTableConfiguration$=[3,Q,Tn,0,[gi],[()=>t.S3TablesDestination$],1],t.MetadataTableConfigurationResult$=[3,Q,En,0,[_i],[()=>t.S3TablesDestinationResult$],1],t.MetadataTableEncryptionConfiguration$=[3,Q,`MetadataTableEncryptionConfiguration`,0,[`SseAlgorithm`,`KmsKeyArn`],[0,0],1],t.Metrics$=[3,Q,An,0,[qr,`EventThreshold`],[0,()=>t.ReplicationTimeValue$],1],t.MetricsAndOperator$=[3,Q,`MetricsAndOperator`,0,[tr,yi,d],[0,[()=>_s,{[va]:1,[X]:`Tag`}],0]],t.MetricsConfiguration$=[3,Q,vn,0,[`Id`,vt],[0,[()=>t.MetricsFilter$,0]],1],t.MultipartUpload$=[3,Q,Dn,0,[Li,`Key`,`Initiated`,Zr,Vn,en,P,Ae],[0,0,4,0,()=>t.Owner$,()=>t.Initiator$,0,0]],t.NoncurrentVersionExpiration$=[3,Q,zn,0,[Fn,Ln],[1,1]],t.NoncurrentVersionTransition$=[3,Q,Bn,0,[Fn,Zr,Ln],[1,0,1]],t.NotificationConfiguration$=[3,Q,Nn,0,[`TopicConfigurations`,`QueueConfigurations`,`LambdaFunctionConfigurations`,$e],[[()=>bs,{[va]:1,[X]:Ci}],[()=>ps,{[va]:1,[X]:_r}],[()=>ns,{[va]:1,[X]:`CloudFunctionConfiguration`}],()=>t.EventBridgeConfiguration$]],t.NotificationConfigurationFilter$=[3,Q,`NotificationConfigurationFilter`,0,[`Key`],[[()=>t.S3KeyFilter$,{[X]:`S3Key`}]]],t._Object$=[3,Q,er,0,[`Key`,fn,ct,P,Ae,vi,Zr,Vn,Br],[0,4,0,[64,{[va]:1}],0,1,0,()=>t.Owner$,()=>t.RestoreStatus$]],t.ObjectIdentifier$=[3,Q,`ObjectIdentifier`,0,[`Key`,Hi,ct,`LastModifiedTime`,vi],[0,0,0,6,1],1],t.ObjectLockConfiguration$=[3,Q,Gn,0,[`ObjectLockEnabled`,Kr],[0,()=>t.ObjectLockRule$]],t.ObjectLockLegalHold$=[3,Q,`ObjectLockLegalHold`,0,[qr],[0]],t.ObjectLockRetention$=[3,Q,`ObjectLockRetention`,0,[jn,`RetainUntilDate`],[0,5]],t.ObjectLockRule$=[3,Q,`ObjectLockRule`,0,[Ge],[()=>t.DefaultRetention$]],t.ObjectPart$=[3,Q,`ObjectPart`,0,[ir,vi,L,R,z,ye,W,be,oe,Pe,Fe,Ie],[1,1,0,0,0,0,0,0,0,0,0,0]],t.ObjectVersion$=[3,Q,`ObjectVersion`,0,[ct,P,Ae,vi,Zr,`Key`,Hi,Lt,fn,Vn,Br],[0,[64,{[va]:1}],0,1,0,0,0,2,4,()=>t.Owner$,()=>t.RestoreStatus$]],t.OutputLocation$=[3,Q,Wn,0,[`S3`],[[()=>t.S3Location$,0]]],t.OutputSerialization$=[3,Q,$n,0,[`CSV`,tn],[()=>t.CSVOutput$,()=>t.JSONOutput$]],t.Owner$=[3,Q,Vn,0,[We,`ID`],[0,0]],t.OwnershipControls$=[3,Q,Hn,0,[yr],[[()=>us,{[va]:1,[X]:Kr}]],1],t.OwnershipControlsRule$=[3,Q,`OwnershipControlsRule`,0,[Yn],[0],1],t.ParquetInput$=[3,Q,`ParquetInput`,0,[],[]],t.Part$=[3,Q,lr,0,[ir,fn,ct,vi,L,R,z,ye,W,be,oe,Pe,Fe,Ie],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],t.PartitionedPrefix$=[3,Q,or,{[X]:or},[`PartitionDateSource`],[0]],t.PolicyStatus$=[3,Q,sr,0,[Wt],[[2,{[X]:Wt}]]],t.Progress$=[3,Q,mr,0,[A,T,k],[1,1,1]],t.ProgressEvent$=[3,Q,`ProgressEvent`,0,[Ze],[[()=>t.Progress$,{[Zi]:1}]]],t.PublicAccessBlockConfiguration$=[3,Q,nr,0,[E,Gt,D,Nr],[[2,{[X]:E}],[2,{[X]:Gt}],[2,{[X]:D}],[2,{[X]:Nr}]]],t.PutBucketAbacRequest$=[3,Q,`PutBucketAbacRequest`,0,[y,m,se,P,G],[[0,1],[()=>t.AbacStatus$,{[ta]:1,[X]:m}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketAccelerateConfigurationRequest$=[3,Q,`PutBucketAccelerateConfigurationRequest`,0,[y,n,G,P],[[0,1],[()=>t.AccelerateConfiguration$,{[ta]:1,[X]:n}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.PutBucketAclRequest$=[3,Q,`PutBucketAclRequest`,0,[y,`ACL`,a,se,P,Tt,Dt,Ot,kt,At,G],[[0,1],[0,{[J]:ba}],[()=>t.AccessControlPolicy$,{[ta]:1,[X]:a}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[0,{[J]:Z}]],1],t.PutBucketAnalyticsConfigurationRequest$=[3,Q,`PutBucketAnalyticsConfigurationRequest`,0,[y,`Id`,s,G],[[0,1],[0,{[Y]:`id`}],[()=>t.AnalyticsConfiguration$,{[ta]:1,[X]:s}],[0,{[J]:Z}]],3],t.PutBucketCorsRequest$=[3,Q,`PutBucketCorsRequest`,0,[y,de,se,P,G],[[0,1],[()=>t.CORSConfiguration$,{[ta]:1,[X]:de}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketEncryptionRequest$=[3,Q,`PutBucketEncryptionRequest`,0,[y,si,se,P,G],[[0,1],[()=>t.ServerSideEncryptionConfiguration$,{[ta]:1,[X]:si}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketIntelligentTieringConfigurationRequest$=[3,Q,`PutBucketIntelligentTieringConfigurationRequest`,0,[y,`Id`,Jt,G],[[0,1],[0,{[Y]:`id`}],[()=>t.IntelligentTieringConfiguration$,{[ta]:1,[X]:Jt}],[0,{[J]:Z}]],3],t.PutBucketInventoryConfigurationRequest$=[3,Q,`PutBucketInventoryConfigurationRequest`,0,[y,`Id`,Pt,G],[[0,1],[0,{[Y]:`id`}],[()=>t.InventoryConfiguration$,{[ta]:1,[X]:Pt}],[0,{[J]:Z}]],3],t.PutBucketLifecycleConfigurationOutput$=[3,Q,`PutBucketLifecycleConfigurationOutput`,0,[wi],[[0,{[J]:Eo}]]],t.PutBucketLifecycleConfigurationRequest$=[3,Q,`PutBucketLifecycleConfigurationRequest`,0,[y,P,ln,G,wi],[[0,1],[0,{[J]:ho}],[()=>t.BucketLifecycleConfiguration$,{[ta]:1,[X]:ln}],[0,{[J]:Z}],[0,{[J]:Eo}]],1],t.PutBucketLoggingRequest$=[3,Q,`PutBucketLoggingRequest`,0,[y,w,se,P,G],[[0,1],[()=>t.BucketLoggingStatus$,{[ta]:1,[X]:w}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketMetricsConfigurationRequest$=[3,Q,`PutBucketMetricsConfigurationRequest`,0,[y,`Id`,vn,G],[[0,1],[0,{[Y]:`id`}],[()=>t.MetricsConfiguration$,{[ta]:1,[X]:vn}],[0,{[J]:Z}]],3],t.PutBucketNotificationConfigurationRequest$=[3,Q,`PutBucketNotificationConfigurationRequest`,0,[y,Nn,G,`SkipDestinationValidation`],[[0,1],[()=>t.NotificationConfiguration$,{[ta]:1,[X]:Nn}],[0,{[J]:Z}],[2,{[J]:`x-amz-skip-destination-validation`}]],2],t.PutBucketOwnershipControlsRequest$=[3,Q,`PutBucketOwnershipControlsRequest`,0,[y,Hn,se,G,P],[[0,1],[()=>t.OwnershipControls$,{[ta]:1,[X]:Hn}],[0,{[J]:U}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.PutBucketPolicyRequest$=[3,Q,`PutBucketPolicyRequest`,0,[y,pr,se,P,`ConfirmRemoveSelfBucketAccess`,G],[[0,1],[0,16],[0,{[J]:U}],[0,{[J]:ho}],[2,{[J]:`x-amz-confirm-remove-self-bucket-access`}],[0,{[J]:Z}]],2],t.PutBucketReplicationRequest$=[3,Q,`PutBucketReplicationRequest`,0,[y,Dr,se,P,Pi,G],[[0,1],[()=>t.ReplicationConfiguration$,{[ta]:1,[X]:Dr}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Ta}],[0,{[J]:Z}]],2],t.PutBucketRequestPaymentRequest$=[3,Q,`PutBucketRequestPaymentRequest`,0,[y,Pr,se,P,G],[[0,1],[()=>t.RequestPaymentConfiguration$,{[ta]:1,[X]:Pr}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketTaggingRequest$=[3,Q,`PutBucketTaggingRequest`,0,[y,ji,se,P,G],[[0,1],[()=>t.Tagging$,{[ta]:1,[X]:ji}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketVersioningRequest$=[3,Q,`PutBucketVersioningRequest`,0,[y,Vi,se,P,`MFA`,G],[[0,1],[()=>t.VersioningConfiguration$,{[ta]:1,[X]:Vi}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:no}],[0,{[J]:Z}]],2],t.PutBucketWebsiteRequest$=[3,Q,`PutBucketWebsiteRequest`,0,[y,Wi,se,P,G],[[0,1],[()=>t.WebsiteConfiguration$,{[ta]:1,[X]:Wi}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectAclOutput$=[3,Q,`PutObjectAclOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectAclRequest$=[3,Q,`PutObjectAclRequest`,0,[y,`Key`,`ACL`,a,se,P,Tt,Dt,Ot,kt,At,Mr,Hi,G],[[0,1],[0,1],[0,{[J]:ba}],[()=>t.AccessControlPolicy$,{[ta]:1,[X]:a}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[0,{[J]:fo}],[0,{[Y]:_a}],[0,{[J]:Z}]],2],t.PutObjectLegalHoldOutput$=[3,Q,`PutObjectLegalHoldOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectLegalHoldRequest$=[3,Q,`PutObjectLegalHoldRequest`,0,[y,`Key`,dn,Mr,Hi,se,P,G],[[0,1],[0,1],[()=>t.ObjectLockLegalHold$,{[ta]:1,[X]:dn}],[0,{[J]:fo}],[0,{[Y]:_a}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectLockConfigurationOutput$=[3,Q,`PutObjectLockConfigurationOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectLockConfigurationRequest$=[3,Q,`PutObjectLockConfigurationRequest`,0,[y,Gn,Mr,Pi,se,P,G],[[0,1],[()=>t.ObjectLockConfiguration$,{[ta]:1,[X]:Gn}],[0,{[J]:fo}],[0,{[J]:Ta}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],1],t.PutObjectOutput$=[3,Q,`PutObjectOutput`,0,[Qe,ct,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ae,oi,Hi,ci,ui,pi,fi,C,vi,xr],[[0,{[J]:Ya}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[0,{[J]:_o}],[0,{[J]:Do}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[1,{[J]:`x-amz-object-size`}],[0,{[J]:uo}]]],t.PutObjectRequest$=[3,Q,`PutObjectRequest`,0,[y,`Key`,`ACL`,j,I,V,H,ne,ae,se,Me,P,L,R,z,ye,W,be,oe,Pe,Fe,Ie,gt,Rt,Ht,Tt,Dt,Ot,At,`WriteOffsetBytes`,mn,oi,Zr,Gi,ci,li,ui,pi,fi,C,Mr,ji,qn,Jn,Kn,G],[[0,1],[0,1],[0,{[J]:ba}],[()=>Bo,16],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:te}],[0,{[J]:re}],[1,{[J]:ie}],[0,{[J]:U}],[0,{[J]:je}],[0,{[J]:ho}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[4,{[J]:gt}],[0,{[J]:Vt}],[0,{[J]:Ut}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[1,{[J]:`x-amz-write-offset-bytes`}],[128,{[na]:to}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}]],2],t.PutObjectRetentionOutput$=[3,Q,`PutObjectRetentionOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectRetentionRequest$=[3,Q,`PutObjectRetentionRequest`,0,[y,`Key`,Gr,Mr,Hi,S,se,P,G],[[0,1],[0,1],[()=>t.ObjectLockRetention$,{[ta]:1,[X]:Gr}],[0,{[J]:fo}],[0,{[Y]:_a}],[2,{[J]:wa}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectTaggingOutput$=[3,Q,`PutObjectTaggingOutput`,0,[Hi],[[0,{[J]:Do}]]],t.PutObjectTaggingRequest$=[3,Q,`PutObjectTaggingRequest`,0,[y,`Key`,ji,Hi,se,P,G,Mr],[[0,1],[0,1],[()=>t.Tagging$,{[ta]:1,[X]:ji}],[0,{[Y]:_a}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}],[0,{[J]:fo}]],3],t.PutPublicAccessBlockRequest$=[3,Q,`PutPublicAccessBlockRequest`,0,[y,nr,se,P,G],[[0,1],[()=>t.PublicAccessBlockConfiguration$,{[ta]:1,[X]:nr}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.QueueConfiguration$=[3,Q,_r,0,[`QueueArn`,mt,`Id`,vt],[[0,{[X]:`Queue`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.RecordExpiration$=[3,Q,Ar,0,[Qe,Be],[0,1],1],t.RecordsEvent$=[3,Q,`RecordsEvent`,0,[dr],[[21,{[Zi]:1}]]],t.Redirect$=[3,Q,Wr,0,[Nt,`HttpRedirectCode`,hr,`ReplaceKeyPrefixWith`,`ReplaceKeyWith`],[0,0,0,0,0]],t.RedirectAllRequestsTo$=[3,Q,br,0,[Nt,hr],[0,0],1],t.RenameObjectOutput$=[3,Q,`RenameObjectOutput`,0,[],[]],t.RenameObjectRequest$=[3,Q,`RenameObjectRequest`,0,[y,`Key`,`RenameSource`,`DestinationIfMatch`,`DestinationIfNoneMatch`,`DestinationIfModifiedSince`,`DestinationIfUnmodifiedSince`,`SourceIfMatch`,`SourceIfNoneMatch`,`SourceIfModifiedSince`,`SourceIfUnmodifiedSince`,`ClientToken`],[[0,1],[0,1],[0,{[J]:`x-amz-rename-source`}],[0,{[J]:Vt}],[0,{[J]:Ut}],[4,{[J]:zt}],[4,{[J]:$t}],[0,{[J]:`x-amz-rename-source-if-match`}],[0,{[J]:`x-amz-rename-source-if-none-match`}],[6,{[J]:`x-amz-rename-source-if-modified-since`}],[6,{[J]:`x-amz-rename-source-if-unmodified-since`}],[0,{[J]:`x-amz-client-token`,idempotencyToken:1}]],3],t.ReplicaModifications$=[3,Q,jr,0,[qr],[0],1],t.ReplicationConfiguration$=[3,Q,Dr,0,[`Role`,yr],[0,[()=>ms,{[va]:1,[X]:Kr}]],2],t.ReplicationRule$=[3,Q,`ReplicationRule`,0,[qr,Xe,`ID`,`Priority`,tr,vt,ai,it,He],[0,()=>t.Destination$,0,1,0,[()=>t.ReplicationRuleFilter$,0],()=>t.SourceSelectionCriteria$,()=>t.ExistingObjectReplication$,()=>t.DeleteMarkerReplication$],2],t.ReplicationRuleAndOperator$=[3,Q,`ReplicationRuleAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.ReplicationRuleFilter$=[3,Q,`ReplicationRuleFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.ReplicationRuleAndOperator$,0]]],t.ReplicationTime$=[3,Q,Vr,0,[qr,`Time`],[0,()=>t.ReplicationTimeValue$],2],t.ReplicationTimeValue$=[3,Q,`ReplicationTimeValue`,0,[`Minutes`],[1]],t.RequestPaymentConfiguration$=[3,Q,Pr,0,[ur],[0],1],t.RequestProgress$=[3,Q,Fr,0,[`Enabled`],[2]],t.RestoreObjectOutput$=[3,Q,`RestoreObjectOutput`,0,[xr,`RestoreOutputPath`],[[0,{[J]:uo}],[0,{[J]:`x-amz-restore-output-path`}]]],t.RestoreObjectRequest$=[3,Q,`RestoreObjectRequest`,0,[y,`Key`,Hi,Lr,Mr,P,G],[[0,1],[0,1],[0,{[Y]:_a}],[()=>t.RestoreRequest$,{[ta]:1,[X]:Lr}],[0,{[J]:fo}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.RestoreRequest$=[3,Q,Lr,0,[Be,Et,Ii,Mi,`Description`,ti,Wn],[1,()=>t.GlacierJobParameters$,0,0,0,()=>t.SelectParameters$,[()=>t.OutputLocation$,0]]],t.RestoreStatus$=[3,Q,Br,0,[`IsRestoreInProgress`,`RestoreExpiryDate`],[2,4]],t.RoutingRule$=[3,Q,Rr,0,[Wr,Le],[()=>t.Redirect$,()=>t.Condition$],1],t.S3KeyFilter$=[3,Q,`S3KeyFilter`,0,[`FilterRules`],[[()=>Zo,{[va]:1,[X]:bt}]]],t.S3Location$=[3,Q,`S3Location`,0,[`BucketName`,tr,dt,`CannedACL`,r,ji,zi,Zr],[0,0,[()=>t.Encryption$,0],0,[()=>Qo,0],[()=>t.Tagging$,0],[()=>Ss,0],0],2],t.S3TablesDestination$=[3,Q,gi,0,[xi,Di],[0,0],2],t.S3TablesDestinationResult$=[3,Q,_i,0,[xi,Di,bi,Ei],[0,0,0,0],4],t.ScanRange$=[3,Q,ri,0,[`Start`,`End`],[1,1]],t.SelectObjectContentOutput$=[3,Q,`SelectObjectContentOutput`,0,[dr],[[()=>t.SelectObjectContentEventStream$,16]]],t.SelectObjectContentRequest$=[3,Q,`SelectObjectContentRequest`,0,[y,`Key`,_t,ut,Kt,$n,ci,li,ui,Fr,ri,G],[[0,1],[0,1],0,0,()=>t.InputSerialization$,()=>t.OutputSerialization$,[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],()=>t.RequestProgress$,()=>t.ScanRange$,[0,{[J]:Z}]],6],t.SelectParameters$=[3,Q,ti,0,[Kt,ut,_t,$n],[()=>t.InputSerialization$,0,0,()=>t.OutputSerialization$],4],t.ServerSideEncryptionByDefault$=[3,Q,`ServerSideEncryptionByDefault`,0,[`SSEAlgorithm`,`KMSMasterKeyID`],[0,[()=>zo,0]],1],t.ServerSideEncryptionConfiguration$=[3,Q,si,0,[yr],[[()=>gs,{[va]:1,[X]:Kr}]],1],t.ServerSideEncryptionRule$=[3,Q,`ServerSideEncryptionRule`,0,[`ApplyServerSideEncryptionByDefault`,C,x],[[()=>t.ServerSideEncryptionByDefault$,0],2,[()=>t.BlockedEncryptionTypes$,0]]],t.SessionCredentials$=[3,Q,`SessionCredentials`,0,[u,Yr,hi,Qe],[[0,{[X]:u}],[()=>Io,{[X]:Yr}],[()=>Io,{[X]:hi}],[4,{[X]:Qe}]],4],t.SimplePrefix$=[3,Q,ni,{[X]:ni},[],[]],t.SourceSelectionCriteria$=[3,Q,ai,0,[ei,jr],[()=>t.SseKmsEncryptedObjects$,()=>t.ReplicaModifications$]],t.SSEKMS$=[3,Q,di,{[X]:$r},[`KeyId`],[[()=>zo,0]],1],t.SseKmsEncryptedObjects$=[3,Q,ei,0,[qr],[0],1],t.SSEKMSEncryption$=[3,Q,`SSEKMSEncryption`,{[X]:$r},[`KMSKeyArn`,C],[[()=>Fo,0],2],1],t.SSES3$=[3,Q,mi,{[X]:ii},[],[]],t.Stats$=[3,Q,K,0,[A,T,k],[1,1,1]],t.StatsEvent$=[3,Q,`StatsEvent`,0,[Ze],[[()=>t.Stats$,{[Zi]:1}]]],t.StorageClassAnalysis$=[3,Q,Qr,0,[`DataExport`],[()=>t.StorageClassAnalysisDataExport$]],t.StorageClassAnalysisDataExport$=[3,Q,`StorageClassAnalysisDataExport`,0,[`OutputSchemaVersion`,Xe],[0,()=>t.AnalyticsExportDestination$],2],t.Tag$=[3,Q,`Tag`,0,[`Key`,Bi],[0,0],2],t.Tagging$=[3,Q,ji,0,[ki],[[()=>_s,0]],1],t.TargetGrant$=[3,Q,`TargetGrant`,0,[Mt,fr],[[()=>t.Grantee$,{[ya]:[`xsi`,ra]}],0]],t.TargetObjectKeyFormat$=[3,Q,Oi,0,[ni,or],[[()=>t.SimplePrefix$,{[X]:ni}],[()=>t.PartitionedPrefix$,{[X]:or}]]],t.Tiering$=[3,Q,Ni,0,[Be,g],[1,0],2],t.TopicConfiguration$=[3,Q,Ci,0,[`TopicArn`,mt,`Id`,vt],[[0,{[X]:`Topic`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.Transition$=[3,Q,Fi,0,[qe,Be,Zr],[5,1,0]],t.UpdateBucketMetadataInventoryTableConfigurationRequest$=[3,Q,`UpdateBucketMetadataInventoryTableConfigurationRequest`,0,[y,Zt,se,P,G],[[0,1],[()=>t.InventoryTableConfigurationUpdates$,{[ta]:1,[X]:Zt}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.UpdateBucketMetadataJournalTableConfigurationRequest$=[3,Q,`UpdateBucketMetadataJournalTableConfigurationRequest`,0,[y,nn,se,P,G],[[0,1],[()=>t.JournalTableConfigurationUpdates$,{[ta]:1,[X]:nn}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.UpdateObjectEncryptionRequest$=[3,Q,`UpdateObjectEncryptionRequest`,0,[y,`Key`,Un,Hi,Mr,G,se,P],[[0,1],[0,1],[()=>t.ObjectEncryption$,16],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:U}],[0,{[J]:ho}]],3],t.UpdateObjectEncryptionResponse$=[3,Q,`UpdateObjectEncryptionResponse`,0,[xr],[[0,{[J]:uo}]]],t.UploadPartCopyOutput$=[3,Q,`UploadPartCopyOutput`,0,[Oe,me,oi,ci,ui,pi,C,xr],[[0,{[J]:Ua}],[()=>t.CopyPartResult$,16],[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.UploadPartCopyRequest$=[3,Q,`UploadPartCopyRequest`,0,[y,ve,`Key`,ir,Li,xe,Se,Ce,we,`CopySourceRange`,ci,li,ui,Te,Ee,De,Mr,G,ot],[[0,1],[0,{[J]:Fa}],[0,1],[1,{[Y]:sa}],[0,{[Y]:ga}],[0,{[J]:Ia}],[4,{[J]:La}],[0,{[J]:Ra}],[4,{[J]:za}],[0,{[J]:`x-amz-copy-source-range`}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:Ba}],[()=>Po,{[J]:Va}],[0,{[J]:Ha}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:go}]],5],t.UploadPartOutput$=[3,Q,`UploadPartOutput`,0,[oi,ct,L,R,z,ye,W,be,oe,Pe,Fe,Ie,ci,ui,pi,C,xr],[[0,{[J]:_o}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.UploadPartRequest$=[3,Q,`UploadPartRequest`,0,[y,`Key`,ir,Li,j,ae,se,P,L,R,z,ye,W,be,oe,Pe,Fe,Ie,ci,li,ui,Mr,G],[[0,1],[0,1],[1,{[Y]:sa}],[0,{[Y]:ga}],[()=>Bo,16],[1,{[J]:ie}],[0,{[J]:U}],[0,{[J]:ho}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[0,{[J]:Z}]],4],t.VersioningConfiguration$=[3,Q,Vi,0,[xn,qr],[[0,{[X]:yn}],0]],t.WebsiteConfiguration$=[3,Q,Wi,0,[nt,It,br,Ir],[()=>t.ErrorDocument$,()=>t.IndexDocument$,()=>t.RedirectAllRequestsTo$,[()=>hs,0]]],t.WriteGetObjectResponseRequest$=[3,Q,`WriteGetObjectResponseRequest`,0,[`RequestRoute`,`RequestToken`,j,`StatusCode`,tt,rt,f,I,V,H,ne,ae,ge,Me,L,R,z,ye,W,be,oe,Pe,Fe,Ie,Ve,ct,gt,Qe,fn,Cn,mn,qn,Kn,Jn,rr,zr,xr,Ur,oi,ci,pi,ui,Zr,Si,Hi,C],[[0,{hostLabel:1,[J]:`x-amz-request-route`}],[0,{[J]:`x-amz-request-token`}],[()=>Bo,16],[1,{[J]:`x-amz-fwd-status`}],[0,{[J]:`x-amz-fwd-error-code`}],[0,{[J]:`x-amz-fwd-error-message`}],[0,{[J]:`x-amz-fwd-header-accept-ranges`}],[0,{[J]:`x-amz-fwd-header-Cache-Control`}],[0,{[J]:`x-amz-fwd-header-Content-Disposition`}],[0,{[J]:`x-amz-fwd-header-Content-Encoding`}],[0,{[J]:`x-amz-fwd-header-Content-Language`}],[1,{[J]:ie}],[0,{[J]:`x-amz-fwd-header-Content-Range`}],[0,{[J]:`x-amz-fwd-header-Content-Type`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc32`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc32c`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc64nvme`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha1`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha256`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha512`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-md5`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash64`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash3`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash128`}],[2,{[J]:`x-amz-fwd-header-x-amz-delete-marker`}],[0,{[J]:`x-amz-fwd-header-ETag`}],[4,{[J]:`x-amz-fwd-header-Expires`}],[0,{[J]:`x-amz-fwd-header-x-amz-expiration`}],[4,{[J]:`x-amz-fwd-header-Last-Modified`}],[1,{[J]:`x-amz-fwd-header-x-amz-missing-meta`}],[128,{[na]:to}],[0,{[J]:`x-amz-fwd-header-x-amz-object-lock-mode`}],[0,{[J]:`x-amz-fwd-header-x-amz-object-lock-legal-hold`}],[5,{[J]:`x-amz-fwd-header-x-amz-object-lock-retain-until-date`}],[1,{[J]:`x-amz-fwd-header-x-amz-mp-parts-count`}],[0,{[J]:`x-amz-fwd-header-x-amz-replication-status`}],[0,{[J]:`x-amz-fwd-header-x-amz-request-charged`}],[0,{[J]:`x-amz-fwd-header-x-amz-restore`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm`}],[()=>zo,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5`}],[0,{[J]:`x-amz-fwd-header-x-amz-storage-class`}],[1,{[J]:`x-amz-fwd-header-x-amz-tagging-count`}],[0,{[J]:`x-amz-fwd-header-x-amz-version-id`}],[2,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled`}]],2];var Vo=`unit`,Ho=[1,Q,i,0,[()=>t.AnalyticsConfiguration$,0]],Uo=[1,Q,M,0,[()=>t.Bucket$,{[X]:y}]],Wo=[1,Q,`CommonPrefixList`,0,()=>t.CommonPrefix$],Go=[1,Q,`CompletedPartList`,0,()=>t.CompletedPart$],Ko=[1,Q,fe,0,[()=>t.CORSRule$,0]],qo=[1,Q,`DeletedObjects`,0,()=>t.DeletedObject$],Jo=[1,Q,Ue,0,()=>t.DeleteMarkerEntry$],Yo=[1,Q,`EncryptionTypeList`,0,[0,{[X]:st}]],Xo=[1,Q,ft,0,()=>t._Error$],Zo=[1,Q,`FilterRuleList`,0,()=>t.FilterRule$],Qo=[1,Q,St,0,[()=>t.Grant$,{[X]:jt}]],$o=[1,Q,Yt,0,[()=>t.IntelligentTieringConfiguration$,0]],es=[1,Q,Ft,0,[()=>t.InventoryConfiguration$,0]],ts=[1,Q,`InventoryOptionalFields`,0,[0,{[X]:`Field`}]],ns=[1,Q,`LambdaFunctionConfigurationList`,0,[()=>t.LambdaFunctionConfiguration$,0]],rs=[1,Q,`LifecycleRules`,0,[()=>t.LifecycleRule$,0]],is=[1,Q,gn,0,[()=>t.MetricsConfiguration$,0]],as=[1,Q,`MultipartUploadList`,0,()=>t.MultipartUpload$],os=[1,Q,`NoncurrentVersionTransitionList`,0,()=>t.NoncurrentVersionTransition$],ss=[1,Q,`ObjectIdentifierList`,0,()=>t.ObjectIdentifier$],cs=[1,Q,`ObjectList`,0,[()=>t._Object$,0]],ls=[1,Q,`ObjectVersionList`,0,[()=>t.ObjectVersion$,0]],us=[1,Q,`OwnershipControlsRules`,0,()=>t.OwnershipControlsRule$],ds=[1,Q,cr,0,()=>t.Part$],fs=[1,Q,`PartsList`,0,()=>t.ObjectPart$],ps=[1,Q,`QueueConfigurationList`,0,[()=>t.QueueConfiguration$,0]],ms=[1,Q,`ReplicationRules`,0,[()=>t.ReplicationRule$,0]],hs=[1,Q,Ir,0,[()=>t.RoutingRule$,{[X]:Rr}]],gs=[1,Q,`ServerSideEncryptionRules`,0,[()=>t.ServerSideEncryptionRule$,0]],_s=[1,Q,ki,0,[()=>t.Tag$,{[X]:`Tag`}]],vs=[1,Q,Ti,0,[()=>t.TargetGrant$,{[X]:jt}]],ys=[1,Q,`TieringList`,0,()=>t.Tiering$],bs=[1,Q,`TopicConfigurationList`,0,[()=>t.TopicConfiguration$,0]],xs=[1,Q,`TransitionList`,0,()=>t.Transition$],Ss=[1,Q,zi,0,[()=>t.MetadataEntry$,{[X]:bn}]];t.AnalyticsFilter$=[4,Q,`AnalyticsFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.AnalyticsAndOperator$,0]]],t.MetricsFilter$=[4,Q,`MetricsFilter`,0,[tr,`Tag`,d,`And`],[0,()=>t.Tag$,0,[()=>t.MetricsAndOperator$,0]]],t.ObjectEncryption$=[4,Q,Un,0,[di],[[()=>t.SSEKMSEncryption$,{[X]:$r}]]],t.SelectObjectContentEventStream$=[4,Q,`SelectObjectContentEventStream`,{[ha]:1},[`Records`,K,mr,`Cont`,`End`],[[()=>t.RecordsEvent$,0],[()=>t.StatsEvent$,0],[()=>t.ProgressEvent$,0],()=>t.ContinuationEvent$,()=>t.EndEvent$]],t.AbortMultipartUpload$=[9,Q,`AbortMultipartUpload`,{[q]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>t.AbortMultipartUploadRequest$,()=>t.AbortMultipartUploadOutput$],t.CompleteMultipartUpload$=[9,Q,ce,{[q]:[`POST`,`/{Key+}`,200]},()=>t.CompleteMultipartUploadRequest$,()=>t.CompleteMultipartUploadOutput$],t.CopyObject$=[9,Q,`CopyObject`,{[q]:[`PUT`,`/{Key+}?x-id=CopyObject`,200]},()=>t.CopyObjectRequest$,()=>t.CopyObjectOutput$],t.CreateBucket$=[9,Q,`CreateBucket`,{[q]:[`PUT`,`/`,200]},()=>t.CreateBucketRequest$,()=>t.CreateBucketOutput$],t.CreateBucketMetadataConfiguration$=[9,Q,`CreateBucketMetadataConfiguration`,{[$i]:`-`,[q]:[`POST`,`/?metadataConfiguration`,200]},()=>t.CreateBucketMetadataConfigurationRequest$,()=>Vo],t.CreateBucketMetadataTableConfiguration$=[9,Q,`CreateBucketMetadataTableConfiguration`,{[$i]:`-`,[q]:[`POST`,`/?metadataTable`,200]},()=>t.CreateBucketMetadataTableConfigurationRequest$,()=>Vo],t.CreateMultipartUpload$=[9,Q,`CreateMultipartUpload`,{[q]:[`POST`,`/{Key+}?uploads`,200]},()=>t.CreateMultipartUploadRequest$,()=>t.CreateMultipartUploadOutput$],t.CreateSession$=[9,Q,`CreateSession`,{[q]:[`GET`,`/?session`,200]},()=>t.CreateSessionRequest$,()=>t.CreateSessionOutput$],t.DeleteBucket$=[9,Q,`DeleteBucket`,{[q]:[`DELETE`,`/`,204]},()=>t.DeleteBucketRequest$,()=>Vo],t.DeleteBucketAnalyticsConfiguration$=[9,Q,`DeleteBucketAnalyticsConfiguration`,{[q]:[`DELETE`,`/?analytics`,204]},()=>t.DeleteBucketAnalyticsConfigurationRequest$,()=>Vo],t.DeleteBucketCors$=[9,Q,`DeleteBucketCors`,{[q]:[`DELETE`,`/?cors`,204]},()=>t.DeleteBucketCorsRequest$,()=>Vo],t.DeleteBucketEncryption$=[9,Q,`DeleteBucketEncryption`,{[q]:[`DELETE`,`/?encryption`,204]},()=>t.DeleteBucketEncryptionRequest$,()=>Vo],t.DeleteBucketIntelligentTieringConfiguration$=[9,Q,`DeleteBucketIntelligentTieringConfiguration`,{[q]:[`DELETE`,`/?intelligent-tiering`,204]},()=>t.DeleteBucketIntelligentTieringConfigurationRequest$,()=>Vo],t.DeleteBucketInventoryConfiguration$=[9,Q,`DeleteBucketInventoryConfiguration`,{[q]:[`DELETE`,`/?inventory`,204]},()=>t.DeleteBucketInventoryConfigurationRequest$,()=>Vo],t.DeleteBucketLifecycle$=[9,Q,`DeleteBucketLifecycle`,{[q]:[`DELETE`,`/?lifecycle`,204]},()=>t.DeleteBucketLifecycleRequest$,()=>Vo],t.DeleteBucketMetadataConfiguration$=[9,Q,`DeleteBucketMetadataConfiguration`,{[q]:[`DELETE`,`/?metadataConfiguration`,204]},()=>t.DeleteBucketMetadataConfigurationRequest$,()=>Vo],t.DeleteBucketMetadataTableConfiguration$=[9,Q,`DeleteBucketMetadataTableConfiguration`,{[q]:[`DELETE`,`/?metadataTable`,204]},()=>t.DeleteBucketMetadataTableConfigurationRequest$,()=>Vo],t.DeleteBucketMetricsConfiguration$=[9,Q,`DeleteBucketMetricsConfiguration`,{[q]:[`DELETE`,`/?metrics`,204]},()=>t.DeleteBucketMetricsConfigurationRequest$,()=>Vo],t.DeleteBucketOwnershipControls$=[9,Q,`DeleteBucketOwnershipControls`,{[q]:[`DELETE`,`/?ownershipControls`,204]},()=>t.DeleteBucketOwnershipControlsRequest$,()=>Vo],t.DeleteBucketPolicy$=[9,Q,`DeleteBucketPolicy`,{[q]:[`DELETE`,`/?policy`,204]},()=>t.DeleteBucketPolicyRequest$,()=>Vo],t.DeleteBucketReplication$=[9,Q,`DeleteBucketReplication`,{[q]:[`DELETE`,`/?replication`,204]},()=>t.DeleteBucketReplicationRequest$,()=>Vo],t.DeleteBucketTagging$=[9,Q,`DeleteBucketTagging`,{[q]:[`DELETE`,`/?tagging`,204]},()=>t.DeleteBucketTaggingRequest$,()=>Vo],t.DeleteBucketWebsite$=[9,Q,`DeleteBucketWebsite`,{[q]:[`DELETE`,`/?website`,204]},()=>t.DeleteBucketWebsiteRequest$,()=>Vo],t.DeleteObject$=[9,Q,`DeleteObject`,{[q]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>t.DeleteObjectRequest$,()=>t.DeleteObjectOutput$],t.DeleteObjects$=[9,Q,`DeleteObjects`,{[$i]:`-`,[q]:[`POST`,`/?delete`,200]},()=>t.DeleteObjectsRequest$,()=>t.DeleteObjectsOutput$],t.DeleteObjectTagging$=[9,Q,`DeleteObjectTagging`,{[q]:[`DELETE`,`/{Key+}?tagging`,204]},()=>t.DeleteObjectTaggingRequest$,()=>t.DeleteObjectTaggingOutput$],t.DeletePublicAccessBlock$=[9,Q,`DeletePublicAccessBlock`,{[q]:[`DELETE`,`/?publicAccessBlock`,204]},()=>t.DeletePublicAccessBlockRequest$,()=>Vo],t.GetBucketAbac$=[9,Q,`GetBucketAbac`,{[q]:[`GET`,`/?abac`,200]},()=>t.GetBucketAbacRequest$,()=>t.GetBucketAbacOutput$],t.GetBucketAccelerateConfiguration$=[9,Q,`GetBucketAccelerateConfiguration`,{[q]:[`GET`,`/?accelerate`,200]},()=>t.GetBucketAccelerateConfigurationRequest$,()=>t.GetBucketAccelerateConfigurationOutput$],t.GetBucketAcl$=[9,Q,`GetBucketAcl`,{[q]:[`GET`,`/?acl`,200]},()=>t.GetBucketAclRequest$,()=>t.GetBucketAclOutput$],t.GetBucketAnalyticsConfiguration$=[9,Q,`GetBucketAnalyticsConfiguration`,{[q]:[`GET`,`/?analytics&x-id=GetBucketAnalyticsConfiguration`,200]},()=>t.GetBucketAnalyticsConfigurationRequest$,()=>t.GetBucketAnalyticsConfigurationOutput$],t.GetBucketCors$=[9,Q,`GetBucketCors`,{[q]:[`GET`,`/?cors`,200]},()=>t.GetBucketCorsRequest$,()=>t.GetBucketCorsOutput$],t.GetBucketEncryption$=[9,Q,`GetBucketEncryption`,{[q]:[`GET`,`/?encryption`,200]},()=>t.GetBucketEncryptionRequest$,()=>t.GetBucketEncryptionOutput$],t.GetBucketIntelligentTieringConfiguration$=[9,Q,`GetBucketIntelligentTieringConfiguration`,{[q]:[`GET`,`/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration`,200]},()=>t.GetBucketIntelligentTieringConfigurationRequest$,()=>t.GetBucketIntelligentTieringConfigurationOutput$],t.GetBucketInventoryConfiguration$=[9,Q,`GetBucketInventoryConfiguration`,{[q]:[`GET`,`/?inventory&x-id=GetBucketInventoryConfiguration`,200]},()=>t.GetBucketInventoryConfigurationRequest$,()=>t.GetBucketInventoryConfigurationOutput$],t.GetBucketLifecycleConfiguration$=[9,Q,`GetBucketLifecycleConfiguration`,{[q]:[`GET`,`/?lifecycle`,200]},()=>t.GetBucketLifecycleConfigurationRequest$,()=>t.GetBucketLifecycleConfigurationOutput$],t.GetBucketLocation$=[9,Q,`GetBucketLocation`,{[q]:[`GET`,`/?location`,200]},()=>t.GetBucketLocationRequest$,()=>t.GetBucketLocationOutput$],t.GetBucketLogging$=[9,Q,`GetBucketLogging`,{[q]:[`GET`,`/?logging`,200]},()=>t.GetBucketLoggingRequest$,()=>t.GetBucketLoggingOutput$],t.GetBucketMetadataConfiguration$=[9,Q,`GetBucketMetadataConfiguration`,{[q]:[`GET`,`/?metadataConfiguration`,200]},()=>t.GetBucketMetadataConfigurationRequest$,()=>t.GetBucketMetadataConfigurationOutput$],t.GetBucketMetadataTableConfiguration$=[9,Q,`GetBucketMetadataTableConfiguration`,{[q]:[`GET`,`/?metadataTable`,200]},()=>t.GetBucketMetadataTableConfigurationRequest$,()=>t.GetBucketMetadataTableConfigurationOutput$],t.GetBucketMetricsConfiguration$=[9,Q,`GetBucketMetricsConfiguration`,{[q]:[`GET`,`/?metrics&x-id=GetBucketMetricsConfiguration`,200]},()=>t.GetBucketMetricsConfigurationRequest$,()=>t.GetBucketMetricsConfigurationOutput$],t.GetBucketNotificationConfiguration$=[9,Q,`GetBucketNotificationConfiguration`,{[q]:[`GET`,`/?notification`,200]},()=>t.GetBucketNotificationConfigurationRequest$,()=>t.NotificationConfiguration$],t.GetBucketOwnershipControls$=[9,Q,`GetBucketOwnershipControls`,{[q]:[`GET`,`/?ownershipControls`,200]},()=>t.GetBucketOwnershipControlsRequest$,()=>t.GetBucketOwnershipControlsOutput$],t.GetBucketPolicy$=[9,Q,`GetBucketPolicy`,{[q]:[`GET`,`/?policy`,200]},()=>t.GetBucketPolicyRequest$,()=>t.GetBucketPolicyOutput$],t.GetBucketPolicyStatus$=[9,Q,`GetBucketPolicyStatus`,{[q]:[`GET`,`/?policyStatus`,200]},()=>t.GetBucketPolicyStatusRequest$,()=>t.GetBucketPolicyStatusOutput$],t.GetBucketReplication$=[9,Q,`GetBucketReplication`,{[q]:[`GET`,`/?replication`,200]},()=>t.GetBucketReplicationRequest$,()=>t.GetBucketReplicationOutput$],t.GetBucketRequestPayment$=[9,Q,`GetBucketRequestPayment`,{[q]:[`GET`,`/?requestPayment`,200]},()=>t.GetBucketRequestPaymentRequest$,()=>t.GetBucketRequestPaymentOutput$],t.GetBucketTagging$=[9,Q,`GetBucketTagging`,{[q]:[`GET`,`/?tagging`,200]},()=>t.GetBucketTaggingRequest$,()=>t.GetBucketTaggingOutput$],t.GetBucketVersioning$=[9,Q,`GetBucketVersioning`,{[q]:[`GET`,`/?versioning`,200]},()=>t.GetBucketVersioningRequest$,()=>t.GetBucketVersioningOutput$],t.GetBucketWebsite$=[9,Q,`GetBucketWebsite`,{[q]:[`GET`,`/?website`,200]},()=>t.GetBucketWebsiteRequest$,()=>t.GetBucketWebsiteOutput$],t.GetObject$=[9,Q,`GetObject`,{[$i]:`-`,[q]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>t.GetObjectRequest$,()=>t.GetObjectOutput$],t.GetObjectAcl$=[9,Q,`GetObjectAcl`,{[q]:[`GET`,`/{Key+}?acl`,200]},()=>t.GetObjectAclRequest$,()=>t.GetObjectAclOutput$],t.GetObjectAttributes$=[9,Q,`GetObjectAttributes`,{[q]:[`GET`,`/{Key+}?attributes`,200]},()=>t.GetObjectAttributesRequest$,()=>t.GetObjectAttributesOutput$],t.GetObjectLegalHold$=[9,Q,`GetObjectLegalHold`,{[q]:[`GET`,`/{Key+}?legal-hold`,200]},()=>t.GetObjectLegalHoldRequest$,()=>t.GetObjectLegalHoldOutput$],t.GetObjectLockConfiguration$=[9,Q,`GetObjectLockConfiguration`,{[q]:[`GET`,`/?object-lock`,200]},()=>t.GetObjectLockConfigurationRequest$,()=>t.GetObjectLockConfigurationOutput$],t.GetObjectRetention$=[9,Q,`GetObjectRetention`,{[q]:[`GET`,`/{Key+}?retention`,200]},()=>t.GetObjectRetentionRequest$,()=>t.GetObjectRetentionOutput$],t.GetObjectTagging$=[9,Q,`GetObjectTagging`,{[q]:[`GET`,`/{Key+}?tagging`,200]},()=>t.GetObjectTaggingRequest$,()=>t.GetObjectTaggingOutput$],t.GetObjectTorrent$=[9,Q,`GetObjectTorrent`,{[q]:[`GET`,`/{Key+}?torrent`,200]},()=>t.GetObjectTorrentRequest$,()=>t.GetObjectTorrentOutput$],t.GetPublicAccessBlock$=[9,Q,`GetPublicAccessBlock`,{[q]:[`GET`,`/?publicAccessBlock`,200]},()=>t.GetPublicAccessBlockRequest$,()=>t.GetPublicAccessBlockOutput$],t.HeadBucket$=[9,Q,`HeadBucket`,{[q]:[`HEAD`,`/`,200]},()=>t.HeadBucketRequest$,()=>t.HeadBucketOutput$],t.HeadObject$=[9,Q,`HeadObject`,{[q]:[`HEAD`,`/{Key+}`,200]},()=>t.HeadObjectRequest$,()=>t.HeadObjectOutput$],t.ListBucketAnalyticsConfigurations$=[9,Q,`ListBucketAnalyticsConfigurations`,{[q]:[`GET`,`/?analytics&x-id=ListBucketAnalyticsConfigurations`,200]},()=>t.ListBucketAnalyticsConfigurationsRequest$,()=>t.ListBucketAnalyticsConfigurationsOutput$],t.ListBucketIntelligentTieringConfigurations$=[9,Q,`ListBucketIntelligentTieringConfigurations`,{[q]:[`GET`,`/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations`,200]},()=>t.ListBucketIntelligentTieringConfigurationsRequest$,()=>t.ListBucketIntelligentTieringConfigurationsOutput$],t.ListBucketInventoryConfigurations$=[9,Q,`ListBucketInventoryConfigurations`,{[q]:[`GET`,`/?inventory&x-id=ListBucketInventoryConfigurations`,200]},()=>t.ListBucketInventoryConfigurationsRequest$,()=>t.ListBucketInventoryConfigurationsOutput$],t.ListBucketMetricsConfigurations$=[9,Q,`ListBucketMetricsConfigurations`,{[q]:[`GET`,`/?metrics&x-id=ListBucketMetricsConfigurations`,200]},()=>t.ListBucketMetricsConfigurationsRequest$,()=>t.ListBucketMetricsConfigurationsOutput$],t.ListBuckets$=[9,Q,`ListBuckets`,{[q]:[`GET`,`/?x-id=ListBuckets`,200]},()=>t.ListBucketsRequest$,()=>t.ListBucketsOutput$],t.ListDirectoryBuckets$=[9,Q,`ListDirectoryBuckets`,{[q]:[`GET`,`/?x-id=ListDirectoryBuckets`,200]},()=>t.ListDirectoryBucketsRequest$,()=>t.ListDirectoryBucketsOutput$],t.ListMultipartUploads$=[9,Q,`ListMultipartUploads`,{[q]:[`GET`,`/?uploads`,200]},()=>t.ListMultipartUploadsRequest$,()=>t.ListMultipartUploadsOutput$],t.ListObjects$=[9,Q,`ListObjects`,{[q]:[`GET`,`/`,200]},()=>t.ListObjectsRequest$,()=>t.ListObjectsOutput$],t.ListObjectsV2$=[9,Q,`ListObjectsV2`,{[q]:[`GET`,`/?list-type=2`,200]},()=>t.ListObjectsV2Request$,()=>t.ListObjectsV2Output$],t.ListObjectVersions$=[9,Q,`ListObjectVersions`,{[q]:[`GET`,`/?versions`,200]},()=>t.ListObjectVersionsRequest$,()=>t.ListObjectVersionsOutput$],t.ListParts$=[9,Q,`ListParts`,{[q]:[`GET`,`/{Key+}?x-id=ListParts`,200]},()=>t.ListPartsRequest$,()=>t.ListPartsOutput$],t.PutBucketAbac$=[9,Q,`PutBucketAbac`,{[$i]:`-`,[q]:[`PUT`,`/?abac`,200]},()=>t.PutBucketAbacRequest$,()=>Vo],t.PutBucketAccelerateConfiguration$=[9,Q,`PutBucketAccelerateConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?accelerate`,200]},()=>t.PutBucketAccelerateConfigurationRequest$,()=>Vo],t.PutBucketAcl$=[9,Q,`PutBucketAcl`,{[$i]:`-`,[q]:[`PUT`,`/?acl`,200]},()=>t.PutBucketAclRequest$,()=>Vo],t.PutBucketAnalyticsConfiguration$=[9,Q,`PutBucketAnalyticsConfiguration`,{[q]:[`PUT`,`/?analytics`,200]},()=>t.PutBucketAnalyticsConfigurationRequest$,()=>Vo],t.PutBucketCors$=[9,Q,`PutBucketCors`,{[$i]:`-`,[q]:[`PUT`,`/?cors`,200]},()=>t.PutBucketCorsRequest$,()=>Vo],t.PutBucketEncryption$=[9,Q,`PutBucketEncryption`,{[$i]:`-`,[q]:[`PUT`,`/?encryption`,200]},()=>t.PutBucketEncryptionRequest$,()=>Vo],t.PutBucketIntelligentTieringConfiguration$=[9,Q,`PutBucketIntelligentTieringConfiguration`,{[q]:[`PUT`,`/?intelligent-tiering`,200]},()=>t.PutBucketIntelligentTieringConfigurationRequest$,()=>Vo],t.PutBucketInventoryConfiguration$=[9,Q,`PutBucketInventoryConfiguration`,{[q]:[`PUT`,`/?inventory`,200]},()=>t.PutBucketInventoryConfigurationRequest$,()=>Vo],t.PutBucketLifecycleConfiguration$=[9,Q,`PutBucketLifecycleConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?lifecycle`,200]},()=>t.PutBucketLifecycleConfigurationRequest$,()=>t.PutBucketLifecycleConfigurationOutput$],t.PutBucketLogging$=[9,Q,`PutBucketLogging`,{[$i]:`-`,[q]:[`PUT`,`/?logging`,200]},()=>t.PutBucketLoggingRequest$,()=>Vo],t.PutBucketMetricsConfiguration$=[9,Q,`PutBucketMetricsConfiguration`,{[q]:[`PUT`,`/?metrics`,200]},()=>t.PutBucketMetricsConfigurationRequest$,()=>Vo],t.PutBucketNotificationConfiguration$=[9,Q,`PutBucketNotificationConfiguration`,{[q]:[`PUT`,`/?notification`,200]},()=>t.PutBucketNotificationConfigurationRequest$,()=>Vo],t.PutBucketOwnershipControls$=[9,Q,`PutBucketOwnershipControls`,{[$i]:`-`,[q]:[`PUT`,`/?ownershipControls`,200]},()=>t.PutBucketOwnershipControlsRequest$,()=>Vo],t.PutBucketPolicy$=[9,Q,`PutBucketPolicy`,{[$i]:`-`,[q]:[`PUT`,`/?policy`,200]},()=>t.PutBucketPolicyRequest$,()=>Vo],t.PutBucketReplication$=[9,Q,`PutBucketReplication`,{[$i]:`-`,[q]:[`PUT`,`/?replication`,200]},()=>t.PutBucketReplicationRequest$,()=>Vo],t.PutBucketRequestPayment$=[9,Q,`PutBucketRequestPayment`,{[$i]:`-`,[q]:[`PUT`,`/?requestPayment`,200]},()=>t.PutBucketRequestPaymentRequest$,()=>Vo],t.PutBucketTagging$=[9,Q,`PutBucketTagging`,{[$i]:`-`,[q]:[`PUT`,`/?tagging`,200]},()=>t.PutBucketTaggingRequest$,()=>Vo],t.PutBucketVersioning$=[9,Q,`PutBucketVersioning`,{[$i]:`-`,[q]:[`PUT`,`/?versioning`,200]},()=>t.PutBucketVersioningRequest$,()=>Vo],t.PutBucketWebsite$=[9,Q,`PutBucketWebsite`,{[$i]:`-`,[q]:[`PUT`,`/?website`,200]},()=>t.PutBucketWebsiteRequest$,()=>Vo],t.PutObject$=[9,Q,`PutObject`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>t.PutObjectRequest$,()=>t.PutObjectOutput$],t.PutObjectAcl$=[9,Q,`PutObjectAcl`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?acl`,200]},()=>t.PutObjectAclRequest$,()=>t.PutObjectAclOutput$],t.PutObjectLegalHold$=[9,Q,`PutObjectLegalHold`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?legal-hold`,200]},()=>t.PutObjectLegalHoldRequest$,()=>t.PutObjectLegalHoldOutput$],t.PutObjectLockConfiguration$=[9,Q,`PutObjectLockConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?object-lock`,200]},()=>t.PutObjectLockConfigurationRequest$,()=>t.PutObjectLockConfigurationOutput$],t.PutObjectRetention$=[9,Q,`PutObjectRetention`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?retention`,200]},()=>t.PutObjectRetentionRequest$,()=>t.PutObjectRetentionOutput$],t.PutObjectTagging$=[9,Q,`PutObjectTagging`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?tagging`,200]},()=>t.PutObjectTaggingRequest$,()=>t.PutObjectTaggingOutput$],t.PutPublicAccessBlock$=[9,Q,`PutPublicAccessBlock`,{[$i]:`-`,[q]:[`PUT`,`/?publicAccessBlock`,200]},()=>t.PutPublicAccessBlockRequest$,()=>Vo],t.RenameObject$=[9,Q,`RenameObject`,{[q]:[`PUT`,`/{Key+}?renameObject`,200]},()=>t.RenameObjectRequest$,()=>t.RenameObjectOutput$],t.RestoreObject$=[9,Q,`RestoreObject`,{[$i]:`-`,[q]:[`POST`,`/{Key+}?restore`,200]},()=>t.RestoreObjectRequest$,()=>t.RestoreObjectOutput$],t.SelectObjectContent$=[9,Q,`SelectObjectContent`,{[q]:[`POST`,`/{Key+}?select&select-type=2`,200]},()=>t.SelectObjectContentRequest$,()=>t.SelectObjectContentOutput$],t.UpdateBucketMetadataInventoryTableConfiguration$=[9,Q,`UpdateBucketMetadataInventoryTableConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?metadataInventoryTable`,200]},()=>t.UpdateBucketMetadataInventoryTableConfigurationRequest$,()=>Vo],t.UpdateBucketMetadataJournalTableConfiguration$=[9,Q,`UpdateBucketMetadataJournalTableConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?metadataJournalTable`,200]},()=>t.UpdateBucketMetadataJournalTableConfigurationRequest$,()=>Vo],t.UpdateObjectEncryption$=[9,Q,`UpdateObjectEncryption`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?encryption`,200]},()=>t.UpdateObjectEncryptionRequest$,()=>t.UpdateObjectEncryptionResponse$],t.UploadPart$=[9,Q,`UploadPart`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>t.UploadPartRequest$,()=>t.UploadPartOutput$],t.UploadPartCopy$=[9,Q,`UploadPartCopy`,{[q]:[`PUT`,`/{Key+}?x-id=UploadPartCopy`,200]},()=>t.UploadPartCopyRequest$,()=>t.UploadPartCopyOutput$],t.WriteGetObjectResponse$=[9,Q,`WriteGetObjectResponse`,{endpoint:[`{RequestRoute}.`],[q]:[`POST`,`/WriteGetObjectResponse`,200]},()=>t.WriteGetObjectResponseRequest$,()=>Vo]})),ks=i(((e,t)=>{t.exports={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1045.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.8`,"@aws-sdk/credential-provider-node":`^3.972.39`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.10`,"@aws-sdk/middleware-expect-continue":`^3.972.10`,"@aws-sdk/middleware-flexible-checksums":`^3.974.16`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-location-constraint":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.37`,"@aws-sdk/middleware-ssec":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.38`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.25`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.24`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-blob-browser":`^4.2.15`,"@smithy/hash-node":`^4.2.14`,"@smithy/hash-stream-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/md5-js":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.7`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.6`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,"@smithy/util-waiter":`^4.3.0`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1045.0`,"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}}})),As=i((e=>{var t=ce(),r=U(),i=oe();let a=`AWS_EC2_METADATA_DISABLED`,o=async e=>{let{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:i,fromContainerMetadata:o,fromInstanceMetadata:s}=await import(`./dist-cjs-sKez7UTL.js`).then(e=>n(e.default));if(process.env[i]||process.env[t]){e.logger?.debug(`@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata`);let{fromHttp:t}=await import(`./dist-cjs-CuhA-p5Q.js`).then(e=>n(e.default));return r.chain(t(e),o(e))}return process.env[a]&&process.env[a]!==`false`?async()=>{throw new r.CredentialsProviderError(`EC2 Instance Metadata Service access disabled`,{logger:e.logger})}:(e.logger?.debug(`@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata`),s(e))};function s(e,t){let n=c(e),r,i,a,o=async e=>{if(e?.forceRefresh)return await n(e);if(a?.expiration&&a?.expiration?.getTime(){a=e}).finally(()=>{i=void 0});else return r=n(e).then(e=>{a=e}).finally(()=>{r=void 0}),o(e);return a};return o}let c=e=>async t=>{let n;for(let r of e)try{return await r(t)}catch(e){if(n=e,e?.tryNextLink)continue;throw e}throw n},l=!1,u=(e={})=>s([async()=>{if(e.profile??process.env[i.ENV_PROFILE])throw process.env[t.ENV_KEY]&&process.env[t.ENV_SECRET]&&(l||=((e.logger?.warn&&e.logger?.constructor?.name!==`NoOpLogger`?e.logger.warn.bind(e.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: - Multiple credential sources detected: - Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. - This SDK will proceed with the AWS_PROFILE value. - - However, a future version may change this behavior to prefer the ENV static credentials. - Please ensure that your environment only sets either the AWS_PROFILE or the - AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. -`),!0)),new r.CredentialsProviderError(`AWS_PROFILE is set, skipping fromEnv provider.`,{logger:e.logger,tryNextLink:!0});return e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv`),t.fromEnv(e)()},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromSSO`);let{ssoStartUrl:i,ssoAccountId:a,ssoRegion:o,ssoRoleName:s,ssoSession:c}=e;if(!i&&!a&&!o&&!s&&!c)throw new r.CredentialsProviderError(`Skipping SSO provider in default chain (inputs do not include SSO fields).`,{logger:e.logger});let{fromSSO:l}=await import(`./dist-cjs-Bd7-ZKWb.js`).then(e=>n(e.default));return l(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromIni`);let{fromIni:r}=await import(`./dist-cjs-f34ATqxg.js`).then(e=>n(e.default));return r(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromProcess`);let{fromProcess:r}=await import(`./dist-cjs-BgrAoXL3.js`).then(e=>n(e.default));return r(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile`);let{fromTokenFile:r}=await import(`./dist-cjs-DeiB7zug.js`).then(e=>n(e.default));return r(e)(t)},async()=>(e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::remoteProvider`),(await o(e))()),async()=>{throw new r.CredentialsProviderError(`Could not load credentials from any providers`,{tryNextLink:!1,logger:e.logger})}],f),d=e=>e?.expiration!==void 0,f=e=>e?.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5;e.credentialsTreatedAsExpired=f,e.credentialsWillNeedRefresh=d,e.defaultProvider=u})),js=i((e=>{var t=k(),n=ie(),r=c();let i=`AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS`,a=`s3_disable_multiregion_access_points`,o={environmentVariableSelector:e=>t.booleanSelector(e,i,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,a,t.SelectorType.CONFIG),default:!1},s=`AWS_S3_USE_ARN_REGION`,l=`s3_use_arn_region`,u={environmentVariableSelector:e=>t.booleanSelector(e,s,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,l,t.SelectorType.CONFIG),default:void 0},d=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,f=/(\d+\.){3}\d+/,p=/\.\./,m=/\./,h=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,g=/^s3(-external-1)?\.amazonaws\.com$/,v=`amazonaws.com`,y=e=>typeof e.bucketName==`string`,b=e=>d.test(e)&&!f.test(e)&&!p.test(e),x=e=>{let t=e.match(h);return[t[4],e.replace(RegExp(`^${t[0]}`),``)]},S=e=>g.test(e)?[`us-east-1`,v]:x(e),C=e=>g.test(e)?[e.replace(`.${v}`,``),v]:x(e),w=e=>{if(e.pathStyleEndpoint)throw Error(`Path-style S3 endpoint is not supported when bucket is an ARN`);if(e.accelerateEndpoint)throw Error(`Accelerate endpoint is not supported when bucket is an ARN`);if(!e.tlsCompatible)throw Error(`HTTPS is required when bucket is an ARN`)},T=e=>{if(e!==`s3`&&e!==`s3-outposts`&&e!==`s3-object-lambda`)throw Error(`Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component`)},E=e=>{if(e!==`s3`)throw Error(`Expect 's3' in Accesspoint ARN service component`)},D=e=>{if(e!==`s3-outposts`)throw Error(`Expect 's3-posts' in Outpost ARN service component`)},O=(e,t)=>{if(e!==t.clientPartition)throw Error(`Partition in ARN is incompatible, got "${e}" but expected "${t.clientPartition}"`)},A=(e,t)=>{},j=e=>{if([`s3-external-1`,`aws-global`].includes(e))throw Error(`Client region ${e} is not regional`)},M=e=>{if(!/[0-9]{12}/.exec(e))throw Error(`Access point ARN accountID does not match regex '[0-9]{12}'`)},N=(e,t={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||t?.tlsCompatible&&m.test(e))throw Error(`Invalid DNS label ${e}`)},P=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw Error(`Dualstack endpoint is not supported with custom endpoint`);if(e.accelerateEndpoint)throw Error(`Accelerate endpoint is not supported with custom endpoint`)}},F=e=>{let t=e.includes(`:`)?`:`:`/`,[n,...r]=e.split(t);if(n===`accesspoint`){if(r.length!==1||r[0]===``)throw Error(`Access Point ARN should have one resource accesspoint${t}{accesspointname}`);return{accesspointName:r[0]}}else if(n===`outpost`){if(!r[0]||r[1]!==`accesspoint`||!r[2]||r.length!==3)throw Error(`Outpost ARN should have resource outpost${t}{outpostId}${t}accesspoint${t}{accesspointName}`);let[e,n,i]=r;return{outpostId:e,accesspointName:i}}else throw Error(`ARN resource should begin with 'accesspoint${t}' or 'outpost${t}'`)},I=e=>{},L=e=>{if(e)throw Error(`FIPS region is not supported with Outpost.`)},R=e=>{try{e.split(`.`).forEach(e=>{N(e)})}catch{throw Error(`"${e}" is not a DNS compatible name.`)}},z=e=>(P(e),y(e)?ee(e):B(e)),ee=({accelerateEndpoint:e=!1,clientRegion:t,baseHostname:n,bucketName:r,dualstackEndpoint:i=!1,fipsEndpoint:a=!1,pathStyleEndpoint:o=!1,tlsCompatible:s=!0,isCustomEndpoint:c=!1})=>{let[l,u]=c?[t,n]:S(n);return o||!b(r)||s&&m.test(r)?{bucketEndpoint:!1,hostname:i?`s3.dualstack.${l}.${u}`:n}:(e?n=`s3-accelerate${i?`.dualstack`:``}.${u}`:i&&(n=`s3.dualstack.${l}.${u}`),{bucketEndpoint:!0,hostname:`${r}.${n}`})},B=e=>{let{isCustomEndpoint:t,baseHostname:n,clientRegion:r}=e,i=t?n:C(n)[1],{pathStyleEndpoint:a,accelerateEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,bucketName:l,clientPartition:u=`aws`}=e;w({pathStyleEndpoint:a,accelerateEndpoint:o,tlsCompatible:c});let{service:d,partition:f,accountId:p,region:m,resource:h}=l;T(d),O(f,{clientPartition:u}),M(p);let{accesspointName:g,outpostId:v}=F(h);return d===`s3-object-lambda`?V({...e,tlsCompatible:c,bucketName:l,accesspointName:g,hostnameSuffix:i}):m===``?te({...e,mrapAlias:g,hostnameSuffix:i}):v?H({...e,clientRegion:r,outpostId:v,accesspointName:g,hostnameSuffix:i}):ne({...e,clientRegion:r,accesspointName:g,hostnameSuffix:i})},V=({dualstackEndpoint:e=!1,fipsEndpoint:t=!1,tlsCompatible:n=!0,useArnRegion:r,clientRegion:i,clientSigningRegion:a=i,accesspointName:o,bucketName:s,hostnameSuffix:c})=>{let{accountId:l,region:u,service:d}=s;j(i);let f=`${o}-${l}`;N(f,{tlsCompatible:n});let p=r?u:i,m=r?u:a;return{bucketEndpoint:!0,hostname:`${f}.${d}${t?`-fips`:``}.${p}.${c}`,signingRegion:m,signingService:d}},te=({disableMultiregionAccessPoints:e,dualstackEndpoint:t=!1,isCustomEndpoint:n,mrapAlias:r,hostnameSuffix:i})=>{if(e===!0)throw Error(`SDK is attempting to use a MRAP ARN. Please enable to feature.`);return R(r),{bucketEndpoint:!0,hostname:`${r}${n?``:`.accesspoint.s3-global`}.${i}`,signingRegion:`*`}},H=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,outpostId:i,dualstackEndpoint:a=!1,fipsEndpoint:o=!1,tlsCompatible:s=!0,accesspointName:c,isCustomEndpoint:l,hostnameSuffix:u})=>{j(t);let d=`${c}-${r.accountId}`;N(d,{tlsCompatible:s});let f=e?r.region:t,p=e?r.region:n;return D(r.service),N(i,{tlsCompatible:s}),L(o),{bucketEndpoint:!0,hostname:`${`${d}.${i}`}${l?``:`.s3-outposts.${f}`}.${u}`,signingRegion:p,signingService:`s3-outposts`}},ne=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,dualstackEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:o=!0,accesspointName:s,isCustomEndpoint:c,hostnameSuffix:l})=>{j(t);let u=`${s}-${r.accountId}`;N(u,{tlsCompatible:o});let d=e?r.region:t,f=e?r.region:n;return E(r.service),{bucketEndpoint:!0,hostname:`${u}${c?``:`.s3-accesspoint${a?`-fips`:``}${i?`.dualstack`:``}.${d}`}.${l}`,signingRegion:f}},re=e=>(t,i)=>async a=>{let{Bucket:o}=a.input,s=e.bucketEndpoint,c=a.request;if(r.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if(n.validate(o)){let t=n.parse(o),r=await e.region(),a=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{partition:u,signingRegion:d=r}=await e.regionInfoProvider(r,{useDualstackEndpoint:a,useFipsEndpoint:l})||{},f=await e.useArnRegion(),{hostname:p,bucketEndpoint:m,signingRegion:h,signingService:g}=z({bucketName:t,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:a,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol===`https:`,useArnRegion:f,clientPartition:u,clientSigningRegion:d,clientRegion:r,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});h&&h!==d&&(i.signing_region=h),g&&g!==`s3`&&(i.signing_service=g),c.hostname=p,s=m}else{let t=await e.region(),n=await e.useDualstackEndpoint(),r=await e.useFipsEndpoint(),{hostname:i,bucketEndpoint:a}=z({bucketName:o,clientRegion:t,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:n,fipsEndpoint:r,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol===`https:`,isCustomEndpoint:e.isCustomEndpoint});c.hostname=i,s=a}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,``),c.path===``&&(c.path=`/`))}return t({...a,request:c})},ae={tags:[`BUCKET_ENDPOINT`],name:`bucketEndpointMiddleware`,relation:`before`,toMiddleware:`hostHeaderMiddleware`,override:!0},U=e=>({applyToStack:t=>{t.addRelativeTo(re(e),ae)}});function oe(e){let{bucketEndpoint:t=!1,forcePathStyle:n=!1,useAccelerateEndpoint:r=!1,useArnRegion:i,disableMultiregionAccessPoints:a=!1}=e;return Object.assign(e,{bucketEndpoint:t,forcePathStyle:n,useAccelerateEndpoint:r,useArnRegion:typeof i==`function`?i:()=>Promise.resolve(i),disableMultiregionAccessPoints:typeof a==`function`?a:()=>Promise.resolve(a)})}e.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=o,e.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=i,e.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=a,e.NODE_USE_ARN_REGION_CONFIG_OPTIONS=u,e.NODE_USE_ARN_REGION_ENV_NAME=s,e.NODE_USE_ARN_REGION_INI_NAME=l,e.bucketEndpointMiddleware=re,e.bucketEndpointMiddlewareOptions=ae,e.bucketHostname=z,e.getArnResources=F,e.getBucketEndpointPlugin=U,e.getSuffixForArnEndpoint=C,e.resolveBucketEndpointConfig=oe,e.validateAccountId=M,e.validateDNSHostLabel=N,e.validateNoDualstack=I,e.validateNoFIPS=L,e.validateOutpostService=D,e.validatePartition=O,e.validateRegion=A})),Ms=i((e=>{var t=ys(),n=x(),r=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&i(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&i(e),parseInt(n.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function i(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var a=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let i=new DataView(new ArrayBuffer(5));return i.setUint8(0,4),i.setInt32(1,e.value,!1),new Uint8Array(i.buffer);case`long`:let a=new Uint8Array(9);return a[0]=5,a.set(e.value.bytes,1),a;case`binary`:let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let s=new Uint8Array(o.buffer);return s.set(e.value,3),s;case`string`:let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case`timestamp`:let d=new Uint8Array(9);return d[0]=8,d.set(r.fromNumber(e.value.valueOf()).bytes,1),d;case`uuid`:if(!g.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(n.fromHex(e.value.replace(/\-/g,``)),1),f}}parse(e){let t={},i=0;for(;i{var t=Ms();function n(e){let t=0,n=0,r=null,i=null,a=e=>{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;lnew i(e)})),Ps=i((e=>{var n=Ns(),r=t(`stream`);async function*i(e){let t=!1,n=!1,r=[];for(e.on(`error`,e=>{if(t||=!0,e)throw e}),e.on(`data`,e=>{r.push(e)}),e.on(`end`,()=>{t=!0});!n;){let e=await new Promise(e=>setTimeout(()=>e(r.shift()),0));e&&(yield e),n=t&&r.length===0}}var a=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new n.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=typeof e[Symbol.asyncIterator]==`function`?e:i(e);return this.universalMarshaller.deserialize(n,t)}serialize(e,t){return r.Readable.from(this.universalMarshaller.serialize(e,t))}};e.EventStreamMarshaller=a,e.eventStreamSerdeProvider=e=>new a(e)})),Fs=i((e=>{var n=t(`fs`),r=p(),i=t(`stream`),a=class extends i.Writable{hash;constructor(e,t){super(t),this.hash=e}_write(e,t,n){try{this.hash.update(r.toUint8Array(e))}catch(e){return n(e)}n()}};let o=(e,t)=>new Promise((r,i)=>{if(!s(t)){i(Error(`Unable to calculate hash for non-file streams.`));return}let o=n.createReadStream(t.path,{start:t.start,end:t.end}),c=new e,l=new a(c);o.pipe(l),o.on(`error`,e=>{l.end(),i(e)}),l.on(`error`,i),l.on(`finish`,function(){c.digest().then(r).catch(i)})}),s=e=>typeof e.path==`string`;e.fileStreamHasher=o,e.readableStreamHasher=(e,t)=>{if(t.readableFlowing!==null)throw Error(`Unable to calculate hash for flowing readable stream`);let n=new e,r=new a(n);return t.pipe(r),new Promise((e,i)=>{t.on(`error`,e=>{r.end(),i(e)}),r.on(`error`,i),r.on(`finish`,()=>{n.digest().then(e).catch(i)})})}})),Is=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRuntimeConfig=void 0;let n=(ee(),e(R)),r=re(),i=ae(),a=C(),o=ne(),s=y(),c=w(),l=p(),u=Ts(),d=ws(),f=Os();t.getRuntimeConfig=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??d.defaultEndpointResolver,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??c.getAwsChunkedEncodingStream,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??u.defaultS3HttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new n.AwsSdkSigV4Signer},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new n.AwsSdkSigV4ASigner}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??r.S3RestXmlProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:f.errorTypeRegistries,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??c.sdkStreamMixin,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??i.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??o.parseUrl,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??l.fromUtf8,utf8Encoder:e?.utf8Encoder??l.toUtf8})})),Ls=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRuntimeConfig=void 0;let n=(m(),e(b)).__importDefault(ks()),r=(l(),e(d)),i=(ee(),e(R)),a=As(),o=js(),s=xs(),c=re(),f=P(),p=j(),h=Ps(),g=I(),v=Fs(),y=H(),x=se(),w=S(),T=C(),E=z(),D=L(),O=u(),k=Is();t.getRuntimeConfig=e=>{(0,T.emitWarningIfUnsupportedVersion)(process.version);let t=(0,D.resolveDefaultsModeConfig)(e),l=()=>t().then(T.loadConfigsForDefaultMode),u=(0,k.getRuntimeConfig)(e);(0,r.emitWarningIfUnsupportedVersion)(process.version);let d={profile:e?.profile,logger:u.logger};return{...u,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,x.loadConfig)(i.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,d),bodyLengthChecker:e?.bodyLengthChecker??E.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??a.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:u.serviceId,clientVersion:n.default.version}),disableS3ExpressSessionAuth:e?.disableS3ExpressSessionAuth??(0,x.loadConfig)(c.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS,d),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??h.eventStreamSerdeProvider,maxAttempts:e?.maxAttempts??(0,x.loadConfig)(y.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),md5:e?.md5??g.Hash.bind(null,`md5`),region:e?.region??(0,x.loadConfig)(p.NODE_REGION_CONFIG_OPTIONS,{...p.NODE_REGION_CONFIG_FILE_OPTIONS,...d}),requestChecksumCalculation:e?.requestChecksumCalculation??(0,x.loadConfig)(s.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS,d),requestHandler:w.NodeHttpHandler.create(e?.requestHandler??l),responseChecksumValidation:e?.responseChecksumValidation??(0,x.loadConfig)(s.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS,d),retryMode:e?.retryMode??(0,x.loadConfig)({...y.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||O.DEFAULT_RETRY_MODE},e),sha1:e?.sha1??g.Hash.bind(null,`sha1`),sha256:e?.sha256??g.Hash.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,x.loadConfig)(i.NODE_SIGV4A_CONFIG_OPTIONS,d),streamCollector:e?.streamCollector??w.streamCollector,streamHasher:e?.streamHasher??v.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,x.loadConfig)(o.NODE_USE_ARN_REGION_CONFIG_OPTIONS,d),useDualstackEndpoint:e?.useDualstackEndpoint??(0,x.loadConfig)(p.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,d),useFipsEndpoint:e?.useFipsEndpoint??(0,x.loadConfig)(p.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,d),userAgentAppId:e?.userAgentAppId??(0,x.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,d)}}})),Rs=i((e=>{function t(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let a;typeof n==`string`?i(n,e)?a=e.base64Decoder(n):(a=e.utf8Decoder(n),r[t.target]=e.base64Encoder(a)):(a=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(a));let o=new e.md5;o.update(a),r[t.hash]=e.base64Encoder(await o.digest())}}return t({...n,input:r})}}let n={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},r=e=>({applyToStack:r=>{r.add(t(e),n)}});function i(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}e.getSsecPlugin=r,e.isValidBase64EncodedSSECustomerKey=i,e.ssecMiddleware=t,e.ssecMiddlewareOptions=n})),zs=i((e=>{function t(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}let n={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0};e.getLocationConstraintPlugin=e=>({applyToStack:r=>{r.add(t(e),n)}}),e.locationConstraintMiddleware=t,e.locationConstraintMiddlewareOptions=n})),Bs=i((e=>{let t=()=>{let e=new WeakSet;return(t,n)=>{if(typeof n==`object`&&n){if(e.has(n))return`[Circular]`;e.add(n)}return n}},n=e=>new Promise(t=>setTimeout(t,e*1e3)),r={minDelay:2,maxDelay:120};e.WaiterState=void 0,(function(e){e.ABORTED=`ABORTED`,e.FAILURE=`FAILURE`,e.SUCCESS=`SUCCESS`,e.RETRY=`RETRY`,e.TIMEOUT=`TIMEOUT`})(e.WaiterState||={});let i=n=>{if(n.state===e.WaiterState.ABORTED){let e=Error(`${JSON.stringify({...n,reason:`Request was aborted`},t())}`);throw e.name=`AbortError`,e}else if(n.state===e.WaiterState.TIMEOUT){let e=Error(`${JSON.stringify({...n,reason:`Waiter has timed out`},t())}`);throw e.name=`TimeoutError`,e}else if(n.state!==e.WaiterState.SUCCESS)throw Error(`${JSON.stringify(n,t())}`);return n},a=async({minDelay:t,maxDelay:r,maxWaitTime:i,abortController:a,client:l,abortSignal:u},d,f)=>{let p={},[m,h]=[t*1e3,r*1e3],g=0,v=Date.now()+i*1e3,y=Date.now()+6e4,b=!1;for(;;){if(g>0){let t=c(m,h,g,v);if(a?.signal?.aborted||u?.aborted){let t=`AbortController signal aborted.`;return p[t]|=0,p[t]+=1,{state:e.WaiterState.ABORTED,observedResponses:p}}if(Date.now()+t>v)return{state:e.WaiterState.TIMEOUT,observedResponses:p};await n(t/1e3)}let{state:t,reason:r}=await f(l,d);if(r){let e=s(r);p[e]|=0,p[e]+=1}if(t!==e.WaiterState.RETRY)return{state:t,reason:r,final:r,observedResponses:p};g+=1,!b&&Date.now()>=y&&(o(p,l),b=!0)}},o=(e={},t)=>{let n=Object.keys(e),r=0;for(let t of n){let n=e[t]|0;t.startsWith(`403:`)&&(r+=n)}let i=t?.config?.logger,a=typeof i?.warn==`function`&&!i.constructor?.name?.includes?.(`NoOpLogger`)?i:console;(r>=3||n[n.length-1].startsWith(`403:`))&&a.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)},s=e=>{let n=e?.$response?.statusCode??e?.$metadata?.httpStatusCode;return e?.$responseBodyText?`${n?n+`: `:``}Deserialization error for body: ${e.$responseBodyText}`:n?e?.$response||e?.message?`${n??`Unknown`}: ${e?.message}`:`${n}: OK`:String(e?.message??JSON.stringify(e,t())??`Unknown`)},c=(e,t,n,r)=>{if(n>Math.log(t/e)/Math.log(2)+1)return t;let i=e*2**(n-1),a=l(e,Math.min(i,t));if(Date.now()+a>r){let e=r-Date.now();return Math.max(0,e-500)}return a},l=(e,t)=>e+Math.random()*(t-e),u=e=>{if(e.maxWaitTime<=0)throw Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);if(e.minDelay<=0)throw Error(`WaiterConfiguration.minDelay must be greater than 0`);if(e.maxDelay<=0)throw Error(`WaiterConfiguration.maxDelay must be greater than 0`);if(e.maxWaitTime<=e.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay{let n;return{clearListener(){typeof t.removeEventListener==`function`&&t.removeEventListener(`abort`,n)},aborted:new Promise(r=>{n=()=>r({state:e.WaiterState.ABORTED}),typeof t.addEventListener==`function`?t.addEventListener(`abort`,n):t.onabort=n})}};e.checkExceptions=i,e.createWaiter=async(e,t,n)=>{let i={...r,...e};u(i);let o=[a(i,t,n)],s=[];if(e.abortSignal){let{aborted:t,clearListener:n}=d(e.abortSignal);s.push(n),o.push(t)}if(e.abortController?.signal){let{aborted:t,clearListener:n}=d(e.abortController.signal);s.push(n),o.push(t)}return Promise.race(o).then(e=>{for(let e of s)e();return e})},e.waiterServiceDefaults=r})),Vs=i((t=>{var n=os(),r=xs(),i=A(),a=O(),o=N(),s=re(),l=T(),u=j(),d=(E(),e(D)),f=(h(),e(v)),p=Ss(),m=te(),g=F(),y=H(),b=C(),x=Ts(),S=Os(),w=Ls(),k=B(),M=c(),P=Rs(),I=zs(),L=Bs(),R=Ds(),z=Es();let ee=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),V={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}};var ne=class extends b.Command.classBuilder().ep({...V,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(S.CreateSession$).build(){};let ie=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ae=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),U=(e,t)=>{let n=Object.assign(k.getAwsRegionExtensionConfiguration(e),b.getDefaultExtensionConfiguration(e),M.getHttpHandlerExtensionConfiguration(e),ie(e));return t.forEach(e=>e.configure(n)),Object.assign(e,k.resolveAwsRegionExtensionConfiguration(n),b.resolveDefaultRuntimeConfig(n),M.resolveHttpHandlerRuntimeConfig(n),ae(n))};var oe=class extends b.Client{config;constructor(...[e]){let t=w.getRuntimeConfig(e||{});super(t),this.initConfig=t;let c=ee(t),h=l.resolveUserAgentConfig(c),v=r.resolveFlexibleChecksumsConfig(h),b=y.resolveRetryConfig(v),S=u.resolveRegionConfig(b),C=i.resolveHostHeaderConfig(S),T=g.resolveEndpointConfig(C),E=p.resolveEventStreamSerdeConfig(T),D=x.resolveHttpAuthSchemeConfig(E),O=U(s.resolveS3Config(D,{session:[()=>this,ne]}),e?.extensions||[]);this.config=O,this.middlewareStack.use(f.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(l.getUserAgentPlugin(this.config)),this.middlewareStack.use(y.getRetryPlugin(this.config)),this.middlewareStack.use(m.getContentLengthPlugin(this.config)),this.middlewareStack.use(i.getHostHeaderPlugin(this.config)),this.middlewareStack.use(a.getLoggerPlugin(this.config)),this.middlewareStack.use(o.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(d.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:x.defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new d.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(d.getHttpSigningPlugin(this.config)),this.middlewareStack.use(s.getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(n.getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(s.getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(s.getS3ExpressPlugin(this.config)),this.middlewareStack.use(s.getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}},se=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(S.AbortMultipartUpload$).build(){},ce=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(S.CompleteMultipartUpload$).build(){},le=class extends b.Command.classBuilder().ep({...V,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`},CopySource:{type:`contextParams`,name:`CopySource`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CopyObject`,{}).n(`S3Client`,`CopyObjectCommand`).sc(S.CopyObject$).build(){},ue=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),I.getLocationConstraintPlugin(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(S.CreateBucket$).build(){},de=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`CreateBucketMetadataConfiguration`,{}).n(`S3Client`,`CreateBucketMetadataConfigurationCommand`).sc(S.CreateBucketMetadataConfiguration$).build(){},fe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`CreateBucketMetadataTableConfiguration`,{}).n(`S3Client`,`CreateBucketMetadataTableConfigurationCommand`).sc(S.CreateBucketMetadataTableConfiguration$).build(){},pe=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(S.CreateMultipartUpload$).build(){},me=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketAnalyticsConfiguration`,{}).n(`S3Client`,`DeleteBucketAnalyticsConfigurationCommand`).sc(S.DeleteBucketAnalyticsConfiguration$).build(){},he=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucket`,{}).n(`S3Client`,`DeleteBucketCommand`).sc(S.DeleteBucket$).build(){},ge=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketCors`,{}).n(`S3Client`,`DeleteBucketCorsCommand`).sc(S.DeleteBucketCors$).build(){},_e=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketEncryption`,{}).n(`S3Client`,`DeleteBucketEncryptionCommand`).sc(S.DeleteBucketEncryption$).build(){},ve=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`DeleteBucketIntelligentTieringConfigurationCommand`).sc(S.DeleteBucketIntelligentTieringConfiguration$).build(){},ye=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketInventoryConfiguration`,{}).n(`S3Client`,`DeleteBucketInventoryConfigurationCommand`).sc(S.DeleteBucketInventoryConfiguration$).build(){},W=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketLifecycle`,{}).n(`S3Client`,`DeleteBucketLifecycleCommand`).sc(S.DeleteBucketLifecycle$).build(){},be=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetadataConfiguration`,{}).n(`S3Client`,`DeleteBucketMetadataConfigurationCommand`).sc(S.DeleteBucketMetadataConfiguration$).build(){},xe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetadataTableConfiguration`,{}).n(`S3Client`,`DeleteBucketMetadataTableConfigurationCommand`).sc(S.DeleteBucketMetadataTableConfiguration$).build(){},Se=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetricsConfiguration`,{}).n(`S3Client`,`DeleteBucketMetricsConfigurationCommand`).sc(S.DeleteBucketMetricsConfiguration$).build(){},Ce=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketOwnershipControls`,{}).n(`S3Client`,`DeleteBucketOwnershipControlsCommand`).sc(S.DeleteBucketOwnershipControls$).build(){},we=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketPolicy`,{}).n(`S3Client`,`DeleteBucketPolicyCommand`).sc(S.DeleteBucketPolicy$).build(){},Te=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketReplication`,{}).n(`S3Client`,`DeleteBucketReplicationCommand`).sc(S.DeleteBucketReplication$).build(){},Ee=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketTagging`,{}).n(`S3Client`,`DeleteBucketTaggingCommand`).sc(S.DeleteBucketTagging$).build(){},De=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketWebsite`,{}).n(`S3Client`,`DeleteBucketWebsiteCommand`).sc(S.DeleteBucketWebsite$).build(){},Oe=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(S.DeleteObject$).build(){},ke=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObjects`,{}).n(`S3Client`,`DeleteObjectsCommand`).sc(S.DeleteObjects$).build(){},Ae=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObjectTagging`,{}).n(`S3Client`,`DeleteObjectTaggingCommand`).sc(S.DeleteObjectTagging$).build(){},je=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeletePublicAccessBlock`,{}).n(`S3Client`,`DeletePublicAccessBlockCommand`).sc(S.DeletePublicAccessBlock$).build(){},Me=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAbac`,{}).n(`S3Client`,`GetBucketAbacCommand`).sc(S.GetBucketAbac$).build(){},Ne=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAccelerateConfiguration`,{}).n(`S3Client`,`GetBucketAccelerateConfigurationCommand`).sc(S.GetBucketAccelerateConfiguration$).build(){},Pe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAcl`,{}).n(`S3Client`,`GetBucketAclCommand`).sc(S.GetBucketAcl$).build(){},Fe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAnalyticsConfiguration`,{}).n(`S3Client`,`GetBucketAnalyticsConfigurationCommand`).sc(S.GetBucketAnalyticsConfiguration$).build(){},Ie=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketCors`,{}).n(`S3Client`,`GetBucketCorsCommand`).sc(S.GetBucketCors$).build(){},Le=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketEncryption`,{}).n(`S3Client`,`GetBucketEncryptionCommand`).sc(S.GetBucketEncryption$).build(){},Re=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`GetBucketIntelligentTieringConfigurationCommand`).sc(S.GetBucketIntelligentTieringConfiguration$).build(){},ze=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketInventoryConfiguration`,{}).n(`S3Client`,`GetBucketInventoryConfigurationCommand`).sc(S.GetBucketInventoryConfiguration$).build(){},Be=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLifecycleConfiguration`,{}).n(`S3Client`,`GetBucketLifecycleConfigurationCommand`).sc(S.GetBucketLifecycleConfiguration$).build(){},Ve=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLocation`,{}).n(`S3Client`,`GetBucketLocationCommand`).sc(S.GetBucketLocation$).build(){},He=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLogging`,{}).n(`S3Client`,`GetBucketLoggingCommand`).sc(S.GetBucketLogging$).build(){},Ue=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetadataConfiguration`,{}).n(`S3Client`,`GetBucketMetadataConfigurationCommand`).sc(S.GetBucketMetadataConfiguration$).build(){},We=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetadataTableConfiguration`,{}).n(`S3Client`,`GetBucketMetadataTableConfigurationCommand`).sc(S.GetBucketMetadataTableConfiguration$).build(){},Ge=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetricsConfiguration`,{}).n(`S3Client`,`GetBucketMetricsConfigurationCommand`).sc(S.GetBucketMetricsConfiguration$).build(){},Ke=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketNotificationConfiguration`,{}).n(`S3Client`,`GetBucketNotificationConfigurationCommand`).sc(S.GetBucketNotificationConfiguration$).build(){},qe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketOwnershipControls`,{}).n(`S3Client`,`GetBucketOwnershipControlsCommand`).sc(S.GetBucketOwnershipControls$).build(){},Je=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`GetBucketPolicy`,{}).n(`S3Client`,`GetBucketPolicyCommand`).sc(S.GetBucketPolicy$).build(){},Ye=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketPolicyStatus`,{}).n(`S3Client`,`GetBucketPolicyStatusCommand`).sc(S.GetBucketPolicyStatus$).build(){},Xe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketReplication`,{}).n(`S3Client`,`GetBucketReplicationCommand`).sc(S.GetBucketReplication$).build(){},Ze=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketRequestPayment`,{}).n(`S3Client`,`GetBucketRequestPaymentCommand`).sc(S.GetBucketRequestPayment$).build(){},Qe=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketTagging`,{}).n(`S3Client`,`GetBucketTaggingCommand`).sc(S.GetBucketTagging$).build(){},$e=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketVersioning`,{}).n(`S3Client`,`GetBucketVersioningCommand`).sc(S.GetBucketVersioning$).build(){},G=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketWebsite`,{}).n(`S3Client`,`GetBucketWebsiteCommand`).sc(S.GetBucketWebsite$).build(){},et=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectAcl`,{}).n(`S3Client`,`GetObjectAclCommand`).sc(S.GetObjectAcl$).build(){},tt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`GetObjectAttributes`,{}).n(`S3Client`,`GetObjectAttributesCommand`).sc(S.GetObjectAttributes$).build(){},nt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),P.getSsecPlugin(n),s.getS3ExpiresMiddlewarePlugin(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(S.GetObject$).build(){},rt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectLegalHold`,{}).n(`S3Client`,`GetObjectLegalHoldCommand`).sc(S.GetObjectLegalHold$).build(){},it=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectLockConfiguration`,{}).n(`S3Client`,`GetObjectLockConfigurationCommand`).sc(S.GetObjectLockConfiguration$).build(){},at=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectRetention`,{}).n(`S3Client`,`GetObjectRetentionCommand`).sc(S.GetObjectRetention$).build(){},ot=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectTagging`,{}).n(`S3Client`,`GetObjectTaggingCommand`).sc(S.GetObjectTagging$).build(){},st=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`GetObjectTorrent`,{}).n(`S3Client`,`GetObjectTorrentCommand`).sc(S.GetObjectTorrent$).build(){},ct=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetPublicAccessBlock`,{}).n(`S3Client`,`GetPublicAccessBlockCommand`).sc(S.GetPublicAccessBlock$).build(){},lt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`HeadBucket`,{}).n(`S3Client`,`HeadBucketCommand`).sc(S.HeadBucket$).build(){},ut=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n),s.getS3ExpiresMiddlewarePlugin(n)]}).s(`AmazonS3`,`HeadObject`,{}).n(`S3Client`,`HeadObjectCommand`).sc(S.HeadObject$).build(){},dt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketAnalyticsConfigurations`,{}).n(`S3Client`,`ListBucketAnalyticsConfigurationsCommand`).sc(S.ListBucketAnalyticsConfigurations$).build(){},ft=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketIntelligentTieringConfigurations`,{}).n(`S3Client`,`ListBucketIntelligentTieringConfigurationsCommand`).sc(S.ListBucketIntelligentTieringConfigurations$).build(){},pt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketInventoryConfigurations`,{}).n(`S3Client`,`ListBucketInventoryConfigurationsCommand`).sc(S.ListBucketInventoryConfigurations$).build(){},mt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketMetricsConfigurations`,{}).n(`S3Client`,`ListBucketMetricsConfigurationsCommand`).sc(S.ListBucketMetricsConfigurations$).build(){},ht=class extends b.Command.classBuilder().ep(V).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(S.ListBuckets$).build(){},gt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListDirectoryBuckets`,{}).n(`S3Client`,`ListDirectoryBucketsCommand`).sc(S.ListDirectoryBuckets$).build(){},_t=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListMultipartUploads`,{}).n(`S3Client`,`ListMultipartUploadsCommand`).sc(S.ListMultipartUploads$).build(){},vt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjects`,{}).n(`S3Client`,`ListObjectsCommand`).sc(S.ListObjects$).build(){},yt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(S.ListObjectsV2$).build(){},bt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjectVersions`,{}).n(`S3Client`,`ListObjectVersionsCommand`).sc(S.ListObjectVersions$).build(){},xt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`ListParts`,{}).n(`S3Client`,`ListPartsCommand`).sc(S.ListParts$).build(){},St=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1})]}).s(`AmazonS3`,`PutBucketAbac`,{}).n(`S3Client`,`PutBucketAbacCommand`).sc(S.PutBucketAbac$).build(){},Ct=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1})]}).s(`AmazonS3`,`PutBucketAccelerateConfiguration`,{}).n(`S3Client`,`PutBucketAccelerateConfigurationCommand`).sc(S.PutBucketAccelerateConfiguration$).build(){},wt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketAcl`,{}).n(`S3Client`,`PutBucketAclCommand`).sc(S.PutBucketAcl$).build(){},Tt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketAnalyticsConfiguration`,{}).n(`S3Client`,`PutBucketAnalyticsConfigurationCommand`).sc(S.PutBucketAnalyticsConfiguration$).build(){},Et=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketCors`,{}).n(`S3Client`,`PutBucketCorsCommand`).sc(S.PutBucketCors$).build(){},Dt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketEncryption`,{}).n(`S3Client`,`PutBucketEncryptionCommand`).sc(S.PutBucketEncryption$).build(){},Ot=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`PutBucketIntelligentTieringConfigurationCommand`).sc(S.PutBucketIntelligentTieringConfiguration$).build(){},kt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketInventoryConfiguration`,{}).n(`S3Client`,`PutBucketInventoryConfigurationCommand`).sc(S.PutBucketInventoryConfiguration$).build(){},At=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutBucketLifecycleConfiguration`,{}).n(`S3Client`,`PutBucketLifecycleConfigurationCommand`).sc(S.PutBucketLifecycleConfiguration$).build(){},jt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketLogging`,{}).n(`S3Client`,`PutBucketLoggingCommand`).sc(S.PutBucketLogging$).build(){},Mt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketMetricsConfiguration`,{}).n(`S3Client`,`PutBucketMetricsConfigurationCommand`).sc(S.PutBucketMetricsConfiguration$).build(){},Nt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketNotificationConfiguration`,{}).n(`S3Client`,`PutBucketNotificationConfigurationCommand`).sc(S.PutBucketNotificationConfiguration$).build(){},Pt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketOwnershipControls`,{}).n(`S3Client`,`PutBucketOwnershipControlsCommand`).sc(S.PutBucketOwnershipControls$).build(){},Ft=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketPolicy`,{}).n(`S3Client`,`PutBucketPolicyCommand`).sc(S.PutBucketPolicy$).build(){},It=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketReplication`,{}).n(`S3Client`,`PutBucketReplicationCommand`).sc(S.PutBucketReplication$).build(){},Lt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketRequestPayment`,{}).n(`S3Client`,`PutBucketRequestPaymentCommand`).sc(S.PutBucketRequestPayment$).build(){},Rt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketTagging`,{}).n(`S3Client`,`PutBucketTaggingCommand`).sc(S.PutBucketTagging$).build(){},zt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketVersioning`,{}).n(`S3Client`,`PutBucketVersioningCommand`).sc(S.PutBucketVersioning$).build(){},Bt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketWebsite`,{}).n(`S3Client`,`PutBucketWebsiteCommand`).sc(S.PutBucketWebsite$).build(){},Vt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectAcl`,{}).n(`S3Client`,`PutObjectAclCommand`).sc(S.PutObjectAcl$).build(){},Ht=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),s.getCheckContentLengthHeaderPlugin(n),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(S.PutObject$).build(){},Ut=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectLegalHold`,{}).n(`S3Client`,`PutObjectLegalHoldCommand`).sc(S.PutObjectLegalHold$).build(){},Wt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectLockConfiguration`,{}).n(`S3Client`,`PutObjectLockConfigurationCommand`).sc(S.PutObjectLockConfiguration$).build(){},Gt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectRetention`,{}).n(`S3Client`,`PutObjectRetentionCommand`).sc(S.PutObjectRetention$).build(){},Kt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(S.PutObjectTagging$).build(){},qt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutPublicAccessBlock`,{}).n(`S3Client`,`PutPublicAccessBlockCommand`).sc(S.PutPublicAccessBlock$).build(){},Jt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`RenameObject`,{}).n(`S3Client`,`RenameObjectCommand`).sc(S.RenameObject$).build(){},Yt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`RestoreObject`,{}).n(`S3Client`,`RestoreObjectCommand`).sc(S.RestoreObject$).build(){},Xt=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),P.getSsecPlugin(n)]}).s(`AmazonS3`,`SelectObjectContent`,{eventStream:{output:!0}}).n(`S3Client`,`SelectObjectContentCommand`).sc(S.SelectObjectContent$).build(){},Zt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`UpdateBucketMetadataInventoryTableConfiguration`,{}).n(`S3Client`,`UpdateBucketMetadataInventoryTableConfigurationCommand`).sc(S.UpdateBucketMetadataInventoryTableConfiguration$).build(){},Qt=class extends b.Command.classBuilder().ep({...V,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`UpdateBucketMetadataJournalTableConfiguration`,{}).n(`S3Client`,`UpdateBucketMetadataJournalTableConfigurationCommand`).sc(S.UpdateBucketMetadataJournalTableConfiguration$).build(){},$t=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),s.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`UpdateObjectEncryption`,{}).n(`S3Client`,`UpdateObjectEncryptionCommand`).sc(S.UpdateObjectEncryption$).build(){},en=class extends b.Command.classBuilder().ep({...V,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,i){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),r.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(S.UploadPart$).build(){},tn=class extends b.Command.classBuilder().ep({...V,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions()),s.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`UploadPartCopy`,{}).n(`S3Client`,`UploadPartCopyCommand`).sc(S.UploadPartCopy$).build(){},nn=class extends b.Command.classBuilder().ep({...V,UseObjectLambdaEndpoint:{type:`staticContextParams`,value:!0}}).m(function(e,t,n,r){return[g.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`WriteGetObjectResponse`,{}).n(`S3Client`,`WriteGetObjectResponseCommand`).sc(S.WriteGetObjectResponse$).build(){};let rn=d.createPaginator(oe,ht,`ContinuationToken`,`ContinuationToken`,`MaxBuckets`),an=d.createPaginator(oe,gt,`ContinuationToken`,`ContinuationToken`,`MaxDirectoryBuckets`),on=d.createPaginator(oe,yt,`ContinuationToken`,`NextContinuationToken`,`MaxKeys`),sn=d.createPaginator(oe,xt,`PartNumberMarker`,`NextPartNumberMarker`,`MaxParts`),cn=async(e,t)=>{let n;try{return n=await e.send(new lt(t)),{state:L.WaiterState.SUCCESS,reason:n}}catch(e){if(n=e,e.name===`NotFound`)return{state:L.WaiterState.RETRY,reason:n}}return{state:L.WaiterState.RETRY,reason:n}},ln=async(e,t)=>L.createWaiter({minDelay:5,maxDelay:120,...e},t,cn),un=async(e,t)=>{let n=await L.createWaiter({minDelay:5,maxDelay:120,...e},t,cn);return L.checkExceptions(n)},dn=async(e,t)=>{let n;try{n=await e.send(new lt(t))}catch(e){if(n=e,e.name===`NotFound`)return{state:L.WaiterState.SUCCESS,reason:n}}return{state:L.WaiterState.RETRY,reason:n}},fn=async(e,t)=>L.createWaiter({minDelay:5,maxDelay:120,...e},t,dn),pn=async(e,t)=>{let n=await L.createWaiter({minDelay:5,maxDelay:120,...e},t,dn);return L.checkExceptions(n)},mn=async(e,t)=>{let n;try{return n=await e.send(new ut(t)),{state:L.WaiterState.SUCCESS,reason:n}}catch(e){if(n=e,e.name===`NotFound`)return{state:L.WaiterState.RETRY,reason:n}}return{state:L.WaiterState.RETRY,reason:n}},hn=async(e,t)=>L.createWaiter({minDelay:5,maxDelay:120,...e},t,mn),gn=async(e,t)=>{let n=await L.createWaiter({minDelay:5,maxDelay:120,...e},t,mn);return L.checkExceptions(n)},_n=async(e,t)=>{let n;try{n=await e.send(new ut(t))}catch(e){if(n=e,e.name===`NotFound`)return{state:L.WaiterState.SUCCESS,reason:n}}return{state:L.WaiterState.RETRY,reason:n}},vn=async(e,t)=>L.createWaiter({minDelay:5,maxDelay:120,...e},t,_n),yn=async(e,t)=>{let n=await L.createWaiter({minDelay:5,maxDelay:120,...e},t,_n);return L.checkExceptions(n)},bn={AbortMultipartUploadCommand:se,CompleteMultipartUploadCommand:ce,CopyObjectCommand:le,CreateBucketCommand:ue,CreateBucketMetadataConfigurationCommand:de,CreateBucketMetadataTableConfigurationCommand:fe,CreateMultipartUploadCommand:pe,CreateSessionCommand:ne,DeleteBucketCommand:he,DeleteBucketAnalyticsConfigurationCommand:me,DeleteBucketCorsCommand:ge,DeleteBucketEncryptionCommand:_e,DeleteBucketIntelligentTieringConfigurationCommand:ve,DeleteBucketInventoryConfigurationCommand:ye,DeleteBucketLifecycleCommand:W,DeleteBucketMetadataConfigurationCommand:be,DeleteBucketMetadataTableConfigurationCommand:xe,DeleteBucketMetricsConfigurationCommand:Se,DeleteBucketOwnershipControlsCommand:Ce,DeleteBucketPolicyCommand:we,DeleteBucketReplicationCommand:Te,DeleteBucketTaggingCommand:Ee,DeleteBucketWebsiteCommand:De,DeleteObjectCommand:Oe,DeleteObjectsCommand:ke,DeleteObjectTaggingCommand:Ae,DeletePublicAccessBlockCommand:je,GetBucketAbacCommand:Me,GetBucketAccelerateConfigurationCommand:Ne,GetBucketAclCommand:Pe,GetBucketAnalyticsConfigurationCommand:Fe,GetBucketCorsCommand:Ie,GetBucketEncryptionCommand:Le,GetBucketIntelligentTieringConfigurationCommand:Re,GetBucketInventoryConfigurationCommand:ze,GetBucketLifecycleConfigurationCommand:Be,GetBucketLocationCommand:Ve,GetBucketLoggingCommand:He,GetBucketMetadataConfigurationCommand:Ue,GetBucketMetadataTableConfigurationCommand:We,GetBucketMetricsConfigurationCommand:Ge,GetBucketNotificationConfigurationCommand:Ke,GetBucketOwnershipControlsCommand:qe,GetBucketPolicyCommand:Je,GetBucketPolicyStatusCommand:Ye,GetBucketReplicationCommand:Xe,GetBucketRequestPaymentCommand:Ze,GetBucketTaggingCommand:Qe,GetBucketVersioningCommand:$e,GetBucketWebsiteCommand:G,GetObjectCommand:nt,GetObjectAclCommand:et,GetObjectAttributesCommand:tt,GetObjectLegalHoldCommand:rt,GetObjectLockConfigurationCommand:it,GetObjectRetentionCommand:at,GetObjectTaggingCommand:ot,GetObjectTorrentCommand:st,GetPublicAccessBlockCommand:ct,HeadBucketCommand:lt,HeadObjectCommand:ut,ListBucketAnalyticsConfigurationsCommand:dt,ListBucketIntelligentTieringConfigurationsCommand:ft,ListBucketInventoryConfigurationsCommand:pt,ListBucketMetricsConfigurationsCommand:mt,ListBucketsCommand:ht,ListDirectoryBucketsCommand:gt,ListMultipartUploadsCommand:_t,ListObjectsCommand:vt,ListObjectsV2Command:yt,ListObjectVersionsCommand:bt,ListPartsCommand:xt,PutBucketAbacCommand:St,PutBucketAccelerateConfigurationCommand:Ct,PutBucketAclCommand:wt,PutBucketAnalyticsConfigurationCommand:Tt,PutBucketCorsCommand:Et,PutBucketEncryptionCommand:Dt,PutBucketIntelligentTieringConfigurationCommand:Ot,PutBucketInventoryConfigurationCommand:kt,PutBucketLifecycleConfigurationCommand:At,PutBucketLoggingCommand:jt,PutBucketMetricsConfigurationCommand:Mt,PutBucketNotificationConfigurationCommand:Nt,PutBucketOwnershipControlsCommand:Pt,PutBucketPolicyCommand:Ft,PutBucketReplicationCommand:It,PutBucketRequestPaymentCommand:Lt,PutBucketTaggingCommand:Rt,PutBucketVersioningCommand:zt,PutBucketWebsiteCommand:Bt,PutObjectCommand:Ht,PutObjectAclCommand:Vt,PutObjectLegalHoldCommand:Ut,PutObjectLockConfigurationCommand:Wt,PutObjectRetentionCommand:Gt,PutObjectTaggingCommand:Kt,PutPublicAccessBlockCommand:qt,RenameObjectCommand:Jt,RestoreObjectCommand:Yt,SelectObjectContentCommand:Xt,UpdateBucketMetadataInventoryTableConfigurationCommand:Zt,UpdateBucketMetadataJournalTableConfigurationCommand:Qt,UpdateObjectEncryptionCommand:$t,UploadPartCommand:en,UploadPartCopyCommand:tn,WriteGetObjectResponseCommand:nn},xn={paginateListBuckets:rn,paginateListDirectoryBuckets:an,paginateListObjectsV2:on,paginateListParts:sn},Sn={waitUntilBucketExists:un,waitUntilBucketNotExists:pn,waitUntilObjectExists:gn,waitUntilObjectNotExists:yn};var Cn=class extends oe{};b.createAggregatedClient(bn,Cn,{paginators:xn,waiters:Sn}),t.$Command=b.Command,t.__Client=b.Client,t.S3ServiceException=z.S3ServiceException,t.AbortMultipartUploadCommand=se,t.AnalyticsS3ExportFileFormat={CSV:`CSV`},t.ArchiveStatus={ARCHIVE_ACCESS:`ARCHIVE_ACCESS`,DEEP_ARCHIVE_ACCESS:`DEEP_ARCHIVE_ACCESS`},t.BucketAbacStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.BucketAccelerateStatus={Enabled:`Enabled`,Suspended:`Suspended`},t.BucketCannedACL={authenticated_read:`authenticated-read`,private:`private`,public_read:`public-read`,public_read_write:`public-read-write`},t.BucketLocationConstraint={EU:`EU`,af_south_1:`af-south-1`,ap_east_1:`ap-east-1`,ap_east_2:`ap-east-2`,ap_northeast_1:`ap-northeast-1`,ap_northeast_2:`ap-northeast-2`,ap_northeast_3:`ap-northeast-3`,ap_south_1:`ap-south-1`,ap_south_2:`ap-south-2`,ap_southeast_1:`ap-southeast-1`,ap_southeast_2:`ap-southeast-2`,ap_southeast_3:`ap-southeast-3`,ap_southeast_4:`ap-southeast-4`,ap_southeast_5:`ap-southeast-5`,ap_southeast_6:`ap-southeast-6`,ap_southeast_7:`ap-southeast-7`,ca_central_1:`ca-central-1`,ca_west_1:`ca-west-1`,cn_north_1:`cn-north-1`,cn_northwest_1:`cn-northwest-1`,eu_central_1:`eu-central-1`,eu_central_2:`eu-central-2`,eu_north_1:`eu-north-1`,eu_south_1:`eu-south-1`,eu_south_2:`eu-south-2`,eu_west_1:`eu-west-1`,eu_west_2:`eu-west-2`,eu_west_3:`eu-west-3`,il_central_1:`il-central-1`,me_central_1:`me-central-1`,me_south_1:`me-south-1`,mx_central_1:`mx-central-1`,sa_east_1:`sa-east-1`,us_east_2:`us-east-2`,us_gov_east_1:`us-gov-east-1`,us_gov_west_1:`us-gov-west-1`,us_west_1:`us-west-1`,us_west_2:`us-west-2`},t.BucketLogsPermission={FULL_CONTROL:`FULL_CONTROL`,READ:`READ`,WRITE:`WRITE`},t.BucketNamespace={ACCOUNT_REGIONAL:`account-regional`,GLOBAL:`global`},t.BucketType={Directory:`Directory`},t.BucketVersioningStatus={Enabled:`Enabled`,Suspended:`Suspended`},t.ChecksumAlgorithm={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},t.ChecksumMode={ENABLED:`ENABLED`},t.ChecksumType={COMPOSITE:`COMPOSITE`,FULL_OBJECT:`FULL_OBJECT`},t.CompleteMultipartUploadCommand=ce,t.CompressionType={BZIP2:`BZIP2`,GZIP:`GZIP`,NONE:`NONE`},t.CopyObjectCommand=le,t.CreateBucketCommand=ue,t.CreateBucketMetadataConfigurationCommand=de,t.CreateBucketMetadataTableConfigurationCommand=fe,t.CreateMultipartUploadCommand=pe,t.CreateSessionCommand=ne,t.DataRedundancy={SingleAvailabilityZone:`SingleAvailabilityZone`,SingleLocalZone:`SingleLocalZone`},t.DeleteBucketAnalyticsConfigurationCommand=me,t.DeleteBucketCommand=he,t.DeleteBucketCorsCommand=ge,t.DeleteBucketEncryptionCommand=_e,t.DeleteBucketIntelligentTieringConfigurationCommand=ve,t.DeleteBucketInventoryConfigurationCommand=ye,t.DeleteBucketLifecycleCommand=W,t.DeleteBucketMetadataConfigurationCommand=be,t.DeleteBucketMetadataTableConfigurationCommand=xe,t.DeleteBucketMetricsConfigurationCommand=Se,t.DeleteBucketOwnershipControlsCommand=Ce,t.DeleteBucketPolicyCommand=we,t.DeleteBucketReplicationCommand=Te,t.DeleteBucketTaggingCommand=Ee,t.DeleteBucketWebsiteCommand=De,t.DeleteMarkerReplicationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.DeleteObjectCommand=Oe,t.DeleteObjectTaggingCommand=Ae,t.DeleteObjectsCommand=ke,t.DeletePublicAccessBlockCommand=je,t.EncodingType={url:`url`},t.EncryptionType={NONE:`NONE`,SSE_C:`SSE-C`},t.Event={s3_IntelligentTiering:`s3:IntelligentTiering`,s3_LifecycleExpiration_:`s3:LifecycleExpiration:*`,s3_LifecycleExpiration_Delete:`s3:LifecycleExpiration:Delete`,s3_LifecycleExpiration_DeleteMarkerCreated:`s3:LifecycleExpiration:DeleteMarkerCreated`,s3_LifecycleTransition:`s3:LifecycleTransition`,s3_ObjectAcl_Put:`s3:ObjectAcl:Put`,s3_ObjectCreated_:`s3:ObjectCreated:*`,s3_ObjectCreated_CompleteMultipartUpload:`s3:ObjectCreated:CompleteMultipartUpload`,s3_ObjectCreated_Copy:`s3:ObjectCreated:Copy`,s3_ObjectCreated_Post:`s3:ObjectCreated:Post`,s3_ObjectCreated_Put:`s3:ObjectCreated:Put`,s3_ObjectRemoved_:`s3:ObjectRemoved:*`,s3_ObjectRemoved_Delete:`s3:ObjectRemoved:Delete`,s3_ObjectRemoved_DeleteMarkerCreated:`s3:ObjectRemoved:DeleteMarkerCreated`,s3_ObjectRestore_:`s3:ObjectRestore:*`,s3_ObjectRestore_Completed:`s3:ObjectRestore:Completed`,s3_ObjectRestore_Delete:`s3:ObjectRestore:Delete`,s3_ObjectRestore_Post:`s3:ObjectRestore:Post`,s3_ObjectTagging_:`s3:ObjectTagging:*`,s3_ObjectTagging_Delete:`s3:ObjectTagging:Delete`,s3_ObjectTagging_Put:`s3:ObjectTagging:Put`,s3_ReducedRedundancyLostObject:`s3:ReducedRedundancyLostObject`,s3_Replication_:`s3:Replication:*`,s3_Replication_OperationFailedReplication:`s3:Replication:OperationFailedReplication`,s3_Replication_OperationMissedThreshold:`s3:Replication:OperationMissedThreshold`,s3_Replication_OperationNotTracked:`s3:Replication:OperationNotTracked`,s3_Replication_OperationReplicatedAfterThreshold:`s3:Replication:OperationReplicatedAfterThreshold`},t.ExistingObjectReplicationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ExpirationState={DISABLED:`DISABLED`,ENABLED:`ENABLED`},t.ExpirationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ExpressionType={SQL:`SQL`},t.FileHeaderInfo={IGNORE:`IGNORE`,NONE:`NONE`,USE:`USE`},t.FilterRuleName={prefix:`prefix`,suffix:`suffix`},t.GetBucketAbacCommand=Me,t.GetBucketAccelerateConfigurationCommand=Ne,t.GetBucketAclCommand=Pe,t.GetBucketAnalyticsConfigurationCommand=Fe,t.GetBucketCorsCommand=Ie,t.GetBucketEncryptionCommand=Le,t.GetBucketIntelligentTieringConfigurationCommand=Re,t.GetBucketInventoryConfigurationCommand=ze,t.GetBucketLifecycleConfigurationCommand=Be,t.GetBucketLocationCommand=Ve,t.GetBucketLoggingCommand=He,t.GetBucketMetadataConfigurationCommand=Ue,t.GetBucketMetadataTableConfigurationCommand=We,t.GetBucketMetricsConfigurationCommand=Ge,t.GetBucketNotificationConfigurationCommand=Ke,t.GetBucketOwnershipControlsCommand=qe,t.GetBucketPolicyCommand=Je,t.GetBucketPolicyStatusCommand=Ye,t.GetBucketReplicationCommand=Xe,t.GetBucketRequestPaymentCommand=Ze,t.GetBucketTaggingCommand=Qe,t.GetBucketVersioningCommand=$e,t.GetBucketWebsiteCommand=G,t.GetObjectAclCommand=et,t.GetObjectAttributesCommand=tt,t.GetObjectCommand=nt,t.GetObjectLegalHoldCommand=rt,t.GetObjectLockConfigurationCommand=it,t.GetObjectRetentionCommand=at,t.GetObjectTaggingCommand=ot,t.GetObjectTorrentCommand=st,t.GetPublicAccessBlockCommand=ct,t.HeadBucketCommand=lt,t.HeadObjectCommand=ut,t.IntelligentTieringAccessTier={ARCHIVE_ACCESS:`ARCHIVE_ACCESS`,DEEP_ARCHIVE_ACCESS:`DEEP_ARCHIVE_ACCESS`},t.IntelligentTieringStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.InventoryConfigurationState={DISABLED:`DISABLED`,ENABLED:`ENABLED`},t.InventoryFormat={CSV:`CSV`,ORC:`ORC`,Parquet:`Parquet`},t.InventoryFrequency={Daily:`Daily`,Weekly:`Weekly`},t.InventoryIncludedObjectVersions={All:`All`,Current:`Current`},t.InventoryOptionalField={BucketKeyStatus:`BucketKeyStatus`,ChecksumAlgorithm:`ChecksumAlgorithm`,ETag:`ETag`,EncryptionStatus:`EncryptionStatus`,IntelligentTieringAccessTier:`IntelligentTieringAccessTier`,IsMultipartUploaded:`IsMultipartUploaded`,LastModifiedDate:`LastModifiedDate`,LifecycleExpirationDate:`LifecycleExpirationDate`,ObjectAccessControlList:`ObjectAccessControlList`,ObjectLockLegalHoldStatus:`ObjectLockLegalHoldStatus`,ObjectLockMode:`ObjectLockMode`,ObjectLockRetainUntilDate:`ObjectLockRetainUntilDate`,ObjectOwner:`ObjectOwner`,ReplicationStatus:`ReplicationStatus`,Size:`Size`,StorageClass:`StorageClass`},t.JSONType={DOCUMENT:`DOCUMENT`,LINES:`LINES`},t.ListBucketAnalyticsConfigurationsCommand=dt,t.ListBucketIntelligentTieringConfigurationsCommand=ft,t.ListBucketInventoryConfigurationsCommand=pt,t.ListBucketMetricsConfigurationsCommand=mt,t.ListBucketsCommand=ht,t.ListDirectoryBucketsCommand=gt,t.ListMultipartUploadsCommand=_t,t.ListObjectVersionsCommand=bt,t.ListObjectsCommand=vt,t.ListObjectsV2Command=yt,t.ListPartsCommand=xt,t.LocationType={AvailabilityZone:`AvailabilityZone`,LocalZone:`LocalZone`},t.MFADelete={Disabled:`Disabled`,Enabled:`Enabled`},t.MFADeleteStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.MetadataDirective={COPY:`COPY`,REPLACE:`REPLACE`},t.MetricsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ObjectAttributes={CHECKSUM:`Checksum`,ETAG:`ETag`,OBJECT_PARTS:`ObjectParts`,OBJECT_SIZE:`ObjectSize`,STORAGE_CLASS:`StorageClass`},t.ObjectCannedACL={authenticated_read:`authenticated-read`,aws_exec_read:`aws-exec-read`,bucket_owner_full_control:`bucket-owner-full-control`,bucket_owner_read:`bucket-owner-read`,private:`private`,public_read:`public-read`,public_read_write:`public-read-write`},t.ObjectLockEnabled={Enabled:`Enabled`},t.ObjectLockLegalHoldStatus={OFF:`OFF`,ON:`ON`},t.ObjectLockMode={COMPLIANCE:`COMPLIANCE`,GOVERNANCE:`GOVERNANCE`},t.ObjectLockRetentionMode={COMPLIANCE:`COMPLIANCE`,GOVERNANCE:`GOVERNANCE`},t.ObjectOwnership={BucketOwnerEnforced:`BucketOwnerEnforced`,BucketOwnerPreferred:`BucketOwnerPreferred`,ObjectWriter:`ObjectWriter`},t.ObjectStorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,EXPRESS_ONEZONE:`EXPRESS_ONEZONE`,FSX_ONTAP:`FSX_ONTAP`,FSX_OPENZFS:`FSX_OPENZFS`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,OUTPOSTS:`OUTPOSTS`,REDUCED_REDUNDANCY:`REDUCED_REDUNDANCY`,SNOW:`SNOW`,STANDARD:`STANDARD`,STANDARD_IA:`STANDARD_IA`},t.ObjectVersionStorageClass={STANDARD:`STANDARD`},t.OptionalObjectAttributes={RESTORE_STATUS:`RestoreStatus`},t.OwnerOverride={Destination:`Destination`},t.PartitionDateSource={DeliveryTime:`DeliveryTime`,EventTime:`EventTime`},t.Payer={BucketOwner:`BucketOwner`,Requester:`Requester`},t.Permission={FULL_CONTROL:`FULL_CONTROL`,READ:`READ`,READ_ACP:`READ_ACP`,WRITE:`WRITE`,WRITE_ACP:`WRITE_ACP`},t.Protocol={http:`http`,https:`https`},t.PutBucketAbacCommand=St,t.PutBucketAccelerateConfigurationCommand=Ct,t.PutBucketAclCommand=wt,t.PutBucketAnalyticsConfigurationCommand=Tt,t.PutBucketCorsCommand=Et,t.PutBucketEncryptionCommand=Dt,t.PutBucketIntelligentTieringConfigurationCommand=Ot,t.PutBucketInventoryConfigurationCommand=kt,t.PutBucketLifecycleConfigurationCommand=At,t.PutBucketLoggingCommand=jt,t.PutBucketMetricsConfigurationCommand=Mt,t.PutBucketNotificationConfigurationCommand=Nt,t.PutBucketOwnershipControlsCommand=Pt,t.PutBucketPolicyCommand=Ft,t.PutBucketReplicationCommand=It,t.PutBucketRequestPaymentCommand=Lt,t.PutBucketTaggingCommand=Rt,t.PutBucketVersioningCommand=zt,t.PutBucketWebsiteCommand=Bt,t.PutObjectAclCommand=Vt,t.PutObjectCommand=Ht,t.PutObjectLegalHoldCommand=Ut,t.PutObjectLockConfigurationCommand=Wt,t.PutObjectRetentionCommand=Gt,t.PutObjectTaggingCommand=Kt,t.PutPublicAccessBlockCommand=qt,t.QuoteFields={ALWAYS:`ALWAYS`,ASNEEDED:`ASNEEDED`},t.RenameObjectCommand=Jt,t.ReplicaModificationsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ReplicationRuleStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ReplicationStatus={COMPLETE:`COMPLETE`,COMPLETED:`COMPLETED`,FAILED:`FAILED`,PENDING:`PENDING`,REPLICA:`REPLICA`},t.ReplicationTimeStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.RequestCharged={requester:`requester`},t.RequestPayer={requester:`requester`},t.RestoreObjectCommand=Yt,t.RestoreRequestType={SELECT:`SELECT`},t.S3=Cn,t.S3Client=oe,t.S3TablesBucketType={aws:`aws`,customer:`customer`},t.SelectObjectContentCommand=Xt,t.ServerSideEncryption={AES256:`AES256`,aws_fsx:`aws:fsx`,aws_kms:`aws:kms`,aws_kms_dsse:`aws:kms:dsse`},t.SessionMode={ReadOnly:`ReadOnly`,ReadWrite:`ReadWrite`},t.SseKmsEncryptedObjectsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.StorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,EXPRESS_ONEZONE:`EXPRESS_ONEZONE`,FSX_ONTAP:`FSX_ONTAP`,FSX_OPENZFS:`FSX_OPENZFS`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,OUTPOSTS:`OUTPOSTS`,REDUCED_REDUNDANCY:`REDUCED_REDUNDANCY`,SNOW:`SNOW`,STANDARD:`STANDARD`,STANDARD_IA:`STANDARD_IA`},t.StorageClassAnalysisSchemaVersion={V_1:`V_1`},t.TableSseAlgorithm={AES256:`AES256`,aws_kms:`aws:kms`},t.TaggingDirective={COPY:`COPY`,REPLACE:`REPLACE`},t.Tier={Bulk:`Bulk`,Expedited:`Expedited`,Standard:`Standard`},t.TransitionDefaultMinimumObjectSize={all_storage_classes_128K:`all_storage_classes_128K`,varies_by_storage_class:`varies_by_storage_class`},t.TransitionStorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,STANDARD_IA:`STANDARD_IA`},t.Type={AmazonCustomerByEmail:`AmazonCustomerByEmail`,CanonicalUser:`CanonicalUser`,Group:`Group`},t.UpdateBucketMetadataInventoryTableConfigurationCommand=Zt,t.UpdateBucketMetadataJournalTableConfigurationCommand=Qt,t.UpdateObjectEncryptionCommand=$t,t.UploadPartCommand=en,t.UploadPartCopyCommand=tn,t.WriteGetObjectResponseCommand=nn,t.paginateListBuckets=rn,t.paginateListDirectoryBuckets=an,t.paginateListObjectsV2=on,t.paginateListParts=sn,t.waitForBucketExists=ln,t.waitForBucketNotExists=fn,t.waitForObjectExists=hn,t.waitForObjectNotExists=vn,t.waitUntilBucketExists=un,t.waitUntilBucketNotExists=pn,t.waitUntilObjectExists=gn,t.waitUntilObjectNotExists=yn,Object.prototype.hasOwnProperty.call(S,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:S.__proto__}),Object.keys(S).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=S[e])}),Object.prototype.hasOwnProperty.call(R,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:R.__proto__}),Object.keys(R).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=R[e])})}))();function Hs(e){return e.replaceAll(/X-Amz-[A-Za-z0-9-]+=[^&\s]+/g,`X-Amz-REDACTED=[REDACTED]`).replaceAll(/Authorization([:=]\s*)(Bearer\s+)?[^,\s]+/gi,`Authorization$1$2[REDACTED]`).slice(0,500)}function Us(e,t,n){let r=typeof n==`object`&&n&&`Code`in n?String(n.Code):void 0,i=n instanceof Error?n.name:`UnknownError`,a=typeof n==`object`&&n&&`$metadata`in n&&typeof n.$metadata==`object`&&n.$metadata!=null&&`httpStatusCode`in n.$metadata?Number(n.$metadata.httpStatusCode):void 0,o=Hs(n instanceof Error?n.message:String(n));return e.warning(`Object store ${t} failed`,{errorCode:r,errorName:i,httpStatusCode:a,message:o}),Io(`Object store ${t} failed: ${o}`)}async function Ws(e){if(e instanceof je){let t=[];for await(let n of e){if(typeof n==`string`){t.push(Pe.from(n));continue}t.push(Pe.isBuffer(n)?n:Pe.from(n))}return Pe.concat(t).toString(`utf8`)}if(typeof e==`object`&&e&&`transformToString`in e){let t=e.transformToString;if(typeof t==`function`)return String(await t.call(e))}throw Io(`Object store getObject failed: response body was not readable`)}function Gs(e,t){if(e==null||e.length===0)throw Io(`Object store ${t} failed: missing ETag in response`);return e}function Ks(e){return e.region.length>0?e.region:void 0}function qs(e){let t=Ks(e);return e.endpoint==null?new Vs.S3Client({maxAttempts:3,region:t,...e.credentials==null?{}:{credentials:e.credentials}}):new Vs.S3Client({endpoint:e.endpoint,forcePathStyle:!0,maxAttempts:3,region:t,...e.credentials==null?{}:{credentials:e.credentials}})}function Js(e){return e.sseEncryption==null?e.endpoint==null?`aws:kms`:`AES256`:e.sseEncryption}function Ys(e,t){let n=qs(e),r=Js(e);return{upload:async(i,a)=>{t.debug(`Uploading object store file`,{key:i,localPath:a});try{let o={Body:Je.createReadStream(a),Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:i,ServerSideEncryption:r};r===`aws:kms`&&e.sseKmsKeyId!=null&&(o.SSEKMSKeyId=e.sseKmsKeyId);let s=new Vs.PutObjectCommand({...o});return await n.send(s),t.info(`Uploaded object store file`,{key:i}),Do(void 0)}catch(e){return Oo(Us(t,`upload`,e))}},download:async(r,i)=>{t.debug(`Downloading object store file`,{key:r,localPath:i});try{await Ue.mkdir(We.dirname(i),{recursive:!0});let a=await n.send(new Vs.GetObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:r}));return a.Body instanceof je?(await Xe(a.Body,Je.createWriteStream(i)),t.info(`Downloaded object store file`,{key:r,localPath:i}),Do(void 0)):Oo(Io(`Object store download failed: response body was not readable`))}catch(e){return Oo(Us(t,`download`,e))}},list:async r=>{t.debug(`Listing object store keys`,{prefix:r});try{let i=[],a,o=0;do{if(o>=100){t.warning(`Object store list hit iteration cap, truncating result`,{prefix:r,maxIterations:100,keysReturned:i.length});break}o++;let s=await n.send(new Vs.ListObjectsV2Command({Bucket:e.bucket,ContinuationToken:a,ExpectedBucketOwner:e.expectedBucketOwner,Prefix:r}));for(let e of s.Contents??[])e.Key!=null&&i.push(e.Key);a=s.IsTruncated===!0?s.NextContinuationToken:void 0}while(a!=null);return t.info(`Listed object store keys`,{count:i.length,prefix:r}),Do(i)}catch(e){return Oo(Us(t,`list`,e))}},conditionalPut:async(i,a,o)=>{t.debug(`Conditionally uploading object store data`,{key:i,options:o});try{let s=Gs((await n.send(new Vs.PutObjectCommand({Body:a,Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,IfMatch:o.ifMatch,IfNoneMatch:o.ifNoneMatch,Key:i,ServerSideEncryption:r,...r===`aws:kms`&&e.sseKmsKeyId!=null?{SSEKMSKeyId:e.sseKmsKeyId}:{}}))).ETag,`conditionalPut`);return t.info(`Conditionally uploaded object store data`,{key:i,etag:s}),Do({etag:s})}catch(e){return Oo(Us(t,`conditionalPut`,e))}},conditionalDelete:async(r,i)=>{t.debug(`Conditionally deleting object store data`,{key:r});try{return await n.send(new Vs.DeleteObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,IfMatch:i.ifMatch,Key:r})),t.info(`Conditionally deleted object store data`,{key:r}),Do(void 0)}catch(e){return Oo(Us(t,`conditionalDelete`,e))}},getObject:async r=>{t.debug(`Reading object store data`,{key:r});try{let i=await n.send(new Vs.GetObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:r})),a=await Ws(i.Body),o=Gs(i.ETag,`getObject`);return t.info(`Read object store data`,{key:r,etag:o}),Do({data:a,etag:o})}catch(e){return Oo(Us(t,`getObject`,e))}}}}const Xs=[`token`,`password`,`secret`,`key`,`auth`,`credential`,`bearer`,`apikey`,`api_key`,`access_token`,`refresh_token`,`private`];function Zs(e,t){let n=e.toLowerCase();return t.some(e=>n.includes(e.toLowerCase()))}function Qs(e,t=Xs){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>Qs(e,t));let n={};for(let[r,i]of Object.entries(e))Zs(r,t)&&typeof i==`string`?n[r]=`[REDACTED]`:typeof i==`object`&&i?n[r]=Qs(i,t):n[r]=i;return n}function $s(e,t,n,r){let i=Qs({...n,...r},Xs),a={timestamp:new Date().toISOString(),level:e,message:t,...i};if(r!=null&&`error`in r&&r.error instanceof Error){let e=r.error;a.error={message:e.message,name:e.name,stack:e.stack}}return JSON.stringify(a)}function ec(e){return{debug:(t,n)=>{K($s(`debug`,t,e,n))},info:(t,n)=>{xi($s(`info`,t,e,n))},warning:(t,n)=>{bi($s(`warning`,t,e,n))},error:(t,n)=>{yi($s(`error`,t,e,n))}}}const tc={SHOULD_SAVE_CACHE:`shouldSaveCache`,SESSION_ID:`sessionId`,CACHE_SAVED:`cacheSaved`,ARTIFACT_UPLOADED:`artifactUploaded`,OPENCODE_VERSION:`opencodeVersion`,S3_ENABLED:`storeConfig.enabled`,S3_BUCKET:`storeConfig.bucket`,S3_REGION:`storeConfig.region`,S3_PREFIX:`storeConfig.prefix`,S3_ENDPOINT:`storeConfig.endpoint`,S3_EXPECTED_BUCKET_OWNER:`storeConfig.expectedBucketOwner`,S3_ALLOW_INSECURE_ENDPOINT:`storeConfig.allowInsecureEndpoint`,S3_SSE_ENCRYPTION:`storeConfig.sseEncryption`,S3_SSE_KMS_KEY_ID:`storeConfig.sseKmsKeyId`};var nc=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(ge(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(ve(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${fe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=process.env.GITHUB_API_URL??`https://api.github.com`,this.serverUrl=process.env.GITHUB_SERVER_URL??`https://github.com`,this.graphqlUrl=process.env.GITHUB_GRAPHQL_URL??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}},rc=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getProxyUrl=t,e.checkBypass=n;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function r(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var i=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}})),ic=n(i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;oa(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return a(this,void 0,void 0,function*(){return new Promise(e=>a(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}};e.HttpClientResponse=b;function x(e){return new URL(e).protocol===`https:`}e.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return a(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return a(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return a(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return a(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return a(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return a(this,arguments,void 0,function*(e,t={}){t[f.Accept]=this._getExistingOrDefaultHeader(t,f.Accept,p.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return a(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&v.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw Error(`Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!g.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new b(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=c.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?s:o;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},S(this.requestOptions.headers),S(e||{})):S(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=S(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=S(this.requestOptions.headers)[f.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[f.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=c.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||o.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?l.httpsOverHttps:l.httpsOverHttp:o?l.httpOverHttps:l.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new s.Agent(e):new o.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return a(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return a(this,void 0,void 0,function*(){return new Promise((n,r)=>a(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===d.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new y(e,i);t.result=a.result,r(t)}else n(a)}))})}};let S=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{})}))(),1),ac=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function oc(e,t){if(!e&&!t.auth)throw Error(`Parameter token or opts.auth is required`);if(e&&t.auth)throw Error(`Parameters token and opts.auth may not both be specified`);return typeof t.auth==`string`?t.auth:`token ${e}`}function sc(e){return new ic.HttpClient().getAgent(e)}function cc(e){return new ic.HttpClient().getAgentDispatcher(e)}function lc(e){let t=cc(e);return(e,n)=>ac(this,void 0,void 0,function*(){return(0,cr.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))})}function uc(){return process.env.GITHUB_API_URL||`https://api.github.com`}function dc(e){let t=process.env.ACTIONS_ORCHESTRATION_ID?.trim();if(t){let n=`actions_orchestration_id/${t.replace(/[^a-z0-9_.-]/gi,`_`)}`;return e?.includes(n)?e:`${e?`${e} `:``}${n}`}return e}function fc(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:``}function pc(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>pc.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function mc(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function hc(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const gc=Function.bind,_c=gc.bind(gc);function vc(e,t,n){let r=_c(hc,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=_c(mc,null).apply(null,i)})}function yc(){let e=Symbol(`Singular`),t={registry:{}},n=pc.bind(null,t,e);return vc(n,t,e),n}function bc(){let e={registry:{}},t=pc.bind(null,e);return vc(t,e),t}var xc={Singular:yc,Collection:bc},Sc={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":`octokit-endpoint.js/0.0.0-development ${fc()}`},mediaType:{format:``}};function Cc(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function wc(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function Tc(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{wc(t[r])&&r in e?n[r]=Tc(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function Ec(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function Dc(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=Cc(n.headers),Ec(n),Ec(n.headers);let r=Tc(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function Oc(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var kc=/\{[^{}}]+\}/g;function Ac(e){return e.replace(/(?:^\W+)|(?:(?e.concat(t),[]):[]}function Mc(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function Nc(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function Pc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function Fc(e,t,n){return t=e===`+`||e===`#`?Nc(t):Pc(t),n?Pc(n)+`=`+t:t}function Ic(e){return e!=null}function Lc(e){return e===`;`||e===`&`||e===`?`}function Rc(e,t,n,r){var i=e[n],a=[];if(Ic(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(Fc(t,i,Lc(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(Ic).forEach(function(e){a.push(Fc(t,e,Lc(t)?n:``))}):Object.keys(i).forEach(function(e){Ic(i[e])&&a.push(Fc(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(Ic).forEach(function(n){e.push(Fc(t,n))}):Object.keys(i).forEach(function(n){Ic(i[n])&&(e.push(Pc(n)),e.push(Fc(t,i[n].toString())))}),Lc(t)?a.push(Pc(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?Ic(i)&&a.push(Pc(n)):i===``&&(t===`&`||t===`?`)?a.push(Pc(n)+`=`):i===``&&a.push(``);return a}function zc(e){return{expand:Bc.bind(null,e)}}function Bc(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(Rc(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return Nc(i)}),e===`/`?e:e.replace(/\/$/,``)}function Vc(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=Mc(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=jc(n);n=zc(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=Mc(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=Oc(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function Hc(e,t,n){return Vc(Dc(e,t,n))}function Uc(e,t){let n=Dc(e,t),r=Hc.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:Uc.bind(null,n),merge:Dc.bind(null,n),parse:Vc})}var Wc=Uc(null,Sc),Gc=i(((e,t)=>{let n=function(){};n.prototype=Object.create(null);let r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}))();const Kc=/^-?\d+$/,qc=/^-?\d+n+$/,Jc=JSON.stringify,Yc=JSON.parse,Xc=/^-?\d+n$/,Zc=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Qc=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,$c=(e,t,n)=>`rawJSON`in JSON?Jc(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?Jc(e,(e,n)=>typeof n==`string`&&n.match(qc)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(Zc,`$1$2$3`).replace(Qc,`$1$2$3`):Jc(e,t,n),el=()=>JSON.parse(`1`,(e,t,n)=>!!n&&n.source===`1`),tl=(e,t,n,r)=>typeof t==`string`&&t.match(Xc)?BigInt(t.slice(0,-1)):typeof t==`string`&&t.match(qc)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,nl=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&Kc.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),rl=(2**53-1).toString(),il=rl.length,al=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,ol=/^"-?\d+n+"$/,sl=(e,t)=>e?el()?nl(e,t):Yc(e.replace(al,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&e.match(ol))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.lengthtl(e,n,r,t)):Yc(e,t);var cl=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?``;async function fl(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=ul(e.body)||Array.isArray(e.body)?$c(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new cl(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new cl(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await pl(o),new cl(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await pl(o),new cl(hl(u.data),s,{response:u,request:e});return u.data=r?await pl(o):o.body,u}async function pl(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(dl);let n=(0,Gc.safeParse)(t);if(ml(n)){let t=``;try{return t=await e.text(),sl(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(dl);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function ml(e){return e.type===`application/json`||e.type===`application/scim+json`}function hl(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function gl(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return fl(n.parse(r));let i=(e,t)=>fl(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:gl.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:gl.bind(null,n)})}var _l=gl(Wc,ll),vl=`0.0.0-development`;function yl(e){return`Request failed due to following response errors: -`+e.errors.map(e=>` - ${e.message}`).join(` -`)}var bl=class extends Error{constructor(e,t,n){super(yl(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},xl=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],Sl=[`query`,`method`,`url`],Cl=/\/api\/v3\/?$/;function wl(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(Sl.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>xl.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Cl.test(a)&&(i.url=a.replace(Cl,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new bl(i,t,e.data)}return e.data.data})}function Tl(e,t){let n=e.defaults(t);return Object.assign((e,t)=>wl(n,e,t),{defaults:Tl.bind(null,n),endpoint:n.endpoint})}Tl(_l,{headers:{"user-agent":`octokit-graphql.js/${vl} ${fc()}`},method:`POST`,url:`/graphql`});function El(e){return Tl(e,{method:`POST`,url:`/graphql`})}var Dl=`(?:[a-zA-Z0-9_-]+)`,Ol=`\\.`,kl=RegExp(`^${Dl}${Ol}${Dl}${Ol}${Dl}$`),Al=kl.test.bind(kl);async function jl(e){let t=Al(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function Ml(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function Nl(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=Ml(e),t(i)}var Pl=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(jl.bind(null,e),{hook:Nl.bind(null,e)})};const Fl=`7.0.6`,Il=()=>{},Ll=console.warn.bind(console),Rl=console.error.bind(console);function zl(e={}){return typeof e.debug!=`function`&&(e.debug=Il),typeof e.info!=`function`&&(e.info=Il),typeof e.warn!=`function`&&(e.warn=Ll),typeof e.error!=`function`&&(e.error=Rl),e}const Bl=`octokit-core.js/${Fl} ${fc()}`;var Vl=class{static VERSION=Fl;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new xc.Collection,n={baseUrl:_l.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${Bl}`:Bl,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=_l.defaults(n),this.graphql=El(this.request).defaults(n),this.log=zl(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=Pl(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t({async next(){if(!s)return{done:!0};try{let e=Zl(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10){if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:eu(e,t,n,r)})}Object.assign($l,{iterator:Ql});function tu(e){return{paginate:Object.assign($l.bind(null,e),{iterator:Ql.bind(null,e)})}}tu.VERSION=Xl,new nc;const nu=uc(),ru={baseUrl:nu,request:{agent:sc(nu),fetch:lc(nu)}},iu=Vl.plugin(Jl,tu).defaults(ru);function au(e,t){let n=Object.assign({},t||{}),r=oc(e,n);r&&(n.auth=r);let i=dc(n.userAgent);return i&&(n.userAgent=i),n}const ou=new nc;function su(e,t,...n){return new(iu.plugin(...n))(au(e,t))}var cu=i(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),lu=i(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),uu=i(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=cu(),a=lu();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),du=i(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),fu=i(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),pu=i(((e,t)=>{let n=lu(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=cu(),{safeRe:a,t:o}=uu(),s=du(),{compareIdentifiers:c}=fu();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),mu=i(((e,t)=>{let n=pu();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),hu=i(((e,t)=>{let n=mu();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),gu=i(((e,t)=>{let n=mu();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),_u=i(((e,t)=>{let n=pu();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),vu=i(((e,t)=>{let n=mu();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),yu=i(((e,t)=>{let n=pu();t.exports=(e,t)=>new n(e,t).major})),bu=i(((e,t)=>{let n=pu();t.exports=(e,t)=>new n(e,t).minor})),xu=i(((e,t)=>{let n=pu();t.exports=(e,t)=>new n(e,t).patch})),Su=i(((e,t)=>{let n=mu();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Cu=i(((e,t)=>{let n=pu();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),wu=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(t,e,r)})),Tu=i(((e,t)=>{let n=Cu();t.exports=(e,t)=>n(e,t,!0)})),Eu=i(((e,t)=>{let n=pu();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Du=i(((e,t)=>{let n=Eu();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Ou=i(((e,t)=>{let n=Eu();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),ku=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)>0})),Au=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)<0})),ju=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)===0})),Mu=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)!==0})),Nu=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)>=0})),Pu=i(((e,t)=>{let n=Cu();t.exports=(e,t,r)=>n(e,t,r)<=0})),Fu=i(((e,t)=>{let n=ju(),r=Mu(),i=ku(),a=Nu(),o=Au(),s=Pu();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Iu=i(((e,t)=>{let n=pu(),r=mu(),{safeRe:i,t:a}=uu();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),Lu=i(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),Ru=i(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,k(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>y(e,this.options)).join(` `).split(/\s+/).map(e=>O(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let v=new Map,b=g.map(e=>new a(e,this.options));for(let e of b){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>v(e,n)&&t.set.some(t=>v(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,g=e=>e.value===``,v=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},y=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=C(e,t),o(`caret`,e),e=x(e,t),o(`tildes`,e),e=T(e,t),o(`xrange`,e),e=D(e,t),o(`stars`,e),e),b=e=>!e||e.toLowerCase()===`x`||e===`*`,x=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(` `),S=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return b(n)?s=``:b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return b(n)?c=``:b(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},T=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>E(e,t)).join(` `)),E=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=b(i),u=l||b(a),d=u||b(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},D=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),O=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),k=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=b(r)?``:b(i)?`>=${r}.0.0${e?`-0`:``}`:b(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=b(l)?``:b(u)?`<${+l+1}.0.0-0`:b(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),A=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),zu=i(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=du(),{safeRe:i,t:a}=uu(),o=Fu(),s=lu(),c=pu(),l=Ru()})),Bu=i(((e,t)=>{let n=Ru();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Vu=i(((e,t)=>{let n=Ru();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Hu=i(((e,t)=>{let n=pu(),r=Ru();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),Uu=i(((e,t)=>{let n=pu(),r=Ru();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),Wu=i(((e,t)=>{let n=pu(),r=Ru(),i=ku();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),Gu=i(((e,t)=>{let n=Ru();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Ku=i(((e,t)=>{let n=pu(),r=zu(),{ANY:i}=r,a=Ru(),o=Bu(),s=ku(),c=Au(),l=Pu(),u=Nu();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,v;switch(d){case`>`:p=s,m=l,h=c,g=`>`,v=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,v=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===v||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===v&&h(e,s.semver))return!1}return!0}})),qu=i(((e,t)=>{let n=Ku();t.exports=(e,t,r)=>n(e,t,`>`,r)})),Ju=i(((e,t)=>{let n=Ku();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Yu=i(((e,t)=>{let n=Ru();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),Xu=i(((e,t)=>{let n=Bu(),r=Cu();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=Ru(),r=zu(),{ANY:i}=r,a=Bu(),o=Cu(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,v,y=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,b=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;y&&y.prerelease.length===1&&u.operator===`<`&&y.prerelease[0]===0&&(y=!1);for(let e of t){if(v=v||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&v&&!s&&p!==0||b||y)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),Qu=i(((e,t)=>{let n=uu(),r=cu(),i=pu(),a=fu();t.exports={parse:mu(),valid:hu(),clean:gu(),inc:_u(),diff:vu(),major:yu(),minor:bu(),patch:xu(),prerelease:Su(),compare:Cu(),rcompare:wu(),compareLoose:Tu(),compareBuild:Eu(),sort:Du(),rsort:Ou(),gt:ku(),lt:Au(),eq:ju(),neq:Mu(),gte:Nu(),lte:Pu(),cmp:Fu(),coerce:Iu(),Comparator:zu(),Range:Ru(),satisfies:Bu(),toComparators:Vu(),maxSatisfying:Hu(),minSatisfying:Uu(),minVersion:Wu(),validRange:Gu(),outside:Ku(),gtr:qu(),ltr:Ju(),intersects:Yu(),simplifyRange:Xu(),subset:Zu(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));function $u(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,K(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,K(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,K(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,K(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,K(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const ed=process.platform===`win32`;function td(e){if(e=od(e),ed&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=W.dirname(e);return ed&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=od(t)),t}function nd(e,t){if(Ee(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),Ee(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),rd(t))return t;if(ed){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return Ee(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(ad(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return Ee(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return Ee(rd(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||ed&&e.endsWith(`\\`)||(e+=W.sep),e+t}function rd(e){return Ee(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=ad(e),ed?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function id(e){return Ee(e,`isRooted parameter 'itemPath' must not be empty`),e=ad(e),ed?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function ad(e){return e||=``,ed?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function od(e){return e?(e=ad(e),!e.endsWith(W.sep)||e===W.sep||ed&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var sd;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(sd||={});const cd=process.platform===`win32`;function ld(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=cd?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=cd?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=td(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=td(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function ud(e,t){let n=sd.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function dd(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var fd=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};let t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}})),pd=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANSION_MAX=void 0,e.expand=S;let t=fd(),n=`\0SLASH`+Math.random()+`\0`,r=`\0OPEN`+Math.random()+`\0`,i=`\0CLOSE`+Math.random()+`\0`,a=`\0COMMA`+Math.random()+`\0`,o=`\0PERIOD`+Math.random()+`\0`,s=new RegExp(n,`g`),c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=/\\\\/g,p=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\\./g;e.EXPANSION_MAX=1e5;function v(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function y(e){return e.replace(f,n).replace(p,r).replace(m,i).replace(h,a).replace(g,o)}function b(e){return e.replace(s,`\\`).replace(c,`{`).replace(l,`}`).replace(u,`,`).replace(d,`.`)}function x(e){if(!e)return[``];let n=[],r=(0,t.balanced)(`{`,`}`,e);if(!r)return e.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=x(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function S(t,n={}){if(!t)return[];let{max:r=e.EXPANSION_MAX}=n;return t.slice(0,2)===`{}`&&(t=`\\{\\}`+t.slice(2)),D(y(t),r,!0).map(b)}function C(e){return`{`+e+`}`}function w(e){return/^-?0\d/.test(e)}function T(e,t){return e<=t}function E(e,t){return e>=t}function D(e,n,r){let a=[],o=(0,t.balanced)(`{`,`}`,e);if(!o)return[e];let s=o.pre,c=o.post.length?D(o.post,n,!1):[``];if(/\$$/.test(o.pre))for(let e=0;e=0;if(!u&&!d)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+i+o.post,D(e,n,!0)):[e];let f;if(u)f=o.body.split(/\.\./);else if(f=x(o.body),f.length===1&&f[0]!==void 0&&(f=D(f[0],n,!1).map(C),f.length===1))return c.map(e=>o.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=v(f[0]),t=v(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.max(Math.abs(v(f[2])),1):1,i=T;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e{n.exports=g,g.Minimatch=v;var r=function(){try{return t(`path`)}catch{}}()||{sep:`/`};g.sep=r.sep;var i=g.GLOBSTAR=v.GLOBSTAR={},a=pd(),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=s+`*?`,l=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,u=`(?:(?!(?:\\/|^)\\.).)*?`,d=f(`().*{}+?[]^$\\!`);function f(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var p=/\/+/;g.filter=m;function m(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function h(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}g.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t(n,r,h(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,h(e,r))},n.Minimatch.defaults=function(n){return t.defaults(h(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,h(e,r))},n.defaults=function(n){return t.defaults(h(e,n))},n.makeRe=function(n,r){return t.makeRe(n,h(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,h(e,r))},n.match=function(n,r,i){return t.match(n,r,h(e,i))},n},v.defaults=function(e){return g.defaults(e).Minimatch};function g(e,t,n){return C(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new v(t,n).match(e)}function v(e,t){if(!(this instanceof v))return new v(e,t);C(e),t||={},e=e.trim(),!t.allowWindowsEscape&&r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}v.prototype.debug=function(){},v.prototype.make=y;function y(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(p)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}v.prototype.parseNegate=b;function b(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;iS)throw TypeError(`pattern is too long`)};v.prototype.parse=T;var w={};function T(e,t){C(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return i;if(e===``)return``;var r=``,a=!!n.nocase,l=!1,u=[],f=[],p,m=!1,h=-1,g=-1,v=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,y=this;function b(){if(p){switch(p){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+p;break}y.debug(`clearStateChar %j %j`,p,r),p=!1}}for(var x=0,S=e.length,T;x-1;N--){var P=f[N],F=r.slice(0,P.reStart),I=r.slice(P.reStart,P.reEnd-8),L=r.slice(P.reEnd-8,P.reEnd),R=r.slice(P.reEnd);L+=R;var z=F.split(`(`).length-1,ee=R;for(x=0;x=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===i){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(r,r+l.length);if(!this._matchOne(f,l,n,0,0))return!1;r+=l.length}var p=0;if(d.length){if(d.length+r>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||r+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=r;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new gd(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),vd?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:vd,nocomment:!0,noext:!0,nonegate:!0};a=vd?a.replace(/\\/g,`/`):a,this.minimatch=new _d(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=ad(e),!e.endsWith(W.sep)&&this.isImplicitPattern===!1&&(e=`${e}${W.sep}`)):e=od(e),this.minimatch.match(e)?this.trailingSeparator?sd.Directory:sd.All:sd.None}partialMatch(e){return e=od(e),td(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(vd?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(vd?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(t,n){Ee(t,`pattern cannot be empty`);let r=new gd(t).segments.map(t=>e.getLiteral(t));if(Ee(r.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${t}'. Relative pathing '.' and '..' is not allowed.`),Ee(!id(t)||r[0],`Invalid pattern '${t}'. Root segment must not contain globs.`),t=ad(t),t===`.`||t.startsWith(`.${W.sep}`))t=e.globEscape(process.cwd())+t.substr(1);else if(t===`~`||t.startsWith(`~${W.sep}`))n||=ue.homedir(),Ee(n,`Unable to determine HOME directory`),Ee(rd(n),`Expected HOME directory to be a rooted path. Actual '${n}'`),t=e.globEscape(n)+t.substr(1);else if(vd&&(t.match(/^[A-Z]:$/i)||t.match(/^[A-Z]:[^\\]/i))){let n=nd(`C:\\dummy-root`,t.substr(0,2));t.length>2&&!n.endsWith(`\\`)&&(n+=`\\`),t=e.globEscape(n)+t.substr(2)}else if(vd&&(t===`\\`||t.match(/^\\[^\\]/))){let n=nd(`C:\\dummy-root`,`\\`);n.endsWith(`\\`)||(n+=`\\`),t=e.globEscape(n)+t.substr(1)}else t=nd(e.globEscape(process.cwd()),t);return ad(t)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},bd=class{constructor(e,t){this.path=e,this.level=t}},xd=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Sd=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},Cd=function(e){return this instanceof Cd?(this.v=e,this):new Cd(e)},wd=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Cd?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Td=process.platform===`win32`;var Ed=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=$u(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return xd(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Sd(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return wd(this,arguments,function*(){let t=$u(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new yd(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of ld(n)){K(`Search path '${e}'`);try{yield Cd(me.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new bd(e,1))}let i=[];for(;r.length;){let a=r.pop(),o=ud(n,a.path),s=!!o||dd(n,a.path);if(!o&&!s)continue;let c=yield Cd(e.stat(a,t,i));if(c&&!(t.excludeHiddenFiles&&W.basename(a.path).match(/^\./)))if(c.isDirectory()){if(o&sd.Directory&&t.matchDirectories)yield yield Cd(a.path);else if(!s)continue;let e=a.level+1,n=(yield Cd(me.promises.readdir(a.path))).map(t=>new bd(W.join(a.path,t),e));r.push(...n.reverse())}else o&sd.File&&(yield yield Cd(a.path))}})}static create(t,n){return xd(this,void 0,void 0,function*(){let r=new e(n);Td&&(t=t.replace(/\r\n/g,` -`),t=t.replace(/\r/g,` -`));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new yd(e));return r.searchPaths.push(...ld(r.patterns)),r})}static stat(e,t,n){return xd(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield me.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){K(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield me.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield me.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){K(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Dd=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Od(e,t){return Dd(this,void 0,void 0,function*(){return yield Ed.create(e,t)})}var kd=n(Qu(),1),Ad;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Ad||={});var jd;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(jd||={});var Md;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(Md||={});const Nd=5e3,Pd=5e3,Fd=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Id=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ld=`cache.tar`,Rd=`manifest.txt`;var zd=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Bd=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Vd(){return zd(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=W.join(n,`actions`,`temp`)}let n=W.join(t,pe.randomUUID());return yield Zr(n),n})}function Hd(e){return me.statSync(e).size}function Ud(e){return zd(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield Od(e.join(` -`),{implicitDescendants:!1});try{for(var c=!0,l=Bd(s.globGenerator()),u;u=yield l.next(),t=u.done,!t;c=!0){i=u.value,c=!1;let e=i,t=W.relative(o,e).replace(RegExp(`\\${W.sep}`,`g`),`/`);K(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function Wd(e){return zd(this,void 0,void 0,function*(){return Oe.promisify(me.unlink)(e)})}function Gd(e){return zd(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),K(`Checking ${e} ${t.join(` `)}`);try{yield li(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){K(e.message)}return n=n.trim(),K(n),n})}function Kd(){return zd(this,void 0,void 0,function*(){let e=yield Gd(`zstd`,[`--quiet`]);return K(`zstd version: ${kd.clean(e)}`),e===``?jd.Gzip:jd.ZstdWithoutLong})}function qd(e){return e===jd.Gzip?Ad.Gzip:Ad.Zstd}function Jd(){return zd(this,void 0,void 0,function*(){return me.existsSync(Fd)?Fd:(yield Gd(`tar`)).toLowerCase().includes(`gnu tar`)?Qr(`tar`):``})}function Yd(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Xd(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),pe.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Zd(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Qd=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function $d(e,...t){le.stderr.write(`${Fe.format(e,...t)}${qe}`)}const ef=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let tf,nf=[],rf=[];const af=[];ef&&sf(ef);const of=Object.assign(e=>df(e),{enable:sf,enabled:cf,disable:uf,log:$d});function sf(e){tf=e,nf=[],rf=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?rf.push(e.substring(1)):nf.push(e);for(let e of af)e.enabled=cf(e.namespace)}function cf(e){if(e.endsWith(`*`))return!0;for(let t of rf)if(lf(e,t))return!1;for(let t of nf)if(lf(e,t))return!0;return!1}function lf(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function uf(){let e=tf||``;return sf(``),e}function df(e){let t=Object.assign(n,{enabled:cf(e),destroy:ff,log:of.log,namespace:e,extend:pf});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return af.push(t),t}function ff(){let e=af.indexOf(this);return e>=0?(af.splice(e,1),!0):!1}function pf(e){let t=df(`${this.namespace}:${e}`);return t.log=this.log,t}const mf=[`verbose`,`info`,`warning`,`error`],hf={verbose:400,info:300,warning:200,error:100};function gf(e,t){t.log=(...t)=>{e.log(...t)}}function _f(e){return mf.includes(e)}function vf(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=of(e.namespace);i.log=(...e)=>{of.log(...e)};function a(e){if(e&&!_f(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${mf.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);of.enable(n.join(`,`))}n&&(_f(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${mf.join(`, `)}.`));function o(e){return!!(r&&hf[e.level]<=hf[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(gf(e,r),o(r)){let e=of.disable();of.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return gf(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const yf=vf({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});yf.logger;function bf(e){return yf.createClientLogger(e)}function xf(e){return e.toLowerCase()}function*Sf(e){for(let t of e.values())yield[t.name,t.value]}var Cf=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(xf(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(xf(e))?.value}has(e){return this._headersMap.has(xf(e))}delete(e){this._headersMap.delete(xf(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return Sf(this._headersMap)}};function wf(e){return new Cf(e)}function Tf(){return crypto.randomUUID()}var Ef=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??wf(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||Tf(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function Df(e){return new Ef(e)}const Of=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var kf=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!Of.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!Of.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function Af(){return kf.create()}function jf(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Mf(e){if(jf(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const Nf=Ie.custom,Pf=`REDACTED`,Ff=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.Access-Control-Allow-Credentials.Access-Control-Allow-Headers.Access-Control-Allow-Methods.Access-Control-Allow-Origin.Access-Control-Expose-Headers.Access-Control-Max-Age.Access-Control-Request-Headers.Access-Control-Request-Method.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),If=[`api-version`];var Lf=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Ff.concat(e),t=If.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`)return this.sanitizeHeaders(n);if(e===`url`)return this.sanitizeUrl(n);if(e===`query`)return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||jf(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Pf);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Pf;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Pf;return t}};const Rf=new Lf;var zf=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Nf,{value:()=>`RestError: ${this.message} \n ${Rf.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function Bf(e){return e instanceof zf?!0:Mf(e)&&e.name===`RestError`}function Vf(e,t){return Buffer.from(e,t)}const Hf=bf(`ts-http-runtime`),Uf={};function Wf(e){return e&&typeof e.pipe==`function`}function Gf(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Kf(e){return e&&typeof e.byteLength==`number`}var qf=class extends Me{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},Jf=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Qd(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new Lf;Hf.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Qf(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new qf(t);n.on(`error`,e=>{Hf.error(`Error in upload progress`,e)}),Wf(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Yf(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Xf(n,i):n;let l=e.onDownloadProgress;if(l){let e=new qf(l);e.on(`error`,e=>{Hf.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Zf(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();Wf(o)&&(t=Gf(o));let r=Promise.resolve();Wf(s)&&(r=Gf(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{Hf.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?Ae.request(a,r):et.request(a,r);s.once(`error`,t=>{o(new zf(t.message,{code:t.code??zf.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Qd(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&Wf(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Kf(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Hf.error(`Unrecognized body type`,n),o(new zf(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?Ae.globalAgent:(this.cachedHttpAgent||=new Ae.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return et.globalAgent;let t=e.tlsSettings??Uf,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(Hf.info(`No cached TLS Agent exist, creating a new Agent`),r=new et.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Yf(e){let t=wf();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Xf(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=Le.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=Le.createInflate();return e.pipe(t),t}return e}function Zf(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new zf(`Error reading response as text: ${e.message}`,{code:zf.PARSE_ERROR}))})})}function Qf(e){return e?Buffer.isBuffer(e)?e.length:Wf(e)?null:Kf(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function $f(){return new Jf}function ep(){return $f()}function tp(e={}){let t=e.logger??Hf.info,n=new Lf({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const np=[`GET`,`HEAD`];function rp(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return ip(r,await r(e),t,n)}}}async function ip(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&np.includes(a.method)||o===302&&np.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Qd(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function lp(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const up=`Retry-After`,dp=[`retry-after-ms`,`x-ms-retry-after-ms`,up];function fp(e){if(e&&[429,503].includes(e.status))try{for(let t of dp){let n=lp(e,t);if(n===0||n)return n*(t===up?1e3:1)}let t=e.headers.get(up);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function pp(e){return Number.isFinite(fp(e))}function mp(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=fp(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function hp(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=_p(a),s=o&&e.ignoreSystemErrors,c=gp(i),l=c&&e.ignoreHttpStatusCodes;return i&&(pp(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:sp(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function gp(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function _p(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const vp=bf(`ts-http-runtime retryPolicy`);function yp(e,t={maxRetries:3}){let n=t.logger||vp;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),o=e,!e||o.name!==`RestError`)throw e;a=o.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Qd;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await cp(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function bp(e={}){return{name:`defaultRetryPolicy`,sendRequest:yp([mp(),hp(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const xp=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function Sp(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function Cp(){return{name:`formDataPolicy`,async sendRequest(e,t){if(xp&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=Sp(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=wp(e.formData):await Tp(e.formData,e),e.formData=void 0}return t(e)}}}function wp(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function Tp(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:wf({"Content-Disposition":`form-data; name="${t}"`}),body:Vf(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=wf();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var Ep=i(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Dp=i(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=Ep(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),Op=i(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.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`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Dp()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),kp=i(((e,t)=>{t.exports=(e,t)=>{t||=process.argv;let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1?!0:r{let r=t(`os`),i=kp(),a=process.env,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)?o=!1:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=!0),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR.length===0||parseInt(a.FORCE_COLOR,10)!==0);function s(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e){if(o===!1)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!e.isTTY&&o!==!0)return 0;let t=+!!o;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(process.versions.node.split(`.`)[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`].some(e=>e in a)||a.CI_NAME===`codeship`?1:t;if(`TEAMCITY_VERSION`in a)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION);if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:(a.TERM,t)}function l(e){return s(c(e))}n.exports={supportsColor:l,stdout:l(process.stdout),stderr:l(process.stderr)}})),jp=i(((e,n)=>{let r=t(`tty`),i=t(`util`);e.init=d,e.log=c,e.formatArgs=o,e.save=l,e.load=u,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=Ap();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(` -`).join(` -`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+` -`)}function l(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function u(){return process.env.DEBUG}function d(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},f.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),Mp=i(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=Op():t.exports=jp()})),Np=i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.json=e.toBuffer=void 0;let a=i(t(`http`)),o=i(t(`https`));async function s(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=s;async function c(e){let t=(await s(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=c;function l(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?o:a).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=l})),Pp=i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;let o=i(t(`net`)),s=i(t(`http`)),c=t(`https`);a(Np(),e);let l=Symbol(`AgentBaseInternalState`);e.Agent=class extends s.Agent{constructor(e){super(e),this[l]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` -`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new o.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?c.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(o=>{if(this.decrementSockets(i,a),o instanceof s.Agent)try{return o.addRequest(e,r)}catch(e){return n(e)}this[l].currentSocket=o,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[l].currentSocket;if(this[l].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[l].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[l]&&(this[l].defaultPort=e)}get protocol(){return this[l].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[l]&&(this[l].protocol=e)}}})),Fp=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(Mp()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r -\r -`);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r -`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),Ip=i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;let o=i(t(`net`)),s=i(t(`tls`)),c=a(t(`assert`)),l=a(Mp()),u=Pp(),d=t(`url`),f=Fp(),p=(0,l.default)(`https-proxy-agent`),m=e=>e.servername===void 0&&e.host&&!o.isIP(e.host)?{...e,servername:e.host}:e;var h=class extends u.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new d.URL(e):e,this.proxyHeaders=t?.headers??{},p(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?v(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(p("Creating `tls.Socket`: %o",this.connectOpts),r=s.connect(m(this.connectOpts))):(p("Creating `net.Socket`: %o",this.connectOpts),r=o.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},a=o.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${a}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${a}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,f.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:d,buffered:h}=await u;if(e.emit(`proxyConnect`,d),this.emit(`proxyConnect`,d,e),d.statusCode===200)return e.once(`socket`,g),t.secureEndpoint?(p(`Upgrading socket connection to TLS`),s.connect({...v(m(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let y=new o.Socket({writable:!1});return y.readable=!0,e.once(`socket`,e=>{p(`Replaying proxy buffer for failed request`),(0,c.default)(e.listenerCount(`data`)>0),e.push(h),e.push(null)}),y}};h.protocols=[`http`,`https`],e.HttpsProxyAgent=h;function g(e){e.resume()}function v(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Lp=i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpProxyAgent=void 0;let o=i(t(`net`)),s=i(t(`tls`)),c=a(Mp()),l=t(`events`),u=Pp(),d=t(`url`),f=(0,c.default)(`http-proxy-agent`);var p=class extends u.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new d.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?m(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new d.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;f(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(f(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r -\r -`)+4,e.outputData[0].data=e._header+n.substring(r),f(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),i=s.connect(this.connectOpts)):(f("Creating `net.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)),await(0,l.once)(i,`connect`),i}};p.protocols=[`http`,`https`],e.HttpProxyAgent=p;function m(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Rp=Ip(),zp=Lp();const Bp=[];let Vp=!1;const Hp=new Map;function Up(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function Wp(){if(!process)return;let e=Up(`HTTPS_PROXY`),t=Up(`ALL_PROXY`),n=Up(`HTTP_PROXY`);return e||t||n}function Gp(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function Kp(){let e=Up(`NO_PROXY`);return Vp=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function qp(e){if(!e&&(e=Wp(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Jp(){let e=Wp();return e?new URL(e):void 0}function Yp(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function Xp(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&Hf.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`);let i=e.headers.toJSON();r?(t.httpProxyAgent||=new zp.HttpProxyAgent(n,{headers:i}),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Rp.HttpsProxyAgent(n,{headers:i}),e.agent=t.httpsProxyAgent)}function Zp(e,t){Vp||Bp.push(...Kp());let n=e?Yp(e):Jp(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!Gp(e.url,t?.customNoProxyList??Bp,t?.customNoProxyList?void 0:Hp)?Xp(e,r,n):e.proxySettings&&Xp(e,r,Yp(e.proxySettings)),i(e)}}}function Qp(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function $p(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function em(e){return typeof e.stream==`function`}async function*tm(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function nm(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=tm.bind(e)),e.values||=tm.bind(e)}function rm(e){return e instanceof ReadableStream?(nm(e),G.fromWeb(e)):e}function im(e){return e instanceof Uint8Array?G.from(Buffer.from(e)):em(e)?rm(e.stream()):rm(e)}async function am(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(im);return G.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function om(){return`----AzSDKFormBoundary${Tf()}`}function sm(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function cm(e){if(e instanceof Uint8Array)return e.byteLength;if(em(e))return e.size===-1?void 0:e.size}function lm(e){let t=0;for(let n of e){let e=cm(n);if(e===void 0)return;t+=e}return t}async function um(e,t,n){let r=[Vf(`--${n}`,`utf-8`),...t.flatMap(e=>[Vf(`\r -`,`utf-8`),Vf(sm(e.headers),`utf-8`),Vf(`\r -`,`utf-8`),e.body,Vf(`\r\n--${n}`,`utf-8`)]),Vf(`--\r -\r -`,`utf-8`)],i=lm(r);i&&e.headers.set(`Content-Length`,i),e.body=await am(r)}const dm=`multipartPolicy`,fm=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function pm(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!fm.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function mm(){return{name:dm,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?pm(n):n=om(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await um(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function hm(){return Af()}const gm=vf({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});gm.logger;function _m(e){return gm.createClientLogger(e)}const vm=_m(`core-rest-pipeline`);function ym(e={}){return tp({logger:vm.info,...e})}function bm(e={}){return rp(e)}function xm(){return`User-Agent`}async function Sm(e){if(le&&le.versions){let t=`${Ke.type()} ${Ke.release()}; ${Ke.arch()}`,n=le.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const Cm=`1.22.3`;function wm(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function Tm(){return xm()}async function Em(e){let t=new Map;t.set(`core-rest-pipeline`,Cm),await Sm(t);let n=wm(t);return e?`${e} ${n}`:n}const Dm=Tm();function Om(e={}){let t=Em(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(Dm)||e.headers.set(Dm,await t),n(e)}}}var km=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Am(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new km(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function jm(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return Am(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function Mm(e){if(Mf(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Nm(e){return Mf(e)}function Pm(){return Tf()}const Fm=xp,Im=Symbol(`rawContent`);function Lm(e){return typeof e[Im]==`function`}function Rm(e){return Lm(e)?e[Im]():e}const zm=dm;function Bm(){let e=mm();return{name:zm,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Lm(e.body)&&(e.body=Rm(e.body));return e.sendRequest(t,n)}}}function Vm(){return ap()}function Hm(e={}){return bp(e)}function Um(){return Cp()}function Wm(e){return qp(e)}function Gm(e,t){return Zp(e,t)}function Km(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function qm(e){return Qp(e)}function Jm(e){return $p(e)}const Ym={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function Xm(e={}){let t=new Zm(e.parentContext);return e.span&&(t=t.setValue(Ym.span,e.span)),e.namespace&&(t=t.setValue(Ym.namespace,e.namespace)),t}var Zm=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Qm=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function $m(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function eh(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:$m(),tracingContext:Xm({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function th(){return Qm.instrumenterImplementation||=eh(),Qm.instrumenterImplementation}function nh(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=th().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Ym.namespace)||(s=s.setValue(Ym.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Ym.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return th().withContext(e,t,...n)}function s(e){return th().parseTraceparentHeader(e)}function c(e){return th().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const rh=zf;function ih(e){return Bf(e)}function ah(e={}){let t=Em(e.userAgentPrefix),n=new Lf({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=oh();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=sh(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return lh(s,t),t}catch(e){throw ch(s,e),e}}}}function oh(){try{return nh({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:Cm})}catch(e){vm.warning(`Error when creating the TracingClient: ${Mm(e)}`);return}}function sh(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){vm.warning(`Skipping creating a tracing span due to an error: ${Mm(e)}`);return}}function ch(e,t){try{e.setStatus({status:`error`,error:Nm(t)?t:void 0}),ih(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){vm.warning(`Skipping tracing span processing due to an error: ${Mm(e)}`)}}function lh(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){vm.warning(`Skipping tracing span processing due to an error: ${Mm(e)}`)}}function uh(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function dh(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=uh(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function fh(e){let t=hm();return Fm&&(e.agent&&t.addPolicy(qm(e.agent)),e.tlsOptions&&t.addPolicy(Jm(e.tlsOptions)),t.addPolicy(Gm(e.proxyOptions)),t.addPolicy(Vm())),t.addPolicy(dh()),t.addPolicy(Um(),{beforePolicies:[zm]}),t.addPolicy(Om(e.userAgentOptions)),t.addPolicy(Km(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(Bm(),{afterPhase:`Deserialize`}),t.addPolicy(Hm(e.retryOptions),{phase:`Retry`}),t.addPolicy(ah({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),Fm&&t.addPolicy(bm(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(ym(e.loggingOptions),{afterPhase:`Sign`}),t}function ph(){let e=ep();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?uh(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function mh(e){return wf(e)}function hh(e){return Df(e)}const gh={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function _h(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function yh(e,t){try{return[await t(e),void 0]}catch(e){if(ih(e)&&e.response)return[e.response,e];throw e}}async function bh(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function xh(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function Sh(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function Ch(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||vm,a={authorizeRequest:r?.authorizeRequest?.bind(r)??bh,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?vh(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await yh(e,t),xh(r)){let l=Th(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Sh({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await yh(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await yh(e,t)),xh(r)&&(l=Th(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Sh({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await yh(e,t))}}if(s)throw s;return r}}}function wh(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function Th(e){if(e)return wh(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function Eh(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const Dh=`DisableKeepAlivePolicy`;function Oh(){return{name:Dh,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function kh(e){return e.getOrderedPolicies().some(e=>e.name===Dh)}function Ah(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function jh(e){return Buffer.from(e,`base64`)}function Mh(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const Nh=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ph(e){return Nh.test(e)}const Fh=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function Ih(e){return Fh.test(e)}function Lh(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function Rh(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return Lh({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:Mh(e.parsedBody,a)})}var zh=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=rg(this,e,t,n,!!this.isXML,i)):a=$h(this,e,t,n,!!this.isXML,i):a=Qh(this,e,t,n,!!this.isXML,i):a=Xh(n,t):a=Yh(n,t):a=Zh(o,t,n):a=Jh(n,e.type.allowedValues,t):a=qh(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=og(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=sg(this,e,t,n,i)):a=cg(this,e,t,n,i):a=Uh(t):a=jh(t):a=Kh(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function Bh(e={},t=!1){return new zh(e,t)}function Vh(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function Hh(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return Vh(Ah(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function Uh(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),jh(e)}}function Wh(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function Gh(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function Kh(e){if(e)return new Date(e*1e3)}function qh(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&Ih(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function Jh(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function Yh(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=Ah(t)}return t}function Xh(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=Hh(t)}return t}function Zh(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=Gh(t)}else if(e.match(/^TimeSpan$/i)!==null&&!Ph(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function Qh(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function ig(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function ag(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function og(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;dg(e,t)&&(t=ug(e,t,n,`serializedName`));let o=ng(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=Wh(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(Wh(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!ag(e,i)&&(s[e]=n[e]);return s}function sg(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function cg(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function hg(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=gg(e,r);!t.propertyFound&&n&&(t=gg(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=hg(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function gg(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function Eg(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function Dg(e,t,n,r){let i=200<=e.status&&e.status<300;if(Eg(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new rh(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===pg.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function Og(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new rh(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||rh.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function kg(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===pg.Stream&&t.add(Number(n))}return t}function Ag(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function jg(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=yg(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(Mg(e,a,i),Ng(e,a,i,t)),n(e)}}}function Mg(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=hg(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,Ag(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||Ag(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Ng(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=hg(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=Ag(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===pg.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=Pg(d,t,m,e.body,a);m===pg.Sequence?e.body=r(Fg(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===pg.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=hg(t,r);if(i!=null){let t=r.mapper.serializedName||Ag(r);e.formData[t]=n.serializer.serialize(r.mapper,i,Ag(r),a)}}}}function Pg(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function Fg(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function Ig(e={}){let t=fh(e??{});return e.credentialOptions&&t.addPolicy(Ch({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(jg(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(Sg(e.deserializationOptions),{phase:`Deserialize`}),t}let Lg;function Rg(){return Lg||=ph(),Lg}const zg={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function Bg(e,t,n,r){let i=Hg(t,n,r),a=!1,o=Vg(e,i);if(t.path){let e=Vg(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),Ug(e)?(o=e,a=!0):o=Wg(o,e)}let{queryParams:s,sequenceParams:c}=Gg(t,n,r);return o=qg(o,s,c,a),o}function Vg(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function Hg(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=hg(t,i,n),o=Ag(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function Ug(e){return e.includes(`://`)}function Wg(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function Gg(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=hg(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,Ag(a));let t=a.collectionFormat?zg[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||Ag(a),o)}}return{queryParams:r,sequenceParams:i}}function Kg(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function qg(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=Kg(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Jg=_m(`core-client`);var Yg=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Jg.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Rg(),this.pipeline=e.pipeline||Xg(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=hh({url:Bg(n,t,e,this)});r.method=t.httpMethod;let i=yg(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=kg(t));try{let e=await this.sendRequest(r),n=Rh(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=Rh(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function Xg(e){let t=Zg(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return Ig({...e,credentialOptions:n})}function Zg(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Qg={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function $g(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const e_=async e=>{let t=a_(e.request),n=r_(e.response);if(n){let r=i_(n),i=n_(e,r),a=t_(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Qg.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function t_(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&$g(t))return t}function n_(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Qg.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function r_(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function i_(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function a_(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const o_=Symbol(`Original PipelineRequest`),s_=Symbol.for(`@azure/core-client original request`);function c_(e,t={}){let n=e[o_],r=mh(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=hh({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[s_]=t.originalRequest),n}}function l_(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:u_(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===o_?e:i===`clone`?()=>l_(c_(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function u_(e){return new f_(e.toJSON({preserveCase:!0}))}function d_(e){return e.toLowerCase()}var f_=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[d_(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[d_(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[d_(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[d_(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nh_(await e.sendRequest(l_(t,{createProxy:!0})))}}const x_=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function S_(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!z_(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,L_(`InvalidTag`,t,B_(e,a))}let l=M_(e,a);if(l===!1)return L_(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,B_(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=P_(u,t);if(i===!0)r=!0;else return L_(i.err.code,i.err.msg,B_(e,n+i.err.line))}else if(s){if(!l.tagClosed)return L_(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,B_(e,a));if(u.trim().length>0)return L_(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,B_(e,o));if(n.length===0)return L_(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,B_(e,o));{let t=n.pop();if(c!==t.tagName){let n=B_(e,t.tagStartPos);return L_(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,B_(e,o))}n.length==0&&(i=!0)}}else{let s=P_(u,t);if(s!==!0)return L_(s.err.code,s.err.msg,B_(e,a-u.length+s.err.line));if(i===!0)return L_(`InvalidXml`,`Multiple possible root nodes found.`,B_(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?L_(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:L_(`InvalidXml`,`Start tag expected.`,1)}function k_(e){return e===` `||e===` `||e===` -`||e===`\r`}function A_(e,t){let n=t;for(;t5&&r===`xml`)return L_(`InvalidXml`,`XML declaration allowed only at the start of the document.`,B_(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function j_(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function M_(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const N_=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function P_(e,t){let n=S_(e,N_),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`\u00AD`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},U_={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},W_={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},G_={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},K_={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},q_={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},J_={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},Y_={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},X_={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Z_={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`\u00AD`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},Q_={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},$_={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},ev={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...H_,...U_,...W_,...G_,...K_,...q_,...J_,...Y_,...X_,...Z_,...Q_,...$_,...ev});const tv={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},nv={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},rv=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function iv(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(rv.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function av(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const ov=`external`,sv=`base`;function cv(e){return!e||e===ov?new Set([ov]):e===`all`?new Set([`all`]):e===sv?new Set([sv]):Array.isArray(e)?new Set(e):new Set([ov])}const lv=Object.freeze({allow:0,leave:1,remove:2,throw:3}),uv=new Set([9,10,13]);function dv(e){if(!e)return{xmlVersion:1,onLevel:lv.allow,nullLevel:lv.remove};let t=e.xmlVersion===1.1?1.1:1,n=lv[e.onNCR]??lv.allow,r=lv[e.nullNCR]??lv.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,lv.remove)}}var fv=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=cv(this._limit.applyLimitsTo??ov),this._numericAllowed=e.numericAllowed??!0,this._baseMap=av(tv,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=dv(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))iv(t);this._externalMap=av(e)}addExternalEntity(e,t){iv(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=av(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=ov);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=sv}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!uv.has(e)?lv.remove:-1}_applyNCRAction(e,t,n){switch(e){case lv.allow:return String.fromCodePoint(n);case lv.remove:return``;case lv.leave:return;case lv.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rT_.includes(e)?`__`+e:e,mv={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:pv};function hv(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(T_.some(e=>n===e.toLowerCase())||E_.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function gv(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:gv(!0)}const _v=function(e){let t=Object.assign({},mv,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&hv(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=pv),t.processEntities=gv(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let vv;vv=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var yv=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][vv]={startIndex:t})}static getMetaDataSymbol(){return vv}},bv=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&Sv(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&Sv(e,`!ATTLIST`,t))t+=8;else if(a&&Sv(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(Sv(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=xv(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=xv(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const Ov=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function kv(e,t,n){if(!n.eNotation)return e;let r=t.match(Ov);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function Av(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function jv(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function Mv(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Nv(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Pv=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Lv=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Iv(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Rv(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function zv(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Bv=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Gv,this.parseTextData=Vv,this.resolveNameSpace=Hv,this.buildAttributesMap=Wv,this.isItStopNode=Yv,this.replaceEntitiesValue=qv,this.readStopNodeData=ey,this.saveTextToParentTag=Jv,this.addChild=Kv,this.ignoreAttributesFn=Nv(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...tv};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...nv,...Q_}),this.entityDecoder=new fv({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Lv,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Fv;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?ty(e,s.parseTagValue,s.numberParseOptions):e}}function Hv(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Uv=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Wv(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=S_(e,Uv),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=ny(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=$v(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new yv(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=a),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Zv(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Zv(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=$v(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=ny(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=zv(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Rv(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let v=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new yv(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,v)}else{if(m){({tagName:c,tagExp:u}=ny(i.transformTagName,c,u,i));let e=new yv(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new yv(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new yv(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Kv(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function qv(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Jv(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Yv(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Xv(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Xv(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function ey(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Zv(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Zv(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Zv(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=$v(e,n,`>`);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function ty(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Dv(e,n)}else if(w_(e))return e;else return``}function ny(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=ry(t,r),{tagName:t,tagExp:n}}function ry(e,t){if(E_.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return T_.includes(e)?t.onDangerousProperty(e):e}const iy=yv.getMetaDataSymbol();function ay(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function oy(e,t,n,r){return sy(e,t,n,r)}function sy(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function cy(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function my(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}const hy=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},gy=hy(`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),_y=hy(`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),vy=(e=`1.0`)=>e===`1.1`?_y:gy,yy=(e,{xmlVersion:t=`1.0`}={})=>vy(t).qName.test(e);function by(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(Dy(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function xy(e,t,n,r,i){return!n.sanitizeName||yy(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function Sy(e,t){let n=``;t.format&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=Ay(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=fy(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=Oy(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${Oy(l[`:@`],t,p,r,a)}`,g;g=p?Ty(l[u],t):Cy(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function wy(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=my(e[i]),r=!0}return r?n:null}function Ty(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function Ey(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${my(i)}"`}return n}function Dy(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const My={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ny(e){if(this.options=Object.assign({},My,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e -`,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Py(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function Fy(e,t,n,r,i){return!n.sanitizeName||yy(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Ny.prototype.build=function(e){if(this.options.preserveOrder)return Sy(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Lv,n=Py(e,this.options);return this.j2x(e,0,t,n).val}},Ny.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:Fy(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=Fy(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Ny.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Ny.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Ny.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=fy(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function Gy(e,t={}){if(!e)throw Error(`Document is empty`);let n=By.validate(e);if(n!==!0)throw n;let r=new dy(Uy(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?Object.assign({},t):t}return r}const Ky=_m(`storage-blob`);var qy=class extends je{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Jy=Ne.constants.MAX_LENGTH;var Yy=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Jy);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new qy(this.buffers,this.size)}},Xy=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Te;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Yy(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Zy;function Qy(){return Zy||=ph(),Zy}var $y=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const eb={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},tb={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function nb(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function rb(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function ib(e){try{return new URL(e).pathname}catch{return}}function ab(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var sb=class extends $y{constructor(e,t){super(e,t)}async sendRequest(e){return Fm?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=nb(e.url,eb.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(tb.COOKIE),e.headers.remove(tb.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},cb=class{create(e,t){return new sb(e,t)}},lb=class extends $y{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},ub=class extends lb{constructor(e,t){super(e,t)}},db=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},fb=class extends db{create(e,t){return new ub(e,t)}};const pb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),mb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),hb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function gb(e,t){return _b(e,t)?-1:1}function _b(e,t){let n=[pb,mb,hb],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(tb.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,tb.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,tb.CONTENT_ENCODING),this.getHeaderValueToSign(e,tb.CONTENT_LENGTH),this.getHeaderValueToSign(e,tb.CONTENT_MD5),this.getHeaderValueToSign(e,tb.CONTENT_TYPE),this.getHeaderValueToSign(e,tb.DATE),this.getHeaderValueToSign(e,tb.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,tb.IF_MATCH),this.getHeaderValueToSign(e,tb.IF_NONE_MATCH),this.getHeaderValueToSign(e,tb.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,tb.RANGE)].join(` -`)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(tb.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===tb.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(tb.PREFIX_FOR_STORAGE));t.sort((e,t)=>gb(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=ib(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=ab(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},yb=class extends db{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new vb(e,t,this)}computeHMACSHA256(e){return Re(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const bb=_m(`storage-common`);var xb;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(xb||={});const Sb={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xb.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},Cb=new km(`The operation was aborted.`);var wb=class extends $y{retryOptions;constructor(e,t,n=Sb){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Sb.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Sb.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Sb.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Sb.maxRetryDelayInMs):Sb.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Sb.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Sb.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=rb(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=nb(r.url,eb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(bb.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(bb.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return bb.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return bb.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return bb.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return bb.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(tb.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(bb.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case xb.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case xb.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return bb.info(`RetryPolicy: Delay for ${r}ms`),ob(r,n,Cb)}},Tb=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new wb(e,t,this.retryOptions)}};function Eb(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return Fm?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=nb(e.url,eb.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(tb.COOKIE),e.headers.delete(tb.CONTENT_LENGTH),t(e))}}}function Db(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(tb.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const Ob={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xb.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},kb=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],Ab=new km(`The operation was aborted.`);function jb(e={}){let t=e.retryPolicyType??Ob.retryPolicyType,n=e.maxTries??Ob.maxTries,r=e.retryDelayInMs??Ob.retryDelayInMs,i=e.maxRetryDelayInMs??Ob.maxRetryDelayInMs,a=e.secondaryHost??Ob.secondaryHost,o=e.tryTimeoutInMs??Ob.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return bb.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of kb)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return bb.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return bb.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return bb.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return bb.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(tb.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case xb.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case xb.FIXED:a=r;break}else a=Math.random()*1e3;return bb.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=nb(e.url,eb.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?rb(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{bb.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(ih(e))bb.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw bb.error(`RetryPolicy: Caught error, message: ${Mm(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await ob(c(a,l),e.abortSignal,Ab),l++}if(d)return d;throw f??new rh(`RetryPolicy failed without known error.`)}}}function Mb(e){function t(t){t.headers.set(tb.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(tb.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,tb.CONTENT_LANGUAGE),n(t,tb.CONTENT_ENCODING),n(t,tb.CONTENT_LENGTH),n(t,tb.CONTENT_MD5),n(t,tb.CONTENT_TYPE),n(t,tb.DATE),n(t,tb.IF_MODIFIED_SINCE),n(t,tb.IF_MATCH),n(t,tb.IF_NONE_MATCH),n(t,tb.IF_UNMODIFIED_SINCE),n(t,tb.RANGE)].join(` -`)+` -`+r(t)+i(t),o=Re(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(tb.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===tb.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(tb.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>gb(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=ib(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=ab(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function Nb(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),e}}}}var Pb=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return Re(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const Fb=`12.31.0`,Ib=`2026-02-06`,Lb=5e4,Rb=4*1024*1024,zb={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},Bb=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),Vb=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),Hb=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function Ub(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var Wb=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Gb(e,t={}){e||=new fb;let n=new Wb([],t);return n._credential=e,n}function Kb(e){let t=[Xb,Yb,Zb,Qb,$b,ex,nx];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>tx(e));return{wrappedPolicies:y_(n),afterRetry:e}}}}function qb(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?b_(t):Qy(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${Fb}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=Ig({...n,loggingOptions:{additionalAllowedHeaderNames:Bb,additionalAllowedQueryParameters:Vb,logger:Ky.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Wy,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:Gy,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(Db()),i.addPolicy(jb(n.retryOptions),{phase:`Retry`}),i.addPolicy(Nb()),i.addPolicy(Eb());let a=Kb(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=Jb(e);Eh(o)?i.addPolicy(Ch({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:e_}}),{phase:`Sign`}):o instanceof yb&&i.addPolicy(Mb({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function Jb(e){if(e._credential)return e._credential;let t=new fb;for(let n of e.factories)if(Eh(n.credential))t=n.credential;else if(Yb(n))return n;return t}function Yb(e){return e instanceof yb?!0:e.constructor.name===`StorageSharedKeyCredential`}function Xb(e){return e instanceof fb?!0:e.constructor.name===`AnonymousCredential`}function Zb(e){return Eh(e.credential)}function Qb(e){return e instanceof cb?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function $b(e){return e instanceof Tb?!0:e.constructor.name===`StorageRetryPolicyFactory`}function ex(e){return e.constructor.name===`TelemetryPolicyFactory`}function tx(e){return e.constructor.name===`InjectorPolicyFactory`}function nx(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var rx=r({AccessPolicy:()=>Cx,AppendBlobAppendBlockExceptionHeaders:()=>iw,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ow,AppendBlobAppendBlockFromUrlHeaders:()=>aw,AppendBlobAppendBlockHeaders:()=>rw,AppendBlobCreateExceptionHeaders:()=>nw,AppendBlobCreateHeaders:()=>tw,AppendBlobSealExceptionHeaders:()=>cw,AppendBlobSealHeaders:()=>sw,ArrowConfiguration:()=>Ux,ArrowField:()=>Wx,BlobAbortCopyFromURLExceptionHeaders:()=>EC,BlobAbortCopyFromURLHeaders:()=>TC,BlobAcquireLeaseExceptionHeaders:()=>uC,BlobAcquireLeaseHeaders:()=>lC,BlobBreakLeaseExceptionHeaders:()=>vC,BlobBreakLeaseHeaders:()=>_C,BlobChangeLeaseExceptionHeaders:()=>gC,BlobChangeLeaseHeaders:()=>hC,BlobCopyFromURLExceptionHeaders:()=>wC,BlobCopyFromURLHeaders:()=>CC,BlobCreateSnapshotExceptionHeaders:()=>bC,BlobCreateSnapshotHeaders:()=>yC,BlobDeleteExceptionHeaders:()=>JS,BlobDeleteHeaders:()=>qS,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>iC,BlobDeleteImmutabilityPolicyHeaders:()=>rC,BlobDownloadExceptionHeaders:()=>WS,BlobDownloadHeaders:()=>US,BlobFlatListSegment:()=>Tx,BlobGetAccountInfoExceptionHeaders:()=>AC,BlobGetAccountInfoHeaders:()=>kC,BlobGetPropertiesExceptionHeaders:()=>KS,BlobGetPropertiesHeaders:()=>GS,BlobGetTagsExceptionHeaders:()=>PC,BlobGetTagsHeaders:()=>NC,BlobHierarchyListSegment:()=>Ax,BlobItemInternal:()=>Ex,BlobName:()=>Dx,BlobPrefix:()=>jx,BlobPropertiesInternal:()=>Ox,BlobQueryExceptionHeaders:()=>MC,BlobQueryHeaders:()=>jC,BlobReleaseLeaseExceptionHeaders:()=>fC,BlobReleaseLeaseHeaders:()=>dC,BlobRenewLeaseExceptionHeaders:()=>mC,BlobRenewLeaseHeaders:()=>pC,BlobServiceProperties:()=>ix,BlobServiceStatistics:()=>dx,BlobSetExpiryExceptionHeaders:()=>QS,BlobSetExpiryHeaders:()=>ZS,BlobSetHttpHeadersExceptionHeaders:()=>eC,BlobSetHttpHeadersHeaders:()=>$S,BlobSetImmutabilityPolicyExceptionHeaders:()=>nC,BlobSetImmutabilityPolicyHeaders:()=>tC,BlobSetLegalHoldExceptionHeaders:()=>oC,BlobSetLegalHoldHeaders:()=>aC,BlobSetMetadataExceptionHeaders:()=>cC,BlobSetMetadataHeaders:()=>sC,BlobSetTagsExceptionHeaders:()=>IC,BlobSetTagsHeaders:()=>FC,BlobSetTierExceptionHeaders:()=>OC,BlobSetTierHeaders:()=>DC,BlobStartCopyFromURLExceptionHeaders:()=>SC,BlobStartCopyFromURLHeaders:()=>xC,BlobTag:()=>xx,BlobTags:()=>bx,BlobUndeleteExceptionHeaders:()=>XS,BlobUndeleteHeaders:()=>YS,Block:()=>Px,BlockBlobCommitBlockListExceptionHeaders:()=>vw,BlockBlobCommitBlockListHeaders:()=>_w,BlockBlobGetBlockListExceptionHeaders:()=>bw,BlockBlobGetBlockListHeaders:()=>yw,BlockBlobPutBlobFromUrlExceptionHeaders:()=>fw,BlockBlobPutBlobFromUrlHeaders:()=>dw,BlockBlobStageBlockExceptionHeaders:()=>mw,BlockBlobStageBlockFromURLExceptionHeaders:()=>gw,BlockBlobStageBlockFromURLHeaders:()=>hw,BlockBlobStageBlockHeaders:()=>pw,BlockBlobUploadExceptionHeaders:()=>uw,BlockBlobUploadHeaders:()=>lw,BlockList:()=>Nx,BlockLookupList:()=>Mx,ClearRange:()=>Lx,ContainerAcquireLeaseExceptionHeaders:()=>OS,ContainerAcquireLeaseHeaders:()=>DS,ContainerBreakLeaseExceptionHeaders:()=>PS,ContainerBreakLeaseHeaders:()=>NS,ContainerChangeLeaseExceptionHeaders:()=>IS,ContainerChangeLeaseHeaders:()=>FS,ContainerCreateExceptionHeaders:()=>cS,ContainerCreateHeaders:()=>sS,ContainerDeleteExceptionHeaders:()=>fS,ContainerDeleteHeaders:()=>dS,ContainerFilterBlobsExceptionHeaders:()=>ES,ContainerFilterBlobsHeaders:()=>TS,ContainerGetAccessPolicyExceptionHeaders:()=>gS,ContainerGetAccessPolicyHeaders:()=>hS,ContainerGetAccountInfoExceptionHeaders:()=>HS,ContainerGetAccountInfoHeaders:()=>VS,ContainerGetPropertiesExceptionHeaders:()=>uS,ContainerGetPropertiesHeaders:()=>lS,ContainerItem:()=>mx,ContainerListBlobFlatSegmentExceptionHeaders:()=>RS,ContainerListBlobFlatSegmentHeaders:()=>LS,ContainerListBlobHierarchySegmentExceptionHeaders:()=>BS,ContainerListBlobHierarchySegmentHeaders:()=>zS,ContainerProperties:()=>hx,ContainerReleaseLeaseExceptionHeaders:()=>AS,ContainerReleaseLeaseHeaders:()=>kS,ContainerRenameExceptionHeaders:()=>SS,ContainerRenameHeaders:()=>xS,ContainerRenewLeaseExceptionHeaders:()=>MS,ContainerRenewLeaseHeaders:()=>jS,ContainerRestoreExceptionHeaders:()=>bS,ContainerRestoreHeaders:()=>yS,ContainerSetAccessPolicyExceptionHeaders:()=>vS,ContainerSetAccessPolicyHeaders:()=>_S,ContainerSetMetadataExceptionHeaders:()=>mS,ContainerSetMetadataHeaders:()=>pS,ContainerSubmitBatchExceptionHeaders:()=>wS,ContainerSubmitBatchHeaders:()=>CS,CorsRule:()=>cx,DelimitedTextConfiguration:()=>Vx,FilterBlobItem:()=>yx,FilterBlobSegment:()=>vx,GeoReplication:()=>fx,JsonTextConfiguration:()=>Hx,KeyInfo:()=>gx,ListBlobsFlatSegmentResponse:()=>wx,ListBlobsHierarchySegmentResponse:()=>kx,ListContainersSegmentResponse:()=>px,Logging:()=>ax,Metrics:()=>sx,PageBlobClearPagesExceptionHeaders:()=>HC,PageBlobClearPagesHeaders:()=>VC,PageBlobCopyIncrementalExceptionHeaders:()=>ew,PageBlobCopyIncrementalHeaders:()=>$C,PageBlobCreateExceptionHeaders:()=>RC,PageBlobCreateHeaders:()=>LC,PageBlobGetPageRangesDiffExceptionHeaders:()=>JC,PageBlobGetPageRangesDiffHeaders:()=>qC,PageBlobGetPageRangesExceptionHeaders:()=>KC,PageBlobGetPageRangesHeaders:()=>GC,PageBlobResizeExceptionHeaders:()=>XC,PageBlobResizeHeaders:()=>YC,PageBlobUpdateSequenceNumberExceptionHeaders:()=>QC,PageBlobUpdateSequenceNumberHeaders:()=>ZC,PageBlobUploadPagesExceptionHeaders:()=>BC,PageBlobUploadPagesFromURLExceptionHeaders:()=>WC,PageBlobUploadPagesFromURLHeaders:()=>UC,PageBlobUploadPagesHeaders:()=>zC,PageList:()=>Fx,PageRange:()=>Ix,QueryFormat:()=>Bx,QueryRequest:()=>Rx,QuerySerialization:()=>zx,RetentionPolicy:()=>ox,ServiceFilterBlobsExceptionHeaders:()=>oS,ServiceFilterBlobsHeaders:()=>aS,ServiceGetAccountInfoExceptionHeaders:()=>nS,ServiceGetAccountInfoHeaders:()=>tS,ServiceGetPropertiesExceptionHeaders:()=>Jx,ServiceGetPropertiesHeaders:()=>qx,ServiceGetStatisticsExceptionHeaders:()=>Xx,ServiceGetStatisticsHeaders:()=>Yx,ServiceGetUserDelegationKeyExceptionHeaders:()=>eS,ServiceGetUserDelegationKeyHeaders:()=>$x,ServiceListContainersSegmentExceptionHeaders:()=>Qx,ServiceListContainersSegmentHeaders:()=>Zx,ServiceSetPropertiesExceptionHeaders:()=>Kx,ServiceSetPropertiesHeaders:()=>Gx,ServiceSubmitBatchExceptionHeaders:()=>iS,ServiceSubmitBatchHeaders:()=>rS,SignedIdentifier:()=>Sx,StaticWebsite:()=>lx,StorageError:()=>ux,UserDelegationKey:()=>_x});const ix={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},ax={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},ox={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},sx={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},cx={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},lx={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},ux={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},dx={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},fx={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},px={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},mx={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},hx={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},gx={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},_x={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},vx={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},yx={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},bx={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},xx={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},Sx={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},Cx={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},wx={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Tx={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},Ex={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},Dx={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},Ox={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},kx={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Ax={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},jx={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},Mx={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},Nx={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},Px={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},Fx={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Ix={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},Lx={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},Rx={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},zx={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},Bx={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},Vx={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},Hx={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},Ux={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},Wx={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},Gx={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kx={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qx={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Jx={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yx={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Xx={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zx={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Qx={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$x={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eS={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tS={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nS={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rS={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iS={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aS={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oS={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sS={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cS={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lS={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uS={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dS={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fS={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pS={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mS={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hS={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gS={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_S={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vS={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yS={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bS={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xS={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},SS={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CS={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},wS={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TS={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},ES={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DS={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},OS={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kS={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},AS={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jS={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},MS={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NS={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},PS={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FS={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},IS={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LS={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RS={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zS={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BS={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VS={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},HS={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},US={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},WS={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GS={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KS={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qS={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JS={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YS={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XS={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZS={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},QS={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$S={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eC={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tC={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},nC={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rC={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},iC={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aC={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},oC={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sC={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cC={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lC={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},uC={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dC={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},fC={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pC={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},mC={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hC={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},gC={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_C={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},vC={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yC={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bC={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xC={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},SC={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},CC={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wC={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},TC={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},EC={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DC={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OC={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kC={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},AC={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jC={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},MC={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NC={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PC={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FC={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IC={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LC={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},VC={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},UC={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},GC={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nw={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},sw={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},cw={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},pw={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gw={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},_w={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vw={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yw={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bw={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},Sw={parameterPath:`blobServiceProperties`,mapper:ix},Cw={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},ww={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},Tw={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},Ew={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Dw={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},Ow={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},kw={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},Aw={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},jw={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Mw={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Nw={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},Pw={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},Fw={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},Iw={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},Lw={parameterPath:`keyInfo`,mapper:gx},Rw={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},zw={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},Bw={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},Vw={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Hw={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},Uw={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},Ww={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Gw={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},Kw={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},qw={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},Jw={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},Yw={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},Xw={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},Zw={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Qw={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},$w={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},eT={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},tT={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nT={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},rT={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},iT={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},aT={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},oT={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sT={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},cT={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},lT={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},uT={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},dT={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},fT={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},pT={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},mT={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},hT={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},gT={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},_T={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},vT={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},yT={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},bT={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},xT={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},ST={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},CT={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},wT={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},TT={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},ET={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},DT={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},OT={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},kT={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},AT={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},jT={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},MT={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},NT={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},PT={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},FT={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},IT={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},LT={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},RT={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},zT={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},BT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},VT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},HT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},UT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},WT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},GT={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KT={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},qT={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},JT={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},YT={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},XT={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},ZT={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},QT={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},$T={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},eE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},tE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},nE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},rE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},iE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},aE={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},oE={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},sE={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},cE={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},lE={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},uE={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},dE={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},fE={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},pE={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},mE={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},hE={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},gE={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},_E={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},vE={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},yE={parameterPath:[`options`,`queryRequest`],mapper:Rx},bE={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xE={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},SE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},CE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},wE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},TE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},EE={parameterPath:[`options`,`tags`],mapper:bx},DE={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},OE={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},kE={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},AE={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},jE={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},ME={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},NE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},PE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},FE={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},IE={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},LE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},RE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},zE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},BE={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},VE={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},HE={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},UE={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},WE={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},GE={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},KE={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},qE={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},JE={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},YE={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},XE={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},ZE={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},QE={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},$E={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},eD={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},tD={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nD={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},rD={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},iD={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},aD={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},oD={parameterPath:`blocks`,mapper:Mx},sD={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},cD={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var lD=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},dD)}getProperties(e){return this.client.sendOperationRequest({options:e},fD)}getStatistics(e){return this.client.sendOperationRequest({options:e},pD)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},mD)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},hD)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},gD)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},_D)}filterBlobs(e){return this.client.sendOperationRequest({options:e},vD)}};const uD=Bh(rx,!0),dD={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:Gx},default:{bodyMapper:ux,headersMapper:Kx}},requestBody:Sw,queryParameters:[Tw,Ew,Dw],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:uD},fD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:ix,headersMapper:qx},default:{bodyMapper:ux,headersMapper:Jx}},queryParameters:[Tw,Ew,Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:uD},pD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:dx,headersMapper:Yx},default:{bodyMapper:ux,headersMapper:Xx}},queryParameters:[Tw,Dw,jw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:uD},mD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:px,headersMapper:Zx},default:{bodyMapper:ux,headersMapper:Qx}},queryParameters:[Dw,Mw,Nw,Pw,Fw,Iw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:uD},hD={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:_x,headersMapper:$x},default:{bodyMapper:ux,headersMapper:eS}},requestBody:Lw,queryParameters:[Tw,Dw,Rw],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:uD},gD={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:tS},default:{bodyMapper:ux,headersMapper:nS}},queryParameters:[Ew,Dw,zw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:uD},_D={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:rS},default:{bodyMapper:ux,headersMapper:iS}},requestBody:Bw,queryParameters:[Dw,Vw],urlParameters:[ww],headerParameters:[Cw,Ow,kw,Hw,Uw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:uD},vD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:vx,headersMapper:aS},default:{bodyMapper:ux,headersMapper:oS}},queryParameters:[Dw,Pw,Fw,Ww,Gw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:uD};var yD=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},xD)}getProperties(e){return this.client.sendOperationRequest({options:e},SD)}delete(e){return this.client.sendOperationRequest({options:e},CD)}setMetadata(e){return this.client.sendOperationRequest({options:e},wD)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},TD)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},ED)}restore(e){return this.client.sendOperationRequest({options:e},DD)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},OD)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},kD)}filterBlobs(e){return this.client.sendOperationRequest({options:e},AD)}acquireLease(e){return this.client.sendOperationRequest({options:e},jD)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},MD)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ND)}breakLease(e){return this.client.sendOperationRequest({options:e},PD)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},FD)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ID)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},LD)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},RD)}};const bD=Bh(rx,!0),xD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:sS},default:{bodyMapper:ux,headersMapper:cS}},queryParameters:[Dw,Kw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Jw,Yw,Xw],isXML:!0,serializer:bD},SD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:lS},default:{bodyMapper:ux,headersMapper:uS}},queryParameters:[Dw,Kw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw],isXML:!0,serializer:bD},CD={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:dS},default:{bodyMapper:ux,headersMapper:fS}},queryParameters:[Dw,Kw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w],isXML:!0,serializer:bD},wD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:pS},default:{bodyMapper:ux,headersMapper:mS}},queryParameters:[Dw,Kw,eT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Zw,Qw],isXML:!0,serializer:bD},TD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:hS},default:{bodyMapper:ux,headersMapper:gS}},queryParameters:[Dw,Kw,tT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw],isXML:!0,serializer:bD},ED={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:_S},default:{bodyMapper:ux,headersMapper:vS}},requestBody:nT,queryParameters:[Dw,Kw,tT],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw,Jw,Zw,Qw,$w],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:bD},DD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:yS},default:{bodyMapper:ux,headersMapper:bS}},queryParameters:[Dw,Kw,rT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,iT,aT],isXML:!0,serializer:bD},OD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:xS},default:{bodyMapper:ux,headersMapper:SS}},queryParameters:[Dw,Kw,oT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,sT,cT],isXML:!0,serializer:bD},kD={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:CS},default:{bodyMapper:ux,headersMapper:wS}},requestBody:Bw,queryParameters:[Dw,Vw,Kw],urlParameters:[ww],headerParameters:[Cw,Ow,kw,Hw,Uw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:bD},AD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:vx,headersMapper:TS},default:{bodyMapper:ux,headersMapper:ES}},queryParameters:[Dw,Pw,Fw,Ww,Gw,Kw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:bD},jD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:DS},default:{bodyMapper:ux,headersMapper:OS}},queryParameters:[Dw,Kw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,uT,dT,fT],isXML:!0,serializer:bD},MD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:kS},default:{bodyMapper:ux,headersMapper:AS}},queryParameters:[Dw,Kw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,pT,mT],isXML:!0,serializer:bD},ND={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:jS},default:{bodyMapper:ux,headersMapper:MS}},queryParameters:[Dw,Kw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,mT,hT],isXML:!0,serializer:bD},PD={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:NS},default:{bodyMapper:ux,headersMapper:PS}},queryParameters:[Dw,Kw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,gT,_T],isXML:!0,serializer:bD},FD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:FS},default:{bodyMapper:ux,headersMapper:IS}},queryParameters:[Dw,Kw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,mT,vT,yT],isXML:!0,serializer:bD},ID={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:wx,headersMapper:LS},default:{bodyMapper:ux,headersMapper:RS}},queryParameters:[Dw,Mw,Nw,Pw,Fw,Kw,bT,xT],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:bD},LD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:kx,headersMapper:zS},default:{bodyMapper:ux,headersMapper:BS}},queryParameters:[Dw,Mw,Nw,Pw,Fw,Kw,bT,xT,ST],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:bD},RD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:VS},default:{bodyMapper:ux,headersMapper:HS}},queryParameters:[Ew,Dw,zw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:bD};var zD=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},VD)}getProperties(e){return this.client.sendOperationRequest({options:e},HD)}delete(e){return this.client.sendOperationRequest({options:e},UD)}undelete(e){return this.client.sendOperationRequest({options:e},WD)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},GD)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},KD)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},qD)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},JD)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},YD)}setMetadata(e){return this.client.sendOperationRequest({options:e},XD)}acquireLease(e){return this.client.sendOperationRequest({options:e},ZD)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},QD)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},$D)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},eO)}breakLease(e){return this.client.sendOperationRequest({options:e},tO)}createSnapshot(e){return this.client.sendOperationRequest({options:e},nO)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},rO)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},iO)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},aO)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},oO)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},sO)}query(e){return this.client.sendOperationRequest({options:e},cO)}getTags(e){return this.client.sendOperationRequest({options:e},lO)}setTags(e){return this.client.sendOperationRequest({options:e},uO)}};const BD=Bh(rx,!0),VD={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:US},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:US},default:{bodyMapper:ux,headersMapper:WS}},queryParameters:[Dw,CT,wT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,TT,ET,DT,OT,kT,AT,jT,MT,NT],isXML:!0,serializer:BD},HD={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:GS},default:{bodyMapper:ux,headersMapper:KS}},queryParameters:[Dw,CT,wT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT],isXML:!0,serializer:BD},UD={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:qS},default:{bodyMapper:ux,headersMapper:JS}},queryParameters:[Dw,CT,wT,FT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,jT,MT,NT,PT],isXML:!0,serializer:BD},WD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:YS},default:{bodyMapper:ux,headersMapper:XS}},queryParameters:[Dw,rT],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:BD},GD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:ZS},default:{bodyMapper:ux,headersMapper:QS}},queryParameters:[Dw,IT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,LT,RT],isXML:!0,serializer:BD},KD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:$S},default:{bodyMapper:ux,headersMapper:eC}},queryParameters:[Ew,Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,jT,MT,NT,zT,BT,VT,HT,UT,WT],isXML:!0,serializer:BD},qD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:tC},default:{bodyMapper:ux,headersMapper:nC}},queryParameters:[Dw,CT,wT,GT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,$w,KT,qT],isXML:!0,serializer:BD},JD={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:rC},default:{bodyMapper:ux,headersMapper:iC}},queryParameters:[Dw,CT,wT,GT],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:BD},YD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:aC},default:{bodyMapper:ux,headersMapper:oC}},queryParameters:[Dw,CT,wT,JT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,YT],isXML:!0,serializer:BD},XD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:sC},default:{bodyMapper:ux,headersMapper:cC}},queryParameters:[Dw,eT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT],isXML:!0,serializer:BD},ZD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:lC},default:{bodyMapper:ux,headersMapper:uC}},queryParameters:[Dw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,uT,dT,fT,jT,MT,NT],isXML:!0,serializer:BD},QD={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:dC},default:{bodyMapper:ux,headersMapper:fC}},queryParameters:[Dw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,pT,mT,jT,MT,NT],isXML:!0,serializer:BD},$D={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:pC},default:{bodyMapper:ux,headersMapper:mC}},queryParameters:[Dw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,mT,hT,jT,MT,NT],isXML:!0,serializer:BD},eO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:hC},default:{bodyMapper:ux,headersMapper:gC}},queryParameters:[Dw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,mT,vT,yT,jT,MT,NT],isXML:!0,serializer:BD},tO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:_C},default:{bodyMapper:ux,headersMapper:vC}},queryParameters:[Dw,lT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,gT,_T,jT,MT,NT],isXML:!0,serializer:BD},nO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:yC},default:{bodyMapper:ux,headersMapper:bC}},queryParameters:[Dw,ZT],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT],isXML:!0,serializer:BD},rO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:xC},default:{bodyMapper:ux,headersMapper:SC}},queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Zw,Qw,$w,jT,MT,NT,KT,qT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE],isXML:!0,serializer:BD},iO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:CC},default:{bodyMapper:ux,headersMapper:wC}},queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,qw,Zw,Qw,$w,jT,MT,NT,KT,qT,XT,QT,eE,tE,nE,rE,aE,oE,cE,lE,uE,dE,fE,pE],isXML:!0,serializer:BD},aO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:TC},default:{bodyMapper:ux,headersMapper:EC}},queryParameters:[Dw,mE,gE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,hE],isXML:!0,serializer:BD},oO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:DC},202:{headersMapper:DC},default:{bodyMapper:ux,headersMapper:OC}},queryParameters:[Dw,CT,wT,_E],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,NT,$T,vE],isXML:!0,serializer:BD},sO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:kC},default:{bodyMapper:ux,headersMapper:AC}},queryParameters:[Ew,Dw,zw],urlParameters:[ww],headerParameters:[Ow,kw,Aw],isXML:!0,serializer:BD},cO={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:jC},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:jC},default:{bodyMapper:ux,headersMapper:MC}},requestBody:yE,queryParameters:[Dw,CT,bE],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BD},lO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:bx,headersMapper:NC},default:{bodyMapper:ux,headersMapper:PC}},queryParameters:[Dw,CT,wT,xE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,NT,SE,CE,wE,TE],isXML:!0,serializer:BD},uO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:FC},default:{bodyMapper:ux,headersMapper:IC}},requestBody:EE,queryParameters:[Dw,wT,xE],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw,Zw,NT,SE,CE,wE,TE,DE,OE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BD};var dO=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},pO)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},mO)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},hO)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},gO)}getPageRanges(e){return this.client.sendOperationRequest({options:e},_O)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},vO)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},yO)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},bO)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},xO)}};const fO=Bh(rx,!0),pO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:LC},default:{bodyMapper:ux,headersMapper:RC}},queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,zT,BT,VT,HT,UT,WT,KT,qT,XT,QT,oE,cE,kE,AE,jE],isXML:!0,serializer:fO},mO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:zC},default:{bodyMapper:ux,headersMapper:BC}},requestBody:NE,queryParameters:[Dw,FE],urlParameters:[ww],headerParameters:[Ow,kw,Hw,Zw,Qw,$w,TT,OT,kT,AT,jT,MT,NT,XT,DE,OE,ME,PE,IE,LE,RE,zE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:fO},hO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:VC},default:{bodyMapper:ux,headersMapper:HC}},queryParameters:[Dw,FE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,Zw,Qw,$w,TT,OT,kT,AT,jT,MT,NT,XT,LE,RE,zE,BE],isXML:!0,serializer:fO},gO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:UC},default:{bodyMapper:ux,headersMapper:WC}},queryParameters:[Dw,FE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT,eE,tE,nE,rE,uE,dE,pE,IE,LE,RE,zE,VE,HE,UE,WE],isXML:!0,serializer:fO},_O={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Fx,headersMapper:GC},default:{bodyMapper:ux,headersMapper:KC}},queryParameters:[Dw,Pw,Fw,CT,GE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,TT,jT,MT,NT],isXML:!0,serializer:fO},vO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Fx,headersMapper:qC},default:{bodyMapper:ux,headersMapper:JC}},queryParameters:[Dw,Pw,Fw,CT,GE,KE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,TT,jT,MT,NT,qE],isXML:!0,serializer:fO},yO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:YC},default:{bodyMapper:ux,headersMapper:XC}},queryParameters:[Ew,Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT,AE],isXML:!0,serializer:fO},bO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:ZC},default:{bodyMapper:ux,headersMapper:QC}},queryParameters:[Ew,Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,jT,MT,NT,jE,JE],isXML:!0,serializer:fO},xO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:$C},default:{bodyMapper:ux,headersMapper:ew}},queryParameters:[Dw,YE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Qw,$w,jT,MT,NT,aE],isXML:!0,serializer:fO};var SO=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},wO)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},TO)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},EO)}seal(e){return this.client.sendOperationRequest({options:e},DO)}};const CO=Bh(rx,!0),wO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:tw},default:{bodyMapper:ux,headersMapper:nw}},queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,zT,BT,VT,HT,UT,WT,KT,qT,XT,oE,cE,XE],isXML:!0,serializer:CO},TO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:rw},default:{bodyMapper:ux,headersMapper:iw}},requestBody:NE,queryParameters:[Dw,ZE],urlParameters:[ww],headerParameters:[Ow,kw,Hw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT,DE,OE,ME,PE,QE,$E],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:CO},EO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:aw},default:{bodyMapper:ux,headersMapper:ow}},queryParameters:[Dw,ZE],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,XT,eE,tE,nE,rE,uE,dE,pE,DE,VE,UE,QE,$E,eD],isXML:!0,serializer:CO},DO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:sw},default:{bodyMapper:ux,headersMapper:cw}},queryParameters:[Dw,tD],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,Qw,$w,jT,MT,$E],isXML:!0,serializer:CO};var OO=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},AO)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},jO)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},MO)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},NO)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},PO)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},FO)}};const kO=Bh(rx,!0),AO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:lw},default:{bodyMapper:ux,headersMapper:uw}},requestBody:NE,queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Hw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,zT,BT,VT,HT,UT,WT,KT,qT,XT,QT,oE,cE,DE,OE,ME,PE,nD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:kO},jO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:dw},default:{bodyMapper:ux,headersMapper:fw}},queryParameters:[Dw],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,zT,BT,VT,HT,UT,WT,XT,QT,eE,tE,nE,rE,iE,aE,oE,uE,dE,fE,pE,DE,nD,rD],isXML:!0,serializer:kO},MO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:pw},default:{bodyMapper:ux,headersMapper:mw}},requestBody:NE,queryParameters:[Dw,iD,aD],urlParameters:[ww],headerParameters:[Ow,kw,Hw,Zw,OT,kT,AT,XT,DE,OE,ME,PE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:kO},NO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:hw},default:{bodyMapper:ux,headersMapper:gw}},queryParameters:[Dw,iD,aD],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Hw,Zw,OT,kT,AT,XT,eE,tE,nE,rE,uE,dE,pE,VE,UE,eD],isXML:!0,serializer:kO},PO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:_w},default:{bodyMapper:ux,headersMapper:vw}},requestBody:oD,queryParameters:[Dw,sD],urlParameters:[ww],headerParameters:[xw,Cw,Ow,kw,qw,Zw,Qw,$w,OT,kT,AT,jT,MT,NT,zT,BT,VT,HT,UT,WT,KT,qT,XT,QT,oE,cE,DE,OE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:kO},FO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Nx,headersMapper:yw},default:{bodyMapper:ux,headersMapper:bw}},queryParameters:[Dw,CT,sD,cD],urlParameters:[ww],headerParameters:[Ow,kw,Aw,Zw,NT],isXML:!0,serializer:kO};var IO=class extends g_{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new lD(this),this.container=new yD(this),this.blob=new zD(this),this.pageBlob=new dO(this),this.appendBlob=new SO(this),this.blockBlob=new OO(this)}service;container;blob;pageBlob;appendBlob;blockBlob},LO=class extends IO{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function RO(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=HO(n),t.pathname=n,t.toString()}function zO(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function BO(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function VO(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=zO(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=BO(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=BO(e,`AccountName`),a=Buffer.from(BO(e,`AccountKey`),`base64`),!n){r=BO(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=BO(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=BO(e,`SharedAccessSignature`),r=BO(e,`AccountName`);if(r||=$O(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function HO(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function UO(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function WO(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function GO(e,t){return new URL(e).searchParams.get(t)??void 0}function KO(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function qO(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function JO(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function YO(e){return Fm?Buffer.from(e).toString(`base64`):btoa(e)}function XO(e,t){return e.length>42&&(e=e.slice(0,42)),YO(e+ZO(t.toString(),48-e.length,`0`))}function ZO(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function QO(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function $O(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:ek(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function ek(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&Hb.includes(e.port)}function tk(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function nk(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function rk(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function ik(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function ak(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function ok(e){return e?e.scheme+` `+e.value:void 0}function*sk(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function gk(e,t,n){return _k(e,t,n).sasQueryParameters}function _k(e,t,n){let r=e.version?e.version:Ib,i=t instanceof yb?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new Pb(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?wk(e,a):Ck(e,a):bk(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?Sk(e,a):xk(e,a):yk(e,i);if(r>=`2015-04-05`){if(i!==void 0)return vk(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function vk(e,t){if(e=Ek(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new hk(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function yk(e,t){if(e=Ek(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function bk(e,t){if(e=Ek(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function xk(e,t){if(e=Ek(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?JO(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?JO(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function Sk(e,t){if(e=Ek(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?JO(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?JO(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function Ck(e,t){if(e=Ek(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?JO(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?JO(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function wk(e,t){if(e=Ek(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?dk.parse(e.permissions.toString()).toString():fk.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?JO(e.startsOn,!1):``,e.expiresOn?JO(e.expiresOn,!1):``,Tk(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?JO(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?JO(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?pk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new hk(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function Tk(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function Ek(e){let t=e.version?e.version:Ib;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var Dk=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=Pm(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return uk.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>ck(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return uk.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=ck(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return uk.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>ck(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return uk.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return uk.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return ck(await this._containerOrBlobOperation.breakLease(r))})}},Ok=class extends je{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new km(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},kk=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Fm?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new Ok(this.originalResponse.readableStreamBody,t,n,r,i)}};const Ak=new Uint8Array([79,98,106,1]);var jk=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},Mk;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(Mk||={});var Nk;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(Nk||={});var Pk=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case Nk.NULL:case Nk.BOOLEAN:case Nk.INT:case Nk.LONG:case Nk.FLOAT:case Nk.DOUBLE:case Nk.BYTES:case Nk.STRING:return new Fk(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new Lk(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case Mk.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new zk(r,t.name);case Mk.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new Ik(t.symbols);case Mk.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new Rk(e.fromSchema(t.values));case Mk.ARRAY:case Mk.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},Fk=class extends Pk{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case Nk.NULL:return jk.readNull();case Nk.BOOLEAN:return jk.readBoolean(e,t);case Nk.INT:return jk.readInt(e,t);case Nk.LONG:return jk.readLong(e,t);case Nk.FLOAT:return jk.readFloat(e,t);case Nk.DOUBLE:return jk.readDouble(e,t);case Nk.BYTES:return jk.readBytes(e,t);case Nk.STRING:return jk.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},Ik=class extends Pk{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await jk.readInt(e,t);return this._symbols[n]}},Lk=class extends Pk{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await jk.readInt(e,t);return this._types[n].read(e,t)}},Rk=class extends Pk{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return jk.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},zk=class extends Pk{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Bk(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await jk.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Bk(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await jk.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await jk.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},Hk=class{};const Uk=new km(`Reading from the avro stream was aborted.`);var Wk=class extends Hk{_position;_readable;toUint8Array(e){return typeof e==`string`?Qe.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw Uk;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(Uk)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},Gk=class extends je{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new Vk(new Wk(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},Kk=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Fm?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new Gk(this.originalResponse.readableStreamBody,t)}},qk;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(qk||={});var Jk;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(Jk||={});function Yk(e){if(e!==void 0)return e}function Xk(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var Zk;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(Zk||={});function Qk(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var $k=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},eA=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},tA=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new eA(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new $k(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},nA=class extends tA{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=oA({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return jm(this.intervalInMs)}};const rA=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?oA(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,oA(t)):(t.isCancelled=!0,oA(t))},iA=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return oA(t)},aA=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function oA(e){return{state:{...e},cancel:rA,toString:aA,update:iA}}function sA(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var cA;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(cA||={});var lA=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=cA.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new Te}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=cA.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function dA(e,t){return new Promise((n,r)=>{let i=Ye.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const fA=Fe.promisify(Ye.stat),pA=Ye.createReadStream;var mA=class e extends lk{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(Ub(t))a=e,i=t;else if(Fm&&t instanceof yb||t instanceof fb||Eh(t))a=e,r=n,i=Gb(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=Gb(new fb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=VO(e);if(c.kind===`AccountConnString`)if(Fm){let e=new yb(c.accountName,c.accountKey);a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Wm(c.proxyUri),i=Gb(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Gb(new fb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=GO(this.url,zb.Parameters.SNAPSHOT),this._versionId=GO(this.url,zb.Parameters.VERSIONID)}withSnapshot(t){return new e(WO(this.url,zb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(WO(this.url,zb.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new hA(this.url,this.pipeline)}getBlockBlobClient(){return new gA(this.url,this.pipeline)}getPageBlobClient(){return new _A(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Xk(n.customerProvidedKey,this.isHttps),uk.withSpan(`BlobClient-download`,n,async r=>{let i=ck(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Fm?void 0:n.onProgress},range:e===0&&!t?void 0:sA({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:ak(i.objectReplicationRules)};if(!Fm)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new kk(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:sA({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return uk.withSpan(`BlobClient-exists`,e,async t=>{try{return Xk(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},Xk(e.customerProvidedKey,this.isHttps),uk.withSpan(`BlobClient-getProperties`,e,async t=>{let n=ck(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:ak(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},uk.withSpan(`BlobClient-delete`,e,async t=>ck(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return uk.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=ck(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return uk.withSpan(`BlobClient-undelete`,e,async t=>ck(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},Xk(t.customerProvidedKey,this.isHttps),uk.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>ck(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},Xk(t.customerProvidedKey,this.isHttps),uk.withSpan(`BlobClient-setMetadata`,t,async n=>ck(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return uk.withSpan(`BlobClient-setTags`,t,async n=>ck(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:nk(e)})))}async getTags(e={}){return uk.withSpan(`BlobClient-getTags`,e,async t=>{let n=ck(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:rk({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new Dk(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Xk(e.customerProvidedKey,this.isHttps),uk.withSpan(`BlobClient-createSnapshot`,e,async t=>ck(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new nA({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return uk.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>ck(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},uk.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>ck(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:ok(t.sourceAuthorization),tier:Yk(t.tier),blobTagsString:tk(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return uk.withSpan(`BlobClient-setAccessTier`,t,async n=>ck(await this.blobContext.setTier(Yk(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=Rb),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},uk.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await dA(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(ek(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return uk.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},ck(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:Yk(t.tier),blobTagsString:tk(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof yb))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=gk({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(qO(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof yb))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return _k({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=gk({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(qO(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return _k({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return uk.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>ck(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return uk.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>ck(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return uk.withSpan(`BlobClient-setLegalHold`,t,async t=>ck(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return uk.withSpan(`BlobClient-getAccountInfo`,e,async t=>ck(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},hA=class e extends mA{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},Ub(t))a=e,i=t;else if(Fm&&t instanceof yb||t instanceof fb||Eh(t))a=e,r=n,i=Gb(t,r);else if(!t&&typeof t!=`string`)a=e,i=Gb(new fb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=VO(e);if(c.kind===`AccountConnString`)if(Fm){let e=new yb(c.accountName,c.accountKey);a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Wm(c.proxyUri),i=Gb(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Gb(new fb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(WO(this.url,zb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Xk(e.customerProvidedKey,this.isHttps),uk.withSpan(`AppendBlobClient-create`,e,async t=>ck(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:tk(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return uk.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=ck(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},uk.withSpan(`AppendBlobClient-seal`,e,async t=>ck(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},Xk(n.customerProvidedKey,this.isHttps),uk.withSpan(`AppendBlobClient-appendBlock`,n,async r=>ck(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},Xk(r.customerProvidedKey,this.isHttps),uk.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>ck(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:sA({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:ok(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},gA=class e extends mA{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},Ub(t))a=e,i=t;else if(Fm&&t instanceof yb||t instanceof fb||Eh(t))a=e,r=n,i=Gb(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=Gb(new fb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=VO(e);if(c.kind===`AccountConnString`)if(Fm){let e=new yb(c.accountName,c.accountKey);a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Wm(c.proxyUri),i=Gb(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Gb(new fb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(WO(this.url,zb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(Xk(t.customerProvidedKey,this.isHttps),!Fm)throw Error(`This operation currently is only supported in Node.js.`);return uk.withSpan(`BlockBlobClient-query`,t,async n=>new Kk(ck(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:ik(t.inputTextConfiguration),outputSerialization:ik(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},Xk(n.customerProvidedKey,this.isHttps),uk.withSpan(`BlockBlobClient-upload`,n,async r=>ck(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Yk(n.tier),blobTagsString:tk(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},Xk(t.customerProvidedKey,this.isHttps),uk.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>ck(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:ok(t.sourceAuthorization),tier:Yk(t.tier),blobTagsString:tk(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return Xk(r.customerProvidedKey,this.isHttps),uk.withSpan(`BlockBlobClient-stageBlock`,r,async i=>ck(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return Xk(i.customerProvidedKey,this.isHttps),uk.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>ck(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:sA({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:ok(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},Xk(t.customerProvidedKey,this.isHttps),uk.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>ck(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Yk(t.tier),blobTagsString:tk(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return uk.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=ck(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return uk.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(Fm){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return uk.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/Lb),r<4194304&&(r=Rb))}return n.blobHTTPHeaders||={},n.conditions||={},uk.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return ck(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${Lb}`);let s=[],c=Pm(),l=0,u=new lA(n.concurrency);for(let i=0;i{let u=XO(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return uk.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await fA(e)).size;return this.uploadSeekableInternal((t,n)=>()=>pA(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},uk.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=Pm(),s=0,c=[];return await new Xy(e,t,n,async(e,t)=>{let n=XO(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),ck(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},_A=class e extends mA{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},Ub(t))a=e,i=t;else if(Fm&&t instanceof yb||t instanceof fb||Eh(t))a=e,r=n,i=Gb(t,r);else if(!t&&typeof t!=`string`)a=e,i=Gb(new fb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=VO(e);if(c.kind===`AccountConnString`)if(Fm){let e=new yb(c.accountName,c.accountKey);a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=Wm(c.proxyUri),i=Gb(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=UO(UO(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Gb(new fb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(WO(this.url,zb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},Xk(t.customerProvidedKey,this.isHttps),uk.withSpan(`PageBlobClient-create`,t,async n=>ck(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:Yk(t.tier),blobTagsString:tk(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return uk.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=ck(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},Xk(r.customerProvidedKey,this.isHttps),uk.withSpan(`PageBlobClient-uploadPages`,r,async i=>ck(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:sA({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},Xk(i.customerProvidedKey,this.isHttps),uk.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>ck(await this.pageBlobContext.uploadPagesFromURL(e,sA({offset:t,count:r}),0,sA({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:ok(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},uk.withSpan(`PageBlobClient-clearPages`,n,async r=>ck(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:sA({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},uk.withSpan(`PageBlobClient-getPageRanges`,n,async r=>Qk(ck(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:sA({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return uk.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>ck(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:sA({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*sk(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},uk.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>Qk(ck(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:sA({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return uk.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>ck(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:sA({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*sk(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},uk.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>Qk(ck(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:sA({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},uk.withSpan(`PageBlobClient-resize`,t,async n=>ck(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},uk.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>ck(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return uk.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>ck(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},vA=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},yA=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};yA.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var bA=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};bA.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var xA=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},SA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},CA=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);xi(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function wA(e,t,n){return SA(this,void 0,void 0,function*(){let r=new mA(e),i=r.getBlockBlobClient(),a=new CA(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),K(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new vA(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw bi(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var TA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function EA(e){return e?e>=200&&e<300:!1}function DA(e){return e?e>=500:!0}function OA(e){return e?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(e):!1}function kA(e){return TA(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function AA(e,t,n){return TA(this,arguments,void 0,function*(e,t,n,r=2,i=Nd,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!DA(l)))return c;if(l&&(u=OA(l),o=`Cache service responded with ${l}`),K(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){K(`${e} - Error is not retryable`);break}yield kA(i),s++}throw Error(`${e} failed: ${o}`)})}function jA(e,t){return TA(this,arguments,void 0,function*(e,t,n=2,r=Nd){return yield AA(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof gr)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function MA(e,t){return TA(this,arguments,void 0,function*(e,t,n=2,r=Nd){return yield AA(e,t,e=>e.message.statusCode,n,r)})}var NA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function PA(e,t){return NA(this,void 0,void 0,function*(){yield Oe.promisify($e.pipeline)(e.message,t)})}var FA=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,K(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);xi(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function IA(e,t){return NA(this,void 0,void 0,function*(){let n=me.createWriteStream(t),r=new vr(`actions/cache`),i=yield MA(`downloadCache`,()=>NA(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Pd,()=>{i.message.destroy(),K(`Aborting download, socket timed out after ${Pd} ms`)}),yield PA(i,n);let a=i.message.headers[`content-length`];if(a){let e=parseInt(a),n=Hd(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else K(`Unable to validate download, no Content-Length header`)})}function LA(e,t,n){return NA(this,void 0,void 0,function*(){let r=yield me.promises.open(t,`w`),i=new vr(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield MA(`downloadCacheMetadata`,()=>NA(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tNA(this,void 0,void 0,function*(){return yield RA(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new FA(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>NA(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function RA(e,t,n,r){return NA(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield VA(3e4,zA(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function zA(e,t,n,r){return NA(this,void 0,void 0,function*(){let i=yield MA(`downloadCachePart`,()=>NA(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function BA(e,t,n){return NA(this,void 0,void 0,function*(){let r=new gA(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)K(`Unable to determine content length, downloading file with http-client...`),yield IA(e,t);else{let e=Math.min(134217728,Ze.constants.MAX_LENGTH),a=new FA(i),o=me.openSync(t,`w`);try{a.startDisplayTimer();let t=new AbortController,s=t.signal;for(;!a.isDone();){let c=a.segmentOffset+a.segmentSize,l=Math.min(e,i-c);a.nextSegment(l);let u=yield VA(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(c,l,{abortSignal:s,concurrency:n.downloadConcurrency,onProgress:a.onProgress()}));if(u===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(u)&&me.writeFileSync(o,u)}}finally{a.stopDisplayTimer(),me.closeSync(o)}}})}const VA=(e,t)=>NA(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function HA(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),K(`Use Azure SDK: ${t.useAzureSdk}`),K(`Upload concurrency: ${t.uploadConcurrency}`),K(`Upload chunk size: ${t.uploadChunkSize}`),t}function UA(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),K(`Use Azure SDK: ${t.useAzureSdk}`),K(`Download concurrency: ${t.downloadConcurrency}`),K(`Request timeout (ms): ${t.timeoutInMs}`),K(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),K(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),K(`Lookup only: ${t.lookupOnly}`),t}function WA(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function GA(){return WA()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function KA(){let e=GA();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var qA=i(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),JA=i(((e,t)=>{t.exports={version:qA().version}}))();function YA(){return`@actions/cache-${JA.version}`}var XA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function ZA(e){let t=KA();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return K(`Resource Url: ${n}`),n}function QA(e,t){return`${e};api-version=${t}`}function $A(){return{headers:{Accept:QA(`application/json`,`6.0-preview.1`)}}}function ej(){let e=new xr(process.env.ACTIONS_RUNTIME_TOKEN||``);return new vr(YA(),[e],$A())}function tj(e,t,n){return XA(this,void 0,void 0,function*(){let r=ej(),i=Xd(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield jA(`getCacheEntry`,()=>XA(this,void 0,void 0,function*(){return r.getJson(ZA(a))}));if(o.statusCode===204)return vi()&&(yield nj(e[0],r,i)),null;if(!EA(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return pi(c),K(`Cache Result:`),K(JSON.stringify(s)),s})}function nj(e,t,n){return XA(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield jA(`listCache`,()=>XA(this,void 0,void 0,function*(){return t.getJson(ZA(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){K(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])K(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function rj(e,t,n){return XA(this,void 0,void 0,function*(){let r=new rt(e),i=UA(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield BA(e,t,i):i.concurrentBlobDownloads?yield LA(e,t,i):yield IA(e,t):yield IA(e,t)})}function ij(e,t,n){return XA(this,void 0,void 0,function*(){let r=ej(),i={key:e,version:Xd(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield jA(`reserveCache`,()=>XA(this,void 0,void 0,function*(){return r.postJson(ZA(`caches`),i)}))})}function aj(e,t){return`bytes ${e}-${t}/*`}function oj(e,t,n,r,i){return XA(this,void 0,void 0,function*(){K(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${aj(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":aj(r,i)},o=yield MA(`uploadChunk (start: ${r}, end: ${i})`,()=>XA(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!EA(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function sj(e,t,n,r){return XA(this,void 0,void 0,function*(){let i=Hd(n),a=ZA(`caches/${t.toString()}`),o=me.openSync(n,`r`),s=HA(r),c=Yd(`uploadConcurrency`,s.uploadConcurrency),l=Yd(`uploadChunkSize`,s.uploadChunkSize),u=[...Array(c).keys()];K(`Awaiting all uploads`);let d=0;try{yield Promise.all(u.map(()=>XA(this,void 0,void 0,function*(){for(;dme.createReadStream(n,{fd:o,start:r,end:s,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,s)}})))}finally{me.closeSync(o)}})}function cj(e,t,n){return XA(this,void 0,void 0,function*(){let r={size:n};return yield jA(`commitCache`,()=>XA(this,void 0,void 0,function*(){return e.postJson(ZA(`caches/${t.toString()}`),r)}))})}function lj(e,t,n,r){return XA(this,void 0,void 0,function*(){if(HA(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield wA(n,t,r)}else{let n=ej();K(`Upload cache`),yield sj(n,e,t,r),K(`Commiting cache`);let i=Hd(t);xi(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield cj(n,e,i);if(!EA(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);xi(`Cache saved successfully`)}})}var uj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),dj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),fj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),pj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),mj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),hj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=mj(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!=0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),gj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=pj(),n=hj(),r=mj(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),_j=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),vj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=hj(),n=mj(),r=_j(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),yj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),bj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),xj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=xj();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),Cj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),wj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionTypeCheck=void 0;let t=Sj(),n=Cj();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),Tj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionLongConvert=void 0;let t=Sj();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),Ej=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonReader=void 0;let t=uj(),n=dj(),r=Sj(),i=hj(),a=_j(),o=Tj();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),Dj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonWriter=void 0;let t=dj(),n=hj(),r=Sj(),i=_j();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),Oj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionScalarDefault=void 0;let t=Sj(),n=Tj(),r=hj();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),kj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryReader=void 0;let t=pj(),n=Sj(),r=Tj(),i=Oj();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryWriter=void 0;let t=pj(),n=Sj(),r=_j(),i=hj();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionCreate=void 0;let t=Oj(),n=bj();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),Mj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionEquals=void 0;let t=Sj();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MessageType=void 0;let t=bj(),n=Sj(),r=wj(),i=Ej(),a=Dj(),o=kj(),s=Aj(),c=jj(),l=Mj(),u=uj(),d=yj(),f=Nj(),p=vj(),m=gj(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),Fj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.containsMessageType=void 0;let t=bj();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),Ij=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),Lj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=uj();Object.defineProperty(e,"typeofJsonValue",{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return t.isJsonObject}});var n=dj();Object.defineProperty(e,"base64decode",{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,"base64encode",{enumerable:!0,get:function(){return n.base64encode}});var r=fj();Object.defineProperty(e,"utf8read",{enumerable:!0,get:function(){return r.utf8read}});var i=pj();Object.defineProperty(e,"WireType",{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,"mergeBinaryOptions",{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,"UnknownFieldHandler",{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=gj();Object.defineProperty(e,"BinaryReader",{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,"binaryReadOptions",{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=vj();Object.defineProperty(e,"BinaryWriter",{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,"binaryWriteOptions",{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=hj();Object.defineProperty(e,"PbLong",{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,"PbULong",{enumerable:!0,get:function(){return s.PbULong}});var c=yj();Object.defineProperty(e,"jsonReadOptions",{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,"jsonWriteOptions",{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,"mergeJsonOptions",{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=bj();Object.defineProperty(e,"MESSAGE_TYPE",{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=Pj();Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return u.MessageType}});var d=Sj();Object.defineProperty(e,"ScalarType",{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,"LongType",{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,"RepeatType",{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,"normalizeFieldInfo",{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,"readFieldOptions",{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,"readFieldOption",{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,"readMessageOption",{enumerable:!0,get:function(){return d.readMessageOption}});var f=wj();Object.defineProperty(e,"ReflectionTypeCheck",{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=jj();Object.defineProperty(e,"reflectionCreate",{enumerable:!0,get:function(){return p.reflectionCreate}});var m=Oj();Object.defineProperty(e,"reflectionScalarDefault",{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=Mj();Object.defineProperty(e,"reflectionMergePartial",{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=Nj();Object.defineProperty(e,"reflectionEquals",{enumerable:!0,get:function(){return g.reflectionEquals}});var v=kj();Object.defineProperty(e,"ReflectionBinaryReader",{enumerable:!0,get:function(){return v.ReflectionBinaryReader}});var y=Aj();Object.defineProperty(e,"ReflectionBinaryWriter",{enumerable:!0,get:function(){return y.ReflectionBinaryWriter}});var b=Ej();Object.defineProperty(e,"ReflectionJsonReader",{enumerable:!0,get:function(){return b.ReflectionJsonReader}});var x=Dj();Object.defineProperty(e,"ReflectionJsonWriter",{enumerable:!0,get:function(){return x.ReflectionJsonWriter}});var S=Fj();Object.defineProperty(e,"containsMessageType",{enumerable:!0,get:function(){return S.containsMessageType}});var C=Cj();Object.defineProperty(e,"isOneofGroup",{enumerable:!0,get:function(){return C.isOneofGroup}}),Object.defineProperty(e,"setOneofValue",{enumerable:!0,get:function(){return C.setOneofValue}}),Object.defineProperty(e,"getOneofValue",{enumerable:!0,get:function(){return C.getOneofValue}}),Object.defineProperty(e,"clearOneofValue",{enumerable:!0,get:function(){return C.clearOneofValue}}),Object.defineProperty(e,"getSelectedOneofValue",{enumerable:!0,get:function(){return C.getSelectedOneofValue}});var w=Ij();Object.defineProperty(e,"listEnumValues",{enumerable:!0,get:function(){return w.listEnumValues}}),Object.defineProperty(e,"listEnumNames",{enumerable:!0,get:function(){return w.listEnumNames}}),Object.defineProperty(e,"listEnumNumbers",{enumerable:!0,get:function(){return w.listEnumNumbers}}),Object.defineProperty(e,"isEnumObject",{enumerable:!0,get:function(){return w.isEnumObject}});var T=xj();Object.defineProperty(e,"lowerCamelCase",{enumerable:!0,get:function(){return T.lowerCamelCase}});var E=_j();Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return E.assert}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return E.assertNever}}),Object.defineProperty(e,"assertInt32",{enumerable:!0,get:function(){return E.assertInt32}}),Object.defineProperty(e,"assertUInt32",{enumerable:!0,get:function(){return E.assertUInt32}}),Object.defineProperty(e,"assertFloat32",{enumerable:!0,get:function(){return E.assertFloat32}})})),Rj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=Lj();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),zj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;let t=Rj();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),Bj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` -`)}}})),Vj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeRpcOptions=void 0;let t=Lj();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),Hj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),Uj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcOutputStreamController=void 0;let t=Hj(),n=Lj();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),Wj=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),Gj=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),Kj=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),qj=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),Jj=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.TestTransport=void 0;let n=Bj(),r=Lj(),i=Uj(),a=Vj(),o=Wj(),s=Gj(),c=Kj(),l=qj();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),Yj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=Lj();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),Xj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),Zj=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=zj();Object.defineProperty(e,"ServiceType",{enumerable:!0,get:function(){return t.ServiceType}});var n=Rj();Object.defineProperty(e,"readMethodOptions",{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,"readMethodOption",{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,"readServiceOption",{enumerable:!0,get:function(){return n.readServiceOption}});var r=Bj();Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return r.RpcError}});var i=Vj();Object.defineProperty(e,"mergeRpcOptions",{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=Uj();Object.defineProperty(e,"RpcOutputStreamController",{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=Jj();Object.defineProperty(e,"TestTransport",{enumerable:!0,get:function(){return o.TestTransport}});var s=Hj();Object.defineProperty(e,"Deferred",{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,"DeferredState",{enumerable:!0,get:function(){return s.DeferredState}});var c=qj();Object.defineProperty(e,"DuplexStreamingCall",{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=Kj();Object.defineProperty(e,"ClientStreamingCall",{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=Gj();Object.defineProperty(e,"ServerStreamingCall",{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=Wj();Object.defineProperty(e,"UnaryCall",{enumerable:!0,get:function(){return d.UnaryCall}});var f=Yj();Object.defineProperty(e,"stackIntercept",{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,"stackDuplexStreamingInterceptors",{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,"stackClientStreamingInterceptors",{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,"stackServerStreamingInterceptors",{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,"stackUnaryInterceptors",{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=Xj();Object.defineProperty(e,"ServerCallContextController",{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=Lj();const Qj=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posQj}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.pos$j},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.pos$j},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.pos$j},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.postM.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=nM.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>rM.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=iM.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>aM.fromJson(e,{ignoreUnknownFields:!0}))}};function sM(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(pi(t),pi(encodeURIComponent(t)))}catch(t){K(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function cM(e){if(typeof e!=`object`||!e){K(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&sM(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&sM(e.signed_download_url)}var lM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},uM=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Zd();this.baseUrl=KA(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new vr(e,[new xr(i)])}request(e,t,n,r){return lM(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;K(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>lM(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return lM(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&bi(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new xA(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&K(`Raw Body: ${r}`),e instanceof bA||e instanceof xA)throw e;if(yA.isNetworkErrorCode(e?.code))throw new yA(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);xi(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable].includes(e):!1}sleep(e){return lM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function dM(e){return new oM(new uM(YA(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var fM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const pM=process.platform===`win32`;function mM(){return fM(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Jd(),t=Id;if(e)return{path:e,type:Md.GNU};if(ge(t))return{path:t,type:Md.BSD};break}case`darwin`:{let e=yield Qr(`gtar`,!1);return e?{path:e,type:Md.GNU}:{path:yield Qr(`tar`,!0),type:Md.BSD}}default:break}return{path:yield Qr(`tar`,!0),type:Md.GNU}})}function hM(e,t,n){return fM(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=qd(t),o=`cache.tar`,s=_M(),c=e.type===Md.BSD&&t!==jd.Gzip&&pM;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${W.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${W.sep}`,`g`),`/`),`--files-from`,Rd);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${W.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`);break}if(e.type===Md.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function gM(e,t){return fM(this,arguments,void 0,function*(e,t,n=``){let r,i=yield mM(),a=yield hM(i,e,t,n),o=t===`create`?yield yM(i,e):yield vM(i,e,n),s=i.type===Md.BSD&&e!==jd.Gzip&&pM;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function _M(){return process.env.GITHUB_WORKSPACE??process.cwd()}function vM(e,t,n){return fM(this,void 0,void 0,function*(){let r=e.type===Md.BSD&&t!==jd.Gzip&&pM;switch(t){case jd.Zstd:return r?[`zstd -d --long=30 --force -o`,Ld,n.replace(RegExp(`\\${W.sep}`,`g`),`/`)]:[`--use-compress-program`,pM?`"zstd -d --long=30"`:`unzstd --long=30`];case jd.ZstdWithoutLong:return r?[`zstd -d --force -o`,Ld,n.replace(RegExp(`\\${W.sep}`,`g`),`/`)]:[`--use-compress-program`,pM?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function yM(e,t){return fM(this,void 0,void 0,function*(){let n=qd(t),r=e.type===Md.BSD&&t!==jd.Gzip&&pM;switch(t){case jd.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${W.sep}`,`g`),`/`),Ld]:[`--use-compress-program`,pM?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case jd.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${W.sep}`,`g`),`/`),Ld]:[`--use-compress-program`,pM?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function bM(e,t){return fM(this,void 0,void 0,function*(){for(let n of e)try{yield li(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function xM(e,t){return fM(this,void 0,void 0,function*(){yield bM(yield gM(t,`list`,e))})}function SM(e,t){return fM(this,void 0,void 0,function*(){yield Zr(_M()),yield bM(yield gM(t,`extract`,e))})}function CM(e,t,n){return fM(this,void 0,void 0,function*(){ye(W.join(e,Rd),t.join(` -`)),yield bM(yield gM(n,`create`),e)})}var wM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},TM=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},EM=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},DM=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function OM(e){if(!e||e.length===0)throw new TM(`Path Validation Error: At least one directory or file path is required`)}function kM(e){if(e.length>512)throw new TM(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new TM(`Key Validation Error: ${e} cannot contain commas.`)}function AM(e,t,n,r){return wM(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=GA();switch(K(`Cache service version: ${a}`),OM(e),a){case`v2`:return yield MM(e,t,n,r,i);default:return yield jM(e,t,n,r,i)}})}function jM(e,t,n,r){return wM(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(K(`Resolved Keys:`),K(JSON.stringify(a)),a.length>10)throw new TM(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)kM(e);let o=yield Kd(),s=``;try{let t=yield tj(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return xi(`Lookup only - skipping download`),t.cacheKey;s=W.join(yield Vd(),qd(o)),K(`Archive Path: ${s}`),yield rj(t.archiveLocation,s,r),vi()&&(yield xM(s,o));let n=Hd(s);return xi(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield SM(s,o),xi(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===TM.name)throw e;t instanceof gr&&typeof t.statusCode==`number`&&t.statusCode>=500?yi(`Failed to restore: ${e.message}`):bi(`Failed to restore: ${e.message}`)}finally{try{yield Wd(s)}catch(e){K(`Failed to delete archive: ${e}`)}}})}function MM(e,t,n,r){return wM(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(K(`Resolved Keys:`),K(JSON.stringify(a)),a.length>10)throw new TM(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)kM(e);let o=``;try{let s=dM(),c=yield Kd(),l={key:t,restoreKeys:n,version:Xd(e,c,i)},u=yield s.GetCacheEntryDownloadURL(l);if(!u.ok){K(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===u.matchedKey?xi(`Cache hit for: ${u.matchedKey}`):xi(`Cache hit for restore-key: ${u.matchedKey}`),r?.lookupOnly)return xi(`Lookup only - skipping download`),u.matchedKey;o=W.join(yield Vd(),qd(c)),K(`Archive path: ${o}`),K(`Starting download of archive to: ${o}`),yield rj(u.signedDownloadUrl,o,r);let d=Hd(o);return xi(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),vi()&&(yield xM(o,c)),yield SM(o,c),xi(`Cache restored successfully`),u.matchedKey}catch(e){let t=e;if(t.name===TM.name)throw e;t instanceof gr&&typeof t.statusCode==`number`&&t.statusCode>=500?yi(`Failed to restore: ${e.message}`):bi(`Failed to restore: ${e.message}`)}finally{try{o&&(yield Wd(o))}catch(e){K(`Failed to delete archive: ${e}`)}}})}function NM(e,t,n){return wM(this,arguments,void 0,function*(e,t,n,r=!1){let i=GA();switch(K(`Cache service version: ${i}`),OM(e),kM(t),i){case`v2`:return yield FM(e,t,n,r);default:return yield PM(e,t,n,r)}})}function PM(e,t,n){return wM(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Kd(),a=-1,o=yield Ud(e);if(K(`Cache Paths:`),K(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Vd(),c=W.join(s,qd(i));K(`Archive Path: ${c}`);try{yield CM(s,o,i),vi()&&(yield xM(c,i));let l=Hd(c);if(K(`File Size: ${l}`),l>10737418240&&!WA())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);K(`Reserving Cache`);let u=yield ij(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new EM(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);K(`Saving Cache (ID: ${a})`),yield lj(a,c,``,n)}catch(e){let t=e;if(t.name===TM.name)throw e;t.name===EM.name?xi(`Failed to save: ${t.message}`):t instanceof gr&&typeof t.statusCode==`number`&&t.statusCode>=500?yi(`Failed to save: ${t.message}`):bi(`Failed to save: ${t.message}`)}finally{try{yield Wd(c)}catch(e){K(`Failed to delete archive: ${e}`)}}return a})}function FM(e,t,n){return wM(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Kd(),a=dM(),o=-1,s=yield Ud(e);if(K(`Cache Paths:`),K(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Vd(),l=W.join(c,qd(i));K(`Archive Path: ${l}`);try{yield CM(c,s,i),vi()&&(yield xM(l,i));let u=Hd(l);K(`File Size: ${u}`),n.archiveSizeBytes=u,K(`Reserving Cache`);let d=Xd(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&bi(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw K(`Failed to reserve cache: ${e}`),new EM(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}K(`Attempting to upload cache located at: ${l}`),yield lj(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(K(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new DM(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===TM.name)throw e;t.name===EM.name?xi(`Failed to save: ${t.message}`):t.name===DM.name?bi(t.message):t instanceof gr&&typeof t.statusCode==`number`&&t.statusCode>=500?yi(`Failed to save: ${t.message}`):bi(`Failed to save: ${t.message}`)}finally{try{yield Wd(l)}catch(e){K(`Failed to delete archive: ${e}`)}}return o})}function IM(e){return e.replaceAll(`/`,`-`)}function LM(e){let{agentIdentity:t,repo:n,ref:r,os:i}=e;return`${za}-${t}-${IM(n)}-${r}-${i}`}function RM(e){let{agentIdentity:t,repo:n,ref:r}=e,i=IM(n);return[`${za}-${t}-${i}-${r}-`,`${za}-${t}-${i}-`]}function zM(e,t){return`${LM(e)}-${t}`}function BM(){return{agentIdentity:`github`,repo:Z(),ref:Xa(),os:Ya()}}function VM(e,t){let n=We.resolve(e),r=We.resolve(t);return n.startsWith(r+We.sep)}async function HM(e,t,n){if(!VM(e,t)){n.debug(`auth.json is outside storage path - skipping deletion`,{authPath:e,storagePath:t});return}try{await Ue.unlink(e),n.debug(`Deleted auth.json from cache storage`)}catch(e){e.code!==`ENOENT`&&n.warning(`Failed to delete auth.json`,{error:Da(e)})}}async function UM(e,t,n){let r=[e];if(t!=null&&r.push(t),await ka(n??null)){let t=We.join(We.dirname(e),`opencode.db`);r.push(t,`${t}-wal`,`${t}-shm`)}return r}async function WM(e,t,n){let r=[e];if(t!=null&&r.push(t),await ka(n??null)){let t=We.join(We.dirname(e),`opencode.db`);r.push(t);for(let e of[`-wal`,`-shm`])try{await Ue.access(`${t}${e}`),r.push(`${t}${e}`)}catch{}}return r}function GM(){return{restoreCache:async(e,t,n)=>AM(e,t,n),saveCache:async(e,t)=>NM(e,t)}}const KM=GM();async function qM(e,t){try{return(await Ue.stat(e)).isDirectory()===!1?!0:(await Ue.readdir(e),!1)}catch{return t.debug(`Storage path not accessible - treating as corrupted`),!0}}async function JM(e,t){let n=We.join(e,`.version`);try{let e=await Ue.readFile(n,`utf8`),r=Number.parseInt(e.trim(),10);return r===1?!0:(t.info(`Storage version mismatch`,{expected:1,found:r}),!1)}catch{return t.debug(`No version file found - treating as compatible`),!0}}async function YM(e){try{await Ue.rm(e,{recursive:!0,force:!0}),await Ue.mkdir(e,{recursive:!0})}catch{}}async function XM(e){let{storeConfig:t,storeAdapter:n,logger:r,storagePath:i,components:a}=e;if(t?.enabled!==!0)return{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null};let o=await rs(n??Ys(t,r),t,a.agentIdentity,a.repo,i,r);return o.mainDbRestored===!0?(await Ue.mkdir(i,{recursive:!0}),{hit:!0,key:null,restoredPath:i,corrupted:!1,source:`storage`}):(o.downloaded>0&&r.warning(`Object store returned session sidecar files without main DB - treating as miss`,{downloaded:o.downloaded,failed:o.failed}),{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null})}async function ZM(e,t){let n=await XM(e);return n.hit===!0?n:{hit:!1,key:t,restoredPath:null,corrupted:!0,source:null}}async function QM(e){let{components:t,logger:n,storagePath:r,authPath:i,projectIdPath:a,opencodeVersion:o,cacheAdapter:s=KM}=e;if(le.env.SKIP_CACHE===`true`)return n.debug(`Skipping cache restore (SKIP_CACHE=true)`),await Ue.mkdir(r,{recursive:!0}),{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null};let c=LM(t),l=RM(t),u=await UM(r,a,o);n.info(`Restoring cache`,{primaryKey:c,restoreKeys:[...l],paths:u});try{let t=await s.restoreCache(u,c,[...l]);return t==null?(n.info(`Cache miss - starting with fresh state`),await Ue.mkdir(r,{recursive:!0}),await XM(e)):(n.info(`Cache restored`,{restoredKey:t}),await qM(r,n)===!0?(n.warning(`Cache corruption detected - proceeding with clean state`),await YM(r),await ZM(e,t)):await JM(r,n)===!1?(n.warning(`Storage version mismatch - proceeding with clean state`),await YM(r),await ZM(e,t)):(await HM(i,r,n),{hit:!0,key:t,restoredPath:r,corrupted:!1,source:`cache`}))}catch(t){return n.warning(`Cache restore failed`,{error:Da(t)}),XM(e)}}async function $M(e){let t=We.join(e,`.version`);await Ue.mkdir(e,{recursive:!0}),await Ue.writeFile(t,`1`,`utf8`)}async function eN(e){try{return(await Ue.readdir(e)).length>0}catch{return!1}}async function tN(e){let{components:t,runId:n,logger:r,storagePath:i,authPath:a,projectIdPath:o,opencodeVersion:s,cacheAdapter:c=KM}=e;if(le.env.SKIP_CACHE===`true`)return r.debug(`Skipping cache save (SKIP_CACHE=true)`),!0;let l=zM(t,n),u=await WM(i,o,s);r.info(`Saving cache`,{saveKey:l,paths:u});try{if(await HM(a,i,r),await eN(i)===!1)return r.info(`No storage content to cache`),!1;if(await $M(i),e.storeConfig?.enabled===!0)try{let n=await ns(e.storeAdapter??Ys(e.storeConfig,r),e.storeConfig,t.agentIdentity,t.repo,i,r);r.info(`Object store session sync completed`,n)}catch(e){r.warning(`Object store session sync failed (non-fatal)`,{error:Da(e)})}return await c.saveCache(u,l),r.info(`Cache saved`,{saveKey:l}),!0}catch(e){return e instanceof Error&&e.message.includes(`already exists`)?(r.info(`Cache key already exists, skipping save`),!0):(r.warning(`Cache save failed`,{error:Da(e)}),!1)}}function nN(){return 8*1024*1024}function rN(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}function iN(){let e=process.env.ACTIONS_RESULTS_URL;if(!e)throw Error(`Unable to get the ACTIONS_RESULTS_URL env variable`);return new URL(e).origin}function aN(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function oN(){let e=process.env.GITHUB_WORKSPACE;if(!e)throw Error(`Unable to get the GITHUB_WORKSPACE env variable`);return e}function sN(){let e=de.cpus().length,t=32;if(e>4){let n=16*e;t=n>300?300:n}let n=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(n){let e=parseInt(n);if(isNaN(e)||e<1)throw Error(`Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable`);return eDate.parse(`9999-12-31T23:59:59Z`))throw Error(`Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.`);if(e.nanos<0)throw Error(`Unable to encode invalid Timestamp to JSON. Nanos must not be negative.`);let r=`Z`;if(e.nanos>0){let t=(e.nanos+1e9).toString().substring(1);r=t.substring(3)===`000000`?`.`+t.substring(0,3)+`Z`:t.substring(6)===`000`?`.`+t.substring(0,6)+`Z`:`.`+t+`Z`}return new Date(n).toISOString().replace(`.000Z`,r)}internalJsonRead(e,t,n){if(typeof e!=`string`)throw Error(`Unable to parse Timestamp from JSON `+(0,$.typeofJsonValue)(e)+`.`);let r=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw Error(`Unable to parse Timestamp from JSON. Invalid format.`);let i=Date.parse(r[1]+`-`+r[2]+`-`+r[3]+`T`+r[4]+`:`+r[5]+`:`+r[6]+(r[8]?r[8]:`Z`));if(Number.isNaN(i))throw Error(`Unable to parse Timestamp from JSON. Invalid value.`);if(iDate.parse(`9999-12-31T23:59:59Z`))throw new globalThis.Error(`Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.`);return n||=this.create(),n.seconds=$.PbLong.from(i/1e3).toString(),n.nanos=0,r[7]&&(n.nanos=parseInt(`1`+r[7]+`0`.repeat(9-r[7].length))-1e9),n}create(e){let t={seconds:`0`,nanos:0};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posuN},{no:5,name:`version`,kind:`scalar`,T:5},{no:6,name:`mime_type`,kind:`message`,T:()=>fN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,name:``,version:0};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posfN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,name:``,size:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posfN},{no:4,name:`id_filter`,kind:`message`,T:()=>dN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posyN}])}create(e){let t={artifacts:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posuN},{no:7,name:`digest`,kind:`message`,T:()=>fN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,databaseId:`0`,name:``,size:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posmN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeArtifact(e){let t=hN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`FinalizeArtifact`,`application/json`,t).then(e=>gN.fromJson(e,{ignoreUnknownFields:!0}))}ListArtifacts(e){let t=_N.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`ListArtifacts`,`application/json`,t).then(e=>vN.fromJson(e,{ignoreUnknownFields:!0}))}GetSignedArtifactURL(e){let t=bN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`GetSignedArtifactURL`,`application/json`,t).then(e=>xN.fromJson(e,{ignoreUnknownFields:!0}))}DeleteArtifact(e){let t=SN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`DeleteArtifact`,`application/json`,t).then(e=>CN.fromJson(e,{ignoreUnknownFields:!0}))}};function TN(e){if(!e)return;let t=EN();t&&t`,` Greater than >`],[`|`,` Vertical bar |`],[`*`,` Asterisk *`],[`?`,` Question mark ?`],[`\r`,` Carriage return \\r`],[` -`,` Line feed \\n`]]),ON=new Map([...DN,[`\\`,` Backslash \\`],[`/`,` Forward slash /`]]);function kN(e){if(!e)throw Error(`Provided artifact name input during validation is empty`);for(let[t,n]of ON)if(e.includes(t))throw Error(`The artifact name is not valid: ${e}. Contains the following character: ${n} - -Invalid characters include: ${Array.from(ON.values()).toString()} - -These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);xi(`Artifact name is valid!`)}function AN(e){if(!e)throw Error(`Provided file path input during validation is empty`);for(let[t,n]of DN)if(e.includes(t))throw Error(`The path for one of the files in artifact is not valid: ${e}. Contains the following character: ${n} - -Invalid characters include: ${Array.from(DN.values()).toString()} - -The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems. - `)}var jN=i(((e,t)=>{t.exports={name:`@actions/artifact`,version:`6.2.1`,preview:!0,description:`Actions artifact lib`,keywords:[`github`,`actions`,`artifact`],homepage:`https://github.com/actions/toolkit/tree/main/packages/artifact`,license:`MIT`,type:`module`,main:`lib/artifact.js`,types:`lib/artifact.d.ts`,exports:{".":{types:`./lib/artifact.d.ts`,import:`./lib/artifact.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/artifact`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`cd ../../ && npm run test ./packages/artifact`,bootstrap:`cd ../../ && npm run bootstrap`,"tsc-run":`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`,tsc:`npm run bootstrap && npm run tsc-run`,"gen:docs":`typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.0`,"@actions/github":`^9.0.0`,"@actions/http-client":`^4.0.0`,"@azure/storage-blob":`^12.30.0`,"@octokit/core":`^7.0.6`,"@octokit/plugin-request-log":`^6.0.0`,"@octokit/plugin-retry":`^8.0.0`,"@octokit/request":`^10.0.7`,"@octokit/request-error":`^7.1.0`,"@protobuf-ts/plugin":`^2.2.3-alpha.1`,"@protobuf-ts/runtime":`^2.9.4`,archiver:`^7.0.1`,"jwt-decode":`^4.0.0`,"unzip-stream":`^0.3.1`},devDependencies:{"@types/archiver":`^7.0.0`,"@types/unzip-stream":`^0.3.4`,typedoc:`^0.28.16`,"typedoc-plugin-markdown":`^4.9.0`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),MN=i(((e,t)=>{t.exports={version:jN().version}}))();function NN(){return`@actions/artifact-${MN.version}`}var PN=class extends Error{constructor(e=[]){let t=`No files were found to upload`;e.length>0&&(t+=`: ${e.join(`, `)}`),super(t),this.files=e,this.name=`FilesNotFoundError`}},FN=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},IN=class extends Error{constructor(e=`Artifact not found`){super(e),this.name=`ArtifactNotFoundError`}},LN=class extends Error{constructor(e=`@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.`){super(e),this.name=`GHESNotSupportedError`}},RN=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};RN.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var zN=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. -More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};zN.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var BN=class extends Error{};BN.prototype.name=`InvalidTokenError`;function VN(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n=`0`+n),`%`+n}))}function HN(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);switch(t.length%4){case 0:break;case 2:t+=`==`;break;case 3:t+=`=`;break;default:throw Error(`base64 string is not of the correct length`)}try{return VN(t)}catch{return atob(t)}}function UN(e,t){if(typeof e!=`string`)throw new BN(`Invalid token specified: must be a string`);t||={};let n=t.header===!0?0:1,r=e.split(`.`)[n];if(typeof r!=`string`)throw new BN(`Invalid token specified: missing part #${n+1}`);let i;try{i=HN(r)}catch(e){throw new BN(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new BN(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}const WN=Error(`Failed to get backend IDs: The provided JWT token is invalid and/or missing claims`);function GN(){let e=UN(rN());if(!e.scp)throw WN;let t=e.scp.split(` `);if(t.length===0)throw WN;for(let e of t){let t=e.split(`:`);if(t?.[0]!==`Actions.Results`)continue;if(t.length!==3)throw WN;let n={workflowRunBackendId:t[1],workflowJobRunBackendId:t[2]};return K(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),K(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw WN}function KN(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(pi(t),pi(encodeURIComponent(t)))}catch(t){K(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function qN(e){if(typeof e!=`object`||!e){K(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&KN(e.signed_upload_url),`signed_url`in e&&typeof e.signed_url==`string`&&KN(e.signed_url)}var JN=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},YN=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=rN();this.baseUrl=iN(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new vr(e,[new xr(i)])}request(e,t,n,r){return JN(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;K(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>JN(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return JN(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return JN(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function XN(e){return new wN(new YN(NN(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}function ZN(e){if(!me.existsSync(e))throw Error(`The provided rootDirectory ${e} does not exist`);if(!me.statSync(e).isDirectory())throw Error(`The provided rootDirectory ${e} is not a valid directory`);xi(`Root directory input is valid!`)}function QN(e,t){let n=[];t=be(t),t=xe(t);for(let r of e){let e=me.lstatSync(r,{throwIfNoEntry:!1});if(!e)throw Error(`File ${r} does not exist`);if(e.isDirectory()){let i=r.replace(t,``);AN(i),n.push({sourcePath:null,destinationPath:i,stats:e})}else{if(r=be(r),r=xe(r),!r.startsWith(t))throw Error(`The rootDirectory: ${t} is not a parent directory of the file: ${r}`);let i=r.replace(t,``);AN(i),n.push({sourcePath:r,destinationPath:i,stats:e})}}return n}var $N=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function eP(e,t,n){return $N(this,void 0,void 0,function*(){let r=0,i=Date.now(),a=new AbortController,o=e=>$N(this,void 0,void 0,function*(){return new Promise((t,n)=>{let r=setInterval(()=>{Date.now()-i>e&&n(Error(`Upload progress stalled.`))},e);a.signal.addEventListener(`abort`,()=>{clearInterval(r),t()})})}),s=sN(),c=nN(),l=new mA(e).getBlockBlobClient();K(`Uploading artifact to blob storage with maxConcurrency: ${s}, bufferSize: ${c}, contentType: ${n}`);let u={blobHTTPHeaders:{blobContentType:n},onProgress:e=>{xi(`Uploaded bytes ${e.loadedBytes}`),r=e.loadedBytes,i=Date.now()},abortSignal:a.signal},d,f=new $e.PassThrough,p=pe.createHash(`sha256`);t.pipe(f),t.pipe(p).setEncoding(`hex`),xi(`Beginning upload of artifact content to blob storage`);try{yield Promise.race([l.uploadStream(f,c,s,u),o(cN())])}catch(e){throw RN.isNetworkErrorCode(e?.code)?new RN(e?.code):e}finally{a.abort()}return xi(`Finished uploading artifact content to blob storage!`),p.end(),d=p.read(),xi(`SHA256 digest of uploaded artifact is ${d}`),r===0&&bi(`No data was uploaded to blob storage. Reported upload byte count is 0.`),{uploadSize:r,sha256Hash:d}})}var tP=i(((e,t)=>{t.exports=typeof process==`object`&&process&&process.platform===`win32`?{sep:`\\`}:{sep:`/`}})),nP=i(((e,t)=>{let n=t.exports=(e,t,n={})=>(h(t),!n.nocomment&&t.charAt(0)===`#`?!1:new S(t,n).match(e));t.exports=n;let r=tP();n.sep=r.sep;let i=Symbol(`globstar **`);n.GLOBSTAR=i;let a=pd(),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=`[^/]*?`,l=e=>e.split(``).reduce((e,t)=>(e[t]=!0,e),{}),u=l(`().*{}+?[]^$\\!`),d=l(`[.(`),f=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);let p=(e,t={})=>{let n={};return Object.keys(e).forEach(t=>n[t]=e[t]),Object.keys(t).forEach(e=>n[e]=t[e]),n};n.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return n;let t=n,r=(n,r,i)=>t(n,r,p(e,i));return r.Minimatch=class extends t.Minimatch{constructor(t,n){super(t,p(e,n))}},r.Minimatch.defaults=n=>t.defaults(p(e,n)).Minimatch,r.filter=(n,r)=>t.filter(n,p(e,r)),r.defaults=n=>t.defaults(p(e,n)),r.makeRe=(n,r)=>t.makeRe(n,p(e,r)),r.braceExpand=(n,r)=>t.braceExpand(n,p(e,r)),r.match=(n,r,i)=>t.match(n,r,p(e,i)),r},n.braceExpand=(e,t)=>m(e,t);let m=(e,t={})=>(h(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)),h=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},g=Symbol(`subparse`);n.makeRe=(e,t)=>new S(e,t||{}).makeRe(),n.match=(e,t,n={})=>{let r=new S(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};let v=e=>e.replace(/\\(.)/g,`$1`),y=e=>e.replace(/\\([^-\]])/g,`$1`),b=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),x=e=>e.replace(/[[\]\\]/g,`\\$&`);var S=class{constructor(e,t){h(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map(e=>e.split(f)),this.debug(this.pattern,n),n=n.map((e,t,n)=>e.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(e=>e.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r=0;e--)if(t[e]===i){s=e;break}let c=t.slice(a,o),l=n?t.slice(o+1):t.slice(o+1,s),u=n?[]:t.slice(s+1);if(c.length){let t=e.slice(r,r+c.length);if(!this._matchOne(t,c,n,0,0))return!1;r+=c.length}let d=0;if(u.length){if(u.length+r>e.length)return!1;let t=e.length-u.length;if(this._matchOne(e,u,n,t,0))d=u.length;else{if(e[e.length-1]!==``||r+u.length===e.length||!this._matchOne(e,u,n,t-1,0))return!1;d=u.length+1}}if(!l.length){let t=!!d;for(let n=r;nD?``:O?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,A=e=>e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,j=()=>{if(m){switch(m){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+m;break}this.debug(`clearStateChar %j %j`,m,r),m=!1}};for(let t=0,i;t(n||=`\\`,t+t+n+`|`)),this.debug(`tail=%j - %s`,e,e,T,r);let t=T.type===`*`?c:T.type===`?`?s:`\\`+T.type;a=!0,r=r.slice(0,T.reStart)+t+`\\(`+e}j(),l&&(r+=`\\\\`);let M=d[r.charAt(0)];for(let e=p.length-1;e>-1;e--){let n=p[e],i=r.slice(0,n.reStart),a=r.slice(n.reStart,n.reEnd-8),o=r.slice(n.reEnd),s=r.slice(n.reEnd-8,n.reEnd)+o,c=i.split(`)`).length,l=i.split(`(`).length-c,u=o;for(let e=0;e(e=e.map(e=>typeof e==`string`?b(e):e===i?i:e._src).reduce((e,t)=>(e[e.length-1]===i&&t===i||e.push(t),e),[]),e.forEach((t,r)=>{t!==i||e[r-1]===i||(r===0?e.length>1?e[r+1]=`(?:\\/|`+n+`\\/)?`+e[r+1]:e[r]=n:r===e.length-1?e[r-1]+=`(?:\\/|`+n+`)?`:(e[r-1]+=`(?:\\/|\\/`+n+`\\/)`+e[r+1],e[r+1]=i))}),e.filter(e=>e!==i).join(`/`))).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,r)}catch{this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),e=e.split(f),this.debug(this.pattern,`split`,e);let i=this.set;this.debug(this.pattern,`set`,i);let a;for(let t=e.length-1;t>=0&&(a=e[t],!a);t--);for(let r=0;r{n.exports=p;let r=t(`fs`),{EventEmitter:i}=t(`events`),{Minimatch:a}=nP(),{resolve:o}=t(`path`);function s(e,t){return new Promise((n,i)=>{r.readdir(e,{withFileTypes:!0},(e,r)=>{if(e)switch(e.code){case`ENOTDIR`:t?i(e):n([]);break;case`ENOTSUP`:case`ENOENT`:case`ENAMETOOLONG`:case`UNKNOWN`:n([]);break;default:i(e);break}else n(r)})})}function c(e,t){return new Promise((n,i)=>{(t?r.stat:r.lstat)(e,(r,i)=>{if(r)switch(r.code){case`ENOENT`:n(t?c(e,!1):null);break;default:n(null);break}else n(i)})})}async function*l(e,t,n,r,i,a){let o=await s(t+e,a);for(let a of o){let o=a.name;o===void 0&&(o=a,r=!0);let s=e+`/`+o,u=s.slice(1),d=t+`/`+u,f=null;(r||n)&&(f=await c(d,n)),!f&&a.name!==void 0&&(f=a),f===null&&(f={isDirectory:()=>!1}),f.isDirectory()?i(u)||(yield{relative:u,absolute:d,stats:f},yield*l(s,t,n,r,i,!1)):yield{relative:u,absolute:d,stats:f}}}async function*u(e,t,n,r){yield*l(``,e,t,n,r,!0)}function d(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var f=class extends i{constructor(e,t,n){if(super(),typeof t==`function`&&(n=t,t=null),this.options=d(t||{}),this.matchers=[],this.options.pattern){let e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map(e=>new a(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map(e=>new a(e,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map(e=>new a(e,{dot:!0}))}this.iterator=u(o(e||`.`),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on(`match`,e=>this._matches.push(this.options.absolute?e.absolute:e.relative)),this.on(`error`,e=>n(e)),this.on(`end`,()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(t=>t.match(e))}_fileMatches(e,t){let n=e+(t?`/`:``);return(this.matchers.length===0||this.matchers.some(e=>e.match(n)))&&!this.ignoreMatchers.some(e=>e.match(n))&&(!this.options.nodir||!t)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit(`end`);else{let t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let n=e.value.relative,r=e.value.absolute;this.options.mark&&t&&(n+=`/`,r+=`/`),this.options.stat?this.emit(`match`,{relative:n,absolute:r,stat:e.value.stats}):this.emit(`match`,{relative:n,absolute:r})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit(`error`,e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function p(e,t,n){return new f(e,t,n)}p.ReaddirGlob=f})),iP=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.async={}))})(e,(function(e){function t(e,...t){return(...n)=>e(...t,...n)}function n(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}var r=typeof queueMicrotask==`function`&&queueMicrotask,i=typeof setImmediate==`function`&&setImmediate,a=typeof process==`object`&&typeof process.nextTick==`function`;function o(e){setTimeout(e,0)}function s(e){return(t,...n)=>e(()=>t(...n))}var c=s(r?queueMicrotask:i?setImmediate:a?process.nextTick:o);function l(e){return f(e)?function(...t){let n=t.pop();return u(e.apply(this,t),n)}:n(function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&typeof r.then==`function`)return u(r,n);n(null,r)})}function u(e,t){return e.then(e=>{d(t,null,e)},e=>{d(t,e&&(e instanceof Error||e.message)?e:Error(e))})}function d(e,t,n){try{e(t,n)}catch(e){c(e=>{throw e},e)}}function f(e){return e[Symbol.toStringTag]===`AsyncFunction`}function p(e){return e[Symbol.toStringTag]===`AsyncGenerator`}function m(e){return typeof e[Symbol.asyncIterator]==`function`}function h(e){if(typeof e!=`function`)throw Error(`expected a function`);return f(e)?l(e):e}function g(e,t){if(t||=e.length,!t)throw Error(`arity is undefined`);function n(...n){return typeof n[t-1]==`function`?e.apply(this,n):new Promise((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}return n}function v(e){return function(t,...n){return g(function(r){var i=this;return e(t,(e,t)=>{h(e).apply(i,n.concat(t))},r)})}}function y(e,t,n,r){t||=[];var i=[],a=0,o=h(n);return e(t,(e,t,n)=>{var r=a++;o(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function b(e){return e&&typeof e.length==`number`&&e.length>=0&&e.length%1==0}let x={};function S(e){function t(...t){if(e!==null){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function C(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function w(e){var t=-1,n=e.length;return function(){return++t=t||o||i||(o=!0,e.next().then(({value:e,done:t})=>{if(!(a||i)){if(o=!1,t){i=!0,s<=0&&r(null);return}s++,n(e,c,u),c++,l()}}).catch(d))}function u(e,t){if(--s,!a){if(e)return d(e);if(e===!1){i=!0,a=!0;return}if(t===x||i&&s<=0)return i=!0,r(null);l()}}function d(e){a||(o=!1,i=!0,r(e))}l()}var A=e=>(t,n,r)=>{if(r=S(r),e<=0)throw RangeError(`concurrency limit cannot be less than 1`);if(!t)return r(null);if(p(t))return k(t,e,n,r);if(m(t))return k(t[Symbol.asyncIterator](),e,n,r);var i=D(t),a=!1,o=!1,s=0,c=!1;function l(e,t){if(!o)if(--s,e)a=!0,r(e);else if(e===!1)a=!0,o=!0;else if(t===x||a&&s<=0)return a=!0,r(null);else c||u()}function u(){for(c=!0;s1?r:r[0])}return n[ne]=new Promise((n,r)=>{e=n,t=r}),n}function ie(e,t,n){typeof t!=`number`&&(n=t,t=null),n=S(n||re());var r=Object.keys(e).length;if(!r)return n(null);t||=r;var i={},a=0,o=!1,s=!1,c=Object.create(null),l=[],u=[],d={};Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n)){f(t,[n]),u.push(t);return}var r=n.slice(0,n.length-1),i=r.length;if(i===0){f(t,n),u.push(t);return}d[t]=i,r.forEach(a=>{if(!e[a])throw Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+r.join(`, `));m(a,()=>{i--,i===0&&f(t,n)})})}),y(),p();function f(e,t){l.push(()=>v(e,t))}function p(){if(!o){if(l.length===0&&a===0)return n(null,i);for(;l.length&&ae()),p()}function v(e,t){if(!s){var r=O((t,...r)=>{if(a--,t===!1){o=!0;return}if(r.length<2&&([r]=r),t){var l={};if(Object.keys(i).forEach(e=>{l[e]=i[e]}),l[e]=r,s=!0,c=Object.create(null),o)return;n(t,l)}else i[e]=r,g(e)});a++;var l=h(t[t.length-1]);t.length>1?l(i,r):l(r)}}function y(){for(var e,t=0;u.length;)e=u.pop(),t++,b(e).forEach(e=>{--d[e]===0&&u.push(e)});if(t!==r)throw Error(`async.auto cannot execute tasks due to a recursive dependency`)}function b(t){var n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return n[ne]}var ae=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,U=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,oe=/,/,se=/(=.+)?(\s*)$/;function ce(e){let t=``,n=0,r=e.indexOf(`*/`);for(;ne.replace(se,``).trim())}function ue(e,t){var n={};return Object.keys(e).forEach(t=>{var r=e[t],i,a=f(r),o=!a&&r.length===1||a&&r.length===0;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?s:r);else if(o)n[t]=r;else{if(i=le(r),r.length===0&&!a&&i.length===0)throw Error(`autoInject task functions require explicit parameters.`);a||i.pop(),n[t]=i.concat(s)}function s(e,t){var n=i.map(t=>e[t]);n.push(t),h(r)(...n)}}),ie(n,t)}class de{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,--this.length,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):fe(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):fe(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function fe(e,t){e.length=1,e.head=e.tail=t}function pe(e,t,n){if(t==null)t=1;else if(t===0)throw RangeError(`Concurrency must not be zero`);var r=h(e),i=0,a=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){o[e].push(t)}function l(e,t){let n=(...r)=>{u(e,n),t(...r)};o[e].push(n)}function u(e,t){if(!e)return Object.keys(o).forEach(e=>o[e]=[]);if(!t)return o[e]=[];o[e]=o[e].filter(e=>e!==t)}function d(e,...t){o[e].forEach(e=>e(...t))}var f=!1;function p(e,t,n,r){if(r!=null&&typeof r!=`function`)throw Error(`task callback must be a function`);b.started=!0;var i,a;function o(e,...t){if(e)return n?a(e):i();if(t.length<=1)return i(t[0]);i(t)}var s=b._createTaskItem(e,n?o:r||o);if(t?b._tasks.unshift(s):b._tasks.push(s),f||(f=!0,c(()=>{f=!1,b.process()})),n||!r)return new Promise((e,t)=>{i=e,a=t})}function m(e){return function(t,...n){--i;for(var r=0,o=e.length;r0&&a.splice(c,1),s.callback(t,...n),t!=null&&d(`error`,t,s.data)}i<=b.concurrency-b.buffer&&d(`unsaturated`),b.idle()&&d(`drain`),b.process()}}function g(e){return e.length===0&&b.idle()?(c(()=>d(`drain`)),!0):!1}let v=e=>t=>{if(!t)return new Promise((t,n)=>{l(e,(e,r)=>{if(e)return n(e);t(r)})});u(e),s(e,t)};var y=!1,b={_tasks:new de,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*b._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!1,t)):p(e,!1,!1,t)},pushAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!0,t)):p(e,!1,!0,t)},kill(){u(),b._tasks.empty()},unshift(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!1,t)):p(e,!0,!1,t)},unshiftAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!0,t)):p(e,!0,!0,t)},remove(e){b._tasks.remove(e)},process(){if(!y){for(y=!0;!b.paused&&i{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}var _e=g(ge,4);function ve(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return typeof r==`function`?e.pop():r=re(),_e(t,e,(e,t,r)=>{t.apply(n,e.concat((e,...t)=>{r(e,t)}))},(e,t)=>r(e,...t)),r[ne]}}function ye(...e){return ve(...e.reverse())}function W(e,t,n,r){return y(A(t),e,n,r)}var be=g(W,4);function xe(e,t,n,r){var i=h(n);return be(e,t,(e,t)=>{i(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],i=0;i{var o=!1,s;let c=h(i);n(r,(n,r,i)=>{c(n,(r,a)=>{if(r||r===!1)return i(r);if(e(a)&&!s)return o=!0,s=t(!0,n),i(null,x);i()})},e=>{if(e)return a(e);a(null,o?s:t(!1))})}}function ke(e,t,n){return Oe(e=>e,(e,t)=>t)(I,e,t,n)}var Ae=g(ke,3);function je(e,t,n,r){return Oe(e=>e,(e,t)=>t)(A(t),e,n,r)}var Me=g(je,4);function Ne(e,t,n){return Oe(e=>e,(e,t)=>t)(A(1),e,t,n)}var Pe=g(Ne,3);function Fe(e){return(t,...n)=>h(t)(...n,(t,...n)=>{typeof console==`object`&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var Ie=Fe(`dir`);function Le(e,t,n){n=O(n);var r=h(e),i=h(t),a;function o(e,...t){if(e)return n(e);e!==!1&&(a=t,i(...t,s))}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return s(null,!0)}var Re=g(Le,3);function ze(e,t,n){let r=h(t);return Re(e,(...e)=>{let t=e.pop();r(...e,(e,n)=>t(e,!n))},n)}function Be(e){return(t,n,r)=>e(t,r)}function Ve(e,t,n){return I(e,Be(h(t)),n)}var He=g(Ve,3);function Ue(e,t,n,r){return A(t)(e,Be(h(n)),r)}var We=g(Ue,4);function Ge(e,t,n){return We(e,1,t,n)}var Ke=g(Ge,3);function qe(e){return f(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...e)=>{r?c(()=>n(...e)):n(...e)}),e.apply(this,t),r=!1}}function Je(e,t,n){return Oe(e=>!e,e=>!e)(I,e,t,n)}var Ye=g(Je,3);function Xe(e,t,n,r){return Oe(e=>!e,e=>!e)(A(t),e,n,r)}var Ze=g(Xe,4);function Qe(e,t,n){return Oe(e=>!e,e=>!e)(B,e,t,n)}var $e=g(Qe,3);function G(e,t,n,r){var i=Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],a=0;a{n(e,(n,a)=>{if(n)return r(n);a&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function tt(e,t,n,r){return(b(t)?G:et)(e,t,h(n),r)}function nt(e,t,n){return tt(I,e,t,n)}var rt=g(nt,3);function it(e,t,n,r){return tt(A(t),e,n,r)}var at=g(it,4);function ot(e,t,n){return tt(B,e,t,n)}var st=g(ot,3);function ct(e,t){var n=O(t),r=h(qe(e));function i(e){if(e)return n(e);e!==!1&&r(i)}return i()}var lt=g(ct,2);function ut(e,t,n,r){var i=h(n);return be(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,a=0;a{a(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}var gt=g(ht,4);function _t(e,t,n){return gt(e,1/0,t,n)}function vt(e,t,n){return gt(e,1,t,n)}function yt(e,t=e=>e){var r=Object.create(null),i=Object.create(null),a=h(e),o=n((e,n)=>{var o=t(...e);o in r?c(()=>n(null,...r[o])):o in i?i[o].push(n):(i[o]=[n],a(...e,(e,...t)=>{e||(r[o]=t);var n=i[o];delete i[o];for(var a=0,s=n.length;a{var r=b(t)?[]:{};e(t,(e,t,n)=>{h(e)((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)})},e=>n(e,r))},3);function St(e,t){return xt(I,e,t)}function Ct(e,t,n){return xt(A(t),e,n)}function wt(e,t){var n=h(e);return pe((e,t)=>{n(e[0],t)},t,1)}class Tt{constructor(){this.heap=[],this.pushCount=-(2**53-1)}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Ot(this.heap[e],this.heap[t=Dt(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=Et(e))=0;e--)this.percDown(e);return this}}function Et(e){return(e<<1)+1}function Dt(e){return(e+1>>1)-1}function Ot(e,t){return e.priority===t.priority?e.pushCount({data:e,priority:t,callback:n});function a(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n.push=function(e,t=0,n){return r(a(e,t),n)},n.pushAsync=function(e,t=0,n){return i(a(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}function At(e,t){if(t=S(t),!Array.isArray(e))return t(TypeError(`First argument to race must be an array of functions`));if(!e.length)return t();for(var n=0,r=e.length;n{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)}),t.apply(this,e)})}function Pt(e){var t;return Array.isArray(e)?t=e.map(Nt):(t={},Object.keys(e).forEach(n=>{t[n]=Nt.call(this,e[n])})),t}function Ft(e,t,n,r){let i=h(n);return tt(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}function It(e,t,n){return Ft(I,e,t,n)}var Lt=g(It,3);function Rt(e,t,n,r){return Ft(A(t),e,n,r)}var zt=g(Rt,4);function Bt(e,t,n){return Ft(B,e,t,n)}var Vt=g(Bt,3);function Ht(e){return function(){return e}}function Ut(e,t,n){var r={times:5,intervalFunc:Ht(0)};if(arguments.length<3&&typeof e==`function`?(n=t||re(),t=e):(Wt(r,e),n||=re()),typeof t!=`function`)throw Error(`Invalid arguments for async.retry`);var i=h(t),a=1;function o(){i((e,...t)=>{e!==!1&&(e&&a++{(t.lengthe)(I,e,t,n)}var Jt=g(qt,3);function Yt(e,t,n,r){return Oe(Boolean,e=>e)(A(t),e,n,r)}var Xt=g(Yt,4);function Zt(e,t,n){return Oe(Boolean,e=>e)(B,e,t,n)}var Qt=g(Zt,3);function $t(e,t,n){var r=h(t);return R(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return nr)}}var en=g($t,3);function tn(e,t,r){var i=h(e);return n((n,a)=>{var o=!1,s;function c(){var t=e.name||`anonymous`,n=Error(`Callback function "`+t+`" timed out.`);n.code=`ETIMEDOUT`,r&&(n.info=r),o=!0,a(n)}n.push((...e)=>{o||(a(...e),clearTimeout(s))}),s=setTimeout(c,t),i(...n)})}function nn(e){for(var t=Array(e);e--;)t[e]=e;return t}function rn(e,t,n,r){var i=h(n);return be(nn(e),t,i,r)}function an(e,t,n){return rn(e,1/0,t,n)}function on(e,t,n){return rn(e,1,t,n)}function sn(e,t,n,r){arguments.length<=3&&typeof t==`function`&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=S(r||re());var i=h(n);return I(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[ne]}function cn(e,t){var n=null,r;return Ke(e,(e,t)=>{h(e)((e,...i)=>{if(e===!1)return t(e);i.length<2?[r]=i:r=i,n=e,t(e?null:{})})},()=>t(n,r))}var ln=g(cn);function un(e){return(...t)=>(e.unmemoized||e)(...t)}function dn(e,t,n){n=O(n);var r=h(t),i=h(e),a=[];function o(e,...t){if(e)return n(e);a=t,e!==!1&&i(s)}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return i(s)}var fn=g(dn,3);function pn(e,t,n){let r=h(e);return fn(e=>r((t,n)=>e(t,!n)),t,n)}function mn(e,t){if(t=S(t),!Array.isArray(e))return t(Error(`First argument to waterfall must be an array of functions`));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,O(i))}function i(i,...a){if(i!==!1){if(i||n===e.length)return t(i,...a);r(a)}}r([])}var hn=g(mn),gn={apply:t,applyEach:z,applyEachSeries:H,asyncify:l,auto:ie,autoInject:ue,cargo:me,cargoQueue:he,compose:ye,concat:we,concatLimit:Se,concatSeries:Ee,constant:De,detect:Ae,detectLimit:Me,detectSeries:Pe,dir:Ie,doUntil:ze,doWhilst:Re,each:He,eachLimit:We,eachOf:I,eachOfLimit:M,eachOfSeries:B,eachSeries:Ke,ensureAsync:qe,every:Ye,everyLimit:Ze,everySeries:$e,filter:rt,filterLimit:at,filterSeries:st,forever:lt,groupBy:ft,groupByLimit:dt,groupBySeries:pt,log:mt,map:R,mapLimit:be,mapSeries:te,mapValues:_t,mapValuesLimit:gt,mapValuesSeries:vt,memoize:yt,nextTick:bt,parallel:St,parallelLimit:Ct,priorityQueue:kt,queue:wt,race:jt,reduce:_e,reduceRight:Mt,reflect:Nt,reflectAll:Pt,reject:Lt,rejectLimit:zt,rejectSeries:Vt,retry:Ut,retryable:Gt,seq:ve,series:Kt,setImmediate:c,some:Jt,someLimit:Xt,someSeries:Qt,sortBy:en,timeout:tn,times:an,timesLimit:rn,timesSeries:on,transform:sn,tryEach:ln,unmemoize:un,until:pn,waterfall:hn,whilst:fn,all:Ye,allLimit:Ze,allSeries:$e,any:Jt,anyLimit:Xt,anySeries:Qt,find:Ae,findLimit:Me,findSeries:Pe,flatMap:we,flatMapLimit:Se,flatMapSeries:Ee,forEach:He,forEachSeries:Ke,forEachLimit:We,forEachOf:I,forEachOfSeries:B,forEachOfLimit:M,inject:_e,foldl:_e,foldr:Mt,select:rt,selectLimit:at,selectSeries:st,wrapSync:l,during:fn,doDuring:Re};e.all=Ye,e.allLimit=Ze,e.allSeries=$e,e.any=Jt,e.anyLimit=Xt,e.anySeries=Qt,e.apply=t,e.applyEach=z,e.applyEachSeries=H,e.asyncify=l,e.auto=ie,e.autoInject=ue,e.cargo=me,e.cargoQueue=he,e.compose=ye,e.concat=we,e.concatLimit=Se,e.concatSeries=Ee,e.constant=De,e.default=gn,e.detect=Ae,e.detectLimit=Me,e.detectSeries=Pe,e.dir=Ie,e.doDuring=Re,e.doUntil=ze,e.doWhilst=Re,e.during=fn,e.each=He,e.eachLimit=We,e.eachOf=I,e.eachOfLimit=M,e.eachOfSeries=B,e.eachSeries=Ke,e.ensureAsync=qe,e.every=Ye,e.everyLimit=Ze,e.everySeries=$e,e.filter=rt,e.filterLimit=at,e.filterSeries=st,e.find=Ae,e.findLimit=Me,e.findSeries=Pe,e.flatMap=we,e.flatMapLimit=Se,e.flatMapSeries=Ee,e.foldl=_e,e.foldr=Mt,e.forEach=He,e.forEachLimit=We,e.forEachOf=I,e.forEachOfLimit=M,e.forEachOfSeries=B,e.forEachSeries=Ke,e.forever=lt,e.groupBy=ft,e.groupByLimit=dt,e.groupBySeries=pt,e.inject=_e,e.log=mt,e.map=R,e.mapLimit=be,e.mapSeries=te,e.mapValues=_t,e.mapValuesLimit=gt,e.mapValuesSeries=vt,e.memoize=yt,e.nextTick=bt,e.parallel=St,e.parallelLimit=Ct,e.priorityQueue=kt,e.queue=wt,e.race=jt,e.reduce=_e,e.reduceRight=Mt,e.reflect=Nt,e.reflectAll=Pt,e.reject=Lt,e.rejectLimit=zt,e.rejectSeries=Vt,e.retry=Ut,e.retryable=Gt,e.select=rt,e.selectLimit=at,e.selectSeries=st,e.seq=ve,e.series=Kt,e.setImmediate=c,e.some=Jt,e.someLimit=Xt,e.someSeries=Qt,e.sortBy=en,e.timeout=tn,e.times=an,e.timesLimit=rn,e.timesSeries=on,e.transform=sn,e.tryEach=ln,e.unmemoize=un,e.until=pn,e.waterfall=hn,e.whilst=fn,e.wrapSync=l,Object.defineProperty(e,"__esModule",{value:!0})}))})),aP=i(((e,n)=>{var r=t(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}n.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),oP=i(((e,n)=>{var r=t(`stream`).Stream;n.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;sthis.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),sP=i(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),cP=i(((e,n)=>{var r=t(`fs`),i=aP(),a=oP(),o=sP(),s=t(`util`),c,l;typeof Symbol==`function`&&typeof Symbol.for==`function`?(c=Symbol.for(`graceful-fs.queue`),l=Symbol.for(`graceful-fs.previous`)):(c=`___graceful-fs.queue`,l=`___graceful-fs.previous`);function u(){}function d(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var f=u;s.debuglog?f=s.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(f=function(){var e=s.format.apply(s,arguments);e=`GFS4: `+e.split(/\n/).join(` -GFS4: `),console.error(e)}),r[c]||(d(r,global[c]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||g(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,l,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),g()}return Object.defineProperty(t,l,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){f(r[c]),t(`assert`).equal(r[c].length,0)})),global[c]||d(global,r[c]),n.exports=p(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(n.exports=p(r),r.__patched=!0);function p(e){i(e),e.gracefulify=p,e.createReadStream=E,e.createWriteStream=D;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?m([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=o;function o(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?m([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=a(e);S=g.ReadStream,w=g.WriteStream}var v=e.ReadStream;v&&(S.prototype=Object.create(v.prototype),S.prototype.open=C);var y=e.WriteStream;y&&(w.prototype=Object.create(y.prototype),w.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(e){S=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var b=S;Object.defineProperty(e,"FileReadStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var x=w;Object.defineProperty(e,"FileWriteStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0});function S(e,t){return this instanceof S?(v.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function C(){var e=this;k(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function w(e,t){return this instanceof w?(y.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function T(){var e=this;k(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function E(t,n){return new e.ReadStream(t,n)}function D(t,n){return new e.WriteStream(t,n)}var O=e.open;e.open=k;function k(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return O(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function m(e){f(`ENQUEUE`,e[0].name,e[1]),r[c].push(e),v()}var h;function g(){for(var e=Date.now(),t=0;t2&&(r[c][t][3]=e,r[c][t][4]=e);v()}function v(){if(clearTimeout(h),h=void 0,r[c].length!==0){var e=r[c].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)f(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){f(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(f(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[c].push(e)}h===void 0&&(h=setTimeout(v,0))}}})),lP=i(((e,t)=>{let n=e=>typeof e==`object`&&!!e&&typeof e.pipe==`function`;n.writable=e=>n(e)&&e.writable!==!1&&typeof e._write==`function`&&typeof e._writableState==`object`,n.readable=e=>n(e)&&e.readable!==!1&&typeof e._read==`function`&&typeof e._readableState==`object`,n.duplex=e=>n.writable(e)&&n.readable(e),n.transform=e=>n.duplex(e)&&typeof e._transform==`function`,t.exports=n})),uP=i(((e,t)=>{typeof process>`u`||!process.version||process.version.indexOf(`v0.`)===0||process.version.indexOf(`v1.`)===0&&process.version.indexOf(`v1.8.`)!==0?t.exports={nextTick:n}:t.exports=process;function n(e,t,n,r){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var i=arguments.length,a,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:for(a=Array(i-1),o=0;o{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),fP=i(((e,n)=>{n.exports=t(`stream`)})),pP=i(((e,n)=>{var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),mP=i((e=>{function n(e){return Array.isArray?Array.isArray(e):g(e)===`[object Array]`}e.isArray=n;function r(e){return typeof e==`boolean`}e.isBoolean=r;function i(e){return e===null}e.isNull=i;function a(e){return e==null}e.isNullOrUndefined=a;function o(e){return typeof e==`number`}e.isNumber=o;function s(e){return typeof e==`string`}e.isString=s;function c(e){return typeof e==`symbol`}e.isSymbol=c;function l(e){return e===void 0}e.isUndefined=l;function u(e){return g(e)===`[object RegExp]`}e.isRegExp=u;function d(e){return typeof e==`object`&&!!e}e.isObject=d;function f(e){return g(e)===`[object Date]`}e.isDate=f;function p(e){return g(e)===`[object Error]`||e instanceof Error}e.isError=p;function m(e){return typeof e==`function`}e.isFunction=m;function h(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=h,e.isBuffer=t(`buffer`).Buffer.isBuffer;function g(e){return Object.prototype.toString.call(e)}})),hP=i(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),gP=i(((e,n)=>{try{var r=t(`util`);if(typeof r.inherits!=`function`)throw``;n.exports=r.inherits}catch{n.exports=hP()}})),_P=i(((e,n)=>{function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var i=pP().Buffer,a=t(`util`);function o(e,t,n){e.copy(t,n)}n.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)o(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(n.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+` `+e})})),vP=i(((e,t)=>{var n=uP();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),yP=i(((e,n)=>{n.exports=t(`util`).deprecate})),bP=i(((e,t)=>{var n=uP();t.exports=v;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}var i=!process.browser&&[`v0.10`,`v0.9.`].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick,a;v.WritableState=h;var o=Object.create(mP());o.inherits=gP();var s={deprecate:yP()},c=fP(),l=pP().Buffer,u=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function d(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}var p=vP();o.inherits(v,c);function m(){}function h(e,t){a||=xP(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var g;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return g.call(this,e)?!0:this===v?e&&e._writableState instanceof h:!1}})):g=function(e){return e instanceof this};function v(e){if(a||=xP(),!g.call(v,this)&&!(this instanceof a))return new v(e);this._writableState=new h(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),c.call(this)}v.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function y(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function b(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}v.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&f(e);return a&&!l.isBuffer(e)&&(e=d(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=m),r.ended?y(this,n):(a||b(this,r,e,n))&&(r.pendingcb++,i=S(this,r,a,e,t,n)),i},v.prototype.cork=function(){var e=this._writableState;e.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&k(this,e))},v.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function x(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=l.from(t,n)),t}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(e,t,n,r,i,a){if(!n){var o=x(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=uP(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(mP());i.inherits=gP();var a=CP(),o=bP();i.inherits(u,a);for(var s=r(o.prototype),c=0;c{var t=pP().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),CP=i(((e,n)=>{var r=uP();n.exports=S;var i=dP(),a;S.ReadableState=x,t(`events`).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=fP(),c=pP().Buffer,l=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function u(e){return c.from(e)}function d(e){return c.isBuffer(e)||e instanceof l}var f=Object.create(mP());f.inherits=gP();var p=t(`util`),m=void 0;m=p&&p.debuglog?p.debuglog(`stream`):function(){};var h=_P(),g=vP(),v;f.inherits(S,s);var y=[`error`,`close`,`destroy`,`pause`,`resume`];function b(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function x(e,t){a||=xP(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||=SP().StringDecoder,this.decoder=new v(e.encoding),this.encoding=e.encoding)}function S(e){if(a||=xP(),!(this instanceof S))return new S(e);this._readableState=new x(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),s.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){this.push(null),t(e)},S.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=c.from(e,t),t=``),r=!0),C(this,e,t,!1,r)},S.prototype.unshift=function(e){return C(this,e,null,!0,!1)};function C(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,A(e,a);else{var o;i||(o=T(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==c.prototype&&(t=u(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):w(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?w(e,a,t,!1):N(e,a)):w(e,a,t,!1))):r||(a.reading=!1)}return E(a)}function w(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&j(e)),N(e,t)}function T(e,t){var n;return!d(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function E(e){return!e.ended&&(e.needReadable||e.length=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function k(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}S.prototype.read=function(e){m(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return m(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?H(this):j(this),null;if(e=k(e,t),e===0&&t.ended)return t.length===0&&H(this),null;var r=t.needReadable;m(`need readable`,r),(t.length===0||t.length-e0?ee(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),i!==null&&this.emit(`data`,i),i};function A(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,j(e)}}function j(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(M,e):M(e))}function M(e){m(`emit readable`),e.emit(`readable`),z(e)}function N(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length1&&re(i.pipes,e)!==-1)&&!u&&(m(`false write response, pause`,i.awaitDrain),i.awaitDrain++,f=!0),n.pause())}function h(t){m(`onerror`,t),y(),e.removeListener(`error`,h),o(e,`error`)===0&&e.emit(`error`,t)}b(e,`error`,h);function g(){e.removeListener(`finish`,v),y()}e.once(`close`,g);function v(){m(`onfinish`),e.removeListener(`close`,g),y()}e.once(`finish`,v);function y(){m(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(m(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;m(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&o(e,`data`)&&(t.flowing=!0,z(e))}}S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=B(e,t.buffer,t.decoder),n}function B(e,t,n){var r;return ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function te(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function H(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,r.nextTick(ne,t,e))}function ne(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function re(e,t){for(var n=0,r=e.length;n{t.exports=a;var n=xP(),r=Object.create(mP());r.inherits=gP(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{t.exports=i;var n=wP(),r=Object.create(mP());r.inherits=gP(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),EP=i(((e,n)=>{var r=t(`stream`);process.env.READABLE_STREAM===`disable`&&r?(n.exports=r,e=n.exports=r.Readable,e.Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):(e=n.exports=CP(),e.Stream=r||e,e.Readable=e,e.Writable=bP(),e.Duplex=xP(),e.Transform=wP(),e.PassThrough=TP())})),DP=i(((e,t)=>{t.exports=EP().PassThrough})),OP=i(((e,n)=>{var r=t(`util`),i=DP();n.exports={Readable:o,Writable:s},r.inherits(o,i),r.inherits(s,i);function a(e,t,n){e[t]=function(){return delete e[t],n.apply(this,arguments),this[t].apply(this,arguments)}}function o(e,t){if(!(this instanceof o))return new o(e,t);i.call(this,t),a(this,`_read`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),n.pipe(this)}),this.emit(`readable`)}function s(e,t){if(!(this instanceof s))return new s(e,t);i.call(this,t),a(this,`_write`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),this.pipe(n)}),this.emit(`writable`)}})),kP=i(((e,t)=>{ -/*! -* normalize-path -* -* Copyright (c) 2014-2018, Jon Schlinkert. -* Released under the MIT License. -*/ -t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`expected path to be a string`);if(e===`\\`||e===`/`)return`/`;var n=e.length;if(n<=1)return e;var r=``;if(n>4&&e[3]===`\\`){var i=e[2];(i===`?`||i===`.`)&&e.slice(0,2)===`\\\\`&&(e=e.slice(2),r=`//`)}var a=e.split(/[/\\]+/);return t!==!1&&a[a.length-1]===``&&a.pop(),r+a.join(`/`)}})),AP=i(((e,t)=>{function n(e){return e}t.exports=n})),jP=i(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),MP=i(((e,t)=>{var n=jP(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o{function n(e){return function(){return e}}t.exports=n})),PP=i(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),FP=i(((e,t)=>{var n=PP(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),IP=i(((e,t)=>{t.exports=FP().Symbol})),LP=i(((e,t)=>{var n=IP(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),RP=i(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),zP=i(((e,t)=>{var n=IP(),r=LP(),i=RP(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),BP=i(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),VP=i(((e,t)=>{var n=zP(),r=BP(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),HP=i(((e,t)=>{t.exports=FP()[`__core-js_shared__`]})),UP=i(((e,t)=>{var n=HP(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),WP=i(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),GP=i(((e,t)=>{var n=VP(),r=UP(),i=BP(),a=WP(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),KP=i(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),qP=i(((e,t)=>{var n=GP(),r=KP();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),JP=i(((e,t)=>{var n=qP();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),YP=i(((e,t)=>{var n=NP(),r=JP(),i=AP();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),XP=i(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),ZP=i(((e,t)=>{var n=YP();t.exports=XP()(n)})),QP=i(((e,t)=>{var n=AP(),r=MP(),i=ZP();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),$P=i(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),eF=i(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),tF=i(((e,t)=>{var n=VP(),r=eF();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),nF=i(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e{var n=$P(),r=tF(),i=nF(),a=BP();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),iF=i(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n{function n(e){return typeof e==`object`&&!!e}t.exports=n})),oF=i(((e,t)=>{var n=zP(),r=aF(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),sF=i(((e,t)=>{var n=oF(),r=aF(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),cF=i(((e,t)=>{t.exports=Array.isArray})),lF=i(((e,t)=>{function n(){return!1}t.exports=n})),uF=i(((e,t)=>{var n=FP(),r=lF(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),dF=i(((e,t)=>{var n=zP(),r=eF(),i=aF(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A={};A[x]=A[S]=A[C]=A[w]=A[T]=A[E]=A[D]=A[O]=A[k]=!0,A[a]=A[o]=A[y]=A[s]=A[b]=A[c]=A[l]=A[u]=A[d]=A[f]=A[p]=A[m]=A[h]=A[g]=A[v]=!1;function j(e){return i(e)&&r(e.length)&&!!A[n(e)]}t.exports=j})),fF=i(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),pF=i(((e,t)=>{var n=PP(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),mF=i(((e,t)=>{var n=dF(),r=fF(),i=pF(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),hF=i(((e,t)=>{var n=iF(),r=sF(),i=cF(),a=uF(),o=nF(),s=mF(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),gF=i(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),_F=i(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),vF=i(((e,t)=>{var n=BP(),r=gF(),i=_F(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),yF=i(((e,t)=>{var n=hF(),r=vF(),i=tF();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),bF=i(((e,t)=>{var n=QP(),r=$P(),i=rF(),a=yF(),o=Object.prototype,s=o.hasOwnProperty;t.exports=n(function(e,t){e=Object(e);var n=-1,c=t.length,l=c>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(c=1);++n{t.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t=``;for(let n=0;n{t.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,n]){let r=t.shift();return n===`f`?r.toFixed(6):n===`j`?JSON.stringify(r):n===`s`&&typeof r==`object`?`${r.constructor===Object?``:r.constructor.name} {}`.trim():r.toString()})},inspect(e){switch(typeof e){case`string`:if(e.includes(`'`)){if(!e.includes(`"`))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case`number`:return isNaN(e)?`NaN`:Object.is(e,-0)?String(e):e;case`bigint`:return`${String(e)}n`;case`boolean`:case`undefined`:return String(e);case`object`:return`{}`}}}})),CF=i(((e,t)=>{let{format:n,inspect:r}=SF(),{AggregateError:i}=xF(),a=globalThis.AggregateError||i,o=Symbol(`kIsNodeError`),s=[`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`],c=/^([A-Z][a-z0-9]*)+$/,l={};function u(e,t){if(!e)throw new l.ERR_INTERNAL_ASSERTION(t)}function d(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function f(e,t,r){if(typeof t==`function`)return u(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return u(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:n(t,...r)}function p(e,t,n){n||=Error;class r extends n{constructor(...n){super(f(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[o]=!0,l[e]=r}function m(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,"name",{value:t}),e}function h(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new a([t,e],t.message);return n.code=t.code,n}return e||t}var g=class extends Error{constructor(e=`The operation was aborted`,t=void 0){if(t!==void 0&&typeof t!=`object`)throw new l.ERR_INVALID_ARG_TYPE(`options`,`Object`,t);super(e,t),this.code=`ABORT_ERR`,this.name=`AbortError`}};p(`ERR_ASSERTION`,`%s`,Error),p(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{u(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let i=`The `;e.endsWith(` argument`)?i+=`${e} `:i+=`"${e}" ${e.includes(`.`)?`property`:`argument`} `,i+=`must be `;let a=[],o=[],l=[];for(let e of t)u(typeof e==`string`,`All expected entries have to be of type string`),s.includes(e)?a.push(e.toLowerCase()):c.test(e)?o.push(e):(u(e!==`object`,`The value "object" should be written as "Object"`),l.push(e));if(o.length>0){let e=a.indexOf(`object`);e!==-1&&(a.splice(a,e,1),o.push(`Object`))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`one of type ${a.join(`, `)}, or ${e}`}}(o.length>0||l.length>0)&&(i+=` or `)}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`an instance of ${o.join(`, `)}, or ${e}`}}l.length>0&&(i+=` or `)}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+=`an `),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{let e=l.pop();i+=`one of ${l.join(`, `)}, or ${e}`}}if(n==null)i+=`. Received ${n}`;else if(typeof n==`function`&&n.name)i+=`. Received function ${n.name}`;else if(typeof n==`object`){var d;if((d=n.constructor)!=null&&d.name)i+=`. Received an instance of ${n.constructor.name}`;else{let e=r(n,{depth:-1});i+=`. Received ${e}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof n} (${e})`}return i},TypeError),p(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let i=r(t);return i.length>128&&(i=i.slice(0,128)+`...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${i}`},TypeError),p(`ERR_INVALID_RETURN_VALUE`,(e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${n!=null&&(r=n.constructor)!=null&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`}.`},TypeError),p(`ERR_MISSING_ARGS`,(...e)=>{u(e.length>0,`At least one arg needs to be specified`);let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(` or `),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(`, `)}, and ${n} arguments`}break}return`${t} must be specified`},TypeError),p(`ERR_OUT_OF_RANGE`,(e,t,n)=>{u(t,`Missing "range" argument`);let i;if(Number.isInteger(n)&&Math.abs(n)>2**32)i=d(String(n));else if(typeof n==`bigint`){i=String(n);let e=BigInt(2)**BigInt(32);(n>e||n<-e)&&(i=d(i)),i+=`n`}else i=r(n);return`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError),p(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`,Error),p(`ERR_METHOD_NOT_IMPLEMENTED`,`The %s method is not implemented`,Error),p(`ERR_STREAM_ALREADY_FINISHED`,`Cannot call %s after a stream was finished`,Error),p(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`,Error),p(`ERR_STREAM_DESTROYED`,`Cannot call %s after a stream was destroyed`,Error),p(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),p(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`,Error),p(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`,Error),p(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`,Error),p(`ERR_STREAM_WRITE_AFTER_END`,`write after end`,Error),p(`ERR_UNKNOWN_ENCODING`,`Unknown encoding: %s`,TypeError),t.exports={AbortError:g,aggregateTwoErrors:m(h),hideStackFrames:m,codes:l}})),wF=i(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let n=new WeakMap,r=new WeakMap;function i(e){let t=n.get(e);return console.assert(t!=null,`'this' is expected an Event object, but got`,e),t}function a(e){if(e.passiveListener!=null){typeof console<`u`&&typeof console.error==`function`&&console.error(`Unable to preventDefault inside passive event listener invocation.`,e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,typeof e.event.preventDefault==`function`&&e.event.preventDefault())}function o(e,t){n.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(t);for(let e=0;e0){let e=Array(arguments.length);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0});var n=wF(),r=class extends n.EventTarget{constructor(){throw super(),TypeError(`AbortSignal cannot be constructed directly`)}get aborted(){let e=o.get(this);if(typeof e!=`boolean`)throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?`null`:typeof this}`);return e}};n.defineEventAttribute(r.prototype,`abort`);function i(){let e=Object.create(r.prototype);return n.EventTarget.call(e),o.set(e,!1),e}function a(e){o.get(e)===!1&&(o.set(e,!0),e.dispatchEvent({type:`abort`}))}let o=new WeakMap;Object.defineProperties(r.prototype,{aborted:{enumerable:!0}}),typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`&&Object.defineProperty(r.prototype,Symbol.toStringTag,{configurable:!0,value:`AbortSignal`});var s=class{constructor(){c.set(this,i())}get signal(){return l(this)}abort(){a(l(this))}};let c=new WeakMap;function l(e){let t=c.get(e);if(t==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?`null`:typeof e}`);return t}Object.defineProperties(s.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`&&Object.defineProperty(s.prototype,Symbol.toStringTag,{configurable:!0,value:`AbortController`}),e.AbortController=s,e.AbortSignal=r,e.default=s,t.exports=s,t.exports.AbortController=t.exports.default=s,t.exports.AbortSignal=r})),EF=i(((e,n)=>{let r=t(`buffer`),{format:i,inspect:a}=SF(),{codes:{ERR_INVALID_ARG_TYPE:o}}=CF(),{kResistStopPropagation:s,AggregateError:c,SymbolDispose:l}=xF(),u=globalThis.AbortSignal||TF().AbortSignal,d=globalThis.AbortController||TF().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,p=globalThis.Blob||r.Blob,m=p===void 0?function(e){return!1}:function(e){return e instanceof p},h=(e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new o(t,`AbortSignal`,e)},g=(e,t)=>{if(typeof e!=`function`)throw new o(t,`Function`,e)};n.exports={AggregateError:c,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}},promisify(e){return new Promise((t,n)=>{e((e,...r)=>e?n(e):t(...r))})},debuglog(){return function(){}},format:i,inspect:a,types:{isAsyncFunction(e){return e instanceof f},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:m,deprecate(e,t){return e},addAbortListener:t(`events`).addAbortListener||function(e,t){if(e===void 0)throw new o(`signal`,`AbortSignal`,e);h(e,`signal`),g(t,`listener`);let n;return e.aborted?queueMicrotask(()=>t()):(e.addEventListener(`abort`,t,{__proto__:null,once:!0,[s]:!0}),n=()=>{e.removeEventListener(`abort`,t)}),{__proto__:null,[l](){var e;(e=n)==null||e()}}},AbortSignalAny:u.any||function(e){if(e.length===1)return e[0];let t=new d,n=()=>t.abort();return e.forEach(e=>{h(e,`signals`),e.addEventListener(`abort`,n,{once:!0})}),t.signal.addEventListener(`abort`,()=>{e.forEach(e=>e.removeEventListener(`abort`,n))},{once:!0}),t.signal}},n.exports.promisify.custom=Symbol.for(`nodejs.util.promisify.custom`)})),DF=i(((e,t)=>{let{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:h}=xF(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:S}}=CF(),{normalizeEncoding:C}=EF(),{isAsyncFunction:w,isArrayBufferView:T}=EF().types,E={};function D(e){return e===(e|0)}function O(e){return e===e>>>0}let k=/^[0-7]+$/;function A(e,t,n){if(e===void 0&&(e=n),typeof e==`string`){if(f(k,e)===null)throw new b(t,e,`must be a 32-bit unsigned integer or an octal string`);e=u(e,8)}return N(e,t),e}let j=g((e,t,n=l,r=c)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);if(er)throw new x(t,`>= ${n} && <= ${r}`,e)}),M=g((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);if(er)throw new x(t,`>= ${n} && <= ${r}`,e)}),N=g((e,t,n=!1)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);let r=+!!n,i=4294967295;if(ei)throw new x(t,`>= ${r} && <= ${i}`,e)});function P(e,t){if(typeof e!=`string`)throw new y(t,`string`,e)}function F(e,t,n=void 0,r){if(typeof e!=`number`)throw new y(t,`number`,e);if(n!=null&&er||(n!=null||r!=null)&&s(e))throw new x(t,`${n==null?``:`>= ${n}`}${n!=null&&r!=null?` && `:``}${r==null?``:`<= ${r}`}`,e)}let I=g((e,t,n)=>{if(!r(n,e))throw new b(t,e,`must be one of: `+i(a(n,e=>typeof e==`string`?`'${e}'`:p(e)),`, `))});function L(e,t){if(typeof e!=`boolean`)throw new y(t,`boolean`,e)}function R(e,t,n){return e==null||!d(e,t)?n:e[t]}let z=g((e,t,r=null)=>{let i=R(r,`allowArray`,!1),a=R(r,`allowFunction`,!1);if(!R(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new y(t,`Object`,e)}),ee=g((e,t)=>{if(e!=null&&typeof e!=`object`&&typeof e!=`function`)throw new y(t,`a dictionary`,e)}),B=g((e,t,r=0)=>{if(!n(e))throw new y(t,`Array`,e);if(e.length{if(!T(e))throw new y(t,[`Buffer`,`TypedArray`,`DataView`],e)});function ie(e,t){let n=C(t),r=e.length;if(n===`hex`&&r%2!=0)throw new b(`encoding`,t,`is invalid for data of length ${r}`)}function ae(e,t=`Port`,n=!0){if(typeof e!=`number`&&typeof e!=`string`||typeof e==`string`&&h(e).length===0||+e!=e>>>0||e>65535||e===0&&!n)throw new v(t,e,n);return e|0}let U=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new y(t,`AbortSignal`,e)}),oe=g((e,t)=>{if(typeof e!=`function`)throw new y(t,`Function`,e)}),se=g((e,t)=>{if(typeof e!=`function`||w(e))throw new y(t,`Function`,e)}),ce=g((e,t)=>{if(e!==void 0)throw new y(t,`undefined`,e)});function le(e,t,n){if(!r(n,e))throw new y(t,`('${i(n,`|`)}')`,e)}let ue=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function de(e,t){if(e===void 0||!f(ue,e))throw new b(t,e,`must be an array or string of format "; rel=preload; as=style"`)}function fe(e){if(typeof e==`string`)return de(e,`hints`),e;if(n(e)){let t=e.length,n=``;if(t===0)return n;for(let r=0;r; rel=preload; as=style"`)}t.exports={isInt32:D,isUint32:O,parseFileMode:A,validateArray:B,validateStringArray:V,validateBooleanArray:te,validateAbortSignalArray:H,validateBoolean:L,validateBuffer:re,validateDictionary:ee,validateEncoding:ie,validateFunction:oe,validateInt32:M,validateInteger:j,validateNumber:F,validateObject:z,validateOneOf:I,validatePlainFunction:se,validatePort:ae,validateSignalName:ne,validateString:P,validateUint32:N,validateUndefined:ce,validateUnion:le,validateAbortSignal:U,validateLinkHeaderValue:fe}})),OF=i(((e,t)=>{t.exports=global.process})),kF=i(((e,t)=>{let{SymbolAsyncIterator:n,SymbolIterator:r,SymbolFor:i}=xF(),a=i(`nodejs.stream.destroyed`),o=i(`nodejs.stream.errored`),s=i(`nodejs.stream.readable`),c=i(`nodejs.stream.writable`),l=i(`nodejs.stream.disturbed`),u=i(`nodejs.webstream.isClosedPromise`),d=i(`nodejs.webstream.controllerErrorFunction`);function f(e,t=!1){return!!(e&&typeof e.pipe==`function`&&typeof e.on==`function`&&(!t||typeof e.pause==`function`&&typeof e.resume==`function`)&&(!e._writableState||e._readableState?.readable!==!1)&&(!e._writableState||e._readableState))}function p(e){return!!(e&&typeof e.write==`function`&&typeof e.on==`function`&&(!e._readableState||e._writableState?.writable!==!1))}function m(e){return!!(e&&typeof e.pipe==`function`&&e._readableState&&typeof e.on==`function`&&typeof e.write==`function`)}function h(e){return e&&(e._readableState||e._writableState||typeof e.write==`function`&&typeof e.on==`function`||typeof e.pipe==`function`&&typeof e.on==`function`)}function g(e){return!!(e&&!h(e)&&typeof e.pipeThrough==`function`&&typeof e.getReader==`function`&&typeof e.cancel==`function`)}function v(e){return!!(e&&!h(e)&&typeof e.getWriter==`function`&&typeof e.abort==`function`)}function y(e){return!!(e&&!h(e)&&typeof e.readable==`object`&&typeof e.writable==`object`)}function b(e){return g(e)||v(e)||y(e)}function x(e,t){return e==null?!1:t===!0?typeof e[n]==`function`:t===!1?typeof e[r]==`function`:typeof e[n]==`function`||typeof e[r]==`function`}function S(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||r!=null&&r.destroyed)}function C(e){if(!p(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function w(e,t){if(!p(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished==`boolean`?!!(n.finished||t===!1&&n.ended===!0&&n.length===0):null}function T(e){if(!f(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function E(e,t){if(!f(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted==`boolean`?!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0):null}function D(e){return e&&e[s]!=null?e[s]:typeof e?.readable==`boolean`?S(e)?!1:f(e)&&e.readable&&!E(e):null}function O(e){return e&&e[c]!=null?e[c]:typeof e?.writable==`boolean`?S(e)?!1:p(e)&&e.writable&&!C(e):null}function k(e,t){return h(e)?S(e)?!0:!(t?.readable!==!1&&D(e)||t?.writable!==!1&&O(e)):null}function A(e){return h(e)?e.writableErrored?e.writableErrored:e._writableState?.errored??null:null}function j(e){return h(e)?e.readableErrored?e.readableErrored:e._readableState?.errored??null:null}function M(e){if(!h(e))return null;if(typeof e.closed==`boolean`)return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==`boolean`||typeof n?.closed==`boolean`?t?.closed||n?.closed:typeof e._closed==`boolean`&&N(e)?e._closed:null}function N(e){return typeof e._closed==`boolean`&&typeof e._defaultKeepAlive==`boolean`&&typeof e._removedConnection==`boolean`&&typeof e._removedContLen==`boolean`}function P(e){return typeof e._sent100==`boolean`&&N(e)}function F(e){return typeof e._consuming==`boolean`&&typeof e._dumped==`boolean`&&e.req?.upgradeOrConnect===void 0}function I(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&P(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function L(e){return!!(e&&(e[l]??(e.readableDidRead||e.readableAborted)))}function R(e){return!!(e&&(e[o]??e.readableErrored??e.writableErrored??e._readableState?.errorEmitted??e._writableState?.errorEmitted??e._readableState?.errored??e._writableState?.errored))}t.exports={isDestroyed:S,kIsDestroyed:a,isDisturbed:L,kIsDisturbed:l,isErrored:R,kIsErrored:o,isReadable:D,kIsReadable:s,kIsClosedPromise:u,kControllerErrorFunction:d,kIsWritable:c,isClosed:M,isDuplexNodeStream:m,isFinished:k,isIterable:x,isReadableNodeStream:f,isReadableStream:g,isReadableEnded:T,isReadableFinished:E,isReadableErrored:j,isNodeStream:h,isWebStream:b,isWritable:O,isWritableNodeStream:p,isWritableStream:v,isWritableEnded:C,isWritableFinished:w,isWritableErrored:A,isServerRequest:F,isServerResponse:P,willEmitClose:I,isTransformStream:y}})),AF=i(((e,t)=>{let n=OF(),{AbortError:r,codes:i}=CF(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=EF(),{validateAbortSignal:l,validateFunction:u,validateObject:d,validateBoolean:f}=DF(),{Promise:p,PromisePrototypeThen:m,SymbolDispose:h}=xF(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:x,isReadableErrored:S,isWritable:C,isWritableNodeStream:w,isWritableStream:T,isWritableFinished:E,isWritableErrored:D,isNodeStream:O,willEmitClose:k,kIsClosedPromise:A}=kF(),j;function M(e){return e.setHeader&&typeof e.abort==`function`}let N=()=>{};function P(e,t,i){if(arguments.length===2?(i=t,t=s):t==null?t=s:d(t,`options`),u(i,`callback`),l(t.signal,`options.signal`),i=c(i),b(e)||T(e))return F(e,t,i);if(!O(e))throw new a(`stream`,[`ReadableStream`,`WritableStream`,`Stream`],e);let f=t.readable??y(e),p=t.writable??w(e),m=e._writableState,A=e._readableState,P=()=>{e.writable||R()},I=k(e)&&y(e)===f&&w(e)===p,L=E(e,!1),R=()=>{L=!0,e.destroyed&&(I=!1),!(I&&(!e.readable||f))&&(!f||z)&&i.call(e)},z=x(e,!1),ee=()=>{z=!0,e.destroyed&&(I=!1),!(I&&(!e.writable||p))&&(!p||L)&&i.call(e)},B=t=>{i.call(e,t)},V=g(e),te=()=>{V=!0;let t=D(e)||S(e);if(t&&typeof t!=`boolean`)return i.call(e,t);if(f&&!z&&y(e,!0)&&!x(e,!1)||p&&!L&&!E(e,!1))return i.call(e,new o);i.call(e)},H=()=>{V=!0;let t=D(e)||S(e);if(t&&typeof t!=`boolean`)return i.call(e,t);i.call(e)},ne=()=>{e.req.on(`finish`,R)};M(e)?(e.on(`complete`,R),I||e.on(`abort`,te),e.req?ne():e.on(`request`,ne)):p&&!m&&(e.on(`end`,P),e.on(`close`,P)),!I&&typeof e.aborted==`boolean`&&e.on(`aborted`,te),e.on(`end`,ee),e.on(`finish`,R),t.error!==!1&&e.on(`error`,B),e.on(`close`,te),V?n.nextTick(te):m!=null&&m.errorEmitted||A!=null&&A.errorEmitted?I||n.nextTick(H):(!f&&(!I||v(e))&&(L||C(e)===!1)||!p&&(!I||C(e))&&(z||v(e)===!1)||A&&e.req&&e.aborted)&&n.nextTick(H);let re=()=>{i=N,e.removeListener(`aborted`,te),e.removeListener(`complete`,R),e.removeListener(`abort`,te),e.removeListener(`request`,ne),e.req&&e.req.removeListener(`finish`,R),e.removeListener(`end`,P),e.removeListener(`close`,P),e.removeListener(`finish`,R),e.removeListener(`end`,ee),e.removeListener(`error`,B),e.removeListener(`close`,te)};if(t.signal&&!V){let a=()=>{let n=i;re(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(a);else{j||=EF().addAbortListener;let n=j(t.signal,a),r=i;i=c((...t)=>{n[h](),r.apply(e,t)})}}return re}function F(e,t,i){let a=!1,o=N;if(t.signal)if(o=()=>{a=!0,i.call(e,new r(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(o);else{j||=EF().addAbortListener;let n=j(t.signal,o),r=i;i=c((...t)=>{n[h](),r.apply(e,t)})}let s=(...t)=>{a||n.nextTick(()=>i.apply(e,t))};return m(e[A].promise,s,s),N}function I(e,t){var n;let r=!1;return t===null&&(t=s),(n=t)!=null&&n.cleanup&&(f(t.cleanup,`cleanup`),r=t.cleanup),new p((n,i)=>{let a=P(e,t,e=>{r&&a(),e?i(e):n()})})}t.exports=P,t.exports.finished=I})),jF=i(((e,t)=>{let n=OF(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=CF(),{Symbol:o}=xF(),{kIsDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=kF(),d=o(`kDestroy`),f=o(`kConstruct`);function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function m(e,t){let n=this._readableState,i=this._writableState,a=i||n;return i!=null&&i.destroyed||n!=null&&n.destroyed?(typeof t==`function`&&t(),this):(p(e,i,n),i&&(i.destroyed=!0),n&&(n.destroyed=!0),a.constructed?h(this,e,t):this.once(d,function(n){h(this,r(n,e),t)}),this)}function h(e,t,r){let i=!1;function a(t){if(i)return;i=!0;let a=e._readableState,o=e._writableState;p(t,o,a),o&&(o.closed=!0),a&&(a.closed=!0),typeof r==`function`&&r(t),t?n.nextTick(g,e,t):n.nextTick(v,e)}try{e._destroy(t||null,a)}catch(e){a(e)}}function g(e,t){y(e,t),v(e)}function v(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit(`close`)}function y(e,t){let n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(`error`,t))}function b(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function x(e,t,r){let i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(y,e,t):y(e,t))}function S(e,t){if(typeof e._construct!=`function`)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),!(e.listenerCount(f)>1)&&n.nextTick(C,e)}function C(e){let t=!1;function r(r){if(t){x(e,r??new i);return}t=!0;let a=e._readableState,o=e._writableState,s=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(d,r):r?x(e,r,!0):n.nextTick(w,e)}try{e._construct(e=>{n.nextTick(r,e)})}catch(e){n.nextTick(r,e)}}function w(e){e.emit(f)}function T(e){return e?.setHeader&&typeof e.abort==`function`}function E(e){e.emit(`close`)}function D(e,t){e.emit(`error`,t),n.nextTick(E,e)}function O(e,t){!e||c(e)||(!t&&!l(e)&&(t=new a),u(e)?(e.socket=null,e.destroy(t)):T(e)?e.abort():T(e.req)?e.req.abort():typeof e.destroy==`function`?e.destroy(t):typeof e.close==`function`?e.close():t?n.nextTick(D,e,t):n.nextTick(E,e),e.destroyed||(e[s]=!0))}t.exports={construct:S,destroyer:O,destroy:m,undestroy:b,errorOrDestroy:x}})),MF=i(((e,n)=>{let{ArrayIsArray:r,ObjectSetPrototypeOf:i}=xF(),{EventEmitter:a}=t(`events`);function o(e){a.call(this,e)}i(o.prototype,a.prototype),i(o,a),o.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&e.write(t)===!1&&n.pause&&n.pause()}n.on(`data`,r);function i(){n.readable&&n.resume&&n.resume()}e.on(`drain`,i),!e._isStdio&&(!t||t.end!==!1)&&(n.on(`end`,c),n.on(`close`,l));let o=!1;function c(){o||(o=!0,e.end())}function l(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function u(e){d(),a.listenerCount(this,`error`)===0&&this.emit(`error`,e)}s(n,`error`,u),s(e,`error`,u);function d(){n.removeListener(`data`,r),e.removeListener(`drain`,i),n.removeListener(`end`,c),n.removeListener(`close`,l),n.removeListener(`error`,u),e.removeListener(`error`,u),n.removeListener(`end`,d),n.removeListener(`close`,d),e.removeListener(`close`,d)}return n.on(`end`,d),n.on(`close`,d),e.on(`close`,d),e.emit(`pipe`,n),e};function s(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}n.exports={Stream:o,prependListener:s}})),NF=i(((e,t)=>{let{SymbolDispose:n}=xF(),{AbortError:r,codes:i}=CF(),{isNodeStream:a,isWebStream:o,kControllerErrorFunction:s}=kF(),c=AF(),{ERR_INVALID_ARG_TYPE:l}=i,u,d=(e,t)=>{if(typeof e!=`object`||!(`aborted`in e))throw new l(t,`AbortSignal`,e)};t.exports.addAbortSignal=function(e,n){if(d(e,`signal`),!a(n)&&!o(n))throw new l(`stream`,[`ReadableStream`,`WritableStream`,`Stream`],n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=`object`||!(`aborted`in e))return t;let i=a(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[s](new r(void 0,{cause:e.reason}))};return e.aborted?i():(u||=EF().addAbortListener,c(t,u(e,i)[n])),t}})),PF=i(((e,n)=>{let{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:a,Uint8Array:o}=xF(),{Buffer:s}=t(`buffer`),{inspect:c}=EF();n.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return``;let t=this.head,n=``+t.data;for(;(t=t.next)!==null;)n+=e+t.data;return n}concat(e){if(this.length===0)return s.alloc(0);let t=s.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)a(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(ea.length)t+=a,e-=a.length;else{e===a.length?(t+=a,++i,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(a,0,e),this.head=n,n.data=r(a,e));break}++i}while((n=n.next)!==null);return this.length-=i,t}_getBuffer(e){let t=s.allocUnsafe(e),n=e,r=this.head,i=0;do{let s=r.data;if(e>s.length)a(t,s,n-e),e-=s.length;else{e===s.length?(a(t,s,n-e),++i,r.next?this.head=r.next:this.head=this.tail=null):(a(t,new o(s.buffer,s.byteOffset,e),n-e),this.head=r,r.data=s.slice(e));break}++i}while((r=r.next)!==null);return this.length-=i,t}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){return c(this,{...t,depth:0,customInspect:!1})}}})),FF=i(((e,t)=>{let{MathFloor:n,NumberIsInteger:r}=xF(),{validateInteger:i}=DF(),{ERR_INVALID_ARG_VALUE:a}=CF().codes,o=16*1024,s=16;function c(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function l(e){return e?s:o}function u(e,t){i(t,`value`,0),e?s=t:o=t}function d(e,t,i,o){let s=c(t,o,i);if(s!=null){if(!r(s)||s<0)throw new a(o?`options.${i}`:`options.highWaterMark`,s);return n(s)}return l(e.objectMode)}t.exports={getHighWaterMark:d,getDefaultHighWaterMark:l,setDefaultHighWaterMark:u}})),IF=i(((e,n)=>{ -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),LF=i((e=>{var t=IF().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),RF=i(((e,n)=>{let r=OF(),{PromisePrototypeThen:i,SymbolAsyncIterator:a,SymbolIterator:o}=xF(),{Buffer:s}=t(`buffer`),{ERR_INVALID_ARG_TYPE:c,ERR_STREAM_NULL_VALUES:l}=CF().codes;function u(e,t,n){let u;if(typeof t==`string`||t instanceof s)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let d;if(t&&t[a])d=!0,u=t[a]();else if(t&&t[o])d=!1,u=t[o]();else throw new c(`iterable`,[`Iterable`],t);let f=new e({objectMode:!0,highWaterMark:1,...n}),p=!1;f._read=function(){p||(p=!0,h())},f._destroy=function(e,t){i(m(e),()=>r.nextTick(t,e),n=>r.nextTick(t,n||e))};async function m(e){let t=e!=null,n=typeof u.throw==`function`;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if(typeof u.return==`function`){let{value:e}=await u.return();await e}}async function h(){for(;;){try{let{value:e,done:t}=d?await u.next():u.next();if(t)f.push(null);else{let t=e&&typeof e.then==`function`?await e:e;if(t===null)throw p=!1,new l;if(f.push(t))continue;p=!1}}catch(e){f.destroy(e)}break}}return f}n.exports=u})),zF=i(((e,n)=>{let r=OF(),{ArrayPrototypeIndexOf:i,NumberIsInteger:a,NumberIsNaN:o,NumberParseInt:s,ObjectDefineProperties:c,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:d,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:m,Symbol:h}=xF();n.exports=H,H.ReadableState=te;let{EventEmitter:g}=t(`events`),{Stream:v,prependListener:y}=MF(),{Buffer:b}=t(`buffer`),{addAbortSignal:x}=NF(),S=AF(),C=EF().debuglog(`stream`,e=>{C=e}),w=PF(),T=jF(),{getHighWaterMark:E,getDefaultHighWaterMark:D}=FF(),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:A,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N},AbortError:P}=CF(),{validateObject:F}=DF(),I=h(`kPaused`),{StringDecoder:L}=LF(),R=RF();u(H.prototype,v.prototype),u(H,v);let z=()=>{},{errorOrDestroy:ee}=T,B=65536;function V(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}c(te.prototype,{objectMode:V(1),ended:V(2),endEmitted:V(4),reading:V(8),constructed:V(16),sync:V(32),needReadable:V(64),emittedReadable:V(128),readableListening:V(256),resumeScheduled:V(512),errorEmitted:V(1024),emitClose:V(2048),autoDestroy:V(4096),destroyed:V(8192),closed:V(16384),closeEmitted:V(32768),multiAwaitDrain:V(B),readingMore:V(131072),dataEmitted:V(262144)});function te(e,t,n){typeof n!=`boolean`&&(n=t instanceof HF()),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?E(this,e,`readableHighWaterMark`,n):D(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[I]=null,e&&e.emitClose===!1&&(this.state&=-2049),e&&e.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new L(e.encoding),this.encoding=e.encoding)}function H(e){if(!(this instanceof H))return new H(e);let t=this instanceof HF();this._readableState=new te(e,this,t),e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&!t&&x(e.signal,this)),v.call(this,e),T.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}H.prototype.destroy=T.destroy,H.prototype._undestroy=T.undestroy,H.prototype._destroy=function(e,t){t(e)},H.prototype[g.captureRejectionSymbol]=function(e){this.destroy(e)},H.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new P,this.destroy(e)),new d((t,n)=>S(this,r=>r&&r!==e?n(r):t(null)))},H.prototype.push=function(e,t){return ne(this,e,t,!1)},H.prototype.unshift=function(e,t){return ne(this,e,t,!0)};function ne(e,t,n,r){C(`readableAddChunk`,t);let i=e._readableState,a;if(i.state&1||(typeof t==`string`?(n||=i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=b.from(t,n).toString(i.encoding):(t=b.from(t,n),n=``))):t instanceof b?n=``:v._isUint8Array(t)?(t=v._uint8ArrayToBuffer(t),n=``):t!=null&&(a=new k(`chunk`,[`string`,`Buffer`,`Uint8Array`],t))),a)ee(e,a);else if(t===null)i.state&=-9,U(e,i);else if(i.state&1||t&&t.length>0)if(r)if(i.state&4)ee(e,new N);else if(i.destroyed||i.errored)return!1;else re(e,i,t,!0);else if(i.ended)ee(e,new M);else if(i.destroyed||i.errored)return!1;else i.state&=-9,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?re(e,i,t,!1):ce(e,i)):re(e,i,t,!1);else r||(i.state&=-9,ce(e,i));return!i.ended&&(i.length0?(t.state&B?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.state&64&&oe(e)),ce(e,t)}H.prototype.isPaused=function(){let e=this._readableState;return e[I]===!0||e.flowing===!1},H.prototype.setEncoding=function(e){let t=new L(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=``;for(let e of n)r+=t.write(e);return n.clear(),r!==``&&n.push(r),this._readableState.length=r.length,this};function ie(e){if(e>1073741824)throw new j(`size`,`<= 1GiB`,e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function ae(e,t){return e<=0||t.length===0&&t.ended?0:t.state&1?1:o(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}H.prototype.read=function(e){C(`read`,e),e===void 0?e=NaN:a(e)||(e=s(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=ie(e)),e!==0&&(t.state&=-129),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return C(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?ye(this):oe(this),null;if(e=ae(e,t),e===0&&t.ended)return t.length===0&&ye(this),null;let r=(t.state&64)!=0;if(C(`need readable`,r),(t.length===0||t.length-e0?ve(e,t):null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ye(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,i)),i};function U(e,t){if(C(`onEofChunk`),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?oe(e):(t.needReadable=!1,t.emittedReadable=!0,se(e))}}function oe(e){let t=e._readableState;C(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(C(`emitReadable`,t.flowing),t.emittedReadable=!0,r.nextTick(se,e))}function se(e){let t=e._readableState;C(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,he(e)}function ce(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(le,e,t))}function le(e,t){for(;!t.reading&&!t.ended&&(t.length1&&i.pipes.includes(e)&&(C(`false write response, pause`,i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),n.pause()),c||(c=ue(n,e),e.on(`drain`,c))}n.on(`data`,p);function p(t){C(`ondata`);let n=e.write(t);C(`dest.write`,n),n===!1&&d()}function m(t){if(C(`onerror`,t),v(),e.removeListener(`error`,m),e.listenerCount(`error`)===0){let n=e._writableState||e._readableState;n&&!n.errorEmitted?ee(e,t):e.emit(`error`,t)}}y(e,`error`,m);function h(){e.removeListener(`finish`,g),v()}e.once(`close`,h);function g(){C(`onfinish`),e.removeListener(`close`,h),v()}e.once(`finish`,g);function v(){C(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),e.writableNeedDrain===!0?d():i.flowing||(C(`pipe resume`),n.resume()),e};function ue(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(C(`pipeOnDrain`,1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(C(`pipeOnDrain`,n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount(`data`)&&e.resume()}}H.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t0,i.flowing!==!1&&this.resume()):e===`readable`&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,C(`on readable`,i.length,i.reading),i.length?oe(this):i.reading||r.nextTick(fe,this)),n},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(e,t){let n=v.prototype.removeListener.call(this,e,t);return e===`readable`&&r.nextTick(de,this),n},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(e){let t=v.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&r.nextTick(de,this),t};function de(e){let t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&t[I]===!1?t.flowing=!0:e.listenerCount(`data`)>0?e.resume():t.readableListening||(t.flowing=null)}function fe(e){C(`readable nexttick read 0`),e.read(0)}H.prototype.resume=function(){let e=this._readableState;return e.flowing||(C(`resume`),e.flowing=!e.readableListening,pe(this,e)),e[I]=!1,this};function pe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(me,e,t))}function me(e,t){C(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),he(e),t.flowing&&!t.reading&&e.read(0)}H.prototype.pause=function(){return C(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(C(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState[I]=!0,this};function he(e){let t=e._readableState;for(C(`flow`,t.flowing);t.flowing&&e.read()!==null;);}H.prototype.wrap=function(e){let t=!1;e.on(`data`,n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on(`end`,()=>{this.push(null)}),e.on(`error`,e=>{ee(this,e)}),e.on(`close`,()=>{this.destroy()}),e.on(`destroy`,()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=l(e);for(let t=1;t{i=e?O(i,e):null,n(),n=z});try{for(;;){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(i)throw i;else if(i===null)return;else await new d(r)}}catch(e){throw i=O(i,e),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?T.destroyer(e,null):(e.off(`readable`,r),a())}}c(H.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),c(te.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[I]!==!1},set(e){this[I]=!!e}}}),H._fromList=ve;function ve(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function ye(e){let t=e._readableState;C(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(W,t,e))}function W(e,t){if(C(`endReadableNT`,e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(`end`),t.writable&&t.allowHalfOpen===!1)r.nextTick(be,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function be(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}H.from=function(e,t){return R(H,e,t)};let xe;function Se(){return xe===void 0&&(xe={}),xe}H.fromWeb=function(e,t){return Se().newStreamReadableFromReadableStream(e,t)},H.toWeb=function(e,t){return Se().newReadableStreamFromStreamReadable(e,t)},H.wrap=function(e,t){return new H({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){T.destroyer(e,t),n(t)}}).wrap(e)}})),BF=i(((e,n)=>{let r=OF(),{ArrayPrototypeSlice:i,Error:a,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:s,ObjectDefineProperties:c,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:d,SymbolHasInstance:f}=xF();n.exports=F,F.WritableState=N;let{EventEmitter:p}=t(`events`),m=MF().Stream,{Buffer:h}=t(`buffer`),g=jF(),{addAbortSignal:v}=NF(),{getHighWaterMark:y,getDefaultHighWaterMark:b}=FF(),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:C,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=CF().codes,{errorOrDestroy:A}=g;l(F.prototype,m.prototype),l(F,m);function j(){}let M=d(`kOnFinished`);function N(e,t,n){typeof n!=`boolean`&&(n=t instanceof HF()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?y(this,e,`writableHighWaterMark`,n):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=ee.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,P(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function P(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}N.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},s(N.prototype,`bufferedRequestCount`,{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function F(e){let t=this instanceof HF();if(!t&&!o(F,this))return new F(e);this._writableState=new N(e,this,t),e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&v(e.signal,this)),m.call(this,e),g.construct(this,()=>{let e=this._writableState;e.writing||H(this,e),ae(this,e)})}s(F,f,{__proto__:null,value:function(e){return o(this,e)?!0:this===F?e&&e._writableState instanceof N:!1}}),F.prototype.pipe=function(){A(this,new w)};function I(e,t,n,i){let a=e._writableState;if(typeof n==`function`)i=n,n=a.defaultEncoding;else{if(!n)n=a.defaultEncoding;else if(n!==`buffer`&&!h.isEncoding(n))throw new k(n);typeof i!=`function`&&(i=j)}if(t===null)throw new D;if(!a.objectMode)if(typeof t==`string`)a.decodeStrings!==!1&&(t=h.from(t,n),n=`buffer`);else if(t instanceof h)n=`buffer`;else if(m._isUint8Array(t))t=m._uint8ArrayToBuffer(t),n=`buffer`;else throw new x(`chunk`,[`string`,`Buffer`,`Uint8Array`],t);let o;return a.ending?o=new O:a.destroyed&&(o=new T(`write`)),o?(r.nextTick(i,o),A(e,o,!0),o):(a.pendingcb++,L(e,a,t,n,i))}F.prototype.write=function(e,t,n){return I(this,e,t,n)===!0},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||H(this,e))},F.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=u(e)),!h.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this};function L(e,t,n,r,i){let a=t.objectMode?1:n.length;t.length+=a;let o=t.lengthn.bufferedIndex&&H(e,n),i?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===a?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:a,stream:e,state:n},r.nextTick(B,n.afterWriteTickInfo)):V(e,n,1,a))}function B({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,V(e,t,n,r)}function V(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`));n-- >0;)t.pendingcb--,r();t.destroyed&&te(t),ae(e,t)}function te(e){if(e.writing)return;for(let t=e.bufferedIndex;t1&&e._writev){t.pendingcb-=o-1;let r=t.allNoop?j:e=>{for(let t=s;t256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}F.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new S(`_write()`)},F.prototype._writev=null,F.prototype.end=function(e,t,n){let i=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null);let o;if(e!=null){let n=I(this,e,t);n instanceof a&&(o=n)}return i.corked&&(i.corked=1,this.uncork()),o||(!i.errored&&!i.ending?(i.ending=!0,ae(this,i,!0),i.ended=!0):i.finished?o=new E(`end`):i.destroyed&&(o=new T(`end`))),typeof n==`function`&&(o||i.finished?r.nextTick(n,o):i[M].push(n)),this};function ne(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function re(e,t){let n=!1;function i(i){if(n){A(e,i??C());return}if(n=!0,t.pendingcb--,i){let n=t[M].splice(0);for(let e=0;e{ne(t)?U(e,t):t.pendingcb--},e,t)):ne(t)&&(t.pendingcb++,U(e,t))))}function U(e,t){t.pendingcb--,t.finished=!0;let n=t[M].splice(0);for(let e=0;e{let r=OF(),i=t(`buffer`),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d,isReadableStream:f,isWritableStream:p}=kF(),m=AF(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:v}}=CF(),{destroyer:y}=jF(),b=HF(),x=zF(),S=BF(),{createDeferredPromise:C}=EF(),w=RF(),T=globalThis.Blob||i.Blob,E=T===void 0?function(e){return!1}:function(e){return e instanceof T},D=globalThis.AbortController||TF().AbortController,{FunctionPrototypeCall:O}=xF();var k=class extends b{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function e(t,n){if(d(t))return t;if(l(t))return j({readable:t});if(u(t))return j({writable:t});if(c(t))return j({writable:!1,readable:!1});if(f(t))return j({readable:x.fromWeb(t)});if(p(t))return j({writable:S.fromWeb(t)});if(typeof t==`function`){let{value:e,write:i,final:a,destroy:o}=A(t);if(s(e))return w(k,e,{objectMode:!0,write:i,final:a,destroy:o});let c=e?.then;if(typeof c==`function`){let t,n=O(c,e,e=>{if(e!=null)throw new v(`nully`,`body`,e)},e=>{y(t,e)});return t=new k({objectMode:!0,readable:!1,write:i,final(e){a(async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}})},destroy:o})}throw new v(`Iterable, AsyncIterable or AsyncFunction`,n,e)}if(E(t))return e(t.arrayBuffer());if(s(t))return w(k,t,{objectMode:!0,writable:!1});if(f(t?.readable)&&p(t?.writable))return k.fromWeb(t);if(typeof t?.writable==`object`||typeof t?.readable==`object`)return j({readable:t!=null&&t.readable?l(t?.readable)?t?.readable:e(t.readable):void 0,writable:t!=null&&t.writable?u(t?.writable)?t?.writable:e(t.writable):void 0});let i=t?.then;if(typeof i==`function`){let e;return O(i,t,t=>{t!=null&&e.push(t),e.push(null)},t=>{y(e,t)}),e=new k({objectMode:!0,writable:!1,read(){}})}throw new g(n,[`Blob`,`ReadableStream`,`WritableStream`,`Stream`,`Iterable`,`AsyncIterable`,`Function`,`{ readable, writable } pair`,`Promise`],t)};function A(e){let{promise:t,resolve:n}=C(),i=new D,a=i.signal;return{value:e((async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:s}=await e;if(r.nextTick(s),o)return;if(a.aborted)throw new h(void 0,{cause:a.reason});({promise:t,resolve:n}=C()),yield i}})(),{signal:a}),write(e,t,r){let i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){let t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function j(e){let t=e.readable&&typeof e.readable.read!=`function`?x.wrap(e.readable):e.readable,n=e.writable,r=!!a(t),i=!!o(n),s,c,l,u,d;function f(e){let t=u;u=null,t?t(e):e&&d.destroy(e)}return d=new k({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(m(n,e=>{i=!1,e&&y(t,e),f(e)}),d._write=function(e,t,r){n.write(e,t)?r():s=r},d._final=function(e){n.end(),c=e},n.on(`drain`,function(){if(s){let e=s;s=null,e()}}),n.on(`finish`,function(){if(c){let e=c;c=null,e()}})),r&&(m(t,e=>{r=!1,e&&y(t,e),f(e)}),t.on(`readable`,function(){if(l){let e=l;l=null,e()}}),t.on(`end`,function(){d.push(null)}),d._read=function(){for(;;){let e=t.read();if(e===null){l=d._read;return}if(!d.push(e))return}}),d._destroy=function(e,r){!e&&u!==null&&(e=new h),l=null,s=null,c=null,u===null?r(e):(u=r,y(n,e),y(t,e))},d}})),HF=i(((e,t)=>{let{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=xF();t.exports=c;let o=zF(),s=BF();a(c.prototype,o.prototype),a(c,o);{let e=i(s.prototype);for(let t=0;t{let{ObjectSetPrototypeOf:n,Symbol:r}=xF();t.exports=c;let{ERR_METHOD_NOT_IMPLEMENTED:i}=CF().codes,a=HF(),{getHighWaterMark:o}=FF();n(c.prototype,a.prototype),n(c,a);let s=r(`kCallback`);function c(e){if(!(this instanceof c))return new c(e);let t=e?o(this,e,`readableHighWaterMark`,!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function l(e){typeof this._flush==`function`&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function u(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new i(`_transform()`)},c.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,a=r.length;this._transform(e,t,(e,t)=>{if(e){n(e);return}t!=null&&this.push(t),i.ended||a===r.length||r.length{let{ObjectSetPrototypeOf:n}=xF();t.exports=i;let r=UF();n(i.prototype,r.prototype),n(i,r);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),GF=i(((e,t)=>{let n=OF(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a,SymbolDispose:o}=xF(),s=AF(),{once:c}=EF(),l=jF(),u=HF(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:h,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=CF(),{validateFunction:y,validateAbortSignal:b}=DF(),{isIterable:x,isReadable:S,isReadableNodeStream:C,isNodeStream:w,isTransformStream:T,isWebStream:E,isReadableStream:D,isReadableFinished:O}=kF(),k=globalThis.AbortController||TF().AbortController,A,j,M;function N(e,t,n){let r=!1;return e.on(`close`,()=>{r=!0}),{destroy:t=>{r||(r=!0,l.destroyer(e,t||new h(`pipe`)))},cleanup:s(e,{readable:t,writable:n},e=>{r=!e})}}function P(e){return y(e[e.length-1],`streams[stream.length - 1]`),e.pop()}function F(e){if(x(e))return e;if(C(e))return I(e);throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],e)}async function*I(e){j||=zF(),yield*j.prototype[a].call(e)}async function L(e,t,n,{end:r}){let a,o=null,c=e=>{if(e&&(a=e),o){let e=o;o=null,e()}},l=()=>new i((e,t)=>{a?t(a):o=()=>{a?t(a):e()}});t.on(`drain`,c);let u=s(t,{readable:!1},c);try{t.writableNeedDrain&&await l();for await(let n of e)t.write(n)||await l();r&&(t.end(),await l()),n()}catch(e){n(a===e?e:d(a,e))}finally{u(),t.off(`drain`,c)}}async function R(e,t,n,{end:r}){T(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(e){try{await i.abort(e),n(e)}catch(e){n(e)}}}function z(...e){return ee(e,c(P(e)))}function ee(e,t,i){if(e.length===1&&r(e[0])&&(e=e[0]),e.length<2)throw new m(`streams`);let a=new k,s=a.signal,c=i?.signal,l=[];b(c,`options.signal`);function d(){I(new v)}M||=EF().addAbortListener;let h;c&&(h=M(c,d));let g,y,O=[],j=0;function P(e){I(e,--j===0)}function I(e,r){var i;if(e&&(!g||g.code===`ERR_STREAM_PREMATURE_CLOSE`)&&(g=e),!(!g&&!r)){for(;O.length;)O.shift()(g);(i=h)==null||i[o](),a.abort(),r&&(g||l.forEach(e=>e()),n.nextTick(t,g,y))}}let z;for(let t=0;t0,c=a||i?.end!==!1,d=t===e.length-1;if(w(r)){if(c){let{destroy:e,cleanup:t}=N(r,a,o);O.push(e),S(r)&&d&&l.push(t)}function e(e){e&&e.name!==`AbortError`&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`&&P(e)}r.on(`error`,e),S(r)&&d&&l.push(()=>{r.removeListener(`error`,e)})}if(t===0)if(typeof r==`function`){if(z=r({signal:s}),!x(z))throw new p(`Iterable, AsyncIterable or Stream`,`source`,z)}else z=x(r)||C(r)||T(r)?r:u.from(r);else if(typeof r==`function`)if(z=T(z)?F(z?.readable):F(z),z=r(z,{signal:s}),a){if(!x(z,!0))throw new p(`AsyncIterable`,`transform[${t-1}]`,z)}else{A||=WF();let e=new A({objectMode:!0}),t=z?.then;if(typeof t==`function`)j++,t.call(z,t=>{y=t,t!=null&&e.write(t),c&&e.end(),n.nextTick(P)},t=>{e.destroy(t),n.nextTick(P,t)});else if(x(z,!0))j++,L(z,e,P,{end:c});else if(D(z)||T(z)){let t=z.readable||z;j++,L(t,e,P,{end:c})}else throw new p(`AsyncIterable or Promise`,`destination`,z);z=e;let{destroy:r,cleanup:i}=N(z,!1,!0);O.push(r),d&&l.push(i)}else if(w(r)){if(C(z)){j+=2;let e=B(z,r,P,{end:c});S(r)&&d&&l.push(e)}else if(T(z)||D(z)){let e=z.readable||z;j++,L(e,r,P,{end:c})}else if(x(z))j++,L(z,r,P,{end:c});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`,`ReadableStream`,`TransformStream`],z);z=r}else if(E(r)){if(C(z))j++,R(F(z),r,P,{end:c});else if(D(z)||x(z))j++,R(z,r,P,{end:c});else if(T(z))j++,R(z.readable,r,P,{end:c});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`,`ReadableStream`,`TransformStream`],z);z=r}else z=u.from(r)}return(s!=null&&s.aborted||c!=null&&c.aborted)&&n.nextTick(d),z}function B(e,t,r,{end:i}){let a=!1;if(t.on(`close`,()=>{a||r(new g)}),e.pipe(t,{end:!1}),i){function r(){a=!0,t.end()}O(e)?n.nextTick(r):e.once(`end`,r)}else r();return s(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&t.code===`ERR_STREAM_PREMATURE_CLOSE`&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once(`end`,r).once(`error`,r):r(t)}),s(t,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:ee,pipeline:z}})),KF=i(((e,t)=>{let{pipeline:n}=GF(),r=HF(),{destroyer:i}=jF(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:c,isTransformStream:l,isWritableStream:u,isReadableStream:d}=kF(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=CF(),h=AF();t.exports=function(...e){if(e.length===0)throw new m(`streams`);if(e.length===1)return r.from(e[0]);let t=[...e];if(typeof e[0]==`function`&&(e[0]=r.from(e[0])),typeof e[e.length-1]==`function`){let t=e.length-1;e[t]=r.from(e[t])}for(let n=0;n0&&!(s(e[n])||u(e[n])||l(e[n])))throw new p(`streams[${n}]`,t[n],`must be writable`)}let g,v,y,b,x;function S(e){let t=b;b=null,t?t(e):e?x.destroy(e):!E&&!T&&x.destroy()}let C=e[0],w=n(e,S),T=!!(s(C)||u(C)||l(C)),E=!!(o(w)||d(w)||l(w));if(x=new r({writableObjectMode:!!(C!=null&&C.writableObjectMode),readableObjectMode:!!(w!=null&&w.readableObjectMode),writable:T,readable:E}),T){if(a(C))x._write=function(e,t,n){C.write(e,t)?n():g=n},x._final=function(e){C.end(),v=e},C.on(`drain`,function(){if(g){let e=g;g=null,e()}});else if(c(C)){let e=(l(C)?C.writable:C).getWriter();x._write=async function(t,n,r){try{await e.ready,e.write(t).catch(()=>{}),r()}catch(e){r(e)}},x._final=async function(t){try{await e.ready,e.close().catch(()=>{}),v=t}catch(e){t(e)}}}h(l(w)?w.readable:w,()=>{if(v){let e=v;v=null,e()}})}if(E){if(a(w))w.on(`readable`,function(){if(y){let e=y;y=null,e()}}),w.on(`end`,function(){x.push(null)}),x._read=function(){for(;;){let e=w.read();if(e===null){y=x._read;return}if(!x.push(e))return}};else if(c(w)){let e=(l(w)?w.readable:w).getReader();x._read=async function(){for(;;)try{let{value:t,done:n}=await e.read();if(!x.push(t))return;if(n){x.push(null);return}}catch{return}}}}return x._destroy=function(e,t){!e&&b!==null&&(e=new f),y=null,g=null,v=null,b===null?t(e):(b=t,a(w)&&i(w,e))},x}})),qF=i(((e,t)=>{let n=globalThis.AbortController||TF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=CF(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=DF(),d=xF().Symbol(`kWeak`),f=xF().Symbol(`kResistStopPropagation`),{finished:p}=AF(),m=KF(),{addAbortSignalNoValidate:h}=NF(),{isWritable:g,isNodeStream:v}=kF(),{deprecate:y}=EF(),{ArrayPrototypePush:b,Boolean:x,MathFloor:S,Number:C,NumberIsNaN:w,Promise:T,PromiseReject:E,PromiseResolve:D,PromisePrototypeThen:O,Symbol:k}=xF(),A=k(`kEmpty`),j=k(`kEof`);function M(e,t){if(t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),v(e)&&!g(e))throw new r(`stream`,e,`must be writable`);let n=m(this,e);return t!=null&&t.signal&&h(t.signal,n),n}function N(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`);let n=1;t?.concurrency!=null&&(n=S(t.concurrency));let r=n-1;return t?.highWaterMark!=null&&(r=S(t.highWaterMark)),l(n,`options.concurrency`,1),l(r,`options.highWaterMark`,0),r+=n,async function*(){let i=EF().AbortSignalAny([t?.signal].filter(x)),a=this,o=[],c={signal:i},l,u,d=!1,f=0;function p(){d=!0,m()}function m(){--f,h()}function h(){u&&!d&&f=r||f>=n)&&await new T(e=>{u=e})}o.push(j)}catch(e){let t=E(e);O(t,m,p),o.push(t)}finally{d=!0,l&&=(l(),null)}}g();try{for(;;){for(;o.length>0;){let e=await o[0];if(e===j)return;if(i.aborted)throw new s;e!==A&&(yield e),o.shift(),h()}await new T(e=>{l=e})}}finally{d=!0,u&&=(u(),null)}}.call(this)}function P(e=void 0){return e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`),async function*(){let t=0;for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)}async function F(e,t=void 0){for await(let n of z.call(this,e,t))return!0;return!1}async function I(e,t=void 0){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);return!await F.call(this,async(...t)=>!await e(...t),t)}async function L(e,t){for await(let n of z.call(this,e,t))return n}async function R(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n),A}for await(let e of N.call(this,n,t));}function z(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n)?t:A}return N.call(this,n,t)}var ee=class extends a{constructor(){super(`reduce`),this.message=`Reduce of an empty stream requires an initial value`}};async function B(e,t,r){var a;if(typeof e!=`function`)throw new i(`reducer`,[`Function`,`AsyncFunction`],e);r!=null&&u(r,`options`),r?.signal!=null&&c(r.signal,`options.signal`);let o=arguments.length>1;if(r!=null&&(a=r.signal)!=null&&a.aborted){let e=new s(void 0,{cause:r.signal.reason});throw this.once(`error`,()=>{}),await p(this.destroy(e)),e}let l=new n,m=l.signal;if(r!=null&&r.signal){let e={once:!0,[d]:this,[f]:!0};r.signal.addEventListener(`abort`,()=>l.abort(),e)}let h=!1;try{for await(let n of this){var g;if(h=!0,r!=null&&(g=r.signal)!=null&&g.aborted)throw new s;o?t=await e(t,n,{signal:m}):(t=n,o=!0)}if(!h&&!o)throw new ee}finally{l.abort()}return t}async function V(e){e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`);let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s(void 0,{cause:e.signal.reason});b(t,r)}return t}function te(e,t){let n=N.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)}function H(e){if(e=C(e),w(e))return 0;if(e<0)throw new o(`number`,`>= 0`,e);return e}function ne(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=H(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)}function re(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=H(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;if(e-- >0&&(yield n),e<=0)return}}.call(this)}t.exports.streamReturningOperators={asIndexedPairs:y(P,`readable.asIndexedPairs will be removed in a future version.`),drop:ne,filter:z,flatMap:te,map:N,take:re,compose:M},t.exports.promiseReturningOperators={every:I,forEach:R,reduce:B,toArray:V,some:F,find:L}})),JF=i(((e,t)=>{let{ArrayPrototypePop:n,Promise:r}=xF(),{isIterable:i,isNodeStream:a,isWebStream:o}=kF(),{pipelineImpl:s}=GF(),{finished:c}=AF();YF();function l(...e){return new r((t,r)=>{let c,l,u=e[e.length-1];if(u&&typeof u==`object`&&!a(u)&&!i(u)&&!o(u)){let t=n(e);c=t.signal,l=t.end}s(e,(e,n)=>{e?r(e):t(n)},{signal:c,end:l})})}t.exports={finished:c,pipeline:l}})),YF=i(((e,n)=>{let{Buffer:r}=t(`buffer`),{ObjectDefineProperty:i,ObjectKeys:a,ReflectApply:o}=xF(),{promisify:{custom:s}}=EF(),{streamReturningOperators:c,promiseReturningOperators:l}=qF(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=CF(),d=KF(),{setDefaultHighWaterMark:f,getDefaultHighWaterMark:p}=FF(),{pipeline:m}=GF(),{destroyer:h}=jF(),g=AF(),v=JF(),y=kF(),b=n.exports=MF().Stream;b.isDestroyed=y.isDestroyed,b.isDisturbed=y.isDisturbed,b.isErrored=y.isErrored,b.isReadable=y.isReadable,b.isWritable=y.isWritable,b.Readable=zF();for(let e of a(c)){let t=c[e];function n(...e){if(new.target)throw u();return b.Readable.from(o(t,this,e))}i(n,`name`,{__proto__:null,value:t.name}),i(n,`length`,{__proto__:null,value:t.length}),i(b.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of a(l)){let t=l[e];function n(...e){if(new.target)throw u();return o(t,this,e)}i(n,`name`,{__proto__:null,value:t.name}),i(n,`length`,{__proto__:null,value:t.length}),i(b.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}b.Writable=BF(),b.Duplex=HF(),b.Transform=UF(),b.PassThrough=WF(),b.pipeline=m;let{addAbortSignal:x}=NF();b.addAbortSignal=x,b.finished=g,b.destroy=h,b.compose=d,b.setDefaultHighWaterMark=f,b.getDefaultHighWaterMark=p,i(b,`promises`,{__proto__:null,configurable:!0,enumerable:!0,get(){return v}}),i(m,s,{__proto__:null,enumerable:!0,get(){return v.pipeline}}),i(g,s,{__proto__:null,enumerable:!0,get(){return v.finished}}),b.Stream=b,b._isUint8Array=function(e){return e instanceof Uint8Array},b._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}})),XF=i(((e,n)=>{let r=t(`stream`);if(r&&process.env.READABLE_STREAM===`disable`){let e=r.promises;n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return e}}),n.exports.Stream=r.Stream}else{let e=YF(),t=JF(),r=e.Readable.destroy;n.exports=e.Readable,n.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,n.exports._isUint8Array=e._isUint8Array,n.exports.isDisturbed=e.isDisturbed,n.exports.isErrored=e.isErrored,n.exports.isReadable=e.isReadable,n.exports.Readable=e.Readable,n.exports.Writable=e.Writable,n.exports.Duplex=e.Duplex,n.exports.Transform=e.Transform,n.exports.PassThrough=e.PassThrough,n.exports.addAbortSignal=e.addAbortSignal,n.exports.finished=e.finished,n.exports.destroy=e.destroy,n.exports.destroy=r,n.exports.pipeline=e.pipeline,n.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),n.exports.Stream=e.Stream}n.exports.default=n.exports})),ZF=i(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n{var n=IP(),r=sF(),i=cF(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),$F=i(((e,t)=>{var n=ZF(),r=QF();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),eI=i(((e,t)=>{var n=$F();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),tI=i(((e,t)=>{t.exports=qP()(Object,`create`)})),nI=i(((e,t)=>{var n=tI();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),rI=i(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),iI=i(((e,t)=>{var n=tI(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),aI=i(((e,t)=>{var n=tI(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),oI=i(((e,t)=>{var n=tI(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),sI=i(((e,t)=>{var n=nI(),r=rI(),i=iI(),a=aI(),o=oI();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{function n(){this.__data__=[],this.size=0}t.exports=n})),lI=i(((e,t)=>{var n=$P();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),uI=i(((e,t)=>{var n=lI(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),dI=i(((e,t)=>{var n=lI();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),fI=i(((e,t)=>{var n=lI();function r(e){return n(this.__data__,e)>-1}t.exports=r})),pI=i(((e,t)=>{var n=lI();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),mI=i(((e,t)=>{var n=cI(),r=uI(),i=dI(),a=fI(),o=pI();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{t.exports=qP()(FP(),`Map`)})),gI=i(((e,t)=>{var n=sI(),r=mI(),i=hI();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),_I=i(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),vI=i(((e,t)=>{var n=_I();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),yI=i(((e,t)=>{var n=vI();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),bI=i(((e,t)=>{var n=vI();function r(e){return n(this,e).get(e)}t.exports=r})),xI=i(((e,t)=>{var n=vI();function r(e){return n(this,e).has(e)}t.exports=r})),SI=i(((e,t)=>{var n=vI();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),CI=i(((e,t)=>{var n=gI(),r=yI(),i=bI(),a=xI(),o=SI();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),TI=i(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),EI=i(((e,t)=>{var n=CI(),r=wI(),i=TI();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{function n(e){return e!==e}t.exports=n})),kI=i(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r{var n=DI(),r=OI(),i=kI();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),jI=i(((e,t)=>{var n=AI();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),MI=i(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{function n(e,t){return e.has(t)}t.exports=n})),FI=i(((e,t)=>{var n=EI(),r=jI(),i=MI(),a=NI(),o=fF(),s=PI(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++d{var n=tF(),r=aF();function i(e){return r(e)&&n(e)}t.exports=i})),LI=i(((e,t)=>{var n=FI(),r=$F(),i=QP(),a=II();t.exports=i(function(e,t){return a(e)?n(e,r(t,1,a,!0)):[]})})),RI=i(((e,t)=>{t.exports=qP()(FP(),`Set`)})),zI=i(((e,t)=>{function n(){}t.exports=n})),BI=i(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),VI=i(((e,t)=>{var n=RI(),r=zI(),i=BI();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),HI=i(((e,t)=>{var n=EI(),r=jI(),i=MI(),a=PI(),o=VI(),s=BI(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u{var n=$F(),r=QP(),i=HI(),a=II();t.exports=r(function(e){return i(n(e,1,a,!0))})})),WI=i(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),GI=i(((e,t)=>{t.exports=WI()(Object.getPrototypeOf,Object)})),KI=i(((e,t)=>{var n=zP(),r=GI(),i=aF(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),qI=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0,e.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)}})),JI=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;let t={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},n=e=>e.replace(/[[\]\\-]/g,`\\$&`),r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),i=e=>e.join(``);e.parseClass=(e,a)=>{let o=a;if(e.charAt(o)!==`[`)throw Error(`not in a brace expression`);let s=[],c=[],l=o+1,u=!1,d=!1,f=!1,p=!1,m=o,h=``;WHILE:for(;lh?s.push(n(h)+`-`+n(r)):r===h&&s.push(n(r)),h=``,l++;continue}if(e.startsWith(`-]`,l+1)){s.push(n(r+`-`)),l+=2;continue}if(e.startsWith(`-`,l+1)){h=r,l+=2;continue}s.push(n(r)),l++}if(m{Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0,e.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`)})),XI=i((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;let n=JI(),r=YI(),i=new Set([`!`,`?`,`+`,`*`,`@`]),a=e=>i.has(e),o=e=>a(e.type),s=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),c=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),l=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),u=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),d=`(?!\\.)`,f=new Set([`[`,`.`]),p=new Set([`..`,`.`]),m=new Set(`().*{}+?[]^$\\!`),h=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),g=`[^/]+?`;var v=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let n=0;n{let[r,a,o,s]=typeof n==`string`?t.#C(n,this.#t,i):n.toRegExpSource(e);return this.#t=this.#t||o,this.#n=this.#n||s,r}).join(``),o=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&p.has(this.#r[0]))){let t=f,r=n&&t.has(a.charAt(0))||a.startsWith(`\\.`)&&t.has(a.charAt(2))||a.startsWith(`\\.\\.`)&&t.has(a.charAt(4)),i=!n&&!e&&t.has(a.charAt(0));o=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:i?d:``}let s=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(s=`(?:$|\\/)`),[o+a+s,(0,r.unescape)(a),this.#t=!!this.#t,this.#n]}let i=this.type===`*`||this.type===`+`,a=this.type===`!`?`(?:(?!(?:`:`(?:`,s=this.#S(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,(0,r.unescape)(this.toString()),!1,!1]}let c=!i||e||n?``:this.#S(!0);c===s&&(c=``),c&&(s=`(?:${s})(?:${c})*?`);let l=``;if(this.type===`!`&&this.#u)l=(this.isStart()&&!n?d:``)+g;else{let t=this.type===`!`?`))`+(this.isStart()&&!n&&!e?d:``)+`[^/]*?)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&c?`)`:this.type===`*`&&c?`)?`:`)${this.type}`;l=a+s+t}return[l,(0,r.unescape)(s),this.#t=!!this.#t,this.#n]}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,i=!1){let a=!1,o=``,s=!1,c=!1;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0,e.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`)})),QI=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;let n=t(pd()),r=qI(),i=XI(),a=ZI(),o=YI();e.minimatch=(e,t,n={})=>((0,r.assertValidPattern)(t),!n.nocomment&&t.charAt(0)===`#`?!1:new N(t,n).match(e));let s=/^\*+([^+@!?\*\[\(]*)$/,c=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),l=e=>t=>t.endsWith(e),u=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),d=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),f=/^\*+\.\*+$/,p=e=>!e.startsWith(`.`)&&e.includes(`.`),m=e=>e!==`.`&&e!==`..`&&e.includes(`.`),h=/^\.\*+$/,g=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),v=/^\*+$/,y=e=>e.length!==0&&!e.startsWith(`.`),b=e=>e.length!==0&&e!==`.`&&e!==`..`,x=/^\?+([^+@!?\*\[\(]*)?$/,S=([e,t=``])=>{let n=E([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},C=([e,t=``])=>{let n=D([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},w=([e,t=``])=>{let n=D([e]);return t?e=>n(e)&&e.endsWith(t):n},T=([e,t=``])=>{let n=E([e]);return t?e=>n(e)&&e.endsWith(t):n},E=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},D=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},O=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,k={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=O===`win32`?k.win32.sep:k.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR,e.filter=(t,n={})=>r=>(0,e.minimatch)(r,t,n),e.minimatch.filter=e.filter;let A=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,A(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,A(t,n))}static defaults(e){return n.defaults(A(t,e)).Minimatch}},AST:class extends n.AST{constructor(e,n,r={}){super(e,n,A(t,r))}static fromGlob(e,r={}){return n.AST.fromGlob(e,A(t,r))}},unescape:(e,r={})=>n.unescape(e,A(t,r)),escape:(e,r={})=>n.escape(e,A(t,r)),filter:(e,r={})=>n.filter(e,A(t,r)),defaults:e=>n.defaults(A(t,e)),makeRe:(e,r={})=>n.makeRe(e,A(t,r)),braceExpand:(e,r={})=>n.braceExpand(e,A(t,r)),match:(e,r,i={})=>n.match(e,r,A(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,t={})=>((0,r.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,n.default)(e)),e.minimatch.braceExpand=e.braceExpand,e.makeRe=(e,t={})=>new N(e,t).makeRe(),e.minimatch.makeRe=e.makeRe,e.match=(e,t,n={})=>{let r=new N(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;let j=/[?*]|[+@!]\(.*?\)|\[|\]/,M=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var N=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){(0,r.assertValidPattern)(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||O,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!j.test(e[2]))&&!j.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(t=this.levelTwoFileOptimize(t)),n.includes(e.GLOBSTAR)?this.#e(t,n,r,i,a):this.#n(t,n,r,i,a)}#e(t,n,r,i,a){let o=n.indexOf(e.GLOBSTAR,a),s=n.lastIndexOf(e.GLOBSTAR),[c,l,u]=r?[n.slice(a,o),n.slice(o+1),[]]:[n.slice(a,o),n.slice(o+1,s),n.slice(s+1)];if(c.length){let e=t.slice(i,i+c.length);if(!this.#n(e,c,r,0,0))return!1;i+=c.length}let d=0;if(u.length){if(u.length+i>t.length)return!1;let e=t.length-u.length;if(this.#n(t,u,r,e,0))d=u.length;else{if(t[t.length-1]!==``||i+u.length===t.length||(e--,!this.#n(t,u,r,e,0)))return!1;d=u.length+1}}if(!l.length){let e=!!d;for(let n=i;n{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?M(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});return n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))}),n.filter(t=>t!==e.GLOBSTAR).join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;let t=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,n=new Set,r=typeof process==`object`&&process?process:{},i=(e,t,n,i)=>{typeof r.emitWarning==`function`?r.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(a===void 0){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},a=class{constructor(){t()}signal=new o;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e=r.env?.LRU_CACHE_IGNORE_AC_WARNING!==`1`,t=()=>{e&&(e=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.",`NO_ABORT_CONTROLLER`,`ENOTSUP`,t))}}let s=e=>!n.has(e),c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>c(e)?e<=2**8?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?u:null:null;var u=class extends Array{constructor(e){super(e),this.fill(0)}},d=class e{heap;length;static#e=!1;static create(t){let n=l(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};e.LRUCache=class e{#e;#t;#n;#r;#i;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#y,sizes:e.#_,keyMap:e.#c,keyList:e.#l,valList:e.#u,next:e.#d,prev:e.#f,get head(){return e.#p},get tail(){return e.#m},free:e.#h,isBackgroundFetch:t=>e.#L(t),backgroundFetch:(t,n,r,i)=>e.#I(t,n,r,i),moveToTail:t=>e.#z(t),indexes:t=>e.#M(t),rindexes:t=>e.#N(t),isStale:t=>e.#D(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#s}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#a}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(t){let{max:r=0,ttl:a,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:f,updateAgeOnHas:p,allowStale:m,dispose:h,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:y,maxSize:b=0,maxEntrySize:x=0,sizeCalculation:S,fetchMethod:C,memoMethod:w,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:O,ignoreFetchAbort:k}=t;if(r!==0&&!c(r))throw TypeError(`max option must be a nonnegative integer`);let A=r?l(r):Array;if(!A)throw Error(`invalid max value: `+r);if(this.#e=r,this.#t=b,this.maxEntrySize=x||this.#t,this.sizeCalculation=S,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(w!==void 0&&typeof w!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#a=w,C!==void 0&&typeof C!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#i=C,this.#x=!!C,this.#c=new Map,this.#l=Array(r).fill(void 0),this.#u=Array(r).fill(void 0),this.#d=new A(r),this.#f=new A(r),this.#p=0,this.#m=0,this.#h=d.create(r),this.#o=0,this.#s=0,typeof h==`function`&&(this.#n=h),typeof g==`function`?(this.#r=g,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#b=!!this.#n,this.#S=!!this.#r,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.#t!==0&&!c(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!c(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#O()}if(this.allowStale=!!m,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!f,this.updateAgeOnHas=!!p,this.ttlResolution=c(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=a||0,this.ttl){if(!c(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#C()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t=`LRU_CACHE_UNBOUNDED`;s(t)&&(n.add(t),i(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#C(){let e=new u(this.#e),n=new u(this.#e);this.#y=e,this.#v=n,this.#E=(r,i,a=t.now())=>{if(n[r]=i===0?0:a,e[r]=i,i!==0&&this.ttlAutopurge){let e=setTimeout(()=>{this.#D(r)&&this.#B(this.#l[r],`expire`)},i+1);e.unref&&e.unref()}},this.#w=r=>{n[r]=e[r]===0?0:t.now()},this.#T=(t,a)=>{if(e[a]){let o=e[a],s=n[a];if(!o||!s)return;t.ttl=o,t.start=s,t.now=r||i(),t.remainingTTL=o-(t.now-s)}};let r=0,i=()=>{let e=t.now();if(this.ttlResolution>0){r=e;let t=setTimeout(()=>r=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=t=>{let a=this.#c.get(t);if(a===void 0)return 0;let o=e[a],s=n[a];return!o||!s?1/0:o-((r||i())-s)},this.#D=t=>{let a=n[t],o=e[t];return!!o&&!!a&&(r||i())-a>o}}#w=()=>{};#T=()=>{};#E=()=>{};#D=()=>!1;#O(){let e=new u(this.#e);this.#s=0,this.#_=e,this.#k=t=>{this.#s-=e[t],e[t]=0},this.#j=(e,t,n,r)=>{if(this.#L(t))return 0;if(!c(n))if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!c(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`);return n},this.#A=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#s>n;)this.#F(!0)}this.#s+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#s)}}#k=e=>{};#A=(e,t,n)=>{};#j=(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#M({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#m;!(!this.#P(t)||((e||!this.#D(t))&&(yield t),t===this.#p));)t=this.#f[t]}*#N({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#p;!(!this.#P(t)||((e||!this.#D(t))&&(yield t),t===this.#m));)t=this.#d[t]}#P(e){return e!==void 0&&this.#c.get(this.#l[e])===e}*entries(){for(let e of this.#M())this.#u[e]!==void 0&&this.#l[e]!==void 0&&!this.#L(this.#u[e])&&(yield[this.#l[e],this.#u[e]])}*rentries(){for(let e of this.#N())this.#u[e]!==void 0&&this.#l[e]!==void 0&&!this.#L(this.#u[e])&&(yield[this.#l[e],this.#u[e]])}*keys(){for(let e of this.#M()){let t=this.#l[e];t!==void 0&&!this.#L(this.#u[e])&&(yield t)}}*rkeys(){for(let e of this.#N()){let t=this.#l[e];t!==void 0&&!this.#L(this.#u[e])&&(yield t)}}*values(){for(let e of this.#M())this.#u[e]!==void 0&&!this.#L(this.#u[e])&&(yield this.#u[e])}*rvalues(){for(let e of this.#N())this.#u[e]!==void 0&&!this.#L(this.#u[e])&&(yield this.#u[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(e,t={}){for(let n of this.#M()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,this.#l[n],this))return this.get(this.#l[n],t)}}forEach(e,t=this){for(let n of this.#M()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#l[n],this)}}rforEach(e,t=this){for(let n of this.#N()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#l[n],this)}}purgeStale(){let e=!1;for(let t of this.#N({allowStale:!0}))this.#D(t)&&(this.#B(this.#l[t],`expire`),e=!0);return e}info(e){let n=this.#c.get(e);if(n===void 0)return;let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;if(i===void 0)return;let a={value:i};if(this.#y&&this.#v){let e=this.#y[n],r=this.#v[n];e&&r&&(a.ttl=e-(t.now()-r),a.start=Date.now())}return this.#_&&(a.size=this.#_[n]),a}dump(){let e=[];for(let n of this.#M({allowStale:!0})){let r=this.#l[n],i=this.#u[n],a=this.#L(i)?i.__staleWhileFetching:i;if(a===void 0||r===void 0)continue;let o={value:a};if(this.#y&&this.#v){o.ttl=this.#y[n];let e=t.now()-this.#v[n];o.start=Math.floor(Date.now()-e)}this.#_&&(o.size=this.#_[n]),e.unshift([r,o])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let e=Date.now()-r.start;r.start=t.now()-e}this.set(n,r.value,r)}}set(e,t,n={}){if(t===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:s}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,l=this.#j(e,t,n.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set=`miss`,s.maxEntrySizeExceeded=!0),this.#B(e,`set`),this;let u=this.#o===0?void 0:this.#c.get(e);if(u===void 0)u=this.#o===0?this.#m:this.#h.length===0?this.#o===this.#e?this.#F(!1):this.#o:this.#h.pop(),this.#l[u]=e,this.#u[u]=t,this.#c.set(e,u),this.#d[this.#m]=u,this.#f[u]=this.#m,this.#m=u,this.#o++,this.#A(u,l,s),s&&(s.set=`add`),c=!1;else{this.#z(u);let n=this.#u[u];if(t!==n){if(this.#x&&this.#L(n)){n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:t}=n;t!==void 0&&!a&&(this.#b&&this.#n?.(t,e,`set`),this.#S&&this.#g?.push([t,e,`set`]))}else a||(this.#b&&this.#n?.(n,e,`set`),this.#S&&this.#g?.push([n,e,`set`]));if(this.#k(u),this.#A(u,l,s),this.#u[u]=t,s){s.set=`replace`;let e=n&&this.#L(n)?n.__staleWhileFetching:n;e!==void 0&&(s.oldValue=e)}}else s&&(s.set=`update`)}if(r!==0&&!this.#y&&this.#C(),this.#y&&(c||this.#E(u,r,i),s&&this.#T(s,u)),!a&&this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#o;){let e=this.#u[this.#p];if(this.#F(!0),this.#L(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}#F(e){let t=this.#p,n=this.#l[t],r=this.#u[t];return this.#x&&this.#L(r)?r.__abortController.abort(Error(`evicted`)):(this.#b||this.#S)&&(this.#b&&this.#n?.(r,n,`evict`),this.#S&&this.#g?.push([r,n,`evict`])),this.#k(t),e&&(this.#l[t]=void 0,this.#u[t]=void 0,this.#h.push(t)),this.#o===1?(this.#p=this.#m=0,this.#h.length=0):this.#p=this.#d[t],this.#c.delete(n),this.#o--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#c.get(e);if(i!==void 0){let e=this.#u[i];if(this.#L(e)&&e.__staleWhileFetching===void 0)return!1;if(this.#D(i))r&&(r.has=`stale`,this.#T(r,i));else return n&&this.#w(i),r&&(r.has=`hit`,this.#T(r,i)),!0}else r&&(r.has=`miss`);return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#c.get(e);if(r===void 0||!n&&this.#D(r))return;let i=this.#u[r];return this.#L(i)?i.__staleWhileFetching:i}#I(e,t,n,r){let i=t===void 0?void 0:this.#u[t];if(this.#L(i))return i;let o=new a,{signal:s}=n;s?.addEventListener(`abort`,()=>o.abort(s.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:a}=o.signal,s=n.ignoreFetchAbort&&r!==void 0;if(n.status&&(a&&!i?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,s&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),a&&!s&&!i)return d(o.signal.reason);let l=p;return this.#u[t]===p&&(r===void 0?l.__staleWhileFetching?this.#u[t]=l.__staleWhileFetching:this.#B(e,`fetch`):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,c.options))),r},u=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),d(e)),d=r=>{let{aborted:i}=o.signal,a=i&&n.allowStaleOnFetchAbort,s=a||n.allowStaleOnFetchRejection,c=s||n.noDeleteOnFetchRejection,l=p;if(this.#u[t]===p&&(!c||l.__staleWhileFetching===void 0?this.#B(e,`fetch`):a||(this.#u[t]=l.__staleWhileFetching)),s)return n.status&&l.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw r},f=(t,r)=>{let a=this.#i?.(e,i,c);a&&a instanceof Promise&&a.then(e=>t(e===void 0?void 0:e),r),o.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(f).then(l,u),m=Object.assign(p,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.set(e,m,{...c.options,status:void 0}),t=this.#c.get(e)):this.#u[t]=m,m}#L(e){if(!this.#x)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof a}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:h=!1,status:g,signal:v}=t;if(!this.#x)return g&&(g.fetch=`get`),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:g,signal:v},b=this.#c.get(e);if(b===void 0){g&&(g.fetch=`miss`);let t=this.#I(e,b,y,m);return t.__returned=t}else{let t=this.#u[b];if(this.#L(t)){let e=n&&t.__staleWhileFetching!==void 0;return g&&(g.fetch=`inflight`,e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#D(b);if(!h&&!i)return g&&(g.fetch=`hit`),this.#z(b),r&&this.#w(b),g&&this.#T(g,b),t;let a=this.#I(e,b,y,m),o=a.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=i?`stale`:`refresh`,o&&i&&(g.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}memo(e,t={}){let n=this.#a;if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,forceRefresh:i,...a}=t,o=this.get(e,a);if(!i&&o!==void 0)return o;let s=n(e,o,{options:a,context:r});return this.set(e,s,a),s}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#c.get(e);if(o!==void 0){let t=this.#u[o],s=this.#L(t);return a&&this.#T(a,o),this.#D(o)?(a&&(a.get=`stale`),s?(a&&n&&t.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||this.#B(e,`expire`),a&&n&&(a.returnedStale=!0),n?t:void 0)):(a&&(a.get=`hit`),s?t.__staleWhileFetching:(this.#z(o),r&&this.#w(o),t))}else a&&(a.get=`miss`)}#R(e,t){this.#f[t]=e,this.#d[e]=t}#z(e){e!==this.#m&&(e===this.#p?this.#p=this.#d[e]:this.#R(this.#f[e],this.#d[e]),this.#R(this.#m,e),this.#m=e)}delete(e){return this.#B(e,`delete`)}#B(e,t){let n=!1;if(this.#o!==0){let r=this.#c.get(e);if(r!==void 0)if(n=!0,this.#o===1)this.#V(t);else{this.#k(r);let n=this.#u[r];if(this.#L(n)?n.__abortController.abort(Error(`deleted`)):(this.#b||this.#S)&&(this.#b&&this.#n?.(n,e,t),this.#S&&this.#g?.push([n,e,t])),this.#c.delete(e),this.#l[r]=void 0,this.#u[r]=void 0,r===this.#m)this.#m=this.#f[r];else if(r===this.#p)this.#p=this.#d[r];else{let e=this.#f[r];this.#d[e]=this.#d[r];let t=this.#d[r];this.#f[t]=this.#f[r]}this.#o--,this.#h.push(r)}}if(this.#S&&this.#g?.length){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return n}clear(){return this.#V(`delete`)}#V(e){for(let t of this.#N({allowStale:!0})){let n=this.#u[t];if(this.#L(n))n.__abortController.abort(Error(`deleted`));else{let r=this.#l[t];this.#b&&this.#n?.(n,r,e),this.#S&&this.#g?.push([n,r,e])}}if(this.#c.clear(),this.#u.fill(void 0),this.#l.fill(void 0),this.#y&&this.#v&&(this.#y.fill(0),this.#v.fill(0)),this.#_&&this.#_.fill(0),this.#p=0,this.#m=0,this.#h.length=0,this.#s=0,this.#o=0,this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}})),eL=i((e=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;let r=typeof process==`object`&&process?process:{stdout:null,stderr:null},i=t(`node:events`),a=n(t(`node:stream`)),o=t(`node:string_decoder`);e.isStream=t=>!!t&&typeof t==`object`&&(t instanceof ae||t instanceof a.default||(0,e.isReadable)(t)||(0,e.isWritable)(t)),e.isReadable=e=>!!e&&typeof e==`object`&&e instanceof i.EventEmitter&&typeof e.pipe==`function`&&e.pipe!==a.default.Writable.prototype.pipe,e.isWritable=e=>!!e&&typeof e==`object`&&e instanceof i.EventEmitter&&typeof e.write==`function`&&typeof e.end==`function`;let s=Symbol(`EOF`),c=Symbol(`maybeEmitEnd`),l=Symbol(`emittedEnd`),u=Symbol(`emittingEnd`),d=Symbol(`emittedError`),f=Symbol(`closed`),p=Symbol(`read`),m=Symbol(`flush`),h=Symbol(`flushChunk`),g=Symbol(`encoding`),v=Symbol(`decoder`),y=Symbol(`flowing`),b=Symbol(`paused`),x=Symbol(`resume`),S=Symbol(`buffer`),C=Symbol(`pipes`),w=Symbol(`bufferLength`),T=Symbol(`bufferPush`),E=Symbol(`bufferShift`),D=Symbol(`objectMode`),O=Symbol(`destroyed`),k=Symbol(`error`),A=Symbol(`emitData`),j=Symbol(`emitEnd`),M=Symbol(`emitEnd2`),N=Symbol(`async`),P=Symbol(`abort`),F=Symbol(`aborted`),I=Symbol(`signal`),L=Symbol(`dataListeners`),R=Symbol(`discarded`),z=e=>Promise.resolve().then(e),ee=e=>e(),B=e=>e===`end`||e===`finish`||e===`prefinish`,V=e=>e instanceof ArrayBuffer||!!e&&typeof e==`object`&&e.constructor&&e.constructor.name===`ArrayBuffer`&&e.byteLength>=0,te=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);var H=class{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[x](),this.dest.on(`drain`,this.ondrain)}unpipe(){this.dest.removeListener(`drain`,this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ne=class extends H{unpipe(){this.src.removeListener(`error`,this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit(`error`,e),e.on(`error`,this.proxyErrors)}};let re=e=>!!e.objectMode,ie=e=>!e.objectMode&&!!e.encoding&&e.encoding!==`buffer`;var ae=class extends i.EventEmitter{[y]=!1;[b]=!1;[C]=[];[S]=[];[D];[g];[N];[v];[s]=!1;[l]=!1;[u]=!1;[f]=!1;[d]=null;[w]=0;[O]=!1;[I];[F]=!1;[L]=0;[R]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding==`string`)throw TypeError(`Encoding and objectMode may not be used together`);re(t)?(this[D]=!0,this[g]=null):ie(t)?(this[g]=t.encoding,this[D]=!1):(this[D]=!1,this[g]=null),this[N]=!!t.async,this[v]=this[g]?new o.StringDecoder(this[g]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[C]});let{signal:n}=t;n&&(this[I]=n,n.aborted?this[P]():n.addEventListener(`abort`,()=>this[P]()))}get bufferLength(){return this[w]}get encoding(){return this[g]}set encoding(e){throw Error(`Encoding must be set at instantiation time`)}setEncoding(e){throw Error(`Encoding must be set at instantiation time`)}get objectMode(){return this[D]}set objectMode(e){throw Error(`objectMode must be set at instantiation time`)}get async(){return this[N]}set async(e){this[N]=this[N]||!!e}[P](){this[F]=!0,this.emit(`abort`,this[I]?.reason),this.destroy(this[I]?.reason)}get aborted(){return this[F]}set aborted(e){}write(e,t,n){if(this[F])return!1;if(this[s])throw Error(`write after end`);if(this[O])return this.emit(`error`,Object.assign(Error(`Cannot call write after a stream was destroyed`),{code:`ERR_STREAM_DESTROYED`})),!0;typeof t==`function`&&(n=t,t=`utf8`),t||=`utf8`;let r=this[N]?z:ee;if(!this[D]&&!Buffer.isBuffer(e)){if(te(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(V(e))e=Buffer.from(e);else if(typeof e!=`string`)throw Error(`Non-contiguous data written to non-objectMode stream`)}return this[D]?(this[y]&&this[w]!==0&&this[m](!0),this[y]?this.emit(`data`,e):this[T](e),this[w]!==0&&this.emit(`readable`),n&&r(n),this[y]):e.length?(typeof e==`string`&&!(t===this[g]&&!this[v]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[g]&&(e=this[v].write(e)),this[y]&&this[w]!==0&&this[m](!0),this[y]?this.emit(`data`,e):this[T](e),this[w]!==0&&this.emit(`readable`),n&&r(n),this[y]):(this[w]!==0&&this.emit(`readable`),n&&r(n),this[y])}read(e){if(this[O])return null;if(this[R]=!1,this[w]===0||e===0||e&&e>this[w])return this[c](),null;this[D]&&(e=null),this[S].length>1&&!this[D]&&(this[S]=[this[g]?this[S].join(``):Buffer.concat(this[S],this[w])]);let t=this[p](e||null,this[S][0]);return this[c](),t}[p](e,t){if(this[D])this[E]();else{let n=t;e===n.length||e===null?this[E]():typeof n==`string`?(this[S][0]=n.slice(e),t=n.slice(0,e),this[w]-=e):(this[S][0]=n.subarray(e),t=n.subarray(0,e),this[w]-=e)}return this.emit(`data`,t),!this[S].length&&!this[s]&&this.emit(`drain`),t}end(e,t,n){return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=`utf8`),e!==void 0&&this.write(e,t),n&&this.once(`end`,n),this[s]=!0,this.writable=!1,(this[y]||!this[b])&&this[c](),this}[x](){this[O]||(!this[L]&&!this[C].length&&(this[R]=!0),this[b]=!1,this[y]=!0,this.emit(`resume`),this[S].length?this[m]():this[s]?this[c]():this.emit(`drain`))}resume(){return this[x]()}pause(){this[y]=!1,this[b]=!0,this[R]=!1}get destroyed(){return this[O]}get flowing(){return this[y]}get paused(){return this[b]}[T](e){this[D]?this[w]+=1:this[w]+=e.length,this[S].push(e)}[E](){return this[D]?--this[w]:this[w]-=this[S][0].length,this[S].shift()}[m](e=!1){do;while(this[h](this[E]())&&this[S].length);!e&&!this[S].length&&!this[s]&&this.emit(`drain`)}[h](e){return this.emit(`data`,e),this[y]}pipe(e,t){if(this[O])return e;this[R]=!1;let n=this[l];return t||={},e===r.stdout||e===r.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[C].push(t.proxyErrors?new ne(this,e,t):new H(this,e,t)),this[N]?z(()=>this[x]()):this[x]()),e}unpipe(e){let t=this[C].find(t=>t.dest===e);t&&(this[C].length===1?(this[y]&&this[L]===0&&(this[y]=!1),this[C]=[]):this[C].splice(this[C].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if(e===`data`)this[R]=!1,this[L]++,!this[C].length&&!this[y]&&this[x]();else if(e===`readable`&&this[w]!==0)super.emit(`readable`);else if(B(e)&&this[l])super.emit(e),this.removeAllListeners(e);else if(e===`error`&&this[d]){let e=t;this[N]?z(()=>e.call(this,this[d])):e.call(this,this[d])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return e===`data`&&(this[L]=this.listeners(`data`).length,this[L]===0&&!this[R]&&!this[C].length&&(this[y]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return(e===`data`||e===void 0)&&(this[L]=0,!this[R]&&!this[C].length&&(this[y]=!1)),t}get emittedEnd(){return this[l]}[c](){!this[u]&&!this[l]&&!this[O]&&this[S].length===0&&this[s]&&(this[u]=!0,this.emit(`end`),this.emit(`prefinish`),this.emit(`finish`),this[f]&&this.emit(`close`),this[u]=!1)}emit(e,...t){let n=t[0];if(e!==`error`&&e!==`close`&&e!==O&&this[O])return!1;if(e===`data`)return!this[D]&&!n?!1:this[N]?(z(()=>this[A](n)),!0):this[A](n);if(e===`end`)return this[j]();if(e===`close`){if(this[f]=!0,!this[l]&&!this[O])return!1;let e=super.emit(`close`);return this.removeAllListeners(`close`),e}else if(e===`error`){this[d]=n,super.emit(k,n);let e=!this[I]||this.listeners(`error`).length?super.emit(`error`,n):!1;return this[c](),e}else if(e===`resume`){let e=super.emit(`resume`);return this[c](),e}else if(e===`finish`||e===`prefinish`){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[c](),r}[A](e){for(let t of this[C])t.dest.write(e)===!1&&this.pause();let t=this[R]?!1:super.emit(`data`,e);return this[c](),t}[j](){return this[l]?!1:(this[l]=!0,this.readable=!1,this[N]?(z(()=>this[M]()),!0):this[M]())}[M](){if(this[v]){let e=this[v].end();if(e){for(let t of this[C])t.dest.write(e);this[R]||super.emit(`data`,e)}}for(let e of this[C])e.end();let e=super.emit(`end`);return this.removeAllListeners(`end`),e}async collect(){let e=Object.assign([],{dataLength:0});this[D]||(e.dataLength=0);let t=this.promise();return this.on(`data`,t=>{e.push(t),this[D]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[D])throw Error(`cannot concat in objectMode`);let e=await this.collect();return this[g]?e.join(``):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(O,()=>t(Error(`stream destroyed`))),this.on(`error`,e=>t(e)),this.on(`end`,()=>e())})}[Symbol.asyncIterator](){this[R]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[s])return t();let r,i,a=e=>{this.off(`data`,o),this.off(`end`,c),this.off(O,l),t(),i(e)},o=e=>{this.off(`error`,a),this.off(`end`,c),this.off(O,l),this.pause(),r({value:e,done:!!this[s]})},c=()=>{this.off(`error`,a),this.off(`data`,o),this.off(O,l),t(),r({done:!0,value:void 0})},l=()=>a(Error(`stream destroyed`));return new Promise((e,t)=>{i=t,r=e,this.once(O,l),this.once(`error`,a),this.once(`end`,c),this.once(`data`,o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[R]=!1;let e=!1,t=()=>(this.pause(),this.off(k,t),this.off(O,t),this.off(`end`,t),e=!0,{done:!0,value:void 0});return this.once(`end`,t),this.once(k,t),this.once(O,t),{next:()=>{if(e)return t();let n=this.read();return n===null?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[O])return e?this.emit(`error`,e):this.emit(O),this;this[O]=!0,this[R]=!0,this[S].length=0,this[w]=0;let t=this;return typeof t.close==`function`&&!this[f]&&t.close(),e?this.emit(`error`,e):this.emit(O),this}static get isStream(){return e.isStream}};e.Minipass=ae})),tL=i((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.PathScurry=e.Path=e.PathScurryDarwin=e.PathScurryPosix=e.PathScurryWin32=e.PathScurryBase=e.PathPosix=e.PathWin32=e.PathBase=e.ChildrenCache=e.ResolveCache=void 0;let a=$I(),o=t(`node:path`),s=t(`node:url`),c=t(`fs`),l=i(t(`node:fs`)),u=c.realpathSync.native,d=t(`node:fs/promises`),f=eL(),p={lstatSync:c.lstatSync,readdir:c.readdir,readdirSync:c.readdirSync,readlinkSync:c.readlinkSync,realpathSync:u,promises:{lstat:d.lstat,readdir:d.readdir,readlink:d.readlink,realpath:d.realpath}},m=e=>!e||e===p||e===l?p:{...p,...e,promises:{...p.promises,...e.promises||{}}},h=/^\\\\\?\\([a-z]:)\\?$/i,g=e=>e.replace(/\//g,`\\`).replace(h,`$1\\`),v=/[\\\/]/,y=e=>e.isFile()?8:e.isDirectory()?4:e.isSymbolicLink()?10:e.isCharacterDevice()?2:e.isBlockDevice()?6:e.isSocket()?12:+!!e.isFIFO(),b=new Map,x=e=>{let t=b.get(e);if(t)return t;let n=e.normalize(`NFKD`);return b.set(e,n),n},S=new Map,C=e=>{let t=S.get(e);if(t)return t;let n=x(e.toLowerCase());return S.set(e,n),n};var w=class extends a.LRUCache{constructor(){super({max:256})}};e.ResolveCache=w;var T=class extends a.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:e=>e.length+1})}};e.ChildrenCache=T;let E=Symbol(`PathScurry setAsCwd`);var D=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#r;get nlink(){return this.#r}#i;get uid(){return this.#i}#a;get gid(){return this.#a}#o;get rdev(){return this.#o}#s;get blksize(){return this.#s}#c;get ino(){return this.#c}#l;get size(){return this.#l}#u;get blocks(){return this.#u}#d;get atimeMs(){return this.#d}#f;get mtimeMs(){return this.#f}#p;get ctimeMs(){return this.#p}#m;get birthtimeMs(){return this.#m}#h;get atime(){return this.#h}#g;get mtime(){return this.#g}#_;get ctime(){return this.#_}#v;get birthtime(){return this.#v}#y;#b;#x;#S;#C;#w;#T;#E;#D;#O;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=0,n,r,i,a,o){this.name=e,this.#y=i?C(e):x(e),this.#T=t&1023,this.nocase=i,this.roots=r,this.root=n||this,this.#E=a,this.#x=o.fullpath,this.#C=o.relative,this.#w=o.relativePosix,this.parent=o.parent,this.parent?this.#e=this.parent.#e:this.#e=m(o.fs)}depth(){return this.#b===void 0?this.parent?this.#b=this.parent.depth()+1:this.#b=0:this.#b}childrenCache(){return this.#E}resolve(e){if(!e)return this;let t=this.getRootString(e),n=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#k(n):this.#k(n)}#k(e){let t=this;for(let n of e)t=t.child(n);return t}children(){let e=this.#E.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#E.set(this,t),this.#T&=-17,t}child(e,t){if(e===``||e===`.`)return this;if(e===`..`)return this.parent||this;let n=this.children(),r=this.nocase?C(e):x(e);for(let e of n)if(e.#y===r)return e;let i=this.parent?this.sep:``,a=this.#x?this.#x+i+e:void 0,o=this.newChild(e,0,{...t,parent:this,fullpath:a});return this.canReaddir()||(o.#T|=128),n.push(o),o}relative(){if(this.isCWD)return``;if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.name;let n=t.relative();return n+(!n||!t.parent?``:this.sep)+e}relativePosix(){if(this.sep===`/`)return this.relative();if(this.isCWD)return``;if(this.#w!==void 0)return this.#w;let e=this.name,t=this.parent;if(!t)return this.#w=this.fullpathPosix();let n=t.relativePosix();return n+(!n||!t.parent?``:`/`)+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let n=t.fullpath()+(t.parent?this.sep:``)+e;return this.#x=n}fullpathPosix(){if(this.#S!==void 0)return this.#S;if(this.sep===`/`)return this.#S=this.fullpath();if(!this.parent){let e=this.fullpath().replace(/\\/g,`/`);return/^[a-z]:\//i.test(e)?this.#S=`//?/${e}`:this.#S=e}let e=this.parent,t=e.fullpathPosix(),n=t+(!t||!e.parent?``:`/`)+this.name;return this.#S=n}isUnknown(){return(this.#T&15)==0}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?`Unknown`:this.isDirectory()?`Directory`:this.isFile()?`File`:this.isSymbolicLink()?`SymbolicLink`:this.isFIFO()?`FIFO`:this.isCharacterDevice()?`CharacterDevice`:this.isBlockDevice()?`BlockDevice`:this.isSocket()?`Socket`:`Unknown`}isFile(){return(this.#T&15)==8}isDirectory(){return(this.#T&15)==4}isCharacterDevice(){return(this.#T&15)==2}isBlockDevice(){return(this.#T&15)==6}isFIFO(){return(this.#T&15)==1}isSocket(){return(this.#T&15)==12}isSymbolicLink(){return(this.#T&10)==10}lstatCached(){return this.#T&32?this:void 0}readlinkCached(){return this.#D}realpathCached(){return this.#O}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#D)return!0;if(!this.parent)return!1;let e=this.#T&15;return!(e!==0&&e!==10||this.#T&256||this.#T&128)}calledReaddir(){return!!(this.#T&16)}isENOENT(){return!!(this.#T&128)}isNamed(e){return this.nocase?this.#y===C(e):this.#y===x(e)}async readlink(){let e=this.#D;if(e)return e;if(this.canReadlink()&&this.parent)try{let e=await this.#e.promises.readlink(this.fullpath()),t=(await this.parent.realpath())?.resolve(e);if(t)return this.#D=t}catch(e){this.#L(e.code);return}}readlinkSync(){let e=this.#D;if(e)return e;if(this.canReadlink()&&this.parent)try{let e=this.#e.readlinkSync(this.fullpath()),t=this.parent.realpathSync()?.resolve(e);if(t)return this.#D=t}catch(e){this.#L(e.code);return}}#A(e){this.#T|=16;for(let t=e.provisional;tt(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let r=n.slice(0,n.provisional);t?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#U.push(e),this.#W)return;this.#W=!0;let r=this.fullpath();this.#e.readdir(r,{withFileTypes:!0},(e,t)=>{if(e)this.#F(e.code),n.provisional=0;else{for(let e of t)this.#R(e,n);this.#A(n)}this.#G(n.slice(0,n.provisional))})}#K;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#K)await this.#K;else{let n=()=>{};this.#K=new Promise(e=>n=e);try{for(let n of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#R(n,e);this.#A(e)}catch(t){this.#F(t.code),e.provisional=0}this.#K=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let n of this.#e.readdirSync(t,{withFileTypes:!0}))this.#R(n,e);this.#A(e)}catch(t){this.#F(t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#T&704)return!1;let e=15&this.#T;return e===0||e===4||e===10}shouldWalk(e,t){return(this.#T&4)==4&&!(this.#T&704)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#O)return this.#O;if(!(896&this.#T))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#O=this.resolve(e)}catch{this.#N()}}realpathSync(){if(this.#O)return this.#O;if(!(896&this.#T))try{let e=this.#e.realpathSync(this.fullpath());return this.#O=this.resolve(e)}catch{this.#N()}}[E](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),n=[],r=this;for(;r&&r.parent;)t.add(r),r.#C=n.join(this.sep),r.#w=n.join(`/`),r=r.parent,n.push(`..`);for(r=e;r&&r.parent&&!t.has(r);)r.#C=void 0,r.#w=void 0,r=r.parent}};e.PathBase=D;var O=class e extends D{sep=`\\`;splitSep=v;constructor(e,t=0,n,r,i,a,o){super(e,t,n,r,i,a,o)}newChild(t,n=0,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return o.win32.parse(e).root}getRoot(e){if(e=g(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,n]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=n;return this.roots[e]=new j(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,`\\`).replace(h,`$1\\`),e===t}};e.PathWin32=O;var k=class e extends D{splitSep=`/`;sep=`/`;constructor(e,t=0,n,r,i,a,o){super(e,t,n,r,i,a,o)}getRootString(e){return e.startsWith(`/`)?`/`:``}getRoot(e){return this.root}newChild(t,n=0,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};e.PathPosix=k;var A=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#r;constructor(e=process.cwd(),t,n,{nocase:r,childrenCacheSize:i=16*1024,fs:a=p}={}){this.#r=m(a),(e instanceof URL||e.startsWith(`file://`))&&(e=(0,s.fileURLToPath)(e));let o=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#e=new w,this.#t=new w,this.#n=new T(i);let c=o.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),r===void 0)throw TypeError(`must provide nocase setting to PathScurryBase ctor`);this.nocase=r,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let l=this.root,u=c.length-1,d=t.sep,f=this.rootPath,h=!1;for(let e of c){let t=u--;l=l.child(e,{relative:Array(t).fill(`..`).join(d),relativePosix:Array(t).fill(`..`).join(`/`),fullpath:f+=(h?``:d)+e}),h=!0}this.cwd=l}depth(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=this.#e.get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpath();return this.#e.set(t,r),r}resolvePosix(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=this.#t.get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,r),r}relative(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n}=t;if(e.canReaddir()){let t=await e.readdir();return n?t:t.map(e=>e.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0}=t;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(e=>e.name):[]}async lstat(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=await e.readlink();return t?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return t?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=await e.realpath();return t?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return t?n:n?.fullpath()}async walk(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set,c=(e,t)=>{s.add(e),e.readdirCB((e,l)=>{if(e)return t(e);let u=l.length;if(!u)return t();let d=()=>{--u===0&&t()};for(let e of l)(!i||i(e))&&o.push(n?e:e.fullpath()),r&&e.isSymbolicLink()?e.realpath().then(e=>e?.isUnknown()?e.lstat():e).then(e=>e?.shouldWalk(s,a)?c(e,d):d()):e.shouldWalk(s,a)?c(e,d):d()},!0)},l=e;return new Promise((e,t)=>{c(l,n=>{if(n)return t(n);e(o)})})}walkSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set([e]);for(let e of s){let t=e.readdirSync();for(let e of t){(!i||i(e))&&o.push(n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&s.add(t)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t;(!i||i(e))&&(yield n?e:e.fullpath());let o=new Set([e]);for(let e of o){let t=e.readdirSync();for(let e of t){(!i||i(e))&&(yield n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,a)&&o.add(t)}}}stream(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new f.Minipass({objectMode:!0});(!i||i(e))&&o.write(n?e:e.fullpath());let s=new Set,c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let d=(t,p,m=!1)=>{if(t)return o.emit(`error`,t);if(r&&!m){let e=[];for(let t of p)t.isSymbolicLink()&&e.push(t.realpath().then(e=>e?.isUnknown()?e.lstat():e));if(e.length){Promise.all(e).then(()=>d(null,p,!0));return}}for(let t of p)t&&(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of p){let t=e.realpathCached()||e;t.shouldWalk(s,a)&&c.push(t)}e&&!o.flowing?o.once(`drain`,u):f||u()},f=!0;t.readdirCB(d,!0),f=!1}};return u(),o}streamSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new f.Minipass({objectMode:!0}),s=new Set;(!i||i(e))&&o.write(n?e:e.fullpath());let c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let u=t.readdirSync();for(let t of u)(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of u){let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&c.push(t)}}e&&!o.flowing&&o.once(`drain`,u)};return u(),o}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e==`string`?this.cwd.resolve(e):e,this.cwd[E](t)}};e.PathScurryBase=A;var j=class extends A{sep=`\\`;constructor(e=process.cwd(),t={}){let{nocase:n=!0}=t;super(e,o.win32,`\\`,{...t,nocase:n}),this.nocase=n;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return o.win32.parse(e).root.toUpperCase()}newRoot(e){return new O(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)||e.startsWith(`\\`)||/^[a-z]:(\/|\\)/i.test(e)}};e.PathScurryWin32=j;var M=class extends A{sep=`/`;constructor(e=process.cwd(),t={}){let{nocase:n=!1}=t;super(e,o.posix,`/`,{...t,nocase:n}),this.nocase=n}parseRootPath(e){return`/`}newRoot(e){return new k(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)}};e.PathScurryPosix=M;var N=class extends M{constructor(e=process.cwd(),t={}){let{nocase:n=!0}=t;super(e,{...t,nocase:n})}};e.PathScurryDarwin=N,e.Path=process.platform===`win32`?O:k,e.PathScurry=process.platform===`win32`?j:process.platform===`darwin`?N:M})),nL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;let t=QI(),n=e=>e.length>=1,r=e=>e.length>=1;e.Pattern=class e{#e;#t;#n;length;#r;#i;#a;#o;#s;#c;#l=!0;constructor(e,t,i,a){if(!n(e))throw TypeError(`empty pattern list`);if(!r(t))throw TypeError(`empty glob list`);if(t.length!==e.length)throw TypeError(`mismatched pattern list and glob list lengths`);if(this.length=e.length,i<0||i>=this.length)throw TypeError(`index out of range`);if(this.#e=e,this.#t=t,this.#n=i,this.#r=a,this.#n===0){if(this.isUNC()){let[e,t,n,r,...i]=this.#e,[a,o,s,c,...l]=this.#t;i[0]===``&&(i.shift(),l.shift());let u=[e,t,n,r,``].join(`/`),d=[a,o,s,c,``].join(`/`);this.#e=[u,...i],this.#t=[d,...l],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[e,...t]=this.#e,[n,...r]=this.#t;t[0]===``&&(t.shift(),r.shift());let i=e+`/`,a=n+`/`;this.#e=[i,...t],this.#t=[a,...r],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]==`string`}isGlobstar(){return this.#e[this.#n]===t.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#a=this.#a||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join(`/`):this.#t.join(`/`):this.#t.slice(this.#n).join(`/`))}hasMore(){return this.length>this.#n+1}rest(){return this.#i===void 0?this.hasMore()?(this.#i=new e(this.#e,this.#t,this.#n+1,this.#r),this.#i.#c=this.#c,this.#i.#s=this.#s,this.#i.#o=this.#o,this.#i):this.#i=null:this.#i}isUNC(){let e=this.#e;return this.#s===void 0?this.#s=this.#r===`win32`&&this.#n===0&&e[0]===``&&e[1]===``&&typeof e[2]==`string`&&!!e[2]&&typeof e[3]==`string`&&!!e[3]:this.#s}isDrive(){let e=this.#e;return this.#o===void 0?this.#o=this.#r===`win32`&&this.#n===0&&this.length>1&&typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]):this.#o}isAbsolute(){let e=this.#e;return this.#c===void 0?this.#c=e[0]===``&&e.length>1||this.isDrive()||this.isUNC():this.#c}root(){let e=this.#e[0];return typeof e==`string`&&this.isAbsolute()&&this.#n===0?e:``}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}}})),rL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;let t=QI(),n=nL(),r=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:n,noext:i,noglobstar:a,platform:o=r}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:n,noext:i,noglobstar:a,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let t of e)this.add(t)}add(e){let r=new t.Minimatch(e,this.mmopts);for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;let t=QI();var n=class e{store;constructor(e=new Map){this.store=e}copy(){return new e(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let n=e.fullpath(),r=this.store.get(n);r?r.add(t.globString()):this.store.set(n,new Set([t.globString()]))}};e.HasWalkedCache=n;var r=class{store=new Map;add(e,t,n){let r=(t?2:0)|!!n,i=this.store.get(e);this.store.set(e,i===void 0?r:r&i)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}};e.MatchRecord=r;var i=class{store=new Map;add(e,t){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(e=>e.globString()===t.globString())||n.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw Error(`attempting to walk unknown path`);return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};e.SubWalks=i,e.Processor=class e{hasWalkedCache;matches=new r;subwalks=new i;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new n}processPatterns(e,n){this.patterns=n;let r=n.map(t=>[e,t]);for(let[e,n]of r){this.hasWalkedCache.storeWalked(e,n);let r=n.root(),i=n.isAbsolute()&&this.opts.absolute!==!1;if(r){e=e.resolve(r===`/`&&this.opts.root!==void 0?this.opts.root:r);let t=n.rest();if(t)n=t;else{this.matches.add(e,!0,!1);continue}}if(e.isENOENT())continue;let a,o,s=!1;for(;typeof(a=n.pattern())==`string`&&(o=n.rest());)e=e.resolve(a),n=o,s=!0;if(a=n.pattern(),o=n.rest(),s){if(this.hasWalkedCache.hasWalked(e,n))continue;this.hasWalkedCache.storeWalked(e,n)}if(typeof a==`string`){let t=a===`..`||a===``||a===`.`;this.matches.add(e.resolve(a),i,t);continue}else if(a===t.GLOBSTAR){(!e.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(e,n);let t=o?.pattern(),r=o?.rest();if(!o||(t===``||t===`.`)&&!r)this.matches.add(e,i,t===``||t===`.`);else if(t===`..`){let t=e.parent||e;r?this.hasWalkedCache.hasWalked(t,r)||this.subwalks.add(t,r):this.matches.add(t,i,!0)}}else a instanceof RegExp&&this.subwalks.add(e,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let e of n)for(let n of r){let r=n.isAbsolute(),a=n.pattern(),o=n.rest();a===t.GLOBSTAR?i.testGlobstar(e,n,o,r):a instanceof RegExp?i.testRegExp(e,a,o,r):i.testString(e,a,o,r)}return i}testGlobstar(e,t,n,r){if((this.dot||!e.name.startsWith(`.`))&&(t.hasMore()||this.matches.add(e,r,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(n&&t.checkFollowGlobstar()?this.subwalks.add(e,n):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),n){let t=n.pattern();if(typeof t==`string`&&t!==`..`&&t!==``&&t!==`.`)this.testString(e,t,n.rest(),r);else if(t===`..`){let t=e.parent||e;this.subwalks.add(t,n)}else t instanceof RegExp&&this.testRegExp(e,t,n.rest(),r)}}testRegExp(e,t,n,r){t.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}testString(e,t,n,r){e.isNamed(t)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}}})),aL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;let t=eL(),n=rL(),r=iL(),i=(e,t)=>typeof e==`string`?new n.Ignore([e],t):Array.isArray(e)?new n.Ignore(e,t):e;var a=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,t,n){if(this.patterns=e,this.path=t,this.opts=n,this.#n=!n.posix&&n.platform===`win32`?`\\`:`/`,this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#t=i(n.ignore??[],n),!this.includeChildMatches&&typeof this.#t.add!=`function`))throw Error(`cannot ignore child matches, ignore lacks add() method.`);this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener(`abort`,()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#i(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=await r.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=r.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let t=`${e.relativePosix()}/**`;this.#t.add(t)}let n=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let r=this.opts.mark&&e.isDirectory()?this.#n:``;if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+r)}else{let t=this.opts.posix?e.relativePosix():e.relative(),n=this.opts.dotRelative&&!t.startsWith(`..`+this.#n)?`.`+this.#n:``;this.matchEmit(t?n+t+r:`.`+r)}}async match(e,t,n){let r=await this.matchCheck(e,n);r&&this.matchFinish(r,t)}matchSync(e,t,n){let r=this.matchCheckSync(e,n);r&&this.matchFinish(r,t)}walkCB(e,t,n){this.signal?.aborted&&n(),this.walkCB2(e,t,new r.Processor(this.opts),n)}walkCB2(e,t,n,r){if(this.#i(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2(e,t,n,r));return}n.processPatterns(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||(i++,this.match(e,t,r).then(()=>a()));for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,n,a):e.readdirCB((t,r)=>this.walkCB3(e,r,n,a),!0)}a()}walkCB3(e,t,n,r){n=n.filterEntries(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||(i++,this.match(e,t,r).then(()=>a()));for(let[e,t]of n.subwalks.entries())i++,this.walkCB2(e,t,n.child(),a);a()}walkCBSync(e,t,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,t,new r.Processor(this.opts),n)}walkCB2Sync(e,t,n,r){if(this.#i(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,n,r));return}n.processPatterns(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||this.matchSync(e,t,r);for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirSync();this.walkCB3Sync(e,t,n,a)}a()}walkCB3Sync(e,t,n,r){n=n.filterEntries(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||this.matchSync(e,t,r);for(let[e,t]of n.subwalks.entries())i++,this.walkCB2Sync(e,t,n.child(),a);a()}};e.GlobUtil=a,e.GlobWalker=class extends a{matches=new Set;constructor(e,t,n){super(e,t,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},e.GlobStream=class extends a{results;constructor(e,n,r){super(e,n,r),this.results=new t.Minipass({signal:this.signal,objectMode:!0}),this.results.on(`drain`,()=>this.resume()),this.results.on(`resume`,()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}})),oL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;let n=QI(),r=t(`node:url`),i=tL(),a=nL(),o=aL(),s=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Glob=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw TypeError(`glob options required`);if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith(`file://`))&&(t.cwd=(0,r.fileURLToPath)(t.cwd)):this.cwd=``,this.cwd=t.cwd||``,this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw Error(`cannot set absolute and withFileTypes:true`);if(typeof e==`string`&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(e=>e.replace(/\\/g,`/`))),this.matchBase){if(t.noglobstar)throw TypeError(`base matching requires globstar`);e=e.map(e=>e.includes(`/`)?e:`./**/${e}`)}if(this.pattern=e,this.platform=t.platform||s,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw Error(`nocase option contradicts provided scurry option`)}else{let e=t.platform===`win32`?i.PathScurryWin32:t.platform===`darwin`?i.PathScurryDarwin:t.platform?i.PathScurryPosix:i.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let o=this.platform===`darwin`||this.platform===`win32`,c={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:o,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[l,u]=this.pattern.map(e=>new n.Minimatch(e,c)).reduce((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e),[[],[]]);this.patterns=l.map((e,t)=>{let n=u[t];if(!n)throw Error(`invalid pattern object`);return new a.Pattern(e,n,0,this.platform)})}async walk(){return[...await new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}})),sL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;let t=QI();e.hasMagic=(e,n={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new t.Minimatch(r,n).hasMagic())return!0;return!1}})),cL=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.glob=e.sync=e.iterate=e.iterateSync=e.stream=e.streamSync=e.Ignore=e.hasMagic=e.Glob=e.unescape=e.escape=void 0,e.globStreamSync=c,e.globStream=l,e.globSync=u,e.globIterateSync=f,e.globIterate=p;let t=QI(),n=oL(),r=sL();var i=QI();Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return i.unescape}});var a=oL();Object.defineProperty(e,"Glob",{enumerable:!0,get:function(){return a.Glob}});var o=sL();Object.defineProperty(e,"hasMagic",{enumerable:!0,get:function(){return o.hasMagic}});var s=rL();Object.defineProperty(e,"Ignore",{enumerable:!0,get:function(){return s.Ignore}});function c(e,t={}){return new n.Glob(e,t).streamSync()}function l(e,t={}){return new n.Glob(e,t).stream()}function u(e,t={}){return new n.Glob(e,t).walkSync()}async function d(e,t={}){return new n.Glob(e,t).walk()}function f(e,t={}){return new n.Glob(e,t).iterateSync()}function p(e,t={}){return new n.Glob(e,t).iterate()}e.streamSync=c,e.stream=Object.assign(l,{sync:c}),e.iterateSync=f,e.iterate=Object.assign(p,{sync:f}),e.sync=Object.assign(u,{stream:c,iterate:f}),e.glob=Object.assign(d,{glob:d,globSync:u,sync:e.sync,globStream:l,stream:e.stream,globStreamSync:c,streamSync:e.streamSync,globIterate:p,iterate:e.iterate,globIterateSync:f,iterateSync:e.iterateSync,Glob:n.Glob,hasMagic:r.hasMagic,escape:t.escape,unescape:t.unescape}),e.glob.glob=e.glob})),lL=i(((e,n)=>{var r=cP(),i=t(`path`),a=eI(),o=LI(),s=UI(),c=KI(),l=cL(),u=n.exports={},d=/[\/\\]/g,f=function(e,t){var n=[];return a(e).forEach(function(e){var r=e.indexOf(`!`)===0;r&&(e=e.slice(1));var i=t(e);n=r?o(n,i):s(n,i)}),n};u.exists=function(){var e=i.join.apply(i,arguments);return r.existsSync(e)},u.expand=function(...e){var t=c(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var a=f(n,function(e){return l.sync(e,t)});return t.filter&&(a=a.filter(function(e){e=i.join(t.cwd||``,e);try{return typeof t.filter==`function`?t.filter(e):r.statSync(e)[t.filter]()}catch{return!1}})),a},u.expandMapping=function(e,t,n){n=Object.assign({rename:function(e,t){return i.join(e||``,t)}},n);var r=[],a={};return u.expand(n,e).forEach(function(e){var o=e;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(t,o,n);n.cwd&&(e=i.join(n.cwd,e)),s=s.replace(d,`/`),e=e.replace(d,`/`),a[s]?a[s].src.push(e):(r.push({src:[e],dest:s}),a[s]=r[r.length-1])}),r},u.normalizeFilesArray=function(e){var t=[];return e.forEach(function(e){(`src`in e||`dest`in e)&&t.push(e)}),t.length===0?[]:(t=_(t).chain().forEach(function(e){!(`src`in e)||!e.src||(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])}).map(function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map(function(t){var n=Object.assign({},e);return n.orig=Object.assign({},e),n.src=t.src,n.dest=t.dest,[`expand`,`cwd`,`flatten`,`rename`,`ext`].forEach(function(e){delete n[e]}),n});var n=Object.assign({},e);return n.orig=Object.assign({},e),`src`in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return`result`in n||(r=e.src,r=Array.isArray(r)?a(r):[r],n.result=u.expand(t,r)),n.result}}),`dest`in n&&(n.dest=e.dest),n}).flatten().value(),t)}})),uL=i(((e,n)=>{var r=cP(),i=t(`path`),a=lP(),o=OP(),s=kP(),c=bF();t(`stream`).Stream;var l=XF().PassThrough,u=n.exports={};u.file=lL(),u.collectStream=function(e,t){var n=[],r=0;e.on(`error`,t),e.on(`data`,function(e){n.push(e),r+=e.length}),e.on(`end`,function(){var e=Buffer.alloc(r),i=0;n.forEach(function(t){t.copy(e,i),i+=t.length}),t(null,e)})},u.dateify=function(e){return e||=new Date,e=e instanceof Date?e:typeof e==`string`?new Date(e):new Date,e},u.defaults=function(e,t,n){var r=arguments;return r[0]=r[0]||{},c(...r)},u.isStream=function(e){return a(e)},u.lazyReadStream=function(e){return new o.Readable(function(){return r.createReadStream(e)})},u.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e==`string`?Buffer.from(e):u.isStream(e)?e.pipe(new l):e},u.sanitizePath=function(e){return s(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``)},u.trailingSlashIt=function(e){return e.slice(-1)===`/`?e:e+`/`},u.unixifyPath=function(e){return s(e,!1).replace(/^\w+:/,``)},u.walkdir=function(e,t,n){var a=[];typeof t==`function`&&(n=t,t=e),r.readdir(e,function(o,s){var c=0,l,d;if(o)return n(o);(function o(){if(l=s[c++],!l)return n(null,a);d=i.join(e,l),r.stat(d,function(e,r){a.push({path:d,relative:i.relative(t,d).replace(/\\/g,`/`),stats:r}),r&&r.isDirectory()?u.walkdir(d,t,function(e,t){if(e)return n(e);t.forEach(function(e){a.push(e)}),o()}):o()})})()})}})),dL=i(((e,n)=>{ -/** -* Archiver Core -* -* @ignore -* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} -* @copyright (c) 2012-2014 Chris Talkington, contributors. -*/ -var r=t(`util`);let i={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 a(e,t){Error.captureStackTrace(this,this.constructor),this.message=i[e]||e,this.code=e,this.data=t}r.inherits(a,Error),e=n.exports=a})),fL=i(((e,n)=>{ -/** -* Archiver Core -* -* @ignore -* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} -* @copyright (c) 2012-2014 Chris Talkington, contributors. -*/ -var r=t(`fs`),i=rP(),a=iP(),o=t(`path`),s=uL(),c=t(`util`).inherits,l=dL(),u=XF().Transform,d=process.platform===`win32`,f=function(e,t){if(!(this instanceof f))return new f(e,t);typeof e!=`string`&&(t=e,e=`zip`),t=this.options=s.defaults(t,{highWaterMark:1024*1024,statConcurrency:4}),u.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=a.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=a.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,u),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(e,t){t||={};var n={source:null,filepath:e};t.name||=e,t.sourcePath=e,n.data=t,this._entriesCount++,t.stats&&t.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,t.stats),n&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(n))):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1},f.prototype._moduleAppend=function(e,t,n){if(this._state.aborted){n();return}this._module.append(e,t,function(e){if(this._task=null,this._state.aborted){this._shutdown();return}if(e){this.emit(`error`,e),setImmediate(n);return}this.emit(`entry`,t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit(`progress`,{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))},f.prototype._moduleFinalize=function(){typeof this._module.finalize==`function`?this._module.finalize():typeof this._module.end==`function`?this._module.end():this.emit(`error`,new l(`NOENDMETHOD`))},f.prototype._modulePipe=function(){this._module.on(`error`,this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(e){return!this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(e,t){e=s.defaults(e,{type:`file`,name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&e.stats===!1&&(e.stats=t);var n=e.type===`directory`;return e.name&&(typeof e.prefix==`string`&&e.prefix!==``&&(e.name=e.prefix+`/`+e.name,e.prefix=null),e.name=s.sanitizePath(e.name),e.type!==`symlink`&&e.name.slice(-1)===`/`?(n=!0,e.type=`directory`):n&&(e.name+=`/`)),typeof e.mode==`number`?d?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(d?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,d&&n&&(e.mode=493)):e.mode===null&&(e.mode=n?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=s.dateify(e.date),e},f.prototype._onModuleError=function(e){this.emit(`error`,e)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(e,t){var n=()=>{e.data.callback&&e.data.callback(),t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=e,this._moduleAppend(e.source,e.data,n)},f.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}r.lstat(e.filepath,function(n,r){if(this._state.aborted){setImmediate(t);return}if(n){this._entriesCount--,this.emit(`warning`,n),setImmediate(t);return}e=this._updateQueueTaskWithStats(e,r),e&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(e)),setImmediate(t)}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(e,t,n){e&&(this._pointer+=e.length),n(null,e)},f.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type=`file`,e.data.sourceType=`stream`,e.source=s.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports(`directory`))e.data.name=s.trailingSlashIt(e.data.name),e.data.type=`directory`,e.data.sourcePath=s.trailingSlashIt(e.filepath),e.data.sourceType=`buffer`,e.source=Buffer.concat([]);else if(t.isSymbolicLink()&&this._moduleSupports(`symlink`)){var n=r.readlinkSync(e.filepath),i=o.dirname(e.filepath);e.data.type=`symlink`,e.data.linkname=o.relative(i,o.resolve(i,n)),e.data.sourceType=`buffer`,e.source=Buffer.concat([])}else return t.isDirectory()?this.emit(`warning`,new l(`DIRECTORYNOTSUPPORTED`,e.data)):t.isSymbolicLink()?this.emit(`warning`,new l(`SYMLINKNOTSUPPORTED`,e.data)):this.emit(`warning`,new l(`ENTRYNOTSUPPORTED`,e.data)),null;return e.data=this._normalizeEntryData(e.data,t),e},f.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},f.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(t=this._normalizeEntryData(t),typeof t.name!=`string`||t.name.length===0)return this.emit(`error`,new l(`ENTRYNAMEREQUIRED`)),this;if(t.type===`directory`&&!this._moduleSupports(`directory`))return this.emit(`error`,new l(`DIRECTORYNOTSUPPORTED`,{name:t.name})),this;if(e=s.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType=`buffer`;else if(s.isStream(e))t.sourceType=`stream`;else return this.emit(`error`,new l(`INPUTSTEAMBUFFERREQUIRED`,{name:t.name})),this;return this._entriesCount++,this._queue.push({data:t,source:e}),this},f.prototype.directory=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`DIRECTORYDIRPATHREQUIRED`)),this;this._pending++,t===!1?t=``:typeof t!=`string`&&(t=e);var r=!1;typeof n==`function`?(r=n,n={}):typeof n!=`object`&&(n={});var a={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function s(e){this.emit(`error`,e)}function c(i){u.pause();var a=!1,o=Object.assign({},n);o.name=i.relative,o.prefix=t,o.stats=i.stat,o.callback=u.resume.bind(u);try{if(r){if(o=r(o),o===!1)a=!0;else if(typeof o!=`object`)throw new l(`DIRECTORYFUNCTIONINVALIDDATA`,{dirpath:e})}}catch(e){this.emit(`error`,e);return}if(a){u.resume();return}this._append(i.absolute,o)}var u=i(e,a);return u.on(`error`,s.bind(this)),u.on(`match`,c.bind(this)),u.on(`end`,o.bind(this)),this},f.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit(`error`,new l(`QUEUECLOSED`)),this):typeof e!=`string`||e.length===0?(this.emit(`error`,new l(`FILEFILEPATHREQUIRED`)),this):(this._append(e,t),this)},f.prototype.glob=function(e,t,n){this._pending++,t=s.defaults(t,{stat:!0,pattern:e});function r(){this._pending--,this._maybeFinalize()}function a(e){this.emit(`error`,e)}function o(e){c.pause();var t=Object.assign({},n);t.callback=c.resume.bind(c),t.stats=e.stat,t.name=e.relative,this._append(e.absolute,t)}var c=i(t.cwd||`.`,t);return c.on(`error`,a.bind(this)),c.on(`match`,o.bind(this)),c.on(`end`,r.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted){var e=new l(`ABORTED`);return this.emit(`error`,e),Promise.reject(e)}if(this._state.finalize){var t=new l(`FINALIZING`);return this.emit(`error`,t),Promise.reject(t)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(e,t){var r;n._module.on(`end`,function(){r||e()}),n._module.on(`error`,function(e){r=!0,t(e)})})},f.prototype.setFormat=function(e){return this._format?(this.emit(`error`,new l(`FORMATSET`)),this):(this._format=e,this)},f.prototype.setModule=function(e){return this._state.aborted?(this.emit(`error`,new l(`ABORTED`)),this):this._state.module?(this.emit(`error`,new l(`MODULESET`)),this):(this._module=e,this._modulePipe(),this)},f.prototype.symlink=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`SYMLINKFILEPATHREQUIRED`)),this;if(typeof t!=`string`||t.length===0)return this.emit(`error`,new l(`SYMLINKTARGETREQUIRED`,{filepath:e})),this;if(!this._moduleSupports(`symlink`))return this.emit(`error`,new l(`SYMLINKNOTSUPPORTED`,{filepath:e})),this;var r={};return r.type=`symlink`,r.name=e.replace(/\\/g,`/`),r.linkname=t.replace(/\\/g,`/`),r.sourceType=`buffer`,typeof n==`number`&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(e){return this._streams.push(e),this},n.exports=f})),pL=i(((e,t)=>{var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}})),mL=i(((e,t)=>{var n=t.exports={};n.dateToDos=function(e,t){t||=!1;var n=t?e.getFullYear():e.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2},n.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)},n.fromDosTime=function(e){return n.dosToDate(e.readUInt32LE(0))},n.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},n.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((e&65535)>>>0,0),t},n.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},n.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((e&4294967295)>>>0,0),t},n.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},n.toDosTime=function(e){return n.getLongBytes(n.dateToDos(e))}})),hL=i(((e,t)=>{var n=mL(),r=8,i=1,a=4,o=2,s=64,c=2048,l=t.exports=function(){return this instanceof l?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new l};l.prototype.encode=function(){return n.getShortBytes((this.descriptor?r:0)|(this.utf8?c:0)|(this.encryption?i:0)|(this.strongEncryption?s:0))},l.prototype.parse=function(e,t){var u=n.getShortBytesValue(e,t),d=new l;return d.useDataDescriptor((u&r)!==0),d.useUTF8ForNames((u&c)!==0),d.useStrongEncryption((u&s)!==0),d.useEncryption((u&i)!==0),d.setSlidingDictionarySize((u&o)===0?4096:8192),d.setNumberOfShannonFanoTrees((u&a)===0?2:3),d},l.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},l.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},l.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},l.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},l.prototype.useDataDescriptor=function(e){this.descriptor=e},l.prototype.usesDataDescriptor=function(){return this.descriptor},l.prototype.useEncryption=function(e){this.encryption=e},l.prototype.usesEncryption=function(){return this.encryption},l.prototype.useStrongEncryption=function(e){this.strongEncryption=e},l.prototype.usesStrongEncryption=function(){return this.strongEncryption},l.prototype.useUTF8ForNames=function(e){this.utf8=e},l.prototype.usesUTF8ForNames=function(){return this.utf8}})),gL=i(((e,t)=>{t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}})),_L=i(((e,t)=>{t.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from([,,]),LONG:4,LONG_ZERO:Buffer.from([,,,,]),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}})),vL=i(((e,n)=>{var r=t(`util`).inherits,i=kP(),a=pL(),o=hL(),s=gL(),c=_L(),l=mL(),u=n.exports=function(e){if(!(this instanceof u))return new u(e);a.call(this),this.platform=c.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=c.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};r(u,a),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return this.comment===null?``:this.comment},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return this.extra===null?c.EMPTY:this.extra},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return this.time===-1?-1:l.dosToDate(this.time)},u.prototype.getTimeDos=function(){return this.time===-1?0:this.time},u.prototype.getUnixMode=function(){return this.platform===c.PLATFORM_UNIX?this.getExternalAttributes()>>c.SHORT_SHIFT&c.SHORT_MASK:0},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw Error(`invalid entry compressed size`);this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw Error(`invalid entry crc32`);this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o))throw Error(`invalid entry GeneralPurposeBit`);this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw Error(`invalid entry compression method`);this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw Error(`invalid entry size`);this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw Error(`invalid entry time`);this.time=l.dateToDos(e,t)},u.prototype.setUnixMode=function(e){e|=this.isDirectory()?c.S_IFDIR:c.S_IFREG;var t=0;t|=e<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}})),yL=i(((e,n)=>{t(`stream`).Stream;var r=XF().PassThrough,i=lP(),a=n.exports={};a.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e==`string`)return Buffer.from(e);if(i(e)&&!e._readableState){var t=new r;return e.pipe(t),t}return e}})),bL=i(((e,n)=>{var r=t(`util`).inherits,i=lP(),a=XF().Transform,o=pL(),s=yL(),c=n.exports=function(e){if(!(this instanceof c))return new c(e);a.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(c,a),c.prototype._appendBuffer=function(e,t,n){},c.prototype._appendStream=function(e,t,n){},c.prototype._emitErrorCallback=function(e){e&&this.emit(`error`,e)},c.prototype._finish=function(e){},c.prototype._normalizeEntry=function(e){},c.prototype._transform=function(e,t,n){n(null,e)},c.prototype.entry=function(e,t,n){if(t||=null,typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),!(e instanceof o)){n(Error(`not a valid instance of ArchiveEntry`));return}if(this._archive.finish||this._archive.finished){n(Error(`unacceptable entry after finish`));return}if(this._archive.processing){n(Error(`already processing an entry`));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=s.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,n);else if(i(t))this._appendStream(e,t,n);else{this._archive.processing=!1,n(Error(`input source must be valid Stream or Buffer instance`));return}return this},c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()},c.prototype.getBytesWritten=function(){return this.offset},c.prototype.write=function(e,t){return e&&(this.offset+=e.length),a.prototype.write.call(this,e,t)}})),xL=i((e=>{ -/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ -(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`1.2.2`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t();function r(e){var t=0,n=0,r=0,i=typeof Int32Array<`u`?new Int32Array(4096):Array(4096);for(r=0;r!=256;++r)i[r]=e[r];for(r=0;r!=256;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[n&255];var a=[];for(r=1;r!=16;++r)a[r-1]=typeof Int32Array<`u`?i.subarray(r*256,r*256+256):i.slice(r*256,r*256+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],v=i[12],y=i[13],b=i[14];function x(e,t){for(var r=t^-1,i=0,a=e.length;i>>8^n[(r^e.charCodeAt(i++))&255];return~r}function S(e,t){for(var r=t^-1,i=e.length-15,x=0;x>8&255]^v[e[x++]^r>>16&255]^g[e[x++]^r>>>24]^h[e[x++]]^m[e[x++]]^p[e[x++]]^f[e[x++]]^d[e[x++]]^u[e[x++]]^l[e[x++]]^c[e[x++]]^s[e[x++]]^o[e[x++]]^a[e[x++]]^n[e[x++]];for(i+=15;x>>8^n[(r^e[x++])&255];return~r}function C(e,t){for(var r=t^-1,i=0,a=e.length,o=0,s=0;i>>8^n[(r^o)&255]:o<2048?(r=r>>>8^n[(r^(192|o>>6&31))&255],r=r>>>8^n[(r^(128|o&63))&255]):o>=55296&&o<57344?(o=(o&1023)+64,s=e.charCodeAt(i++)&1023,r=r>>>8^n[(r^(240|o>>8&7))&255],r=r>>>8^n[(r^(128|o>>2&63))&255],r=r>>>8^n[(r^(128|s>>6&15|(o&3)<<4))&255],r=r>>>8^n[(r^(128|s&63))&255]):(r=r>>>8^n[(r^(224|o>>12&15))&255],r=r>>>8^n[(r^(128|o>>6&63))&255],r=r>>>8^n[(r^(128|o&63))&255]);return~r}e.table=n,e.bstr=x,e.buf=S,e.str=C})})),SL=i(((e,t)=>{let{Transform:n}=XF(),r=xL();t.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,n){e&&(this.checksum=r.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(){return this.rawSize}}})),CL=i(((e,n)=>{let{DeflateRaw:r}=t(`zlib`),i=xL();n.exports=class extends r{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,n){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,n)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}})),wL=i(((e,t)=>{t.exports={CRC32Stream:SL(),DeflateCRC32Stream:CL()}})),TL=i(((e,n)=>{var r=t(`util`).inherits,i=xL(),{CRC32Stream:a}=wL(),{DeflateCRC32Stream:o}=wL(),s=bL();vL(),hL();var c=_L();yL();var l=mL(),u=n.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),s.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:``,finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};r(u,s),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,n){t.length===0&&e.setMethod(c.METHOD_STORED);var r=e.getMethod();if(r===c.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.buf(t)>>>0)),this._writeLocalFileHeader(e),r===c.METHOD_STORED){this.write(t),this._afterAppend(e),n(null,e);return}else if(r===c.METHOD_DEFLATED){this._smartStream(e,n).end(t);return}else{n(Error(`compression method `+r+` not implemented`));return}},u.prototype._appendStream=function(e,t,n){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var r=this._smartStream(e,n);t.once(`error`,function(e){r.emit(`error`,e),r.end()}),t.pipe(r)},u.prototype._defaults=function(e){return typeof e!=`object`&&(e={}),typeof e.zlib!=`object`&&(e.zlib={}),typeof e.zlib.level!=`number`&&(e.zlib.level=c.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(c.METHOD_DEFLATED),e.getMethod()===c.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var n=e.getMethod()===c.METHOD_DEFLATED?new o(this.options.zlib):new a,r=null;function i(){var i=n.digest().readUInt32BE(0);e.setCrc(i),e.setSize(n.size()),e.setCompressedSize(n.size(!0)),this._afterAppend(e),t(r,e)}return n.once(`end`,i.bind(this)),n.once(`error`,function(e){r=e}),n.pipe(this,{end:!1}),n},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(e=c.ZIP64_MAGIC_SHORT,t=c.ZIP64_MAGIC,n=c.ZIP64_MAGIC),this.write(l.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e)),this.write(l.getShortBytes(e)),this.write(l.getLongBytes(t)),this.write(l.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(l.getShortBytes(i)),this.write(r)},u.prototype._writeCentralDirectoryZip64=function(){this.write(l.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(l.getEightBytes(44)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._archive.centralLength)),this.write(l.getEightBytes(this._archive.centralOffset)),this.write(l.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(l.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e._offsets.file,i=e.getSize(),a=e.getCompressedSize();if(e.isZip64()||r>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,a=c.ZIP64_MAGIC,r=c.ZIP64_MAGIC,e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var o=Buffer.concat([l.getShortBytes(c.ZIP64_EXTRA_ID),l.getShortBytes(24),l.getEightBytes(e.getSize()),l.getEightBytes(e.getCompressedSize()),l.getEightBytes(e._offsets.file)],28);e.setExtra(o)}this.write(l.getLongBytes(c.SIG_CFH)),this.write(l.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(n)),this.write(l.getLongBytes(e.getTimeDos())),this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(a)),this.write(l.getLongBytes(i));var s=e.getName(),u=e.getComment(),d=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(s=Buffer.from(s),u=Buffer.from(u)),this.write(l.getShortBytes(s.length)),this.write(l.getShortBytes(d.length)),this.write(l.getShortBytes(u.length)),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e.getInternalAttributes())),this.write(l.getLongBytes(e.getExternalAttributes())),this.write(l.getLongBytes(r)),this.write(s),this.write(d),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(l.getLongBytes(c.SIG_DD)),this.write(l.getLongBytes(e.getCrc())),e.isZip64()?(this.write(l.getEightBytes(e.getCompressedSize())),this.write(l.getEightBytes(e.getSize()))):(this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(r=Buffer.from(r)),e._offsets.file=this.offset,this.write(l.getLongBytes(c.SIG_LFH)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(n)),this.write(l.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize()))),this.write(l.getShortBytes(r.length)),this.write(l.getShortBytes(i.length)),this.write(r),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return this._archive.comment===null?``:this._archive.comment},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}})),EL=i(((e,t)=>{t.exports={ArchiveEntry:pL(),ZipArchiveEntry:vL(),ArchiveOutputStream:bL(),ZipArchiveOutputStream:TL()}})),DL=i(((e,n)=>{ -/** -* ZipStream -* -* @ignore -* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} -* @copyright (c) 2014 Chris Talkington, contributors. -*/ -var r=t(`util`).inherits,i=EL().ZipArchiveOutputStream,a=EL().ZipArchiveEntry,o=uL(),s=n.exports=function(e){if(!(this instanceof s))return new s(e);e=this.options=e||{},e.zlib=e.zlib||{},i.call(this,e),typeof e.level==`number`&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level==`number`&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};r(s,i),s.prototype._normalizeFileData=function(e){e=o.defaults(e,{type:`file`,name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:``});var t=e.type===`directory`,n=e.type===`symlink`;return e.name&&(e.name=o.sanitizePath(e.name),!n&&e.name.slice(-1)===`/`?(t=!0,e.type=`directory`):t&&(e.name+=`/`)),(t||n)&&(e.store=!0),e.date=o.dateify(e.date),e},s.prototype.entry=function(e,t,n){if(typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),t=this._normalizeFileData(t),t.type!==`file`&&t.type!==`directory`&&t.type!==`symlink`){n(Error(t.type+` entries not currently supported`));return}if(typeof t.name!=`string`||t.name.length===0){n(Error(`entry name must be a non-empty string value`));return}if(t.type===`symlink`&&typeof t.linkname!=`string`){n(Error(`entry linkname must be a non-empty string value when type equals symlink`));return}var r=new a(t.name);return r.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&r.setName(t.name,!0),t.store&&r.setMethod(0),t.comment.length>0&&r.setComment(t.comment),t.type===`symlink`&&typeof t.mode!=`number`&&(t.mode=40960),typeof t.mode==`number`&&(t.type===`symlink`&&(t.mode|=40960),r.setUnixMode(t.mode)),t.type===`symlink`&&typeof t.linkname==`string`&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,r,e,n)},s.prototype.finalize=function(){this.finish()}})),OL=i(((e,t)=>{ -/** -* 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 n=DL(),r=uL(),i=function(e){if(!(this instanceof i))return new i(e);e=this.options=r.defaults(e,{comment:``,forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};i.prototype.append=function(e,t,n){this.engine.entry(e,t,n)},i.prototype.finalize=function(){this.engine.finalize()},i.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},i.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},i.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},t.exports=i})),kL=i(((e,n)=>{n.exports=t(`events`)})),AL=i(((e,t)=>{t.exports=class{constructor(e){if(!(e>0)||e-1&e)throw Error(`Max size for a FixedFIFO should be a power of two`);this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]===void 0?(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0):!1}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}})),jL=i(((e,t)=>{let n=AL();t.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}})),ML=i(((e,t)=>{function n(e){return Buffer.isBuffer(e)||e instanceof Uint8Array}function r(e){return Buffer.isEncoding(e)}function i(e,t,n){return Buffer.alloc(e,t,n)}function a(e){return Buffer.allocUnsafe(e)}function o(e){return Buffer.allocUnsafeSlow(e)}function s(e,t){return Buffer.byteLength(e,t)}function c(e,t){return Buffer.compare(e,t)}function l(e,t){return Buffer.concat(e,t)}function u(e,t,n,r,i){return x(e).copy(t,n,r,i)}function d(e,t){return x(e).equals(t)}function f(e,t,n,r,i){return x(e).fill(t,n,r,i)}function p(e,t,n){return Buffer.from(e,t,n)}function m(e,t,n,r){return x(e).includes(t,n,r)}function h(e,t,n,r){return x(e).indexOf(t,n,r)}function g(e,t,n,r){return x(e).lastIndexOf(t,n,r)}function v(e){return x(e).swap16()}function y(e){return x(e).swap32()}function b(e){return x(e).swap64()}function x(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function S(e,t,n,r){return x(e).toString(t,n,r)}function C(e,t,n,r,i){return x(e).write(t,n,r,i)}function w(e,t){return x(e).readDoubleBE(t)}function T(e,t){return x(e).readDoubleLE(t)}function E(e,t){return x(e).readFloatBE(t)}function D(e,t){return x(e).readFloatLE(t)}function O(e,t){return x(e).readInt32BE(t)}function k(e,t){return x(e).readInt32LE(t)}function A(e,t){return x(e).readUInt32BE(t)}function j(e,t){return x(e).readUInt32LE(t)}function M(e,t,n){return x(e).writeDoubleBE(t,n)}function N(e,t,n){return x(e).writeDoubleLE(t,n)}function P(e,t,n){return x(e).writeFloatBE(t,n)}function F(e,t,n){return x(e).writeFloatLE(t,n)}function I(e,t,n){return x(e).writeInt32BE(t,n)}function L(e,t,n){return x(e).writeInt32LE(t,n)}function R(e,t,n){return x(e).writeUInt32BE(t,n)}function z(e,t,n){return x(e).writeUInt32LE(t,n)}t.exports={isBuffer:n,isEncoding:r,alloc:i,allocUnsafe:a,allocUnsafeSlow:o,byteLength:s,compare:c,concat:l,copy:u,equals:d,fill:f,from:p,includes:m,indexOf:h,lastIndexOf:g,swap16:v,swap32:y,swap64:b,toBuffer:x,toString:S,write:C,readDoubleBE:w,readDoubleLE:T,readFloatBE:E,readFloatLE:D,readInt32BE:O,readInt32LE:k,readUInt32BE:A,readUInt32LE:j,writeDoubleBE:M,writeDoubleLE:N,writeFloatBE:P,writeFloatLE:F,writeInt32BE:I,writeInt32LE:L,writeUInt32BE:R,writeUInt32LE:z}})),NL=i(((e,t)=>{let n=ML();t.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return n.toString(e,this.encoding)}flush(){return``}}})),PL=i(((e,t)=>{let n=ML();t.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return``;if(this.bytesNeeded===0&&r(e,0)===0)return this.bytesSeen=i(e),n.toString(e,`utf8`);let t=``,a=0;if(this.bytesNeeded>0){for(;athis.upperBoundary){t+=`�`,this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|n&63,this.bytesSeen++,a++,this.bytesSeen===this.bytesNeeded){t+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return t}let o=r(e,a),s=e.byteLength-o;s>a&&(t+=n.toString(e,`utf8`,a,s));for(let n=s;n=194&&r<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=r&31):r>=224&&r<=239?(r===224?this.lowerBoundary=160:r===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=r&15):r>=240&&r<=244?(r===240?this.lowerBoundary=144:r===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=r&7):(this.bytesSeen=1,t+=`�`);continue}if(rthis.upperBoundary){t+=`�`,n--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|r&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(t+=String.fromCodePoint(this.codePoint),this._reset())}return t}flush(){let e=this.bytesNeeded>0?`�`:``;return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function r(e,t){let n=e.byteLength;if(n<=t)return 0;let r=Math.max(t,n-4),i=n-1;for(;i>r&&(e[i]&192)==128;)i--;if(i=194&&a<=223)o=2;else if(a>=224&&a<=239)o=3;else if(a>=240&&a<=244)o=4;else return 0;let s=n-i;return s=r&&(e[i]&192)==128;)i--;if(i<0)return 1;let a=e[i],o;if(a>=194&&a<=223)o=2;else if(a>=224&&a<=239)o=3;else if(a>=240&&a<=244)o=4;else return 1;if(t-i!==o)return 1;if(o>=3){let t=e[i+1];if(a===224&&t<160||a===237&&t>159||a===240&&t<144||a===244&&t>143)return 1}return 0}})),FL=i(((e,t)=>{let n=NL(),r=PL();t.exports=class{constructor(e=`utf8`){switch(this.encoding=i(e),this.encoding){case`utf8`:this.decoder=new r;break;case`utf16le`:case`base64`:throw Error(`Unsupported encoding: `+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e==`string`?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let t=``;return e&&(t=this.push(e)),t+=this.decoder.flush(),t}};function i(e){switch(e=e.toLowerCase(),e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:throw Error(`Unknown encoding: `+e)}}})),IL=i(((e,t)=>{let{EventEmitter:n}=kL(),r=Error(`Stream was destroyed`),i=Error(`Premature close`),a=jL(),o=FL(),s=typeof queueMicrotask>`u`?e=>global.process.nextTick(e):queueMicrotask,c=536870910,l=1024,u=2048,d=16384,f=32768,p=131072,m=536805375,h=536870143,g=536838143,v=536739839,y=2<<18,b=4<<18,x=8<<18,S=32<<18,C=64<<18,w=128<<18,T=512<<18,E=1024<<18,D=503316479,O=268435455,k=262160,A=8404992,j=8405006,M=33587200,N=33587215,P=16527,F=270794767,I=Symbol.asyncIterator||Symbol(`asyncIterator`);var L=class{constructor(e,{highWaterMark:t=16384,map:n=null,mapWritable:r,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||De,this.map=r||n,this.afterWrite=H.bind(this),this.afterUpdateNextTick=ie.bind(this)}get ending(){return(this.stream._duplexState&T)!=0}get ended(){return(this.stream._duplexState&S)!=0}push(e){return this.stream._duplexState&142606350?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0,this.error=null,this.pipeline=null,this.byteLength=o||i||De,this.map=r||n,this.pipeTo=null,this.afterRead=ne.bind(this),this.afterUpdateNextTick=re.bind(this)}get ending(){return(this.stream._duplexState&l)!=0}get ended(){return(this.stream._duplexState&d)!=0}pipe(e,t){if(this.pipeTo!==null)throw Error(`Can only pipe to one destination`);if(typeof t!=`function`&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new ee(this.stream,e,t),t&&this.stream.on(`error`,Oe),ye(e))e._writableState.pipeline=this.pipeline,t&&e.on(`error`,Oe),e.on(`finish`,this.pipeline.finished.bind(this.pipeline));else{let t=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on(`error`,t),e.on(`close`,n),e.on(`finish`,this.pipeline.finished.bind(this.pipeline))}e.on(`drain`,B.bind(this)),this.stream.emit(`piping`,e),e.emit(`pipe`,this.stream)}push(e){let t=this.stream;return e===null?(this.highWaterMark=0,t._duplexState=(t._duplexState|l)&536805311,!1):this.map!==null&&(e=this.map(e),e===null)?(t._duplexState&=m,this.buffered0;)t.push(this.shift());for(let e=0;e0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(t,e)}}function H(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=469499903,this.drains!==null&&ae(this.drains),(t._duplexState&6553615)==4194304&&(t._duplexState&=532676607,(t._duplexState&C)==C&&t.emit(`drain`)),this.updateCallback()}function ne(e){e&&this.stream.destroy(e),this.stream._duplexState&=536870895,this.readAhead===!1&&!(this.stream._duplexState&256)&&(this.stream._duplexState&=v),this.updateCallback()}function re(){this.stream._duplexState&32||(this.stream._duplexState&=g,this.update())}function ie(){this.stream._duplexState&y||(this.stream._duplexState&=D,this.update())}function ae(e){for(let t=0;t0)?null:n(r)}}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?536739583:536870655,this}static _fromAsyncIterator(t,n){let r,i=new e({...n,read(e){t.next().then(a).then(e.bind(null,null)).catch(e)},predestroy(){r=t.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return i;function a(e){e.done?i.push(null):i.push(e.value)}}static from(t,n){if(we(t))return t;if(t[I])return this._fromAsyncIterator(t[I](),n);Array.isArray(t)||(t=t===void 0?[]:[t]);let r=0;return new e({...n,read(e){this.push(r===t.length?null:t[r++]),e(null)}})}static isBackpressured(e){return(e._duplexState&17422)!=0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&256)==0}[I](){let e=this,t=null,n=null,i=null;return this.on(`error`,e=>{t=e}),this.on(`readable`,a),this.on(`close`,o),{[I](){return this},next(){return new Promise(function(t,r){n=t,i=r;let a=e.read();a===null?e._duplexState&8&&s(null):s(a)})},return(){return c(null)},throw(e){return c(e)}};function a(){n!==null&&s(e.read())}function o(){n!==null&&s(null)}function s(a){i!==null&&(t?i(t):a===null&&!(e._duplexState&d)?i(r):n({value:a,done:a===null}),i=n=null)}function c(t){return e.destroy(t),new Promise((n,r)=>{if(e._duplexState&8)return n({value:void 0,done:!0});e.once(`close`,function(){t?r(t):n({value:void 0,done:!0})})})}}},ue=class extends ce{constructor(e){super(e),this._duplexState|=16385,this._writableState=new L(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=E}uncork(){this._duplexState&=O,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&146800654)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,n=(Ae(e)?Math.min(1,t.queue.length):t.queue.length)+(e._duplexState&67108864?1:0);return n===0?Promise.resolve(!0):(t.drains===null&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:n,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},de=class extends le{constructor(e){super(e),this._duplexState=1|this._duplexState&p,this._writableState=new L(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=E}uncork(){this._duplexState&=O,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},fe=class extends de{constructor(e){super(e),this._transformState=new z(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(me.bind(this))}},pe=class extends fe{};function me(e,t){let n=this._transformState.afterFinal;if(e)return n(e);t!=null&&this.push(t),this.push(null),n(null)}function he(...e){return new Promise((t,n)=>ge(...e,e=>{if(e)return n(e);t()}))}function ge(e,...t){let n=Array.isArray(e)?[...e,...t]:[e,...t],r=n.length&&typeof n[n.length-1]==`function`?n.pop():null;if(n.length<2)throw Error(`Pipeline requires at least 2 streams`);let a=n[0],o=null,s=null;for(let e=1;e1,l),a.pipe(o)),a=o;if(r){let e=!1,t=ye(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on(`error`,e=>{s===null&&(s=e)}),o.on(`finish`,()=>{e=!0,t||r(s)}),t&&o.on(`close`,()=>r(s||(e?null:i)))}return o;function c(e,t,n,r){e.on(`error`,r),e.on(`close`,a);function a(){if(t&&e._readableState&&!e._readableState.ended||n&&e._writableState&&!e._writableState.ended)return r(i)}}function l(e){if(!(!e||s)){s=e;for(let t of n)t.destroy(e)}}}function _e(e){return e}function ve(e){return!!e._readableState||!!e._writableState}function ye(e){return typeof e._duplexState==`number`&&ve(e)}function W(e){return!!e._readableState&&e._readableState.ending}function be(e){return!!e._readableState&&e._readableState.ended}function xe(e){return!!e._writableState&&e._writableState.ending}function Se(e){return!!e._writableState&&e._writableState.ended}function Ce(e,t={}){let n=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return!t.all&&n===r?null:n}function we(e){return ye(e)&&e.readable}function Te(e){return(e._duplexState&1)!=1||(e._duplexState&4)==4||(e._duplexState&M)!=0}function Ee(e){return typeof e==`object`&&!!e&&typeof e.byteLength==`number`}function De(e){return Ee(e)?e.byteLength:1024}function Oe(){}function ke(){this.destroy(Error(`Stream aborted.`))}function Ae(e){return e._writev!==ue.prototype._writev&&e._writev!==de.prototype._writev}t.exports={pipeline:ge,pipelinePromise:he,isStream:ve,isStreamx:ye,isEnding:W,isEnded:be,isFinishing:xe,isFinished:Se,isDisturbed:Te,getStreamError:Ce,Stream:ce,Writable:ue,Readable:le,Duplex:de,Transform:fe,PassThrough:pe}})),LL=i((e=>{let t=ML(),n=t.from([117,115,116,97,114,0]),r=t.from([48,48]),i=t.from([117,115,116,97,114,32]),a=t.from([32,0]);e.decodeLongPath=function(e,t){return y(e,0,e.length,t)},e.encodePax=function(e){let n=``;e.name&&(n+=b(` path=`+e.name+` -`)),e.linkname&&(n+=b(` linkpath=`+e.linkname+` -`));let r=e.pax;if(r)for(let e in r)n+=b(` `+e+`=`+r[e]+` -`);return t.from(n)},e.decodePax=function(e){let n={};for(;e.length;){let r=0;for(;r100;){let e=a.indexOf(`/`);if(e===-1)return null;o+=o?`/`+a.slice(0,e):a.slice(0,e),a=a.slice(e+1)}return t.byteLength(a)>100||t.byteLength(o)>155||e.linkname&&t.byteLength(e.linkname)>100?null:(t.write(i,a),t.write(i,p(e.mode&4095,6),100),t.write(i,p(e.uid,6),108),t.write(i,p(e.gid,6),116),h(e.size,i,124),t.write(i,p(e.mtime.getTime()/1e3|0,11),136),i[156]=48+u(e.type),e.linkname&&t.write(i,e.linkname,157),t.copy(n,i,257),t.copy(r,i,263),e.uname&&t.write(i,e.uname,265),e.gname&&t.write(i,e.gname,297),t.write(i,p(e.devmajor||0,6),329),t.write(i,p(e.devminor||0,6),337),o&&t.write(i,o,345),t.write(i,p(f(i),6),148),i)},e.decode=function(e,t,n){let r=e[156]===0?0:e[156]-48,i=y(e,0,100,t),a=v(e,100,8),c=v(e,108,8),u=v(e,116,8),d=v(e,124,12),p=v(e,136,12),m=l(r),h=e[157]===0?null:y(e,157,100,t),g=y(e,265,32),b=y(e,297,32),x=v(e,329,8),S=v(e,337,8),C=f(e);if(C===256)return null;if(C!==v(e,148,8))throw Error(`Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?`);if(o(e))e[345]&&(i=y(e,345,155,t)+`/`+i);else if(!s(e)&&!n)throw Error(`Invalid tar header: unknown format.`);return r===0&&i&&i[i.length-1]===`/`&&(r=5),{name:i,mode:a,uid:c,gid:u,size:d,mtime:new Date(1e3*p),type:m,linkname:h,uname:g,gname:b,devmajor:x,devminor:S,pax:null}};function o(e){return t.equals(n,e.subarray(257,263))}function s(e){return t.equals(i,e.subarray(257,263))&&t.equals(a,e.subarray(263,265))}function c(e,t,n){return typeof e==`number`?(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0):n}function l(e){switch(e){case 0:return`file`;case 1:return`link`;case 2:return`symlink`;case 3:return`character-device`;case 4:return`block-device`;case 5:return`directory`;case 6:return`fifo`;case 7:return`contiguous-file`;case 72:return`pax-header`;case 55:return`pax-global-header`;case 27:return`gnu-long-link-path`;case 28:case 30:return`gnu-long-path`}return null}function u(e){switch(e){case`file`:return 0;case`link`:return 1;case`symlink`:return 2;case`character-device`:return 3;case`block-device`:return 4;case`directory`:return 5;case`fifo`:return 6;case`contiguous-file`:return 7;case`pax-header`:return 72}return 0}function d(e,t,n,r){for(;nt?`7777777777777777777`.slice(0,t)+` `:`0000000000000000000`.slice(0,t-e.length)+e+` `}function m(e,t,n){t[n]=128;for(let r=11;r>0;r--)t[n+r]=e&255,e=Math.floor(e/256)}function h(e,n,r){e.toString(8).length>11?m(e,n,r):t.write(n,p(e,11),r)}function g(e){let t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;let n=[],r;for(r=e.length-1;r>0;r--){let i=e[r];t?n.push(i):n.push(255-i)}let i=0,a=n.length;for(r=0;r=10**r&&r++,n+r+e}})),RL=i(((e,t)=>{let{Writable:n,Readable:r,getStreamError:i}=IL(),a=jL(),o=ML(),s=LL(),c=o.alloc(0);var l=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new a,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return c;let t=this._next(e);if(e===t.byteLength)return t;let n=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),n.push(t);return o.concat(n)}_next(e){let t=this.queue.peek(),n=t.byteLength-this._offset;if(e>=n){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}},u=class extends r{constructor(e,t,n){super(),this.header=t,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(i(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},d=class extends n{constructor(e){super(e),e||={},this._buffer=new l,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=f,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||`utf-8`,this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=s.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case`gnu-long-path`:case`gnu-long-link-path`:case`pax-global-header`:case`pax-header`:return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type===`directory`?(this.emit(`entry`,this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit(`entry`,this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&=(this._header.name=this._gnuLongPath,null),this._gnuLongLinkPath&&=(this._header.linkname=this._gnuLongLinkPath,null),this._pax&&=(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,null)}_decodeLongHeader(e){switch(this._header.type){case`gnu-long-path`:this._gnuLongPath=s.decodeLongPath(e,this._filenameEncoding);break;case`gnu-long-link-path`:this._gnuLongLinkPath=s.decodeLongPath(e,this._filenameEncoding);break;case`pax-global-header`:this._paxGlobal=s.decodePax(e);break;case`pax-header`:this._pax=this._paxGlobal===null?s.decodePax(e):Object.assign({},this._paxGlobal,s.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return this._missing===0?(this._stream.push(null),t&&this._stream._detach(),t&&this._locked===!1):t}_createStream(){return new u(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=f,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:Error(`Unexpected end of data`))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(i(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,n=null,r=null,i=null,a=this;return this.on(`entry`,c),this.on(`error`,t=>{e=t}),this.on(`close`,l),{[Symbol.asyncIterator](){return this},next(){return new Promise(s)},return(){return u(null)},throw(e){return u(e)}};function o(e){if(!i)return;let t=i;i=null,t(e)}function s(i,s){if(e)return s(e);if(r){i({value:r,done:!1}),r=null;return}t=i,n=s,o(null),a._finished&&t&&(t({value:void 0,done:!0}),t=n=null)}function c(e,a,o){i=o,a.on(`error`,f),t?(t({value:a,done:!1}),t=n=null):r=a}function l(){o(e),t&&=(e?n(e):t({value:void 0,done:!0}),n=null)}function u(e){return a.destroy(e),o(e),new Promise((t,n)=>{if(a.destroyed)return t({value:void 0,done:!0});a.once(`close`,function(){e?n(e):t({value:void 0,done:!0})})})}}};t.exports=function(e){return new d(e)};function f(){}function p(e){return e&=511,e&&512-e}})),zL=i(((e,n)=>{let r={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{n.exports=t(`fs`).constants||r}catch{n.exports=r}})),BL=i(((e,t)=>{let{Readable:n,Writable:r,getStreamError:i}=IL(),a=ML(),o=zL(),s=LL(),c=a.alloc(1024);var l=class extends r{constructor(e,t,n){super({mapWritable:m,eagerOpen:!0}),this.written=0,this.header=t,this._callback=n,this._linkname=null,this._isLinkname=t.type===`symlink`&&!t.linkname,this._isVoid=t.type!==`file`&&t.type!==`contiguous-file`,this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(Error(`pack stream destroyed`));if(this._pack._finalized)return e(Error(`pack stream is already finalized`));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){if(this._isLinkname)return this._linkname=this._linkname?a.concat([this._linkname,e]):e,t(null);if(this._isVoid)return e.byteLength>0?t(Error(`No body allowed for this entry`)):t();if(this.written+=e.byteLength,this._pack.push(e))return t();this._pack._drain=t}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?a.toString(this._linkname,`utf-8`):``,this._pack._encode(this.header)),p(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error(`Size mismatch`));this._finish(),e(null)}_getError(){return i(this)||Error(`tar entry destroyed`)}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},u=class extends n{constructor(e){super(e),this._drain=f,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,n){if(this._finalized||this.destroying)throw Error(`already finalized or destroyed`);typeof t==`function`&&(n=t,t=null),n||=f,(!e.size||e.type===`symlink`)&&(e.size=0),e.type||=d(e.mode),e.mode||=e.type===`directory`?493:420,e.uid||=0,e.gid||=0,e.mtime||=new Date,typeof t==`string`&&(t=a.from(t));let r=new l(this,e,n);return a.isBuffer(t)?(e.size=t.byteLength,r.write(t),r.end(),r):(r._isVoid,r)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(c),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=s.encode(e);if(t){this.push(t);return}}this._encodePax(e)}_encodePax(e){let t=s.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:`PaxHeader`,mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:`pax-header`,linkname:e.linkname&&`PaxHeader`,uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(s.encode(n)),this.push(t),p(this,t.byteLength),n.size=e.size,n.type=e.type,this.push(s.encode(n))}_doDrain(){let e=this._drain;this._drain=f,e()}_predestroy(){let e=i(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};t.exports=function(e){return new u(e)};function d(e){switch(e&o.S_IFMT){case o.S_IFBLK:return`block-device`;case o.S_IFCHR:return`character-device`;case o.S_IFDIR:return`directory`;case o.S_IFIFO:return`fifo`;case o.S_IFLNK:return`symlink`}return`file`}function f(){}function p(e,t){t&=511,t&&e.push(c.subarray(0,512-t))}function m(e){return a.isBuffer(e)?e:a.from(e)}})),VL=i((e=>{e.extract=RL(),e.pack=BL()})),HL=i(((e,n)=>{ -/** -* 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 r=t(`zlib`),i=VL(),a=uL(),o=function(e){if(!(this instanceof o))return new o(e);e=this.options=a.defaults(e,{gzip:!1}),typeof e.gzipOptions!=`object`&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(e),this.compressor=!1,e.gzip&&(this.compressor=r.createGzip(e.gzipOptions),this.compressor.on(`error`,this._onCompressorError.bind(this)))};o.prototype._onCompressorError=function(e){this.engine.emit(`error`,e)},o.prototype.append=function(e,t,n){var r=this;t.mtime=t.date;function i(e,i){if(e){n(e);return}r.engine.entry(t,i,function(e){n(e,t)})}if(t.sourceType===`buffer`)i(null,e);else if(t.sourceType===`stream`&&t.stats){t.size=t.stats.size;var o=r.engine.entry(t,function(e){n(e,t)});e.pipe(o)}else t.sourceType===`stream`&&a.collectStream(e,i)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)},o.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},n.exports=o})),UL=i(((e,t)=>{function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}let r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function i(e){if(Buffer.isBuffer(e))return e;if(typeof e==`number`)return Buffer.alloc(e);if(typeof e==`string`)return Buffer.from(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){let t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var a=0;a>>8;return n^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=n(s)})),WL=i(((e,n)=>{ -/** -* 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 r=t(`util`).inherits,i=XF().Transform,a=UL(),o=uL(),s=function(e){if(!(this instanceof s))return new s(e);e=this.options=o.defaults(e,{}),i.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};r(s,i),s.prototype._transform=function(e,t,n){n(null,e)},s.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)},s.prototype.append=function(e,t,n){var r=this;t.crc32=0;function i(e,i){if(e){n(e);return}t.size=i.length||0,t.crc32=a.unsigned(i),r.files.push(t),n(null,t)}t.sourceType===`buffer`?i(null,e):t.sourceType===`stream`&&o.collectStream(e,i)},s.prototype.finalize=function(){this._writeStringified(),this.end()},n.exports=s})),GL=n(i(((e,t)=>{ -/** -* Archiver Vending -* -* @ignore -* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} -* @copyright (c) 2012-2014 Chris Talkington, contributors. -*/ -var n=fL(),r={},i=function(e,t){return i.create(e,t)};i.create=function(e,t){if(r[e]){var i=new n(e,t);return i.setFormat(e),i.setModule(new r[e](t)),i}else throw Error(`create(`+e+`): format not registered`)},i.registerFormat=function(e,t){if(r[e])throw Error(`register(`+e+`): format already registered`);if(typeof t!=`function`)throw Error(`register(`+e+`): format module invalid`);if(typeof t.prototype.append!=`function`||typeof t.prototype.finalize!=`function`)throw Error(`register(`+e+`): format module missing methods`);r[e]=t},i.isRegisteredFormat=function(e){return!!r[e]},i.registerFormat(`zip`,OL()),i.registerFormat(`tar`,HL()),i.registerFormat(`json`,WL()),t.exports=i}))(),1),KL=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qL=class extends $e.Transform{constructor(e){super({highWaterMark:e})}_transform(e,t,n){n(null,e)}};function JL(e){return KL(this,void 0,void 0,function*(){K(`Creating raw file upload stream for: ${e}`);let t=nN(),n=new qL(t),r=e;(yield me.promises.lstat(e)).isSymbolicLink()&&(r=yield nt(e));let i=me.createReadStream(r,{highWaterMark:t});return i.on(`error`,e=>{yi(`An error has occurred while reading the file for upload`),yi(String(e)),n.destroy(Error(`An error has occurred during file read for the artifact`))}),i.pipe(n),n})}var YL=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function XL(e){return YL(this,arguments,void 0,function*(e,t=6){K(`Creating Artifact archive with compressionLevel: ${t}`);let n=GL.default.create(`zip`,{highWaterMark:nN(),zlib:{level:t}});n.on(`error`,ZL),n.on(`warning`,QL),n.on(`finish`,$L),n.on(`end`,eR);for(let t of e)if(t.sourcePath!==null){let e=t.sourcePath;t.stats.isSymbolicLink()&&(e=yield nt(t.sourcePath)),n.file(e,{name:t.destinationPath})}else n.append(``,{name:t.destinationPath});let r=new qL(nN());return K(`Zip write high watermark value ${r.writableHighWaterMark}`),K(`Zip read high watermark value ${r.readableHighWaterMark}`),n.pipe(r),n.finalize(),r})}const ZL=e=>{throw yi(`An error has occurred while creating the zip file for upload`),xi(e),Error(`An error has occurred during zip creation for the artifact`)},QL=e=>{e.code===`ENOENT`?(bi(`ENOENT warning during artifact zip creation. No such file or directory`),xi(e)):(bi(`A non-blocking warning has occurred during artifact zip creation: ${e.code}`),xi(e))},$L=()=>{K(`Zip stream for upload has finished.`)},eR=()=>{K(`Zip stream for upload has ended.`)},tR={".txt":`text/plain`,".html":`text/html`,".htm":`text/html`,".css":`text/css`,".csv":`text/csv`,".xml":`text/xml`,".md":`text/markdown`,".js":`application/javascript`,".mjs":`application/javascript`,".json":`application/json`,".png":`image/png`,".jpg":`image/jpeg`,".jpeg":`image/jpeg`,".gif":`image/gif`,".svg":`image/svg+xml`,".webp":`image/webp`,".ico":`image/x-icon`,".bmp":`image/bmp`,".tiff":`image/tiff`,".tif":`image/tiff`,".mp3":`audio/mpeg`,".wav":`audio/wav`,".ogg":`audio/ogg`,".flac":`audio/flac`,".mp4":`video/mp4`,".webm":`video/webm`,".avi":`video/x-msvideo`,".mov":`video/quicktime`,".pdf":`application/pdf`,".doc":`application/msword`,".docx":`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,".xls":`application/vnd.ms-excel`,".xlsx":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,".ppt":`application/vnd.ms-powerpoint`,".pptx":`application/vnd.openxmlformats-officedocument.presentationml.presentation`,".zip":`application/zip`,".tar":`application/x-tar`,".gz":`application/gzip`,".rar":`application/vnd.rar`,".7z":`application/x-7z-compressed`,".wasm":`application/wasm`,".yaml":`application/x-yaml`,".yml":`application/x-yaml`,".woff":`font/woff`,".woff2":`font/woff2`,".ttf":`font/ttf`,".otf":`font/otf`,".eot":`application/vnd.ms-fontobject`};function nR(e){return tR[W.extname(e).toLowerCase()]||`application/octet-stream`}var rR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function iR(e,t,n,r){return rR(this,void 0,void 0,function*(){let i=`${e}.zip`;if(r?.skipArchive){if(t.length===0)throw new PN([]);if(t.length>1)throw Error(`skipArchive option is only supported when uploading a single file`);if(!me.existsSync(t[0]))throw new PN(t);i=W.basename(t[0]),e=i}kN(e),ZN(n);let a=[];if(!r?.skipArchive&&(a=QN(t,n),a.length===0))throw new PN(a.flatMap(e=>e.sourcePath?[e.sourcePath]:[]));let o=nR(i),s=GN(),c=XN(),l={workflowRunBackendId:s.workflowRunBackendId,workflowJobRunBackendId:s.workflowJobRunBackendId,name:e,mimeType:fN.create({value:o}),version:7},u=TN(r?.retentionDays);u&&(l.expiresAt=u);let d=yield c.CreateArtifact(l);if(!d.ok)throw new FN(`CreateArtifact: response from backend was not ok`);let f;f=r?.skipArchive?yield JL(t[0]):yield XL(a,r?.compressionLevel),xi(`Uploading artifact: ${i}`);let p=yield eP(d.signedUploadUrl,f,o),m={workflowRunBackendId:s.workflowRunBackendId,workflowJobRunBackendId:s.workflowJobRunBackendId,name:e,size:p.uploadSize?p.uploadSize.toString():`0`};p.sha256Hash&&(m.hash=fN.create({value:`sha256:${p.sha256Hash}`})),xi(`Finalizing artifact upload`);let h=yield c.FinalizeArtifact(m);if(!h.ok)throw new FN(`FinalizeArtifact: response from backend was not ok`);let g=BigInt(h.artifactId);return xi(`Artifact ${e} successfully finalized. Artifact ID ${g}`),{size:p.uploadSize,digest:p.sha256Hash,id:Number(g)}})}var aR=i(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.value=e}n.prototype.get=function(e){for(var t=this.value,n=0;n{var r=aR(),i=t(`events`).EventEmitter;n.exports=a;function a(e){var t=a.saw(e,{}),n=e.call(t.handlers,t);return n!==void 0&&(t.handlers=n),t.record(),t.chain()}a.light=function(e){var t=a.saw(e,{}),n=e.call(t.handlers,t);return n!==void 0&&(t.handlers=n),t.chain()},a.saw=function(e,t){var n=new i;return n.handlers=t,n.actions=[],n.chain=function(){var e=r(n.handlers).map(function(t){if(this.isRoot)return t;var r=this.path;typeof t==`function`&&this.update(function(){return n.actions.push({path:r,args:[].slice.call(arguments)}),e})});return process.nextTick(function(){n.emit(`begin`),n.next()}),e},n.pop=function(){return n.actions.shift()},n.next=function(){var e=n.pop();if(!e)n.emit(`end`);else if(!e.trap){var t=n.handlers;e.path.forEach(function(e){t=t[e]}),t.apply(n.handlers,e.args)}},n.nest=function(t){var r=[].slice.call(arguments,1),i=!0;if(typeof t==`boolean`){var i=t;t=r.shift()}var o=a.saw(e,{}),s=e.call(o.handlers,o);s!==void 0&&(o.handlers=s),n.step!==void 0&&o.record(),t.apply(o.chain(),r),i!==!1&&o.on(`end`,n.next)},n.record=function(){o(n)},[`trap`,`down`,`jump`].forEach(function(e){n[e]=function(){throw Error(`To use the trap, down and jump features, please call record() first to start recording actions.`)}}),n};function o(e){e.step=0,e.pop=function(){return e.actions[e.step++]},e.trap=function(t,n){var r=Array.isArray(t)?t:[t];e.actions.push({path:r,step:e.step,cb:n,trap:!0})},e.down=function(t){var n=(Array.isArray(t)?t:[t]).join(`/`),r=e.actions.slice(e.step).map(function(t){return t.trap&&t.step<=e.step?!1:t.path.join(`/`)==n}).indexOf(!0);r>=0?e.step+=r:e.step=e.actions.length;var i=e.actions[e.step-1];i&&i.trap?(e.step=i.step,i.cb()):e.next()},e.jump=function(t){e.step=t,e.next()}}})),sR=i(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.buffers=e||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}n.prototype.push=function(){for(var e=0;e=0?e:this.length-e,a=[].slice.call(arguments,2);(t===void 0||t>this.length-i)&&(t=this.length-i);for(var e=0;e0){var l=i-s;if(l+t0){var p=a.slice();p.unshift(d),p.push(f),r.splice.apply(r,[c,1].concat(p)),c+=p.length,a=[]}else r.splice(c,1,d,f),c+=2}else o.push(r[c].slice(l)),r[c]=r[c].slice(0,l),c++}for(a.length>0&&(r.splice.apply(r,[c,0].concat(a)),c+=a.length);o.lengththis.length&&(t=this.length);for(var r=0,i=0;i=t-e?Math.min(l+(t-e)-o,c):c;n[s].copy(a,o,l,u),o+=u-l}return a},n.prototype.pos=function(e){if(e<0||e>=this.length)throw Error(`oob`);for(var t=e,n=0,r=null;;){if(r=this.buffers[n],t=this.buffers[n].length;)if(r=0,n++,n>=this.buffers.length)return-1;if(this.buffers[n][r]==e[i]){if(i==0&&(a={i:n,j:r,pos:o}),i++,i==e.length)return a.pos}else i!=0&&(n=a.i,r=a.j,o=a.pos,i=0);r++,o++}},n.prototype.toBuffer=function(){return this.slice()},n.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)}})),cR=i(((e,t)=>{t.exports=function(e){function t(e,t){var r=n.store,i=e.split(`.`);i.slice(0,-1).forEach(function(e){r[e]===void 0&&(r[e]={}),r=r[e]});var a=i[i.length-1];return arguments.length==1?r[a]:r[a]=t}var n={get:function(e){return t(e)},set:function(e,n){return t(e,n)},store:e||{}};return n}})),lR=i(((e,n)=>{var r=oR(),i=t(`events`).EventEmitter,a=sR(),o=cR(),s=t(`stream`).Stream;e=n.exports=function(t,n){if(Buffer.isBuffer(t))return e.parse(t);var r=e.stream();return t&&t.pipe?t.pipe(r):t&&(t.on(n||`data`,function(e){r.write(e)}),t.on(`end`,function(){r.end()})),r},e.stream=function(t){if(t)return e.apply(null,arguments);var n=null;function c(e,t,r){n={bytes:e,skip:r,cb:function(e){n=null,t(e)}},u()}var l=null;function u(){if(!n){v&&(g=!0);return}if(typeof n==`function`)n();else{var e=l+n.bytes;if(m.length>=e){var t;l==null?(t=m.splice(0,e),n.skip||(t=t.slice())):(n.skip||(t=m.slice(l,e)),l=e),n.skip?n.cb():n.cb(t)}}}function d(e){function t(){g||e.next()}var r=f(function(e,n){return function(r){c(e,function(e){h.set(r,n(e)),t()})}});return r.tap=function(t){e.nest(t,h.store)},r.into=function(t,n){h.get(t)||h.set(t,{});var r=h;h=o(r.get(t)),e.nest(function(){n.apply(this,arguments),this.tap(function(){h=r})},h.store)},r.flush=function(){h.store={},t()},r.loop=function(n){var r=!1;e.nest(!1,function i(){this.vars=h.store,n.call(this,function(){r=!0,t()},h.store),this.tap(function(){r?e.next():i.call(this)}.bind(this))},h.store)},r.buffer=function(e,n){typeof n==`string`&&(n=h.get(n)),c(n,function(n){h.set(e,n),t()})},r.skip=function(e){typeof e==`string`&&(e=h.get(e)),c(e,function(){t()})},r.scan=function(e,r){if(typeof r==`string`)r=new Buffer(r);else if(!Buffer.isBuffer(r))throw Error(`search must be a Buffer or a string`);var i=0;n=function(){var a=m.indexOf(r,l+i),o=a-l-i;a===-1?o=Math.max(m.length-r.length-l-i,0):(n=null,l==null?(h.set(e,m.slice(0,i+o)),m.splice(0,i+o+r.length)):(h.set(e,m.slice(l,l+i+o)),l+=i+o+r.length),t(),u()),i+=o},u()},r.peek=function(t){l=0,e.nest(function(){t.call(this,h.store),this.tap(function(){l=null})})},r}var p=r.light(d);p.writable=!0;var m=a();p.write=function(e){m.push(e),u()};var h=o(),g=!1,v=!1;return p.end=function(){v=!0},p.pipe=s.prototype.pipe,Object.getOwnPropertyNames(i.prototype).forEach(function(e){p[e]=i.prototype[e]}),p},e.parse=function(e){var t=f(function(i,a){return function(o){if(n+i<=e.length){var s=e.slice(n,n+i);n+=i,r.set(o,a(s))}else r.set(o,null);return t}}),n=0,r=o();return t.vars=r.store,t.tap=function(e){return e.call(t,r.store),t},t.into=function(e,n){r.get(e)||r.set(e,{});var i=r;return r=o(i.get(e)),n.call(t,r.store),r=i,t},t.loop=function(e){for(var n=!1,i=function(){n=!0};n===!1;)e.call(t,i,r.store);return t},t.buffer=function(i,a){typeof a==`string`&&(a=r.get(a));var o=e.slice(n,Math.min(e.length,n+a));return n+=a,r.set(i,o),t},t.skip=function(e){return typeof e==`string`&&(e=r.get(e)),n+=e,t},t.scan=function(i,a){if(typeof a==`string`)a=new Buffer(a);else if(!Buffer.isBuffer(a))throw Error(`search must be a Buffer or a string`);r.set(i,null);for(var o=0;o+n<=e.length-a.length+1;o++){for(var s=0;s=e.length},t};function c(e){for(var t=0,n=0;n{var r=t(`stream`).Transform,i=t(`util`);function a(e,t){if(!(this instanceof a))return new a;r.call(this);var n=typeof e==`object`?e.pattern:e;this.pattern=Buffer.isBuffer(n)?n:Buffer.from(n),this.requiredLength=this.pattern.length,e.requiredExtraSize&&(this.requiredLength+=e.requiredExtraSize),this.data=new Buffer(``),this.bytesSoFar=0,this.matchFn=t}i.inherits(a,r),a.prototype.checkDataChunk=function(e){if(this.data.length>=this.requiredLength){var t=this.data.indexOf(this.pattern,+!!e);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var n=this.data.slice(0,t);this.push(n),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,n=this.data.slice(0,r);this.push(n),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var n=this.data.slice(0,t);this.data=this.data.slice(t),this.push(n),this.bytesSoFar+=t}if(!this.matchFn||this.matchFn(this.data,this.bytesSoFar)){this.data=new Buffer(``);return}return!0}},a.prototype._transform=function(e,t,n){this.data=Buffer.concat([this.data,e]);for(var r=!0;this.checkDataChunk(!r);)r=!1;n()},a.prototype._flush=function(e){if(this.data.length>0)for(var t=!0;this.checkDataChunk(!t);)t=!1;this.data.length>0&&(this.push(this.data),this.data=null),e()},n.exports=a})),dR=i(((e,n)=>{var r=t(`stream`),i=t(`util`).inherits;function a(){if(!(this instanceof a))return new a;r.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}i(a,r.PassThrough),a.prototype.autodrain=function(){return this.pipe(new r.Transform({transform:function(e,t,n){n()}}))},n.exports=a})),fR=i(((e,n)=>{var r=lR(),i=t(`stream`),a=t(`util`),o=t(`zlib`),s=uR(),c=dR();let l={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},u=4294967296;function d(e){if(!(this instanceof d))return new d(e);i.Transform.call(this),this.options=e||{},this.data=new Buffer(``),this.state=l.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}a.inherits(d,i.Transform),d.prototype.processDataChunk=function(e){var t;switch(this.state){case l.STREAM_START:case l.START:t=4;break;case l.LOCAL_FILE_HEADER:t=26;break;case l.LOCAL_FILE_HEADER_SUFFIX:t=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case l.DATA_DESCRIPTOR:t=12;break;case l.CENTRAL_DIRECTORY_FILE_HEADER:t=42;break;case l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:t=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case l.CDIR64_END:t=52;break;case l.CDIR64_END_DATA_SECTOR:t=this.parsedEntity.centralDirectoryRecordSize-44;break;case l.CDIR64_LOCATOR:t=16;break;case l.CENTRAL_DIRECTORY_END:t=18;break;case l.CENTRAL_DIRECTORY_END_COMMENT:t=this.parsedEntity.commentLength;break;case l.FILE_DATA:return 0;case l.FILE_DATA_END:return 0;case l.TRAILING_JUNK:return this.options.debug&&console.log(`found`,e.length,`bytes of TRAILING_JUNK`),e.length;default:return e.length}if(e.length>>=8,(i&255)==80){a=o;break}return this.skippedBytes+=a,this.options.debug&&console.log(`Skipped`,this.skippedBytes,`bytes`),a}this.state=l.ERROR;var s=r?`Not a valid zip file`:`Invalid signature in zip file`;if(this.options.debug){var d=e.readUInt32LE(0),f;try{f=e.slice(0,4).toString()}catch{}console.log(`Unexpected signature in zip file: 0x`+d.toString(16),`"`+f+`", skipped`,this.skippedBytes,`bytes`)}return this.emit(`error`,Error(s)),e.length}return this.skippedBytes=0,t;case l.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(e),this.state=l.LOCAL_FILE_HEADER_SUFFIX,t;case l.LOCAL_FILE_HEADER_SUFFIX:var p=new c,m=(this.parsedEntity.flags&2048)!=0;p.path=this._decodeString(e.slice(0,this.parsedEntity.fileNameLength),m);var h=e.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),g=this._readExtraFields(h);if(g&&g.parsed&&(g.parsed.path&&!m&&(p.path=g.parsed.path),Number.isFinite(g.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===u-1&&(this.parsedEntity.uncompressedSize=g.parsed.uncompressedSize),Number.isFinite(g.parsed.compressedSize)&&this.parsedEntity.compressedSize===u-1&&(this.parsedEntity.compressedSize=g.parsed.compressedSize)),this.parsedEntity.extra=g.parsed||{},this.options.debug){let e=Object.assign({},this.parsedEntity,{path:p.path,flags:`0x`+this.parsedEntity.flags.toString(16),extraFields:g&&g.debug});console.log(`decoded LOCAL_FILE_HEADER:`,JSON.stringify(e,null,2))}return this._prepareOutStream(this.parsedEntity,p),this.emit(`entry`,p),this.state=l.FILE_DATA,t;case l.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(e),this.state=l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,t;case l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var m=(this.parsedEntity.flags&2048)!=0,v=this._decodeString(e.slice(0,this.parsedEntity.fileNameLength),m),h=e.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),g=this._readExtraFields(h);g&&g.parsed&&g.parsed.path&&!m&&(v=g.parsed.path),this.parsedEntity.extra=g.parsed;var y=(this.parsedEntity.versionMadeBy&65280)>>8==3,b,x;if(y&&(b=this.parsedEntity.externalFileAttributes>>>16,x=(b>>>12&10)==10),this.options.debug){let e=Object.assign({},this.parsedEntity,{path:v,flags:`0x`+this.parsedEntity.flags.toString(16),unixAttrs:b&&`0`+b.toString(8),isSymlink:x,extraFields:g.debug});console.log(`decoded CENTRAL_DIRECTORY_FILE_HEADER:`,JSON.stringify(e,null,2))}return this.state=l.START,t;case l.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(e),this.options.debug&&console.log(`decoded CDIR64_END_RECORD:`,this.parsedEntity),this.state=l.CDIR64_END_DATA_SECTOR,t;case l.CDIR64_END_DATA_SECTOR:return this.state=l.START,t;case l.CDIR64_LOCATOR:return this.state=l.START,t;case l.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(e),this.options.debug&&console.log(`decoded CENTRAL_DIRECTORY_END:`,this.parsedEntity),this.state=l.CENTRAL_DIRECTORY_END_COMMENT,t;case l.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log(`decoded CENTRAL_DIRECTORY_END_COMMENT:`,e.slice(0,t).toString()),this.state=l.TRAILING_JUNK,t;case l.ERROR:return e.length;default:return console.log(`didn't handle state #`,this.state,`discarding`),e.length}},d.prototype._prepareOutStream=function(e,t){var n=this,r=e.uncompressedSize===0&&/[\/\\]$/.test(t.path);t.path=t.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,`.`),t.type=r?`Directory`:`File`,t.isDirectory=r;var a=!(e.flags&8);a&&(t.size=e.uncompressedSize);var d=e.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:a?e.compressedSize:-1,written:0},a)this.outStreamInfo.stream=new i.PassThrough;else{var f=new Buffer(4);f.writeUInt32LE(134695760,0);var p=e.extra.zip64Mode,m=new s({pattern:f,requiredExtraSize:p?20:12},function(e,t){var r=n._readDataDescriptor(e,p),i=r.compressedSize===t;if(!p&&!i&&t>=u)for(var a=t-u;a>=0&&(i=r.compressedSize===a,!i);)a-=u;if(i){n.state=l.FILE_DATA_END;var o=p?24:16;return n.data.length>0?n.data=Buffer.concat([e.slice(o),n.data]):n.data=e.slice(o),!0}});this.outStreamInfo.stream=m}var h=e.flags&1||e.flags&64;if(h||!d){var g=h?`Encrypted files are not supported!`:`Zip version `+Math.floor(e.versionsNeededToExtract/10)+`.`+e.versionsNeededToExtract%10+` is not supported`;t.skip=!0,setImmediate(()=>{n.emit(`error`,Error(g))}),this.outStreamInfo.stream.pipe(new c().autodrain());return}if(e.compressionMethod>0){var v=o.createInflateRaw();v.on(`error`,function(e){n.state=l.ERROR,n.emit(`error`,e)}),this.outStreamInfo.stream.pipe(v).pipe(t)}else this.outStreamInfo.stream.pipe(t);this._drainAllEntries&&t.autodrain()},d.prototype._readFile=function(e){return r.parse(e).word16lu(`versionsNeededToExtract`).word16lu(`flags`).word16lu(`compressionMethod`).word16lu(`lastModifiedTime`).word16lu(`lastModifiedDate`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).word16lu(`fileNameLength`).word16lu(`extraFieldLength`).vars},d.prototype._readExtraFields=function(e){var t={},n={parsed:t};this.options.debug&&(n.debug=[]);for(var i=0;i=l+4&&c&1&&(t.mtime=new Date(e.readUInt32LE(i+l)*1e3),l+=4),a.extraSize>=l+4&&c&2&&(t.atime=new Date(e.readUInt32LE(i+l)*1e3),l+=4),a.extraSize>=l+4&&c&4&&(t.ctime=new Date(e.readUInt32LE(i+l)*1e3));break;case 28789:if(o=`Info-ZIP Unicode Path Extra Field`,e.readUInt8(i)===1){var l=1;e.readUInt32LE(i+l),l+=4,t.path=e.slice(i+l).toString()}break;case 13:case 22613:o=a.extraId===13?`PKWARE Unix`:`Info-ZIP UNIX (type 1)`;var l=0;if(a.extraSize>=8){var u=new Date(e.readUInt32LE(i+l)*1e3);l+=4;var d=new Date(e.readUInt32LE(i+l)*1e3);if(l+=4,t.atime=u,t.mtime=d,a.extraSize>=12){var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);l+=2,t.uid=f,t.gid=p}}break;case 30805:o=`Info-ZIP UNIX (type 2)`;var l=0;if(a.extraSize>=4){var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);l+=2,t.uid=f,t.gid=p}break;case 30837:o=`Info-ZIP New Unix`;var l=0,m=e.readUInt8(i);if(l+=1,m===1){var h=e.readUInt8(i+l);l+=1,h<=6&&(t.uid=e.readUIntLE(i+l,h)),l+=h;var g=e.readUInt8(i+l);l+=1,g<=6&&(t.gid=e.readUIntLE(i+l,g))}break;case 30062:o=`ASi Unix`;var l=0;if(a.extraSize>=14){e.readUInt32LE(i+l),l+=4;var v=e.readUInt16LE(i+l);l+=2,e.readUInt32LE(i+l),l+=4;var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);if(l+=2,t.mode=v,t.uid=f,t.gid=p,a.extraSize>14){var y=i+l,b=i+a.extraSize-14;t.symlink=this._decodeString(e.slice(y,b))}}break}this.options.debug&&n.debug.push({extraId:`0x`+a.extraId.toString(16),description:o,data:e.slice(i,i+a.extraSize).inspect()}),i+=a.extraSize}return n},d.prototype._readDataDescriptor=function(e,t){if(t){var n=r.parse(e).word32lu(`dataDescriptorSignature`).word32lu(`crc32`).word64lu(`compressedSize`).word64lu(`uncompressedSize`).vars;return n}var n=r.parse(e).word32lu(`dataDescriptorSignature`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).vars;return n},d.prototype._readCentralDirectoryEntry=function(e){return r.parse(e).word16lu(`versionMadeBy`).word16lu(`versionsNeededToExtract`).word16lu(`flags`).word16lu(`compressionMethod`).word16lu(`lastModifiedTime`).word16lu(`lastModifiedDate`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).word16lu(`fileNameLength`).word16lu(`extraFieldLength`).word16lu(`fileCommentLength`).word16lu(`diskNumber`).word16lu(`internalFileAttributes`).word32lu(`externalFileAttributes`).word32lu(`offsetToLocalFileHeader`).vars},d.prototype._readEndOfCentralDirectory64=function(e){return r.parse(e).word64lu(`centralDirectoryRecordSize`).word16lu(`versionMadeBy`).word16lu(`versionsNeededToExtract`).word32lu(`diskNumber`).word32lu(`diskNumberWithCentralDirectoryStart`).word64lu(`centralDirectoryEntries`).word64lu(`totalCentralDirectoryEntries`).word64lu(`sizeOfCentralDirectory`).word64lu(`offsetToStartOfCentralDirectory`).vars},d.prototype._readEndOfCentralDirectory=function(e){return r.parse(e).word16lu(`diskNumber`).word16lu(`diskStart`).word16lu(`centralDirectoryEntries`).word16lu(`totalCentralDirectoryEntries`).word32lu(`sizeOfCentralDirectory`).word32lu(`offsetToStartOfCentralDirectory`).word16lu(`commentLength`).vars},d.prototype._decodeString=function(e,t){if(t)return e.toString(`utf8`);if(this.options.decodeString)return this.options.decodeString(e);let n=``;for(var r=0;r?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `[e[r]];return n},d.prototype._parseOrOutput=function(e,t){for(var n;(n=this.processDataChunk(this.data))>0&&(this.data=this.data.slice(n),this.data.length!==0););if(this.state===l.FILE_DATA){if(this.outStreamInfo.limit>=0){var r=this.outStreamInfo.limit-this.outStreamInfo.written,i;r{if(this.state===l.FILE_DATA_END)return this.state=l.START,a.end(t);t()})}return}t()},d.prototype.drainAll=function(){this._drainAllEntries=!0},d.prototype._transform=function(e,t,n){var r=this;r.data.length>0?r.data=Buffer.concat([r.data,e]):r.data=e;var i=r.data.length,a=function(){if(r.data.length>0&&r.data.length0){t._parseOrOutput(`buffer`,function(){if(t.data.length>0)return setImmediate(function(){t._flush(e)});e()});return}if(t.state===l.FILE_DATA)return e(Error(`Stream finished in an invalid state, uncompression failed`));setImmediate(e)},n.exports=d})),pR=i(((e,n)=>{var r=t(`stream`).Transform,i=t(`util`),a=fR();function o(e){if(!(this instanceof o))return new o(e);r.call(this,{readableObjectMode:!0}),this.opts=e||{},this.unzipStream=new a(this.opts);var t=this;this.unzipStream.on(`entry`,function(e){t.push(e)}),this.unzipStream.on(`error`,function(e){t.emit(`error`,e)})}i.inherits(o,r),o.prototype._transform=function(e,t,n){this.unzipStream.write(e,t,n)},o.prototype._flush=function(e){var t=this;this.unzipStream.end(function(){process.nextTick(function(){t.emit(`close`)}),e()})},o.prototype.on=function(e,t){return e===`entry`?r.prototype.on.call(this,`data`,t):r.prototype.on.call(this,e,t)},o.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new r({objectMode:!0,transform:function(e,t,n){n()}}))},n.exports=o})),mR=i(((e,n)=>{var r=t(`path`),i=t(`fs`),a=511;n.exports=o.mkdirp=o.mkdirP=o;function o(e,t,n,s){typeof t==`function`?(n=t,t={}):(!t||typeof t!=`object`)&&(t={mode:t});var c=t.mode,l=t.fs||i;c===void 0&&(c=a),s||=null;var u=n||function(){};e=r.resolve(e),l.mkdir(e,c,function(n){if(!n)return s||=e,u(null,s);switch(n.code){case`ENOENT`:if(r.dirname(e)===e)return u(n);o(r.dirname(e),t,function(n,r){n?u(n,r):o(e,t,u,r)});break;default:l.stat(e,function(e,t){e||!t.isDirectory()?u(n,s):u(null,s)});break}})}o.sync=function e(t,n,o){(!n||typeof n!=`object`)&&(n={mode:n});var s=n.mode,c=n.fs||i;s===void 0&&(s=a),o||=null,t=r.resolve(t);try{c.mkdirSync(t,s),o||=t}catch(i){switch(i.code){case`ENOENT`:o=e(r.dirname(t),n,o),e(t,n,o);break;default:var l;try{l=c.statSync(t)}catch{throw i}if(!l.isDirectory())throw i;break}}return o}})),hR=i(((e,n)=>{var r=t(`fs`),i=t(`path`),a=t(`util`),o=mR(),s=t(`stream`).Transform,c=fR();function l(e){if(!(this instanceof l))return new l(e);s.call(this),this.opts=e||{},this.unzipStream=new c(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var t=this;this.unzipStream.on(`entry`,this._processEntry.bind(this)),this.unzipStream.on(`error`,function(e){t.emit(`error`,e)})}a.inherits(l,s),l.prototype._transform=function(e,t,n){this.unzipStream.write(e,t,n)},l.prototype._flush=function(e){var t=this,n=function(){process.nextTick(function(){t.emit(`close`)}),e()};this.unzipStream.end(function(){if(t.unfinishedEntries>0)return t.afterFlushWait=!0,t.on(`await-finished`,n);n()})},l.prototype._processEntry=function(e){var t=this,n=i.join(this.opts.path,e.path),a=e.isDirectory?n:i.dirname(n);this.unfinishedEntries++;var s=function(){var i=r.createWriteStream(n);i.on(`close`,function(){t.unfinishedEntries--,t._notifyAwaiter()}),i.on(`error`,function(e){t.emit(`error`,e)}),e.pipe(i)};if(this.createdDirectories[a]||a===`.`)return s();o(a,function(n){if(n)return t.emit(`error`,n);if(t.createdDirectories[a]=!0,e.isDirectory){t.unfinishedEntries--,t._notifyAwaiter();return}s()})},l.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit(`await-finished`),this.afterFlushWait=!1)},n.exports=l})),gR=n(i((e=>{e.Parse=pR(),e.Extract=hR()}))(),1),_R=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const vR=e=>{let t=new URL(e);return t.search=``,t.toString()};function yR(e){return _R(this,void 0,void 0,function*(){try{return yield tt.access(e),!0}catch(e){if(e.code===`ENOENT`)return!1;throw e}})}function bR(e,t,n){return _R(this,void 0,void 0,function*(){let r=0;for(;r<5;)try{return yield xR(e,t,{skipDecompress:n})}catch(e){r++,K(`Failed to download artifact after ${r} retries due to ${e.message}. Retrying in 5 seconds...`),yield new Promise(e=>setTimeout(e,5e3))}throw Error(`Artifact download failed after ${r} retries.`)})}function xR(e,t){return _R(this,arguments,void 0,function*(e,t,n={}){let{timeout:r=30*1e3,skipDecompress:i=!1}=n,a=yield new vr(NN()).get(e);if(a.message.statusCode!==200)throw Error(`Unexpected HTTP response from blob storage: ${a.message.statusCode} ${a.message.statusMessage}`);let o=a.message.headers[`content-type`]||``,s=o.split(`;`,1)[0].trim().toLowerCase(),c=new URL(e).pathname.toLowerCase().endsWith(`.zip`),l=s===`application/zip`||s===`application/x-zip-compressed`||s===`application/zip-compressed`||c,u=a.message.headers[`content-disposition`]||``,d=`artifact`,f=u.match(/filename\*\s*=\s*UTF-8''([^;\r\n]*)/i),p=u.match(/(?{let o=setTimeout(()=>{let e=Error(`Blob storage chunk did not respond in ${r}ms`);a.message.destroy(e),n(e)},r),s=e=>{K(`response.message: Artifact download failed: ${e.message}`),clearTimeout(o),n(e)},c=pe.createHash(`sha256`).setEncoding(`hex`),u=new $e.PassThrough().on(`data`,()=>{o.refresh()}).on(`error`,s);a.message.pipe(u),u.pipe(c);let f=()=>{clearTimeout(o),c&&(c.end(),h=c.read(),xi(`SHA256 digest of downloaded artifact is ${h}`)),e({sha256Digest:`sha256:${h}`})};if(l&&!i)u.pipe(gR.Extract({path:t})).on(`close`,f).on(`error`,s);else{let e=W.join(t,d),n=me.createWriteStream(e);xi(`Downloading raw file (non-zip) to: ${e}`),u.pipe(n).on(`close`,f).on(`error`,s)}})})}function SR(e,t,n,r,i){return _R(this,void 0,void 0,function*(){let a=yield wR(i?.path),o=su(r),s=!1;xi(`Downloading artifact '${e}' from '${t}/${n}'`);let{headers:c,status:l}=yield o.rest.actions.downloadArtifact({owner:t,repo:n,artifact_id:e,archive_format:`zip`,request:{redirect:`manual`}});if(l!==302)throw Error(`Unable to download artifact. Unexpected status: ${l}`);let{location:u}=c;if(!u)throw Error(`Unable to redirect to artifact download url`);xi(`Redirecting to blob download url: ${vR(u)}`);try{xi(`Starting download of artifact to: ${a}`);let e=yield bR(u,a,i?.skipDecompress);xi(`Artifact download completed successfully.`),i?.expectedHash&&i?.expectedHash!==e.sha256Digest&&(s=!0,K(`Computed digest: ${e.sha256Digest}`),K(`Expected digest: ${i.expectedHash}`))}catch(e){throw Error(`Unable to download and extract artifact: ${e.message}`)}return{downloadPath:a,digestMismatch:s}})}function CR(e,t){return _R(this,void 0,void 0,function*(){let n=yield wR(t?.path),r=XN(),i=!1,{workflowRunBackendId:a,workflowJobRunBackendId:o}=GN(),s={workflowRunBackendId:a,workflowJobRunBackendId:o,idFilter:dN.create({value:e.toString()})},{artifacts:c}=yield r.ListArtifacts(s);if(c.length===0)throw new IN(`No artifacts found for ID: ${e}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&bi(`Multiple artifacts found, defaulting to first.`);let l={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield r.GetSignedArtifactURL(l);xi(`Redirecting to blob download url: ${vR(u)}`);try{xi(`Starting download of artifact to: ${n}`);let e=yield bR(u,n,t?.skipDecompress);xi(`Artifact download completed successfully.`),t?.expectedHash&&t?.expectedHash!==e.sha256Digest&&(i=!0,K(`Computed digest: ${e.sha256Digest}`),K(`Expected digest: ${t.expectedHash}`))}catch(e){throw Error(`Unable to download and extract artifact: ${e.message}`)}return{downloadPath:n,digestMismatch:i}})}function wR(){return _R(this,arguments,void 0,function*(e=oN()){return(yield yR(e))?K(`Artifact destination folder already exists: ${e}`):(K(`Artifact destination folder does not exist, creating: ${e}`),yield tt.mkdir(e,{recursive:!0})),e})}const TR=[400,401,403,404,422];function ER(e,t=5,n=TR){if(t<=0)return[{enabled:!1},e.request];let r={enabled:!0};n.length>0&&(r.doNotRetry=n);let i=Object.assign(Object.assign({},e.request),{retries:t});return K(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${r.doNotRetry??`octokit default: [400, 401, 403, 404, 422]`})`),[r,i]}function DR(e){e.hook.wrap(`request`,(t,n)=>{e.log.debug(`request`,n);let r=Date.now(),i=e.request.endpoint.parse(n),a=i.url.replace(n.baseUrl,``);return t(n).then(t=>{let n=t.headers[`x-github-request-id`];return e.log.info(`${i.method} ${a} - ${t.status} with id ${n} in ${Date.now()-r}ms`),t}).catch(t=>{let n=t.response?.headers[`x-github-request-id`]||`UNKNOWN`;throw e.log.error(`${i.method} ${a} - ${t.status} with id ${n} in ${Date.now()-r}ms`),t})})}DR.VERSION=`6.0.0`;var OR=n(i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,v=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),v.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),v.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var y=g,b=c,x=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},S=r,C=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new S}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},w=`2.19.5`,T=Object.freeze({version:w,default:{version:w}}),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),k,A,j,M,N,P=n;k=i,M=E,j=D,N=O,A=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,P.load(this.limiterOptions,this.defaults,this),this.Events=new k(this),this.instances={},this.Bottleneck=ue,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new M(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...N.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(P.overwrite(e,this.defaults,this),P.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var F=A,I,L,R=n;L=i,I=(function(){class e{constructor(e={}){this.options=e,R.load(this.options,this.defaults,this),this.Events=new L(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var z=I,ee=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),B=t(T),V,te,H,ne,re,ie,ae,U,oe,se,ce,le=[].splice;ie=10,te=5,ce=n,ae=s,ne=m,re=y,U=ee,H=i,oe=x,se=C,V=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),ce.load(t,this.instanceDefaults,this),this._queues=new ae(ie),this._scheduled={},this._states=new oe([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new H(this),this._submitLock=new se(`submit`,this.Promise),this._registerLock=new se(`register`,this.Promise),i=ce.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=ce.load(t,this.redisStoreDefaults,{}),new U(this,i,r);if(this.datastore===`local`)return r=ce.load(t,this.localStoreDefaults,{}),new re(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.prototype.BottleneckError(`Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.`)}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=ce.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ie-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=le.call(e,-1),i=ce.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=le.call(e,-1),i=ce.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new ne(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new ne(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(ce.overwrite(e,this.storeDefaults)),ce.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=H,e.version=e.prototype.version=B.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=F,e.RedisConnection=e.prototype.RedisConnection=E,e.IORedisConnection=e.prototype.IORedisConnection=D,e.Batcher=e.prototype.Batcher=z,e.prototype.jobDefaults={priority:te,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var ue=V;return ue}))}))(),1),kR=`0.0.0-development`;function AR(e){return e.request!==void 0}async function jR(e,t,n,r){if(!AR(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function MR(e,t,n,r){let i=new OR.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(NR.bind(null,e,t,n),r)}async function NR(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?jR(e,t,new cl(i.data.errors[0].message,500,{request:r,response:i}),r):i}function PR(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,jR.bind(null,n,r)),e.hook.wrap(`request`,MR.bind(null,n,r))),r}PR.VERSION=kR;var FR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function IR(e,t,n,r,i){return FR(this,void 0,void 0,function*(){let[a,o]=ER(ru),s=yield su(i,{log:void 0,userAgent:NN(),previews:void 0,retry:a,request:o},PR,DR).request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}`,{owner:n,repo:r,run_id:t,name:e});if(s.status!==200)throw new FN(`Invalid response from GitHub API: ${s.status} (${s?.headers?.[`x-github-request-id`]})`);if(s.data.artifacts.length===0)throw new IN(`Artifact not found for name: ${e} - Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. - For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=s.data.artifacts[0];return s.data.artifacts.length>1&&(c=s.data.artifacts.sort((e,t)=>t.id-e.id)[0],K(`More than one artifact found for a single name, returning newest (id: ${c.id})`)),{artifact:{name:c.name,id:c.id,size:c.size_in_bytes,createdAt:c.created_at?new Date(c.created_at):void 0,digest:c.digest}}})}function LR(e){return FR(this,void 0,void 0,function*(){let t=XN(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=GN(),i={workflowRunBackendId:n,workflowJobRunBackendId:r,nameFilter:fN.create({value:e})},a=yield t.ListArtifacts(i);if(a.artifacts.length===0)throw new IN(`Artifact not found for name: ${e} - Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. - For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let o=a.artifacts[0];return a.artifacts.length>1&&(o=a.artifacts.sort((e,t)=>Number(t.databaseId)-Number(e.databaseId))[0],K(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`)),{artifact:{name:o.name,id:Number(o.databaseId),size:Number(o.size),createdAt:o.createdAt?uN.toDate(o.createdAt):void 0,digest:o.digest?.value}}})}var RR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function zR(e,t,n,r,i){return RR(this,void 0,void 0,function*(){let[a,o]=ER(ru),s=su(i,{log:void 0,userAgent:NN(),previews:void 0,retry:a,request:o},PR,DR),c=yield IR(e,t,n,r,i),l=yield s.rest.actions.deleteArtifact({owner:n,repo:r,artifact_id:c.artifact.id});if(l.status!==204)throw new FN(`Invalid response from GitHub API: ${l.status} (${l?.headers?.[`x-github-request-id`]})`);return{id:c.artifact.id}})}function BR(e){return RR(this,void 0,void 0,function*(){let t=XN(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=GN(),i={workflowRunBackendId:n,workflowJobRunBackendId:r,nameFilter:fN.create({value:e})},a=yield t.ListArtifacts(i);if(a.artifacts.length===0)throw new IN(`Artifact not found for name: ${e}`);let o=a.artifacts[0];a.artifacts.length>1&&(o=a.artifacts.sort((e,t)=>Number(t.databaseId)-Number(e.databaseId))[0],K(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let s={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield t.DeleteArtifact(s);return xi(`Artifact '${e}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var VR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const HR=lN(),UR=Math.ceil(HR/100);function WR(e,t,n,r){return VR(this,arguments,void 0,function*(e,t,n,r,i=!1){xi(`Fetching artifact list for workflow run ${e} in repository ${t}/${n}`);let a=[],[o,s]=ER(ru),c=su(r,{log:void 0,userAgent:NN(),previews:void 0,retry:o,request:s},PR,DR),l=1,{data:u}=yield c.request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`,{owner:t,repo:n,run_id:e,per_page:100,page:l}),d=Math.ceil(u.total_count/100),f=u.total_count;f>HR&&(bi(`Workflow run ${e} has ${f} artifacts, exceeding the limit of ${HR}. Results will be incomplete as only the first ${HR} artifacts will be returned`),d=UR);for(let e of u.artifacts)a.push({name:e.name,id:e.id,size:e.size_in_bytes,createdAt:e.created_at?new Date(e.created_at):void 0,digest:e.digest});for(l++;l<=d;l++){K(`Fetching page ${l} of artifact list`);let{data:r}=yield c.request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`,{owner:t,repo:n,run_id:e,per_page:100,page:l});for(let e of r.artifacts)a.push({name:e.name,id:e.id,size:e.size_in_bytes,createdAt:e.created_at?new Date(e.created_at):void 0,digest:e.digest})}return i&&(a=KR(a)),xi(`Found ${a.length} artifact(s)`),{artifacts:a}})}function GR(){return VR(this,arguments,void 0,function*(e=!1){let t=XN(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=GN(),i={workflowRunBackendId:n,workflowJobRunBackendId:r},a=(yield t.ListArtifacts(i)).artifacts.map(e=>({name:e.name,id:Number(e.databaseId),size:Number(e.size),createdAt:e.createdAt?uN.toDate(e.createdAt):void 0,digest:e.digest?.value}));return e&&(a=KR(a)),xi(`Found ${a.length} artifact(s)`),{artifacts:a}})}function KR(e){e.sort((e,t)=>t.id-e.id);let t=[],n=new Set;for(let r of e)n.has(r.name)||(t.push(r),n.add(r.name));return t}var qR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},JR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${nt(r)}`)}}return e+=`::${tt(this.message)}`,e}};function tt(e){return Qe(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function nt(e){return Qe(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function rt(e,t){let n=process.env[`GITHUB_${e}`];if(!n)throw Error(`Unable to find environment variable for file command ${e}`);if(!H.existsSync(n))throw Error(`Missing file at path: ${n}`);H.appendFileSync(n,`${Qe(t)}${re.EOL}`,{encoding:`utf8`})}function it(e,t){let n=`ghadelimiter_${oe.randomUUID()}`,r=Qe(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${re.EOL}${r}${re.EOL}${n}`}function at(e){let t=e.protocol===`https:`;if(ot(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ct(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new ct(`http://${n}`)}else return}function ot(e){if(!e.hostname)return!1;let t=e.hostname;if(st(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function st(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var ct=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},lt=a((e=>{t(`net`);var n=t(`tls`),r=t(`http`),i=t(`https`),a=t(`events`);t(`assert`);var o=t(`util`);e.httpOverHttp=s,e.httpsOverHttp=c,e.httpOverHttps=l,e.httpsOverHttps=u;function s(e){var t=new d(e);return t.request=r.request,t}function c(e){var t=new d(e);return t.request=r.request,t.createSocket=f,t.defaultPort=443,t}function l(e){var t=new d(e);return t.request=i.request,t}function u(e){var t=new d(e);return t.request=i.request,t.createSocket=f,t.defaultPort=443,t}function d(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||r.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=p(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},d.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=m({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),h(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){h(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){h(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return h(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),h(`tunneling socket could not be established, cause=%s +`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},d.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function f(e,t){var r=this;d.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=m({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=n.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,t(s)})}function p(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function m(e){for(var t=1,n=arguments.length;t{t.exports=lt()})),dt=a(((e,t)=>{t.exports={kClose:Symbol(`close`),kDestroy:Symbol(`destroy`),kDispatch:Symbol(`dispatch`),kUrl:Symbol(`url`),kWriting:Symbol(`writing`),kResuming:Symbol(`resuming`),kQueue:Symbol(`queue`),kConnect:Symbol(`connect`),kConnecting:Symbol(`connecting`),kKeepAliveDefaultTimeout:Symbol(`default keep alive timeout`),kKeepAliveMaxTimeout:Symbol(`max keep alive timeout`),kKeepAliveTimeoutThreshold:Symbol(`keep alive timeout threshold`),kKeepAliveTimeoutValue:Symbol(`keep alive timeout`),kKeepAlive:Symbol(`keep alive`),kHeadersTimeout:Symbol(`headers timeout`),kBodyTimeout:Symbol(`body timeout`),kServerName:Symbol(`server name`),kLocalAddress:Symbol(`local address`),kHost:Symbol(`host`),kNoRef:Symbol(`no ref`),kBodyUsed:Symbol(`used`),kBody:Symbol(`abstracted request body`),kRunning:Symbol(`running`),kBlocking:Symbol(`blocking`),kPending:Symbol(`pending`),kSize:Symbol(`size`),kBusy:Symbol(`busy`),kQueued:Symbol(`queued`),kFree:Symbol(`free`),kConnected:Symbol(`connected`),kClosed:Symbol(`closed`),kNeedDrain:Symbol(`need drain`),kReset:Symbol(`reset`),kDestroyed:Symbol.for(`nodejs.stream.destroyed`),kResume:Symbol(`resume`),kOnError:Symbol(`on error`),kMaxHeadersSize:Symbol(`max headers size`),kRunningIdx:Symbol(`running index`),kPendingIdx:Symbol(`pending index`),kError:Symbol(`error`),kClients:Symbol(`clients`),kClient:Symbol(`client`),kParser:Symbol(`parser`),kOnDestroyed:Symbol(`destroy callbacks`),kPipelining:Symbol(`pipelining`),kSocket:Symbol(`socket`),kHostHeader:Symbol(`host header`),kConnector:Symbol(`connector`),kStrictContentLength:Symbol(`strict content length`),kMaxRedirections:Symbol(`maxRedirections`),kMaxRequests:Symbol(`maxRequestsPerClient`),kProxy:Symbol(`proxy agent options`),kCounter:Symbol(`socket request counter`),kInterceptors:Symbol(`dispatch interceptors`),kMaxResponseSize:Symbol(`max response size`),kHTTP2Session:Symbol(`http2Session`),kHTTP2SessionState:Symbol(`http2Session state`),kRetryHandlerDefaultRetry:Symbol(`retry agent default retry`),kConstruct:Symbol(`constructable`),kListeners:Symbol(`listeners`),kHTTPContext:Symbol(`http context`),kMaxConcurrentStreams:Symbol(`max concurrent streams`),kNoProxyAgent:Symbol(`no proxy agent`),kHttpProxyAgent:Symbol(`http proxy agent`),kHttpsProxyAgent:Symbol(`https proxy agent`)}})),ft=a(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var v=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let y=Symbol.for(`undici.error.UND_ERR_ABORT`);var b=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[y]===!0}[y]=!0};let x=Symbol.for(`undici.error.UND_ERR_ABORTED`);var S=class extends b{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[x]===!0}[x]=!0};let C=Symbol.for(`undici.error.UND_ERR_INFO`);var w=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[C]===!0}[C]=!0};let T=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var E=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[T]===!0}[T]=!0};let D=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var O=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[D]===!0}[D]=!0};let k=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var A=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[k]===!0}[k]=!0};let j=Symbol.for(`undici.error.UND_ERR_CLOSED`);var M=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[j]===!0}[j]=!0};let N=Symbol.for(`undici.error.UND_ERR_SOCKET`);var P=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[N]===!0}[N]=!0};let F=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var I=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[F]===!0}[F]=!0};let L=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var R=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[L]===!0}[L]=!0};let z=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var ee=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[z]===!0}[z]=!0};let B=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var te=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[B]===!0}[B]=!0};let ne=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var V=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ne]===!0}[ne]=!0};let re=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var ie=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[re]===!0}[re]=!0};let ae=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var oe=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[ae]===!0}[ae]=!0};let H=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:b,HTTPParserError:ee,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:E,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:v,RequestAbortedError:S,ClientDestroyedError:A,ClientClosedError:M,InformationalError:w,SocketError:P,NotSupportedError:I,ResponseContentLengthMismatchError:O,BalancedPoolMissingUpstreamError:R,ResponseExceededMaxSizeError:te,RequestRetryError:V,ResponseError:ie,SecureProxyConnectionError:oe,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[H]===!0}get[H](){return!0}}}})),pt=a(((e,t)=>{let n={},r=`Accept.Accept-Encoding.Accept-Language.Accept-Ranges.Access-Control-Allow-Credentials.Access-Control-Allow-Headers.Access-Control-Allow-Methods.Access-Control-Allow-Origin.Access-Control-Expose-Headers.Access-Control-Max-Age.Access-Control-Request-Headers.Access-Control-Request-Method.Age.Allow.Alt-Svc.Alt-Used.Authorization.Cache-Control.Clear-Site-Data.Connection.Content-Disposition.Content-Encoding.Content-Language.Content-Length.Content-Location.Content-Range.Content-Security-Policy.Content-Security-Policy-Report-Only.Content-Type.Cookie.Cross-Origin-Embedder-Policy.Cross-Origin-Opener-Policy.Cross-Origin-Resource-Policy.Date.Device-Memory.Downlink.ECT.ETag.Expect.Expect-CT.Expires.Forwarded.From.Host.If-Match.If-Modified-Since.If-None-Match.If-Range.If-Unmodified-Since.Keep-Alive.Last-Modified.Link.Location.Max-Forwards.Origin.Permissions-Policy.Pragma.Proxy-Authenticate.Proxy-Authorization.RTT.Range.Referer.Referrer-Policy.Refresh.Retry-After.Sec-WebSocket-Accept.Sec-WebSocket-Extensions.Sec-WebSocket-Key.Sec-WebSocket-Protocol.Sec-WebSocket-Version.Server.Server-Timing.Service-Worker-Allowed.Service-Worker-Navigation-Preload.Set-Cookie.SourceMap.Strict-Transport-Security.Supports-Loading-Mode.TE.Timing-Allow-Origin.Trailer.Transfer-Encoding.Upgrade.Upgrade-Insecure-Requests.User-Agent.Vary.Via.WWW-Authenticate.X-Content-Type-Options.X-DNS-Prefetch-Control.X-Frame-Options.X-Permitted-Cross-Domain-Policies.X-Powered-By.X-Requested-With.X-XSS-Protection`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=pt();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let r=t(`node:assert`),{kDestroyed:i,kBodyUsed:a,kListeners:o,kBody:s}=dt(),{IncomingMessage:c}=t(`node:http`),l=t(`node:stream`),u=t(`node:net`),{Blob:d}=t(`node:buffer`),f=t(`node:util`),{stringify:p}=t(`node:querystring`),{EventEmitter:m}=t(`node:events`),{InvalidArgumentError:h}=ft(),{headerNameLowerCasedRecord:g}=pt(),{tree:v}=mt(),[y,b]=process.versions.node.split(`.`).map(e=>Number(e));var x=class{constructor(e){this[s]=e,this[a]=!1}async*[Symbol.asyncIterator](){r(!this[a],`disturbed`),this[a]=!0,yield*this[s]}};function S(e){return w(e)?(I(e)===0&&e.on(`data`,function(){r(!1)}),typeof e.readableDidRead!=`boolean`&&(e[a]=!1,m.prototype.on.call(e,`data`,function(){this[a]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&F(e)?new x(e):e}function C(){}function w(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function T(e){if(e===null)return!1;if(e instanceof d)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function E(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=p(t);return n&&(e+=`?`+n),e}function D(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function O(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function k(e){if(typeof e==`string`){if(e=new URL(e),!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new h(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&D(e.port)===!1)throw new h(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new h(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new h(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new h(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new h(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!O(e.origin||e.protocol))throw new h("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function A(e){if(e=k(e),e.pathname!==`/`||e.search||e.hash)throw new h(`invalid url`);return e}function j(e){if(e[0]===`[`){let t=e.indexOf(`]`);return r(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function M(e){if(!e)return null;r(typeof e==`string`);let t=j(e);return u.isIP(t)?``:t}function N(e){return JSON.parse(JSON.stringify(e))}function P(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function F(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function I(e){if(e==null)return 0;if(w(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(T(e))return e.size==null?null:e.size;else if(re(e))return e.byteLength;return null}function L(e){return e&&!!(e.destroyed||e[i]||l.isDestroyed?.(e))}function R(e,t){e==null||!w(e)||L(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===c&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[i]=!0))}let z=/timeout=(\d+)/;function ee(e){let t=e.toString().match(z);return t?parseInt(t[1],10)*1e3:null}function B(e){return typeof e==`string`?g[e]??e.toLowerCase():v.lookup(e)??e.toString(`latin1`).toLowerCase()}function te(e){return v.lookup(e)??e.toString(`latin1`).toLowerCase()}function ne(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function V(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function ce(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function le(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let ue=typeof String.prototype.toWellFormed==`function`,W=typeof String.prototype.isWellFormed==`function`;function de(e){return ue?`${e}`.toWellFormed():f.toUSVString(e)}function fe(e){return W?`${e}`.isWellFormed():de(e)===`${e}`}function pe(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return e>=33&&e<=126}}function me(e){if(e.length===0)return!1;for(let t=0;t{let r=t(`node:diagnostics_channel`),i=t(`node:util`),a=i.debuglog(`undici`),o=i.debuglog(`fetch`),s=i.debuglog(`websocket`),c=!1,l={beforeConnect:r.channel(`undici:client:beforeConnect`),connected:r.channel(`undici:client:connected`),connectError:r.channel(`undici:client:connectError`),sendHeaders:r.channel(`undici:client:sendHeaders`),create:r.channel(`undici:request:create`),bodySent:r.channel(`undici:request:bodySent`),headers:r.channel(`undici:request:headers`),trailers:r.channel(`undici:request:trailers`),error:r.channel(`undici:request:error`),open:r.channel(`undici:websocket:open`),close:r.channel(`undici:websocket:close`),socketError:r.channel(`undici:websocket:socket_error`),ping:r.channel(`undici:websocket:ping`),pong:r.channel(`undici:websocket:pong`)};if(a.enabled||o.enabled){let e=o.enabled?o:a;r.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),r.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),r.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),r.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),r.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),r.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),r.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),c=!0}if(s.enabled){if(!c){let e=a.enabled?a:s;r.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),r.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),r.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),r.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}r.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;s(`connection opened %s%s`,t,n?`:${n}`:``)}),r.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;s(`closed connection to %s - %s %s`,t.url,n,r)}),r.channel(`undici:websocket:socket_error`).subscribe(e=>{s(`connection errored - %s`,e.message)}),r.channel(`undici:websocket:ping`).subscribe(e=>{s(`ping received`)}),r.channel(`undici:websocket:pong`).subscribe(e=>{s(`pong received`)})}n.exports={channels:l}})),_t=a(((e,n)=>{let{InvalidArgumentError:r,NotSupportedError:i}=ft(),a=t(`node:assert`),{isValidHTTPToken:o,isValidHeaderValue:s,isStream:c,destroy:l,isBuffer:u,isFormDataLike:d,isIterable:f,isBlobLike:p,buildURL:m,validateHandler:h,getServerName:g,normalizedMethodRecords:v}=ht(),{channels:y}=gt(),{headerNameLowerCasedRecord:b}=pt(),x=/[^\u0021-\u00ff]/,S=Symbol(`handler`);var C=class{constructor(e,{path:t,method:n,body:i,headers:a,query:b,idempotent:C,blocking:T,upgrade:E,headersTimeout:D,bodyTimeout:O,reset:k,throwOnError:A,expectContinue:j,servername:M},N){if(typeof t!=`string`)throw new r(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&n!==`CONNECT`)throw new r(`path must be an absolute URL or start with a slash`);if(x.test(t))throw new r(`invalid request path`);if(typeof n!=`string`)throw new r(`method must be a string`);if(v[n]===void 0&&!o(n))throw new r(`invalid request method`);if(E&&typeof E!=`string`)throw new r(`upgrade must be a string`);if(E&&!s(E))throw new r(`invalid upgrade header`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new r(`invalid headersTimeout`);if(O!=null&&(!Number.isFinite(O)||O<0))throw new r(`invalid bodyTimeout`);if(k!=null&&typeof k!=`boolean`)throw new r(`invalid reset`);if(j!=null&&typeof j!=`boolean`)throw new r(`invalid expectContinue`);if(this.headersTimeout=D,this.bodyTimeout=O,this.throwOnError=A===!0,this.method=n,this.abort=null,i==null)this.body=null;else if(c(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){l(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(u(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(d(i)||f(i)||p(i))this.body=i;else throw new r(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=E||null,this.path=b?m(t,b):t,this.origin=e,this.idempotent=C??(n===`HEAD`||n===`GET`),this.blocking=T??!1,this.reset=k??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=j??!1,Array.isArray(a)){if(a.length%2!=0)throw new r(`headers array must be even`);for(let e=0;e{let r=t(`node:events`);var i=class extends r{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new a(this,n)}},a=class extends i{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};n.exports=i})),yt=a(((e,t)=>{let n=vt(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=ft(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=dt(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`);t.exports=class extends n{constructor(){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[]}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),bt=a(((e,t)=>{let n=0,r=1e3,i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),xt=a(((e,n)=>{let r=t(`node:net`),i=t(`node:assert`),a=ht(),{InvalidArgumentError:o,ConnectTimeoutError:s}=ft(),c=bt();function l(){}let u,d;d=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function f({allowH2:e,maxCachedSessions:n,socketPath:s,timeout:c,session:l,...f}){if(n!=null&&(!Number.isInteger(n)||n<0))throw new o(`maxCachedSessions must be a positive integer or zero`);let m={path:s,...f},h=new d(n??100);return c??=1e4,e??=!1,function({hostname:n,host:o,protocol:s,port:d,servername:f,localAddress:g,httpSocket:v},y){let b;if(s===`https:`){u||=t(`node:tls`),f=f||m.servername||a.getServerName(o)||null;let r=f||n;i(r);let s=l||h.get(r)||null;d||=443,b=u.connect({highWaterMark:16384,...m,servername:f,session:s,localAddress:g,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:v,port:d,host:n}),b.on(`session`,function(e){h.set(r,e)})}else i(!v,`httpSocket can only be sent on TLS update`),d||=80,b=r.connect({highWaterMark:64*1024,...m,localAddress:g,port:d,host:n});if(m.keepAlive==null||m.keepAlive){let e=m.keepAliveInitialDelay===void 0?6e4:m.keepAliveInitialDelay;b.setKeepAlive(!0,e)}let x=p(new WeakRef(b),{timeout:c,hostname:n,port:d});return b.setNoDelay(!0).once(s===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(x),y){let e=y;y=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(x),y){let t=y;y=null,t(e)}}),b}}let p=process.platform===`win32`?(e,t)=>{if(!t.timeout)return l;let n=null,r=null,i=c.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>m(e.deref(),t))})},t.timeout);return()=>{c.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return l;let n=null,r=c.setFastTimeout(()=>{n=setImmediate(()=>{m(e.deref(),t)})},t.timeout);return()=>{c.clearFastTimeout(r),clearImmediate(n)}};function m(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,a.destroy(e,new s(n))}n.exports=f})),St=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),Ct=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=St();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),wt=a(((e,n)=>{let{Buffer:r}=t(`node:buffer`);n.exports=r.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv`,`base64`)})),Tt=a(((e,n)=>{let{Buffer:r}=t(`node:buffer`);n.exports=r.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),Et=a(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],v=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],y=[`half`],b=[`CONNECT`,`TRACE`,`TRACK`],x=new Set(b),S=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:S,forbiddenMethods:b,requestBodyHeader:v,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:y,subresourceSet:new Set(S),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:x,referrerPolicySet:u}})),Dt=a(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),Ot=a(((e,n)=>{let r=t(`node:assert`),i=new TextEncoder,a=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,o=/[\u000A\u000D\u0009\u0020]/,s=/[\u0009\u000A\u000C\u000D\u0020]/g,c=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function l(e){r(e.protocol===`data:`);let t=u(e,!0);t=t.slice(5);let n={position:0},i=f(`,`,t,n),a=i.length;if(i=T(i,!0,!0),n.position>=t.length)return`failure`;n.position++;let o=p(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=y(D(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=v(i);return s===`failure`&&(s=v(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function u(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function d(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function h(e){return e>=48&&e<=57?e-48:(e&223)-55}function g(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=f(`;`,e,t);if(r=C(r,!1,!0),r.length===0||!a.test(r))return`failure`;let i=n.toLowerCase(),s=r.toLowerCase(),l={type:i,subtype:s,parameters:new Map,essence:`${i}/${s}`};for(;t.positiono.test(e),e,t);let n=d(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=b(e,t,!0),f(`;`,e,t);else if(r=f(`;`,e,t),r=C(r,!1,!0),r.length===0)continue;n.length!==0&&a.test(n)&&(r.length===0||c.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function y(e){e=e.replace(s,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function b(e,t,n){let i=t.position,a=``;for(r(e[t.position]===`"`),t.position++;a+=d(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let n=e[t.position];if(t.position++,n===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{r(n===`"`);break}}return n?a:e.slice(i,t.position)}function x(e){r(e!==`failure`);let{parameters:t,essence:n}=e,i=n;for(let[e,n]of t.entries())i+=`;`,i+=e,i+=`=`,a.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),i+=n;return i}function S(e){return e===13||e===10||e===9||e===32}function C(e,t=!0,n=!0){return E(e,t,n,S)}function w(e){return e===13||e===10||e===9||e===12||e===32}function T(e,t=!0,n=!0){return E(e,t,n,w)}function E(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function D(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function O(e){switch(e.essence){case`application/ecmascript`:case`application/javascript`:case`application/x-ecmascript`:case`application/x-javascript`:case`text/ecmascript`:case`text/javascript`:case`text/javascript1.0`:case`text/javascript1.1`:case`text/javascript1.2`:case`text/javascript1.3`:case`text/javascript1.4`:case`text/javascript1.5`:case`text/jscript`:case`text/livescript`:case`text/x-ecmascript`:case`text/x-javascript`:return`text/javascript`;case`application/json`:case`text/json`:return`application/json`;case`image/svg+xml`:return`image/svg+xml`;case`text/xml`:case`application/xml`:return`application/xml`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}n.exports={dataURLProcessor:l,URLSerializer:u,collectASequenceOfCodePoints:d,collectASequenceOfCodePointsFast:f,stringPercentDecode:p,parseMIMEType:v,collectAnHTTPQuotedString:b,serializeAMimeType:x,removeChars:E,removeHTTPWhitespace:C,minimizeSupportedMimeType:O,HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:D}})),kt=a(((e,n)=>{let{types:r,inspect:i}=t(`node:util`),{markAsUncloneable:a}=t(`node:worker_threads`),{toUSVString:o}=ht(),s={};s.converters={},s.util={},s.errors={},s.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},s.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return s.errors.exception({header:e.prefix,message:n})},s.errors.invalidArgument=function(e){return s.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},s.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},s.argumentLengthCheck=function({length:e},t,n){if(e{}),s.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let o=Number(e);if(o===0&&(o=0),r?.enforceRange===!0){if(Number.isNaN(o)||o===1/0||o===-1/0)throw s.errors.exception({header:`Integer conversion`,message:`Could not convert ${s.util.Stringify(e)} to an integer.`});if(o=s.util.IntegerPart(o),oi)throw s.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${o}.`});return o}return!Number.isNaN(o)&&r?.clamp===!0?(o=Math.min(Math.max(o,a),i),o=Math.floor(o)%2==0?Math.floor(o):Math.ceil(o),o):Number.isNaN(o)||o===0&&Object.is(0,o)||o===1/0||o===-1/0?0:(o=s.util.IntegerPart(o),o%=2**t,n===`signed`&&o>=2**t-1?o-2**t:o)},s.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},s.util.Stringify=function(e){switch(s.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return i(e);case`String`:return`"${e}"`;default:return`${e}`}},s.sequenceConverter=function(e){return(t,n,r,i)=>{if(s.util.Type(t)!==`Object`)throw s.errors.exception({header:n,message:`${r} (${s.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),o=[],c=0;if(a===void 0||typeof a.next!=`function`)throw s.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;o.push(e(i,n,`${r}[${c++}]`))}return o}},s.recordConverter=function(e,t){return(n,i,a)=>{if(s.util.Type(n)!==`Object`)throw s.errors.exception({header:i,message:`${a} ("${s.util.Type(n)}") is not an Object.`});let o={};if(!r.isProxy(n)){let r=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(let s of r){let r=e(s,i,a);o[r]=t(n[s],i,a)}return o}let c=Reflect.ownKeys(n);for(let r of c)if(Reflect.getOwnPropertyDescriptor(n,r)?.enumerable){let s=e(r,i,a);o[s]=t(n[r],i,a)}return o}},s.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw s.errors.exception({header:n,message:`Expected ${r} ("${s.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},s.dictionaryConverter=function(e){return(t,n,r)=>{let i=s.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw s.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:o,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw s.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=o()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw s.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},s.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},s.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw s.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},s.converters.ByteString=function(e,t,n){let r=s.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},s.converters.USVString=o,s.converters.boolean=function(e){return!!e},s.converters.any=function(e){return e},s.converters[`long long`]=function(e,t,n){return s.util.ConvertToInt(e,64,`signed`,void 0,t,n)},s.converters[`unsigned long long`]=function(e,t,n){return s.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},s.converters[`unsigned long`]=function(e,t,n){return s.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},s.converters[`unsigned short`]=function(e,t,n,r){return s.util.ConvertToInt(e,16,`unsigned`,r,t,n)},s.converters.ArrayBuffer=function(e,t,n,i){if(s.util.Type(e)!==`Object`||!r.isAnyArrayBuffer(e))throw s.errors.conversionFailed({prefix:t,argument:`${n} ("${s.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&r.isSharedArrayBuffer(e))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.TypedArray=function(e,t,n,i,a){if(s.util.Type(e)!==`Object`||!r.isTypedArray(e)||e.constructor.name!==t.name)throw s.errors.conversionFailed({prefix:n,argument:`${i} ("${s.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&r.isSharedArrayBuffer(e.buffer))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.DataView=function(e,t,n,i){if(s.util.Type(e)!==`Object`||!r.isDataView(e))throw s.errors.exception({header:t,message:`${n} is not a DataView.`});if(i?.allowShared===!1&&r.isSharedArrayBuffer(e.buffer))throw s.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw s.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},s.converters.BufferSource=function(e,t,n,i){if(r.isAnyArrayBuffer(e))return s.converters.ArrayBuffer(e,t,n,{...i,allowShared:!1});if(r.isTypedArray(e))return s.converters.TypedArray(e,e.constructor,t,n,{...i,allowShared:!1});if(r.isDataView(e))return s.converters.DataView(e,t,n,{...i,allowShared:!1});throw s.errors.conversionFailed({prefix:t,argument:`${n} ("${s.util.Stringify(e)}")`,types:[`BufferSource`]})},s.converters[`sequence`]=s.sequenceConverter(s.converters.ByteString),s.converters[`sequence>`]=s.sequenceConverter(s.converters[`sequence`]),s.converters[`record`]=s.recordConverter(s.converters.ByteString,s.converters.ByteString),n.exports={webidl:s}})),At=a(((e,n)=>{let{Transform:r}=t(`node:stream`),i=t(`node:zlib`),{redirectStatusSet:a,referrerPolicySet:o,badPortsSet:s}=Et(),{getGlobalOrigin:c}=Dt(),{collectASequenceOfCodePoints:l,collectAnHTTPQuotedString:u,removeChars:d,parseMIMEType:f}=Ot(),{performance:p}=t(`node:perf_hooks`),{isBlobLike:m,ReadableStreamFrom:h,isValidHTTPToken:g,normalizedMethodRecordsBase:v}=ht(),y=t(`node:assert`),{isUint8Array:b}=t(`node:util/types`),{webidl:x}=kt(),S=[],C;try{C=t(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];S=C.getHashes().filter(t=>e.includes(t))}catch{}function w(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function T(e,t){if(!a.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&N(n)&&(E(n)||(n=D(n)),n=new URL(n,w(e))),n&&!n.hash&&(n.hash=t),n}function E(e){for(let t=0;t126||n<32)return!1}return!0}function D(e){return Buffer.from(e,`binary`).toString(`utf8`)}function O(e){return e.urlList[e.urlList.length-1]}function k(e){let t=O(e);return Oe(t)&&s.has(t.port)?`blocked`:`allowed`}function A(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function j(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let M=g;function N(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` +`)||e.includes(`\r`)||e.includes(`\0`))===!1}function P(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(o.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function F(){return`allowed`}function I(){return`success`}function L(){return`success`}function R(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function z(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&De(e.origin)&&!De(O(e))&&(t=null);break;case`same-origin`:de(e,O(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function ee(e,t){return e}function B(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=de(e,r),o=oe(r)&&!oe(e.url);switch(t){case`origin`:return i??ae(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=O(e);return de(r,t)?r:oe(r)&&!oe(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function ae(e,t){return y(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function oe(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function H(e,t){if(C===void 0)return!0;let n=U(t);if(n===`no metadata`||n.length===0)return!0;let r=le(n,ce(n));for(let t of r){let n=t.algo,r=t.hash,i=C.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),ue(i,r))return!0}return!1}let se=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function U(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=se.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();S.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function ce(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function pe(e){return e.controller.state===`aborted`}function me(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function he(e){return v[e.toLowerCase()]??e}function ge(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return y(typeof t==`string`),t}let _e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ve(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,_e),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function ye(e,t,n,r=0,i=1){let a=ve(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return x.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(x.brandCheck(this,t),x.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function be(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await Te(a))}catch(e){i(e)}}function xe(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function Se(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let Ce=/[^\x00-\xFF]/;function we(e){return y(!Ce.test(e)),e}async function Te(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!b(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function Ee(e){y(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function De(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function Oe(e){y(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function ke(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&l(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&l(e=>e===` `||e===` `,n,r);let i=l(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&l(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&l(e=>e===` `||e===` `,n,r);let o=l(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Ae(e,t,n){let r=`bytes `;return r+=we(`${e}`),r+=`-`,r+=we(`${t}`),r+=`/`,r+=we(`${n}`),r}var je=class extends r{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?i.createInflate(this.#e):i.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Me(e){return new je(e)}function Ne(e){let t=null,n=null,r=null,i=Fe(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=f(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function Pe(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Fe(e,t){let n=t.get(e,!0);return n===null?null:Pe(n)}let Ie=new TextDecoder;function Le(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),Ie.decode(e))}var Re=class{get baseUrl(){return c()}get origin(){return this.baseUrl?.origin}policyContainer=V()};n.exports={isAborted:pe,isCancelled:me,isValidEncodedURL:E,createDeferredPromise:fe,ReadableStreamFrom:h,tryUpgradeRequestToAPotentiallyTrustworthyURL:W,clampAndCoarsenConnectionTimingInfo:B,coarsenedSharedCurrentTime:te,determineRequestsReferrer:ie,makePolicyContainer:V,clonePolicyContainer:re,appendFetchMetadata:R,appendRequestOriginHeader:z,TAOCheck:L,corsCheck:I,crossOriginResourcePolicyCheck:F,createOpaqueTimingInfo:ne,setRequestReferrerPolicyOnRedirect:P,isValidHTTPToken:g,requestBadPort:k,requestCurrentURL:O,responseURL:w,responseLocationURL:T,isBlobLike:m,isURLPotentiallyTrustworthy:oe,isValidReasonPhrase:j,sameOrigin:de,normalizeMethod:he,serializeJavascriptValueToJSONString:ge,iteratorMixin:ye,createIterator:ve,isValidHeaderName:M,isValidHeaderValue:N,isErrorLike:A,fullyReadBody:be,bytesMatch:H,isReadableStreamLike:xe,readableStreamClose:Se,isomorphicEncode:we,urlIsLocal:Ee,urlHasHttpsScheme:De,urlIsHttpHttpsScheme:Oe,readAllBytes:Te,simpleRangeHeaderValue:ke,buildContentRange:Ae,parseMetadata:U,createInflate:Me,extractMimeType:Ne,getDecodeSplit:Fe,utf8DecodeBytes:Le,environmentSettingsObject:new class{settingsObject=new Re}}})),jt=a(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),Mt=a(((e,n)=>{let{Blob:r,File:i}=t(`node:buffer`),{kState:a}=jt(),{webidl:o}=kt();var s=class e{constructor(e,t,n={}){let r=t,i=n.type,o=n.lastModified??Date.now();this[a]={blobLike:e,name:r,type:i,lastModified:o}}stream(...t){return o.brandCheck(this,e),this[a].blobLike.stream(...t)}arrayBuffer(...t){return o.brandCheck(this,e),this[a].blobLike.arrayBuffer(...t)}slice(...t){return o.brandCheck(this,e),this[a].blobLike.slice(...t)}text(...t){return o.brandCheck(this,e),this[a].blobLike.text(...t)}get size(){return o.brandCheck(this,e),this[a].blobLike.size}get type(){return o.brandCheck(this,e),this[a].blobLike.type}get name(){return o.brandCheck(this,e),this[a].name}get lastModified(){return o.brandCheck(this,e),this[a].lastModified}get[Symbol.toStringTag](){return`File`}};o.converters.Blob=o.interfaceConverter(r);function c(e){return e instanceof i||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}n.exports={FileLike:s,isFileLike:c}})),Nt=a(((e,n)=>{let{isBlobLike:r,iteratorMixin:i}=At(),{kState:a}=jt(),{kEnumerableProperty:o}=ht(),{FileLike:s,isFileLike:c}=Mt(),{webidl:l}=kt(),{File:u}=t(`node:buffer`),d=t(`node:util`),f=globalThis.File??u;var p=class e{constructor(e){if(l.util.markAsUncloneable(this),e!==void 0)throw l.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[a]=[]}append(t,n,i=void 0){l.brandCheck(this,e);let o=`FormData.append`;if(l.argumentLengthCheck(arguments,2,o),arguments.length===3&&!r(n))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t,o,`name`),n=r(n)?l.converters.Blob(n,o,`value`,{strict:!1}):l.converters.USVString(n,o,`value`),i=arguments.length===3?l.converters.USVString(i,o,`filename`):void 0;let s=m(t,n,i);this[a].push(s)}delete(t){l.brandCheck(this,e);let n=`FormData.delete`;l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a]=this[a].filter(e=>e.name!==t)}get(t){l.brandCheck(this,e);let n=`FormData.get`;l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`);let r=this[a].findIndex(e=>e.name===t);return r===-1?null:this[a][r].value}getAll(t){l.brandCheck(this,e);let n=`FormData.getAll`;return l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a].filter(e=>e.name===t).map(e=>e.value)}has(t){l.brandCheck(this,e);let n=`FormData.has`;return l.argumentLengthCheck(arguments,1,n),t=l.converters.USVString(t,n,`name`),this[a].findIndex(e=>e.name===t)!==-1}set(t,n,i=void 0){l.brandCheck(this,e);let o=`FormData.set`;if(l.argumentLengthCheck(arguments,2,o),arguments.length===3&&!r(n))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=l.converters.USVString(t,o,`name`),n=r(n)?l.converters.Blob(n,o,`name`,{strict:!1}):l.converters.USVString(n,o,`name`),i=arguments.length===3?l.converters.USVString(i,o,`name`):void 0;let s=m(t,n,i),c=this[a].findIndex(e=>e.name===t);c===-1?this[a].push(s):this[a]=[...this[a].slice(0,c),s,...this[a].slice(c+1).filter(e=>e.name!==t)]}[d.inspect.custom](e,t){let n=this[a].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=d.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};i(`FormData`,p,a,`name`,`value`),Object.defineProperties(p.prototype,{append:o,delete:o,get:o,getAll:o,has:o,set:o,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function m(e,t,n){if(typeof t!=`string`&&(c(t)||(t=t instanceof Blob?new f([t],`blob`,{type:t.type}):new s(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof u?new f([t],n,e):new s(t,n,e)}return{name:e,value:t}}n.exports={FormData:p,makeEntry:m}})),Pt=a(((e,n)=>{let{isUSVString:r,bufferToLowerCasedHeaderName:i}=ht(),{utf8DecodeBytes:a}=At(),{HTTP_TOKEN_CODEPOINTS:o,isomorphicDecode:s}=Ot(),{isFileLike:c}=Mt(),{makeEntry:l}=Nt(),u=t(`node:assert`),{File:d}=t(`node:buffer`),f=globalThis.File??d,p=Buffer.from(`form-data; name="`),m=Buffer.from(`; filename`),h=Buffer.from(`--`),g=Buffer.from(`--\r +`);function v(e){for(let t=0;t70)return!1;for(let n=0;n=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95))return!1}return!0}function b(e,t){u(t!==`failure`&&t.essence===`multipart/form-data`);let n=t.parameters.get(`boundary`);if(n===void 0)return`failure`;let i=Buffer.from(`--${n}`,`utf8`),o=[],s={position:0};for(;e[s.position]===13&&e[s.position+1]===10;)s.position+=2;let d=e.length;for(;e[d-1]===10&&e[d-2]===13;)d-=2;for(d!==e.length&&(e=e.subarray(0,d));;){if(e.subarray(s.position,s.position+i.length).equals(i))s.position+=i.length;else return`failure`;if(s.position===e.length-2&&T(e,h,s)||s.position===e.length-4&&T(e,g,s))return o;if(e[s.position]!==13||e[s.position+1]!==10)return`failure`;s.position+=2;let t=x(e,s);if(t===`failure`)return`failure`;let{name:n,filename:d,contentType:p,encoding:m}=t;s.position+=2;let y;{let t=e.indexOf(i.subarray(2),s.position);if(t===-1)return`failure`;y=e.subarray(s.position,t-4),s.position+=y.length,m===`base64`&&(y=Buffer.from(y.toString(),`base64`))}if(e[s.position]!==13||e[s.position+1]!==10)return`failure`;s.position+=2;let b;d===null?b=a(Buffer.from(y)):(p??=`text/plain`,v(p)||(p=``),b=new f([y],d,{type:p})),u(r(n)),u(typeof b==`string`&&r(b)||c(b)),o.push(l(n,b,d))}}function x(e,t){let n=null,r=null,a=null,c=null;for(;;){if(e[t.position]===13&&e[t.position+1]===10)return n===null?`failure`:{name:n,filename:r,contentType:a,encoding:c};let l=C(e=>e!==10&&e!==13&&e!==58,e,t);if(l=w(l,!0,!0,e=>e===9||e===32),!o.test(l.toString())||e[t.position]!==58)return`failure`;switch(t.position++,C(e=>e===32||e===9,e,t),i(l)){case`content-disposition`:if(n=r=null,!T(e,p,t)||(t.position+=17,n=S(e,t),n===null))return`failure`;if(T(e,m,t)){let n=t.position+m.length;if(e[n]===42&&(t.position+=1,n+=1),e[n]!==61||e[n+1]!==34||(t.position+=12,r=S(e,t),r===null))return`failure`}break;case`content-type`:{let n=C(e=>e!==10&&e!==13,e,t);n=w(n,!1,!0,e=>e===9||e===32),a=s(n);break}case`content-transfer-encoding`:{let n=C(e=>e!==10&&e!==13,e,t);n=w(n,!1,!0,e=>e===9||e===32),c=s(n);break}default:C(e=>e!==10&&e!==13,e,t)}if(e[t.position]!==13&&e[t.position+1]!==10)return`failure`;t.position+=2}}function S(e,t){u(e[t.position-1]===34);let n=C(e=>e!==10&&e!==13&&e!==34,e,t);return e[t.position]===34?(t.position++,n=new TextDecoder().decode(n).replace(/%0A/gi,` +`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function C(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function T(e,t,n){if(e.length{let r=ht(),{ReadableStreamFrom:i,isBlobLike:a,isReadableStreamLike:o,readableStreamClose:s,createDeferredPromise:c,fullyReadBody:l,extractMimeType:u,utf8DecodeBytes:d}=At(),{FormData:f}=Nt(),{kState:p}=jt(),{webidl:m}=kt(),{Blob:h}=t(`node:buffer`),g=t(`node:assert`),{isErrored:v,isDisturbed:y}=t(`node:stream`),{isArrayBuffer:b}=t(`node:util/types`),{serializeAMimeType:x}=Ot(),{multipartFormDataParser:S}=Pt(),C;try{let e=t(`node:crypto`);C=t=>e.randomInt(0,t)}catch{C=e=>Math.floor(Math.random(e))}let w=new TextEncoder;function T(){}let E=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,D;E&&(D=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!y(t)&&!v(t)&&t.cancel(`Response object has been garbage collected`).catch(T)}));function O(e,t=!1){let n=null;n=e instanceof ReadableStream?e:a(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?w.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>s(e))},start(){},type:`bytes`}),g(o(n));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(b(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){let t=`----formdata-undici-0${`${C(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r +`),a=[],o=new Uint8Array([13,10]) +/*! formdata-polyfill. MIT License. Jimmy Wärting */ +;u=0;let s=!1;for(let[t,c]of e)if(typeof c==`string`){let e=w.encode(n+`; name="${r(i(t))}"\r\n\r\n${i(c)}\r\n`);a.push(e),u+=e.byteLength}else{let e=w.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:``)+`\r +Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=w.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(a(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(r.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);n=e instanceof ReadableStream?e:i(e)}if((typeof l==`string`||r.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;n=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:r,done:i}=await t.next();if(i)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!v(n)){let t=new Uint8Array(r);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:n,source:l,length:u},d]}function k(e,t=!1){return e instanceof ReadableStream&&(g(!r.isDisturbed(e),`The body has already been consumed.`),g(!e.locked,`The stream is locked.`)),O(e,t)}function A(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function j(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function M(e){return{blob(){return P(this,e=>{let t=L(this);return t===null?t=``:t&&=x(t),new h([e],{type:t})},e)},arrayBuffer(){return P(this,e=>new Uint8Array(e).buffer,e)},text(){return P(this,d,e)},json(){return P(this,I,e)},formData(){return P(this,e=>{let t=L(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=S(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new f;return r[p]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new f;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return P(this,e=>new Uint8Array(e),e)}}}function N(e){Object.assign(e.prototype,M(e))}async function P(e,t,n){if(m.brandCheck(e,n),F(e))throw TypeError(`Body is unusable: Body has already been read`);j(e[p]);let r=c(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[p].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await l(e[p].body,a,i),r.promise)}function F(e){let t=e[p].body;return t!=null&&(t.stream.locked||r.isDisturbed(t.stream))}function I(e){return JSON.parse(d(e))}function L(e){let t=e[p].headersList,n=u(t);return n===`failure`?null:n}n.exports={extractBody:O,safelyExtractBody:k,cloneBody:A,mixinBody:N,streamRegistry:D,hasFinalizationRegistry:E,bodyUnusable:F}})),It=a(((e,n)=>{let r=t(`node:assert`),i=ht(),{channels:a}=gt(),o=bt(),{RequestContentLengthMismatchError:s,ResponseContentLengthMismatchError:c,RequestAbortedError:l,HeadersTimeoutError:u,HeadersOverflowError:d,SocketError:f,InformationalError:p,BodyTimeoutError:m,HTTPParserError:h,ResponseExceededMaxSizeError:g}=ft(),{kUrl:v,kReset:y,kClient:b,kParser:x,kBlocking:S,kRunning:C,kPending:w,kSize:T,kWriting:E,kQueue:D,kNoRef:O,kKeepAliveDefaultTimeout:k,kHostHeader:A,kPendingIdx:j,kRunningIdx:M,kError:N,kPipelining:P,kSocket:F,kKeepAliveTimeoutValue:I,kMaxHeadersSize:L,kKeepAliveMaxTimeout:R,kKeepAliveTimeoutThreshold:z,kHeadersTimeout:ee,kBodyTimeout:B,kStrictContentLength:te,kMaxRequests:ne,kCounter:V,kMaxResponseSize:re,kOnError:ie,kResume:ae,kHTTPContext:oe}=dt(),H=Ct(),se=Buffer.alloc(0),U=Buffer[Symbol.species],ce=i.addListener,le=i.removeAllListeners,ue;async function W(){let e=process.env.JEST_WORKER_ID?wt():void 0,t;try{t=await WebAssembly.compile(Tt())}catch{t=await WebAssembly.compile(e||wt())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{r(pe.ptr===e);let i=t-ge+me.byteOffset;return pe.onStatus(new U(me.buffer,i,n))||0},wasm_on_message_begin:e=>(r(pe.ptr===e),pe.onMessageBegin()||0),wasm_on_header_field:(e,t,n)=>{r(pe.ptr===e);let i=t-ge+me.byteOffset;return pe.onHeaderField(new U(me.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{r(pe.ptr===e);let i=t-ge+me.byteOffset;return pe.onHeaderValue(new U(me.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>(r(pe.ptr===e),pe.onHeadersComplete(t,!!n,!!i)||0),wasm_on_body:(e,t,n)=>{r(pe.ptr===e);let i=t-ge+me.byteOffset;return pe.onBody(new U(me.buffer,i,n))||0},wasm_on_message_complete:e=>(r(pe.ptr===e),pe.onMessageComplete()||0)}})}let de=null,fe=W();fe.catch();let pe=null,me=null,he=0,ge=null;var _e=class{constructor(e,t,{exports:n}){r(Number.isFinite(e[L])&&e[L]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(H.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[L],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[re]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(o.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=o.setFastTimeout(ve,e,new WeakRef(this)):(this.timeout=setTimeout(ve,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(r(this.ptr!=null),r(pe==null),this.llhttp.llhttp_resume(this.ptr),r(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||se),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){r(this.ptr!=null),r(pe==null),r(!this.paused);let{socket:t,llhttp:n}=this;e.length>he&&(ge&&n.free(ge),he=Math.ceil(e.length/4096)*4096,ge=n.malloc(he)),new Uint8Array(n.memory.buffer,ge,he).set(e);try{let r;try{me=e,pe=this,r=n.llhttp_execute(this.ptr,ge,e.length)}catch(e){throw e}finally{pe=null,me=null}let i=n.llhttp_get_error_pos(this.ptr)-ge;if(r===H.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(r===H.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(i));else if(r!==H.ERROR.OK){let t=n.llhttp_get_error_reason(this.ptr),a=``;if(t){let e=new Uint8Array(n.memory.buffer,t).indexOf(0);a=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(n.memory.buffer,t,e).toString()+`)`}throw new h(a,H.ERROR[r],e.slice(i))}}catch(e){i.destroy(t,e)}}destroy(){r(this.ptr!=null),r(pe==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&o.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[D][t[M]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=i.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&i.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&i.destroy(this.socket,new d)}onUpgrade(e){let{upgrade:t,client:n,socket:a,headers:o,statusCode:s}=this;r(t),r(n[F]===a),r(!a.destroyed),r(!this.paused),r((o.length&1)==0);let c=n[D][n[M]];r(c),r(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[x].destroy(),a[x]=null,a[b]=null,a[N]=null,le(a),n[F]=null,n[oe]=null,n[D][n[M]++]=null,n.emit(`disconnect`,n[v],[n],new p(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){i.destroy(a,e)}n[ae]()}onHeadersComplete(e,t,n){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[D][a[M]];if(!l)return-1;if(r(!this.upgrade),r(this.statusCode<200),e===100)return i.destroy(o,new f(`bad response`,i.getSocketInfo(o))),-1;if(t&&!l.upgrade)return i.destroy(o,new f(`bad upgrade`,i.getSocketInfo(o))),-1;if(r(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=n||l.method===`HEAD`&&!o[y]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[B]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return r(a[C]===1),this.upgrade=!0,2;if(r((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[P]){let e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[z],a[R]);t<=0?o[y]=!0:a[I]=t}else a[I]=a[k]}else o[y]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[S]&&(o[S]=!1,a[ae]()),u?H.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:n,statusCode:a,maxResponseSize:o}=this;if(n.destroyed)return-1;let s=t[D][t[M]];if(r(s),r(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),r(a>=200),o>-1&&this.bytesRead+e.length>o)return i.destroy(n,new g),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return H.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:n,upgrade:a,headers:o,contentLength:s,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!n||u))return-1;if(a)return;r(n>=100),r((this.headers.length&1)==0);let d=e[D][e[M]];if(r(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(n<200)){if(d.method!==`HEAD`&&s&&l!==parseInt(s,10))return i.destroy(t,new c),-1;if(d.onComplete(o),e[D][e[M]++]=null,t[E])return r(e[C]===0),i.destroy(t,new p(`reset`)),H.ERROR.PAUSED;if(!u||t[y]&&e[C]===0)return i.destroy(t,new p(`reset`)),H.ERROR.PAUSED;e[P]==null||e[P]===1?setImmediate(()=>e[ae]()):e[ae]()}}};function ve(e){let{socket:t,timeoutType:n,client:a,paused:o}=e.deref();n===3?(!t[E]||t.writableNeedDrain||a[C]>1)&&(r(!o,`cannot be paused while waiting for headers`),i.destroy(t,new u)):n===5?o||i.destroy(t,new m):n===8&&(r(a[C]===0&&a[I]),i.destroy(t,new p(`socket idle timeout`)))}async function ye(e,t){e[F]=t,de||(de=await fe,fe=null),t[O]=!1,t[E]=!1,t[y]=!1,t[S]=!1,t[x]=new _e(e,t,de),ce(t,`error`,function(e){r(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[x];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[N]=e,this[b][ie](e)}),ce(t,`readable`,function(){let e=this[x];e&&e.readMore()}),ce(t,`end`,function(){let e=this[x];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}i.destroy(this,new f(`other side closed`,i.getSocketInfo(this)))}),ce(t,`close`,function(){let e=this[b],t=this[x];t&&(!this[N]&&t.statusCode&&!t.shouldKeepAlive&&t.onMessageComplete(),this[x].destroy(),this[x]=null);let n=this[N]||new f(`closed`,i.getSocketInfo(this));if(e[F]=null,e[oe]=null,e.destroyed){r(e[w]===0);let t=e[D].splice(e[M]);for(let r=0;r0&&n.code!==`UND_ERR_INFO`){let t=e[D][e[M]];e[D][e[M]++]=null,i.errorRequest(e,t,n)}e[j]=e[M],r(e[C]===0),e.emit(`disconnect`,e[v],[e],n),e[ae]()});let n=!1;return t.on(`close`,()=>{n=!0}),{version:`h1`,defaultPipelining:1,write(...t){return Se(e,...t)},resume(){be(e)},destroy(e,r){n?queueMicrotask(r):t.destroy(e).on(`close`,r)},get destroyed(){return t.destroyed},busy(n){return!!(t[E]||t[y]||t[S]||n&&(e[C]>0&&!n.idempotent||e[C]>0&&(n.upgrade||n.method===`CONNECT`)||e[C]>0&&i.bodyLength(n.body)!==0&&(i.isStream(n.body)||i.isAsyncIterable(n.body)||i.isFormDataLike(n.body))))}}}function be(e){let t=e[F];if(t&&!t.destroyed){if(e[T]===0?!t[O]&&t.unref&&(t.unref(),t[O]=!0):t[O]&&t.ref&&(t.ref(),t[O]=!1),e[T]===0)t[x].timeoutType!==8&&t[x].setTimeout(e[I],8);else if(e[C]>0&&t[x].statusCode<200&&t[x].timeoutType!==3){let n=e[D][e[M]],r=n.headersTimeout==null?e[ee]:n.headersTimeout;t[x].setTimeout(r,3)}}}function xe(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function Se(e,t){let{method:n,path:o,host:c,upgrade:u,blocking:d,reset:f}=t,{body:m,headers:h,contentLength:g}=t,v=n===`PUT`||n===`POST`||n===`PATCH`||n===`QUERY`||n===`PROPFIND`||n===`PROPPATCH`;if(i.isFormDataLike(m)){ue||=Ft().extractBody;let[e,n]=ue(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else i.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let b=i.bodyLength(m);if(g=b??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),xe(n)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[te])return i.errorRequest(e,t,new s),!1;process.emitWarning(new s)}let x=e[F],C=n=>{t.aborted||t.completed||(i.errorRequest(e,t,n||new l),i.destroy(m),i.destroy(x,new p(`aborted`)))};try{t.onConnect(C)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;n===`HEAD`&&(x[y]=!0),(u||n===`CONNECT`)&&(x[y]=!0),f!=null&&(x[y]=f),e[ne]&&x[V]++>=e[ne]&&(x[y]=!0),d&&(x[S]=!0);let w=`${n} ${o} HTTP/1.1\r\n`;if(typeof c==`string`?w+=`host: ${c}\r\n`:w+=e[A],u?w+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[P]&&!x[y]?w+=`connection: keep-alive\r +`:w+=`connection: close\r +`,Array.isArray(h))for(let e=0;e{t.removeListener(`error`,g)}),!d){let e=new l;queueMicrotask(()=>g(e))}},g=function(e){if(!d){if(d=!0,r(o.destroyed||o[E]&&n[C]<=1),o.off(`drain`,m).off(`error`,g),t.removeListener(`data`,p).removeListener(`end`,g).removeListener(`close`,h),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?i.destroy(t,e):i.destroy(t)}};t.on(`data`,p).on(`end`,g).on(`error`,g).on(`close`,h),t.resume&&t.resume(),o.on(`drain`,m).on(`error`,g),t.errorEmitted??t.errored?setImmediate(()=>g(t.errored)):(t.endEmitted??t.readableEnded)&&setImmediate(()=>g(null)),(t.closeEmitted??t.closed)&&setImmediate(h)}function we(e,t,n,a,o,s,c,l){try{t?i.isBuffer(t)&&(r(s===t.byteLength,`buffer body must have content length`),o.cork(),o.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),o.write(t),o.uncork(),a.onBodySent(t),!l&&a.reset!==!1&&(o[y]=!0)):s===0?o.write(`${c}content-length: 0\r\n\r\n`,`latin1`):(r(s===null,`no body must not have content length`),o.write(`${c}\r\n`,`latin1`)),a.onRequestSent(),n[ae]()}catch(t){e(t)}}async function Te(e,t,n,i,a,o,c,l){r(o===t.size,`blob body must have content length`);try{if(o!=null&&o!==t.size)throw new s;let e=Buffer.from(await t.arrayBuffer());a.cork(),a.write(`${c}content-length: ${o}\r\n\r\n`,`latin1`),a.write(e),a.uncork(),i.onBodySent(e),i.onRequestSent(),!l&&i.reset!==!1&&(a[y]=!0),n[ae]()}catch(t){e(t)}}async function Ee(e,t,n,i,a,o,s,c){r(o!==0||n[C]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let d=()=>new Promise((e,t)=>{r(l===null),a[N]?t(a[N]):l=e});a.on(`close`,u).on(`drain`,u);let f=new De({abort:e,socket:a,request:i,contentLength:o,client:n,expectsPayload:c,header:s});try{for await(let e of t){if(a[N])throw a[N];f.write(e)||await d()}f.end()}catch(e){f.destroy(e)}finally{a.off(`close`,u).off(`drain`,u)}}var De=class{constructor({abort:e,socket:t,request:n,contentLength:r,client:i,expectsPayload:a,header:o}){this.socket=t,this.request=n,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=o,this.abort=e,t[E]=!0}write(e){let{socket:t,request:n,contentLength:r,client:i,bytesWritten:a,expectsPayload:o,header:c}=this;if(t[N])throw t[N];if(t.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(r!==null&&a+l>r){if(i[te])throw new s;process.emitWarning(new s)}t.cork(),a===0&&(!o&&n.reset!==!1&&(t[y]=!0),r===null?t.write(`${c}transfer-encoding: chunked\r\n`,`latin1`):t.write(`${c}content-length: ${r}\r\n\r\n`,`latin1`)),r===null&&t.write(`\r\n${l.toString(16)}\r\n`,`latin1`),this.bytesWritten+=l;let u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[x].timeout&&t[x].timeoutType===3&&t[x].timeout.refresh&&t[x].timeout.refresh(),u}end(){let{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:a,request:o}=this;if(o.onRequestSent(),e[E]=!1,e[N])throw e[N];if(!e.destroyed){if(r===0?i?e.write(`${a}content-length: 0\r\n\r\n`,`latin1`):e.write(`${a}\r\n`,`latin1`):t===null&&e.write(`\r +0\r +\r +`,`latin1`),t!==null&&r!==t){if(n[te])throw new s;process.emitWarning(new s)}e[x].timeout&&e[x].timeoutType===3&&e[x].timeout.refresh&&e[x].timeout.refresh(),n[ae]()}}destroy(e){let{socket:t,client:n,abort:i}=this;t[E]=!1,e&&(r(n[C]<=1,`pipeline should only contain this request`),i(e))}};n.exports=ye})),Lt=a(((e,n)=>{let r=t(`node:assert`),{pipeline:i}=t(`node:stream`),a=ht(),{RequestContentLengthMismatchError:o,RequestAbortedError:s,SocketError:c,InformationalError:l}=ft(),{kUrl:u,kReset:d,kClient:f,kRunning:p,kPending:m,kQueue:h,kPendingIdx:g,kRunningIdx:v,kError:y,kSocket:b,kStrictContentLength:x,kOnError:S,kMaxConcurrentStreams:C,kHTTP2Session:w,kResume:T,kSize:E,kHTTPContext:D}=dt(),O=Symbol(`open streams`),k,A=!1,j;try{j=t(`node:http2`)}catch{j={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:M,HTTP2_HEADER_METHOD:N,HTTP2_HEADER_PATH:P,HTTP2_HEADER_SCHEME:F,HTTP2_HEADER_CONTENT_LENGTH:I,HTTP2_HEADER_EXPECT:L,HTTP2_HEADER_STATUS:R}}=j;function z(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function ee(e,t){e[b]=t,A||(A=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let n=j.connect(e[u],{createConnection:()=>t,peerMaxConcurrentStreams:e[C]});n[O]=0,n[f]=e,n[b]=t,a.addListener(n,`error`,te),a.addListener(n,`frameError`,ne),a.addListener(n,`end`,V),a.addListener(n,`goaway`,re),a.addListener(n,`close`,function(){let{[f]:e}=this,{[b]:t}=e,n=this[b][y]||this[y]||new c(`closed`,a.getSocketInfo(t));if(e[w]=null,e.destroyed){r(e[m]===0);let t=e[h].splice(e[v]);for(let r=0;r{i=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return ae(e,...t)},resume(){B(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function B(e){let t=e[b];t?.destroyed===!1&&(e[E]===0&&e[C]===0?(t.unref(),e[w].unref()):(t.ref(),e[w].ref()))}function te(e){r(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[b][y]=e,this[f][S](e)}function ne(e,t,n){if(n===0){let n=new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[b][y]=n,this[f][S](n)}}function V(){let e=new c(`other side closed`,a.getSocketInfo(this[b]));this.destroy(e),a.destroy(this[b],e)}function re(e){let t=this[y]||new c(`HTTP/2: "GOAWAY" frame received with code ${e}`,a.getSocketInfo(this)),n=this[f];if(n[b]=null,n[D]=null,this[w]!=null&&(this[w].destroy(t),this[w]=null),a.destroy(this[b],t),n[v]{t.aborted||t.completed||(n||=new s,a.errorRequest(e,t,n),E!=null&&a.destroy(E,n),a.destroy(S,n),e[h][e[v]++]=null,e[T]())};try{t.onConnect(j)}catch(n){a.errorRequest(e,t,n)}if(t.aborted)return!1;if(i===`CONNECT`)return n.ref(),E=n.request(C,{endStream:!1,signal:m}),E.id&&!E.pending?(t.onUpgrade(null,null,E),++n[O],e[h][e[v]++]=null):E.once(`ready`,()=>{t.onUpgrade(null,null,E),++n[O],e[h][e[v]++]=null}),E.once(`close`,()=>{--n[O],n[O]===0&&n.unref()}),!0;C[P]=c,C[F]=`https`;let ee=i===`PUT`||i===`POST`||i===`PATCH`;S&&typeof S.read==`function`&&S.read(0);let B=a.bodyLength(S);if(a.isFormDataLike(S)){k??=Ft().extractBody;let[e,t]=k(S);C[`content-type`]=t,S=e.stream,B=e.length}if(B??=t.contentLength,(B===0||!ee)&&(B=null),ie(i)&&B>0&&t.contentLength!=null&&t.contentLength!==B){if(e[x])return a.errorRequest(e,t,new o),!1;process.emitWarning(new o)}B!=null&&(r(S,`no body must not have content length`),C[I]=`${B}`),n.ref();let te=i===`GET`||i===`HEAD`||S===null;return p?(C[L]=`100-continue`,E=n.request(C,{endStream:te,signal:m}),E.once(`continue`,ne)):(E=n.request(C,{endStream:te,signal:m}),ne()),++n[O],E.once(`response`,n=>{let{[R]:r,...i}=n;if(t.onResponseStarted(),t.aborted){let n=new s;a.errorRequest(e,t,n),a.destroy(E,n);return}t.onHeaders(Number(r),z(i),E.resume.bind(E),``)===!1&&E.pause(),E.on(`data`,e=>{t.onData(e)===!1&&E.pause()})}),E.once(`end`,()=>{(E.state?.state==null||E.state.state<6)&&t.onComplete([]),n[O]===0&&n.unref(),j(new l(`HTTP/2: stream half-closed (remote)`)),e[h][e[v]++]=null,e[g]=e[v],e[T]()}),E.once(`close`,()=>{--n[O],n[O]===0&&n.unref()}),E.once(`error`,function(e){j(e)}),E.once(`frameError`,(e,t)=>{j(new l(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function ne(){!S||B===0?oe(j,E,null,e,t,e[b],B,ee):a.isBuffer(S)?oe(j,E,S,e,t,e[b],B,ee):a.isBlobLike(S)?typeof S.stream==`function`?U(j,E,S.stream(),e,t,e[b],B,ee):se(j,E,S,e,t,e[b],B,ee):a.isStream(S)?H(j,e[b],ee,E,S,e,t,B):a.isIterable(S)?U(j,E,S,e,t,e[b],B,ee):r(!1)}}function oe(e,t,n,i,o,s,c,l){try{n!=null&&a.isBuffer(n)&&(r(c===n.byteLength,`buffer body must have content length`),t.cork(),t.write(n),t.uncork(),t.end(),o.onBodySent(n)),l||(s[d]=!0),o.onRequestSent(),i[T]()}catch(t){e(t)}}function H(e,t,n,o,s,c,l,u){r(u!==0||c[p]===0,`stream body cannot be pipelined`);let f=i(s,o,r=>{r?(a.destroy(f,r),e(r)):(a.removeAllListeners(f),l.onRequestSent(),n||(t[d]=!0),c[T]())});a.addListener(f,`data`,m);function m(e){l.onBodySent(e)}}async function se(e,t,n,i,a,s,c,l){r(c===n.size,`blob body must have content length`);try{if(c!=null&&c!==n.size)throw new o;let e=Buffer.from(await n.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),a.onBodySent(e),a.onRequestSent(),l||(s[d]=!0),i[T]()}catch(t){e(t)}}async function U(e,t,n,i,a,o,s,c){r(s!==0||i[p]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let f=()=>new Promise((e,t)=>{r(l===null),o[y]?t(o[y]):l=e});t.on(`close`,u).on(`drain`,u);try{for await(let e of n){if(o[y])throw o[y];let n=t.write(e);a.onBodySent(e),n||await f()}t.end(),a.onRequestSent(),c||(o[d]=!0),i[T]()}catch(t){e(t)}finally{t.off(`close`,u).off(`drain`,u)}}n.exports=ee})),Rt=a(((e,n)=>{let r=ht(),{kBodyUsed:i}=dt(),a=t(`node:assert`),{InvalidArgumentError:o}=ft(),s=t(`node:events`),c=[300,301,302,303,307,308],l=Symbol(`body`);var u=class{constructor(e){this[l]=e,this[i]=!1}async*[Symbol.asyncIterator](){a(!this[i],`disturbed`),this[i]=!0,yield*this[l]}},d=class{constructor(e,t,n,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new o(`maxRedirections must be a positive number`);r.validateHandler(c,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,r.isStream(this.opts.body)?(r.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){a(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[i]=!1,s.prototype.on.call(this.opts.body,`data`,function(){this[i]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&r.isIterable(this.opts.body))&&(this.opts.body=new u(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){if(this.location=this.history.length>=this.maxRedirections||r.isDisturbed(this.opts.body)?null:f(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,n,i);let{origin:a,pathname:o,search:s}=r.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=m(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function f(e,t){if(c.indexOf(e)===-1)return null;for(let e=0;e{let n=Rt();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),Bt=a(((e,n)=>{let r=t(`node:assert`),i=t(`node:net`),a=t(`node:http`),o=ht(),{channels:s}=gt(),c=_t(),l=yt(),{InvalidArgumentError:u,InformationalError:d,ClientDestroyedError:f}=ft(),p=xt(),{kUrl:m,kServerName:h,kClient:g,kBusy:v,kConnect:y,kResuming:b,kRunning:x,kPending:S,kSize:C,kQueue:w,kConnected:T,kConnecting:E,kNeedDrain:D,kKeepAliveDefaultTimeout:O,kHostHeader:k,kPendingIdx:A,kRunningIdx:j,kError:M,kPipelining:N,kKeepAliveTimeoutValue:P,kMaxHeadersSize:F,kKeepAliveMaxTimeout:I,kKeepAliveTimeoutThreshold:L,kHeadersTimeout:R,kBodyTimeout:z,kStrictContentLength:ee,kConnector:B,kMaxRedirections:te,kMaxRequests:ne,kCounter:V,kClose:re,kDestroy:ie,kDispatch:ae,kInterceptors:oe,kLocalAddress:H,kMaxResponseSize:se,kOnError:U,kHTTPContext:ce,kMaxConcurrentStreams:le,kResume:ue}=dt(),W=It(),de=Lt(),fe=!1,pe=Symbol(`kClosedResolve`),me=()=>{};function he(e){return e[N]??e[ce]?.defaultPipelining??1}var ge=class extends l{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:r,socketTimeout:s,requestTimeout:c,connectTimeout:l,bodyTimeout:d,idleTimeout:f,keepAlive:g,keepAliveTimeout:v,maxKeepAliveTimeout:y,keepAliveMaxTimeout:x,keepAliveTimeoutThreshold:S,socketPath:C,pipelining:T,tls:E,strictContentLength:M,maxCachedSessions:V,maxRedirections:re,connect:ie,maxRequestsPerClient:ae,localAddress:W,maxResponseSize:de,autoSelectFamily:me,autoSelectFamilyAttemptTimeout:he,maxConcurrentStreams:ge,allowH2:ye}={}){if(super(),g!==void 0)throw new u(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new u(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new u(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(f!==void 0)throw new u(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new u(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new u(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new u(`invalid socketPath`);if(l!=null&&(!Number.isFinite(l)||l<0))throw new u(`invalid connectTimeout`);if(v!=null&&(!Number.isFinite(v)||v<=0))throw new u(`invalid keepAliveTimeout`);if(x!=null&&(!Number.isFinite(x)||x<=0))throw new u(`invalid keepAliveMaxTimeout`);if(S!=null&&!Number.isFinite(S))throw new u(`invalid keepAliveTimeoutThreshold`);if(r!=null&&(!Number.isInteger(r)||r<0))throw new u(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new u(`bodyTimeout must be a positive integer or zero`);if(ie!=null&&typeof ie!=`function`&&typeof ie!=`object`)throw new u(`connect must be a function or an object`);if(re!=null&&(!Number.isInteger(re)||re<0))throw new u(`maxRedirections must be a positive number`);if(ae!=null&&(!Number.isInteger(ae)||ae<0))throw new u(`maxRequestsPerClient must be a positive number`);if(W!=null&&(typeof W!=`string`||i.isIP(W)===0))throw new u(`localAddress must be valid string IP address`);if(de!=null&&(!Number.isInteger(de)||de<-1))throw new u(`maxResponseSize must be a positive number`);if(he!=null&&(!Number.isInteger(he)||he<-1))throw new u(`autoSelectFamilyAttemptTimeout must be a positive number`);if(ye!=null&&typeof ye!=`boolean`)throw new u(`allowH2 must be a valid boolean value`);if(ge!=null&&(typeof ge!=`number`||ge<1))throw new u(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof ie!=`function`&&(ie=p({...E,maxCachedSessions:V,allowH2:ye,socketPath:C,timeout:l,...me?{autoSelectFamily:me,autoSelectFamilyAttemptTimeout:he}:void 0,...ie})),t?.Client&&Array.isArray(t.Client)?(this[oe]=t.Client,fe||(fe=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[oe]=[_e({maxRedirections:re})],this[m]=o.parseOrigin(e),this[B]=ie,this[N]=T??1,this[F]=n||a.maxHeaderSize,this[O]=v??4e3,this[I]=x??6e5,this[L]=S??2e3,this[P]=this[O],this[h]=null,this[H]=W??null,this[b]=0,this[D]=0,this[k]=`host: ${this[m].hostname}${this[m].port?`:${this[m].port}`:``}\r\n`,this[z]=d??3e5,this[R]=r??3e5,this[ee]=M??!0,this[te]=re,this[ne]=ae,this[pe]=null,this[se]=de>-1?de:-1,this[le]=ge??100,this[ce]=null,this[w]=[],this[j]=0,this[A]=0,this[ue]=e=>xe(this,e),this[U]=e=>ve(this,e)}get pipelining(){return this[N]}set pipelining(e){this[N]=e,this[ue](!0)}get[S](){return this[w].length-this[A]}get[x](){return this[A]-this[j]}get[C](){return this[w].length-this[j]}get[T](){return!!this[ce]&&!this[E]&&!this[ce].destroyed}get[v](){return!!(this[ce]?.busy(null)||this[C]>=(he(this)||1)||this[S]>0)}[y](e){ye(this),this.once(`connect`,e)}[ae](e,t){let n=new c(e.origin||this[m].origin,e,t);return this[w].push(n),this[b]||(o.bodyLength(n.body)==null&&o.isIterable(n.body)?(this[b]=1,queueMicrotask(()=>xe(this))):this[ue](!0)),this[b]&&this[D]!==2&&this[v]&&(this[D]=2),this[D]<2}async[re](){return new Promise(e=>{this[C]?this[pe]=e:e(null)})}async[ie](e){return new Promise(t=>{let n=this[w].splice(this[A]);for(let t=0;t{this[pe]&&(this[pe](),this[pe]=null),t(null)};this[ce]?(this[ce].destroy(e,r),this[ce]=null):queueMicrotask(r),this[ue]()})}};let _e=zt();function ve(e,t){if(e[x]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){r(e[A]===e[j]);let n=e[w].splice(e[j]);for(let r=0;r{e[B]({host:t,hostname:n,protocol:a,port:c,servername:e[h],localAddress:e[H]},(e,t)=>{e?i(e):r(t)})});if(e.destroyed){o.destroy(i.on(`error`,me),new f);return}r(i);try{e[ce]=i.alpnProtocol===`h2`?await de(e,i):await W(e,i)}catch(e){throw i.destroy().on(`error`,me),e}e[E]=!1,i[V]=0,i[ne]=e[ne],i[g]=e,i[M]=null,s.connected.hasSubscribers&&s.connected.publish({connectParams:{host:t,hostname:n,protocol:a,port:c,version:e[ce]?.version,servername:e[h],localAddress:e[H]},connector:e[B],socket:i}),e.emit(`connect`,e[m],[e])}catch(i){if(e.destroyed)return;if(e[E]=!1,s.connectError.hasSubscribers&&s.connectError.publish({connectParams:{host:t,hostname:n,protocol:a,port:c,version:e[ce]?.version,servername:e[h],localAddress:e[H]},connector:e[B],error:i}),i.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(r(e[x]===0);e[S]>0&&e[w][e[A]].servername===e[h];){let t=e[w][e[A]++];o.errorRequest(e,t,i)}else ve(e,i);e.emit(`connectionError`,e[m],[e],i)}e[ue]()}function be(e){e[D]=0,e.emit(`drain`,e[m],[e])}function xe(e,t){e[b]!==2&&(e[b]=2,Se(e,t),e[b]=0,e[j]>256&&(e[w].splice(0,e[j]),e[A]-=e[j],e[j]=0))}function Se(e,t){for(;;){if(e.destroyed){r(e[S]===0);return}if(e[pe]&&!e[C]){e[pe](),e[pe]=null;return}if(e[ce]&&e[ce].resume(),e[v])e[D]=2;else if(e[D]===2){t?(e[D]=1,queueMicrotask(()=>be(e))):be(e);continue}if(e[S]===0||e[x]>=(he(e)||1))return;let n=e[w][e[A]];if(e[m].protocol===`https:`&&e[h]!==n.servername){if(e[x]>0)return;e[h]=n.servername,e[ce]?.destroy(new d(`servername changed`),()=>{e[ce]=null,xe(e)})}if(e[E])return;if(!e[ce]){ye(e);return}if(e[ce].destroyed||e[ce].busy(n))return;!n.aborted&&e[ce].write(n)?e[A]++:e[w].splice(e[A],1)}}n.exports=ge})),Vt=a(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),Ht=a(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=dt(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),Ut=a(((e,t)=>{let n=yt(),r=Vt(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=dt(),h=Ht(),g=Symbol(`clients`),v=Symbol(`needDrain`),y=Symbol(`queue`),b=Symbol(`closed resolve`),x=Symbol(`onDrain`),S=Symbol(`onConnect`),C=Symbol(`onDisconnect`),w=Symbol(`onConnectionError`),T=Symbol(`get dispatcher`),E=Symbol(`add client`),D=Symbol(`remove client`),O=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(){super(),this[y]=new r,this[g]=[],this[c]=0;let e=this;this[x]=function(t,n){let r=e[y],i=!1;for(;!i;){let t=r.shift();if(!t)break;e[c]--,i=!this.dispatch(t.opts,t.handler)}this[v]=i,!this[v]&&e[v]&&(e[v]=!1,e.emit(`drain`,t,[e,...n])),e[b]&&r.isEmpty()&&Promise.all(e[g].map(e=>e.close())).then(e[b])},this[S]=(t,n)=>{e.emit(`connect`,t,[e,...n])},this[C]=(t,n,r)=>{e.emit(`disconnect`,t,[e,...n],r)},this[w]=(t,n,r)=>{e.emit(`connectionError`,t,[e,...n],r)},this[O]=new h(this)}get[l](){return this[v]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[v]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[O]}async[f](){this[y].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[b]=e})}async[p](e){for(;;){let t=this[y].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[T]();return n?n.dispatch(e,t)||(n[v]=!0,this[v]=!this[T]()):(this[v]=!0,this[y].push({opts:e,handler:t}),this[c]++),!this[v]}[E](e){return e.on(`drain`,this[x]).on(`connect`,this[S]).on(`disconnect`,this[C]).on(`connectionError`,this[w]),this[g].push(e),this[v]&&queueMicrotask(()=>{this[v]&&this[x](e[d],[this,e])}),this}[D](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[v]=this[g].some(e=>!e[v]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:v,kAddClient:E,kRemoveClient:D,kGetDispatcher:T}})),Wt=a(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=Ut(),s=Bt(),{InvalidArgumentError:c}=ft(),l=ht(),{kUrl:u,kInterceptors:d}=dt(),f=xt(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:v,autoSelectFamily:y,autoSelectFamilyAttemptTimeout:b,allowH2:x,...S}={}){if(super(),t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:x,socketPath:v,timeout:a,...y?{autoSelectFamily:y,autoSelectFamilyAttemptTimeout:b}:void 0,...i})),this[d]=S.interceptors?.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(S),connect:i,allowH2:x},this[p].interceptors=S.interceptors?{...S.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=ft(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=Ut(),u=Wt(),{kUrl:d,kInterceptors:f}=dt(),{parseOrigin:p}=ht(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),v=Symbol(`kCurrentWeight`),y=Symbol(`kIndex`),b=Symbol(`kWeight`),x=Symbol(`kMaxWeightPerServer`),S=Symbol(`kErrorPenalty`);function C(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function w(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=w,...n}={}){if(super(),this[h]=n,this[y]=-1,this[v]=0,this[x]=this[h].maxWeightPerServer||100,this[S]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[b]=Math.min(this[x],n[b]+this[S])}),n.on(`connectionError`,()=>{n[b]=Math.max(1,n[b]-this[S]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[b]=Math.max(1,n[b]-this[S]),this._updateBalancedPoolStats())});for(let e of this[a])e[b]=this[x];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][b]&&!e[o]&&(t=this[y]),this[y]===0&&(this[v]=this[v]-this[g],this[v]<=0&&(this[v]=this[x])),e[b]>=this[v]&&!e[o])return e}return this[v]=this[a][t][b],this[y]=t,this[a][t]}}})),Kt=a(((e,t)=>{let{InvalidArgumentError:n}=ft(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=dt(),l=yt(),u=Wt(),d=Bt(),f=ht(),p=zt(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),v=Symbol(`maxRedirections`),y=Symbol(`onDrain`),b=Symbol(`factory`),x=Symbol(`options`);function S(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=S,maxRedirections:t=0,connect:i,...a}={}){if(super(),typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[x]={...f.deepClone(a),connect:i},this[x].interceptors=a.interceptors?{...a.interceptors}:void 0,this[v]=t,this[b]=e,this[r]=new Map,this[y]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[b](e.origin,this[x]).on(`drain`,this[y]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),qt=a(((e,n)=>{let{kProxy:r,kClose:i,kDestroy:a,kDispatch:o,kInterceptors:s}=dt(),{URL:c}=t(`node:url`),l=Kt(),u=Wt(),d=yt(),{InvalidArgumentError:f,RequestAbortedError:p,SecureProxyConnectionError:m}=ft(),h=xt(),g=Bt(),v=Symbol(`proxy agent`),y=Symbol(`proxy client`),b=Symbol(`proxy headers`),x=Symbol(`request tls settings`),S=Symbol(`proxy tls settings`),C=Symbol(`connect endpoint function`),w=Symbol(`tunnel proxy`);function T(e){return e===`https:`?443:80}function E(e,t){return new u(e,t)}let D=()=>{};function O(e,t){return t.connections===1?new g(e,t):new u(e,t)}var k=class extends d{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new f(`Proxy URL is mandatory`);this[b]=t,r?this.#e=r(e,{connect:n}):this.#e=new g(e,{connect:n})}[o](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new f(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:a={}}=e;if(e.path=r+i,!(`host`in a)&&!(`Host`in a)){let{host:e}=new c(r);a.host=e}return e.headers={...this[b],...a},this.#e[o](e,t)}async[i](){return this.#e.close()}async[a](e){return this.#e.destroy(e)}},A=class extends d{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof c)&&!e.uri)throw new f(`Proxy uri is mandatory`);let{clientFactory:t=E}=e;if(typeof t!=`function`)throw new f(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:n=!0}=e,i=this.#e(e),{href:a,origin:o,port:u,protocol:d,username:g,password:A,hostname:j}=i;if(this[r]={uri:a,protocol:d},this[s]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[x]=e.requestTls,this[S]=e.proxyTls,this[b]=e.headers||{},this[w]=n,e.auth&&e.token)throw new f(`opts.auth cannot be used in combination with opts.token`);e.auth?this[b][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[b][`proxy-authorization`]=e.token:g&&A&&(this[b][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(A)}`).toString(`base64`)}`);let M=h({...e.proxyTls});this[C]=h({...e.requestTls});let N=e.factory||O,P=(e,t)=>{let{protocol:n}=new c(e);return!this[w]&&n===`http:`&&this[r].protocol===`http:`?new k(this[r].uri,{headers:this[b],connect:M,factory:N}):N(e,t)};this[y]=t(i,{connect:M}),this[v]=new l({...e,factory:P,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${T(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[y].connect({origin:o,port:u,path:n,signal:e.signal,headers:{...this[b],host:e.host},servername:this[S]?.servername||j});if(i!==200&&(r.on(`error`,D).destroy(),t(new p(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[x]?this[x].servername:e.servername,this[C]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new m(e)):t(e)}}})}dispatch(e,t){let n=j(e.headers);if(M(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new c(e.origin);n.host=t}return this[v].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new c(e):e instanceof c?e:new c(e.uri)}async[i](){await this[v].close(),await this[y].close()}async[a](){await this[v].destroy(),await this[y].destroy()}};function j(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new f(`Proxy-Authorization should be sent in ProxyAgent constructor`)}n.exports=A})),Jt=a(((e,t)=>{let n=yt(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=dt(),d=qt(),f=Kt(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let r=t(`node:assert`),{kRetryHandlerDefaultRetry:i}=dt(),{RequestRetryError:a}=ft(),{isDisturbed:o,parseHeaders:s,parseRangeHeader:c,wrapRequestBody:l}=ht();function u(e){let t=Date.now();return new Date(e).getTime()-t}n.exports=class e{constructor(t,n){let{retryOptions:r,...a}=t,{retry:o,maxRetries:s,maxTimeout:c,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=r??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:l(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[i],retryAfter:m??!0,maxTimeout:c??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`ECONNRESET`,`ECONNREFUSED`,`ENOTFOUND`,`ENETDOWN`,`ENETUNREACH`,`EHOSTDOWN`,`EHOSTUNREACH`,`EPIPE`,`UND_ERR_SOCKET`]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:l,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:v}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(v>l){r(e);return}let y=o?.[`retry-after`];y&&=(y=Number(y),Number.isNaN(y)?u(y):y*1e3);let b=Math.min(y>0?y:d*p**(v-1),f);setTimeout(()=>r(null),b)}onHeaders(e,t,n,i){let o=s(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,n,i):(this.abort(new a(`Request failed`,e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new a(`server does not support the range header and the payload was partially consumed`,e,{headers:o,data:{count:this.retryCount}})),!1;let t=c(o[`content-range`]);if(!t)return this.abort(new a(`Content-Range mismatch`,e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new a(`ETag mismatch`,e,{headers:o,data:{count:this.retryCount}})),!1;let{start:i,size:s,end:l=s-1}=t;return r(this.start===i,`content-range mismatch`),r(this.end==null||this.end===l,`content-range mismatch`),this.resume=n,!0}if(this.end==null){if(e===206){let a=c(o[`content-range`]);if(a==null)return this.handler.onHeaders(e,t,n,i);let{start:s,size:l,end:u=l-1}=a;r(s!=null&&Number.isFinite(s),`content-range mismatch`),r(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=s,this.end=u}if(this.end==null){let e=o[`content-length`];this.end=e==null?null:Number(e)-1}return r(Number.isFinite(this.start)),r(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=n,this.etag=o.etag==null?null:o.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,n,i)}let l=new a(`Request failed`,e,{headers:o,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||o(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||o(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),Xt=a(((e,t)=>{let n=vt(),r=Yt();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),Zt=a(((e,n)=>{let r=t(`node:assert`),{Readable:i}=t(`node:stream`),{RequestAbortedError:a,NotSupportedError:o,InvalidArgumentError:s,AbortError:c}=ft(),l=ht(),{ReadableStreamFrom:u}=ht(),d=Symbol(`kConsume`),f=Symbol(`kReading`),p=Symbol(`kBody`),m=Symbol(`kAbort`),h=Symbol(`kContentType`),g=Symbol(`kContentLength`),v=()=>{};var y=class extends i{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[m]=t,this[d]=null,this[p]=null,this[h]=n,this[g]=r,this[f]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new a),e&&this[m](),super.destroy(e)}_destroy(e,t){this[f]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[f]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[f]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[d]&&e!==null?(D(this[d],e),this[f]?super.push(e):!0):super.push(e)}async text(){return S(this,`text`)}async json(){return S(this,`json`)}async blob(){return S(this,`blob`)}async bytes(){return S(this,`bytes`)}async arrayBuffer(){return S(this,`arrayBuffer`)}async formData(){throw new o}get bodyUsed(){return l.isDisturbed(this)}get body(){return this[p]||(this[p]=u(this),this[d]&&(this[p].getReader(),r(this[p].locked))),this[p]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new s(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[g]>t&&this.destroy(new c);let i=()=>{this.destroy(n.reason??new c)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new c):e(null)}).on(`error`,v).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function b(e){return e[p]&&e[p].locked===!0||e[d]}function x(e){return l.isDisturbed(e)||b(e)}async function S(e,t){return r(!e[d]),new Promise((n,r)=>{if(x(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[d]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){O(this[d],e)}).on(`close`,function(){this[d].body!==null&&O(this[d],new a)}),C(e[d])})})}function C(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function T(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let r=t(`node:assert`),{ResponseStatusCodeError:i}=ft(),{chunksDecode:a}=Zt();async function o({callback:e,body:t,contentType:n,statusCode:o,statusMessage:l,headers:u}){r(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${o}${l?`: ${l}`:``}`;if(o===204||!n||!f){queueMicrotask(()=>e(new i(p,o,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{s(n)?h=JSON.parse(a(d,f)):c(n)&&(h=a(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new i(p,o,u,h)))}let s=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,c=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;n.exports={getResolveErrorBodyCallback:o,isContentTypeApplicationJson:s,isContentTypeText:c}})),$t=a(((e,n)=>{let r=t(`node:assert`),{Readable:i}=Zt(),{InvalidArgumentError:a,RequestAbortedError:o}=ft(),s=ht(),{getResolveErrorBodyCallback:c}=Qt(),{AsyncResource:l}=t(`node:async_hooks`);var u=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:n,method:r,opaque:i,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new a(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new a(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=i||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new o:this.removeAbortListener=s.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new o,this.res?s.destroy(this.res.on(`error`,s.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,r){let{callback:a,opaque:o,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?s.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],v=new i({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&v.on(`close`,this.removeAbortListener),this.callback=null,this.res=v,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(c,null,{callback:a,body:v,contentType:h,statusCode:e,statusMessage:r,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:o,body:v,context:u}))}onData(e){return this.res.push(e)}onComplete(e){s.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{s.destroy(t,e)})),r&&(this.body=null,s.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new u(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d,n.exports.RequestHandler=u})),en=a(((e,t)=>{let{addAbortListener:n}=ht(),{RequestAbortedError:r}=ft(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),tn=a(((e,n)=>{let r=t(`node:assert`),{finished:i,PassThrough:a}=t(`node:stream`),{InvalidArgumentError:o,InvalidReturnValueError:s}=ft(),c=ht(),{getResolveErrorBodyCallback:l}=Qt(),{AsyncResource:u}=t(`node:async_hooks`),{addSignal:d,removeSignal:f}=en();var p=class extends u{constructor(e,t,n){if(!e||typeof e!=`object`)throw new o(`invalid opts`);let{signal:r,method:i,opaque:a,body:s,onInfo:l,responseHeaders:u,throwOnError:f}=e;try{if(typeof n!=`function`)throw new o(`invalid callback`);if(typeof t!=`function`)throw new o(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new o(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new o(`invalid method`);if(l&&typeof l!=`function`)throw new o(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw c.isStream(s)&&c.destroy(s.on(`error`,c.nop),e),e}this.responseHeaders=u||null,this.opaque=a||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=l||null,this.throwOnError=f||!1,c.isStream(s)&&s.on(`error`,e=>{this.onError(e)}),d(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,r){let{factory:o,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?c.parseHeaders(t):m)[`content-type`];h=new a,this.callback=null,this.runInAsyncScope(l,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:r,headers:m})}else{if(o===null)return;if(h=this.runInAsyncScope(o,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new s(`expected Writable`);i(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&c.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;f(this),t&&(this.trailers=c.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;f(this),this.factory=null,t?(this.res=null,c.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,c.destroy(i,e))}};function m(e,t,n){if(n===void 0)return new Promise((n,r)=>{m.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new p(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}n.exports=m})),nn=a(((e,n)=>{let{Readable:r,Duplex:i,PassThrough:a}=t(`node:stream`),{InvalidArgumentError:o,InvalidReturnValueError:s,RequestAbortedError:c}=ft(),l=ht(),{AsyncResource:u}=t(`node:async_hooks`),{addSignal:d,removeSignal:f}=en(),p=t(`node:assert`),m=Symbol(`resume`);var h=class extends r{constructor(){super({autoDestroy:!0}),this[m]=null}_read(){let{[m]:e}=this;e&&(this[m]=null,e())}_destroy(e,t){this._read(),t(e)}},g=class extends r{constructor(e){super({autoDestroy:!0}),this[m]=e}_read(){this[m]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new c),t(e)}},v=class extends u{constructor(e,t){if(!e||typeof e!=`object`)throw new o(`invalid opts`);if(typeof t!=`function`)throw new o(`invalid handler`);let{signal:n,method:r,opaque:a,onInfo:s,responseHeaders:u}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new o(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new o(`invalid method`);if(s&&typeof s!=`function`)throw new o(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=a||null,this.responseHeaders=u||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=s||null,this.req=new h().on(`error`,l.nop),this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[m]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new c),o&&e&&o(),l.destroy(n,e),l.destroy(r,e),l.destroy(i,e),f(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,d(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}p(!r,`pipeline cannot be retried`),p(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?l.parseRawHeaders(t):l.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new g(n);let o;try{this.handler=null;let n=this.responseHeaders===`raw`?l.parseRawHeaders(t):l.parseHeaders(t);o=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,l.nop),e}if(!o||typeof o.on!=`function`)throw new s(`expected Readable`);o.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;l.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||l.destroy(e,new c)}),this.body=o}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,l.destroy(t,e)}};function y(e,t){try{let n=new v(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new a().destroy(e)}}n.exports=y})),rn=a(((e,n)=>{let{InvalidArgumentError:r,SocketError:i}=ft(),{AsyncResource:a}=t(`node:async_hooks`),o=ht(),{addSignal:s,removeSignal:c}=en(),l=t(`node:assert`);var u=class extends a{constructor(e,t){if(!e||typeof e!=`object`)throw new r(`invalid opts`);if(typeof t!=`function`)throw new r(`invalid callback`);let{signal:n,opaque:i,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new r(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}l(this.callback),this.abort=e,this.context=null}onHeaders(){throw new i(`bad upgrade`,null)}onUpgrade(e,t,n){l(e===101);let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new u(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d})),an=a(((e,n)=>{let r=t(`node:assert`),{AsyncResource:i}=t(`node:async_hooks`),{InvalidArgumentError:a,SocketError:o}=ft(),s=ht(),{addSignal:c,removeSignal:l}=en();var u=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid callback`);let{signal:n,opaque:r,responseHeaders:i}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=i||null,this.callback=t,this.abort=null,c(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}r(this.callback),this.abort=e,this.context=t}onHeaders(){throw new o(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;l(this),this.callback=null;let o=t;o!=null&&(o=this.responseHeaders===`raw`?s.parseRawHeaders(t):s.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:o,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;l(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function d(e,t){if(t===void 0)return new Promise((t,n)=>{d.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new u(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}n.exports=d})),on=a(((e,t)=>{t.exports.request=$t(),t.exports.stream=tn(),t.exports.pipeline=nn(),t.exports.upgrade=rn(),t.exports.connect=an()})),sn=a(((e,t)=>{let{UndiciError:n}=ft(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`MockNotMatchedError`,this.message=t||`The request does not match any registered mock dispatches`,this.code=`UND_MOCK_ERR_MOCK_NOT_MATCHED`}static[Symbol.hasInstance](e){return e&&e[r]===!0}[r]=!0}}})),cn=a(((e,t)=>{t.exports={kAgent:Symbol(`agent`),kOptions:Symbol(`options`),kFactory:Symbol(`factory`),kDispatches:Symbol(`dispatches`),kDispatchKey:Symbol(`dispatch key`),kDefaultHeaders:Symbol(`default headers`),kDefaultTrailers:Symbol(`default trailers`),kContentLength:Symbol(`content length`),kMockAgent:Symbol(`mock agent`),kMockAgentSet:Symbol(`mock agent set`),kMockAgentGet:Symbol(`mock agent get`),kMockDispatch:Symbol(`mock dispatch`),kClose:Symbol(`close`),kOriginalClose:Symbol(`original agent close`),kOrigin:Symbol(`origin`),kIsMockActive:Symbol(`is mock active`),kNetConnect:Symbol(`net connect`),kGetNetConnect:Symbol(`get net connect`),kConnected:Symbol(`connected`)}})),ln=a(((e,n)=>{let{MockNotMatchedError:r}=sn(),{kDispatches:i,kMockAgent:a,kOriginalDispatch:o,kOrigin:s,kGetNetConnect:c}=cn(),{buildURL:l}=ht(),{STATUS_CODES:u}=t(`node:http`),{types:{isPromise:d}}=t(`node:util`);function f(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function p(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function m(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>f(v(e),i));if(a.length===0)throw new r(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>f(e,t.method)),a.length===0)throw new r(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:f(e,t.body)),a.length===0)throw new r(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>g(e,t.headers)),a.length===0)throw new r(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function S(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function C(e,t){let n=e.findIndex(e=>e.consumed?y(e,t):!1);n!==-1&&e.splice(n,1)}function w(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function T(e){let t=Object.keys(e),n=[];for(let r=0;r=m,r.pending=p0?setTimeout(()=>{g(this[i])},u):g(this[i]);function g(r,i=o){let l=Array.isArray(e.headers)?h(e.headers):e.headers,u=typeof i==`function`?i({...e,headers:l}):i;if(d(u)){u.then(e=>g(r,e));return}let f=b(u),p=T(s),m=T(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,v,E(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(m),C(r,n)}function v(){}return!0}function k(){let e=this[a],t=this[s],n=this[o];return function(i,a){if(e.isMockActive)try{O.call(this,i,a)}catch(o){if(o instanceof r){let s=e[c]();if(s===!1)throw new r(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(A(s,t))n.call(this,i,a);else throw new r(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else n.call(this,i,a)}}function A(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>f(e,n.host)))}function j(e){if(e){let{agent:t,...n}=e;return n}}n.exports={getResponseData:b,getMockDispatch:x,addMockDispatch:S,deleteMockDispatch:C,buildKey:w,generateKeyValues:T,matchValue:f,getResponse:D,getStatusText:E,mockDispatch:O,buildMockDispatch:k,checkNetConnect:A,buildMockOptions:j,getHeaderByName:m,buildHeadersFromArray:h}})),un=a(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=ln(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=cn(),{InvalidArgumentError:d}=ft(),{buildURL:f}=ht();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),dn=a(((e,n)=>{let{promisify:r}=t(`node:util`),i=Bt(),{buildMockDispatch:a}=ln(),{kDispatches:o,kMockAgent:s,kClose:c,kOriginalClose:l,kOrigin:u,kOriginalDispatch:d,kConnected:f}=cn(),{MockInterceptor:p}=un(),m=dt(),{InvalidArgumentError:h}=ft();n.exports=class extends i{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new h(`Argument opts.agent must implement Agent`);this[s]=t.agent,this[u]=e,this[o]=[],this[f]=1,this[d]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=a.call(this),this.close=this[c]}get[m.kConnected](){return this[f]}intercept(e){return new p(e,this[o])}async[c](){await r(this[l])(),this[f]=0,this[s][m.kClients].delete(this[u])}}})),fn=a(((e,n)=>{let{promisify:r}=t(`node:util`),i=Wt(),{buildMockDispatch:a}=ln(),{kDispatches:o,kMockAgent:s,kClose:c,kOriginalClose:l,kOrigin:u,kOriginalDispatch:d,kConnected:f}=cn(),{MockInterceptor:p}=un(),m=dt(),{InvalidArgumentError:h}=ft();n.exports=class extends i{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new h(`Argument opts.agent must implement Agent`);this[s]=t.agent,this[u]=e,this[o]=[],this[f]=1,this[d]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=a.call(this),this.close=this[c]}get[m.kConnected](){return this[f]}intercept(e){return new p(e,this[o])}async[c](){await r(this[l])(),this[f]=0,this[s][m.kClients].delete(this[u])}}})),pn=a(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),mn=a(((e,n)=>{let{Transform:r}=t(`node:stream`),{Console:i}=t(`node:console`),a=process.versions.icu?`✅`:`Y `,o=process.versions.icu?`❌`:`N `;n.exports=class{constructor({disableColors:e}={}){this.transform=new r({transform(e,t,n){n(null,e)}}),this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:i,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?a:o,Invocations:s,Remaining:r?1/0:i-s}));return this.logger.table(t),this.transform.read().toString()}}})),hn=a(((e,t)=>{let{kClients:n}=dt(),r=Kt(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=cn(),p=dn(),m=fn(),{matchValue:h,buildMockOptions:g}=ln(),{InvalidArgumentError:v,UndiciError:y}=ft(),b=vt(),x=pn(),S=mn();t.exports=class extends b{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new v(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new v(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new S}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new x(`interceptor`,`interceptors`).pluralize(t.length);throw new y(` +${n.count} ${n.noun} ${n.is} pending: + +${e.format(t)} +`.trim())}}})),gn=a(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=ft(),i=Kt();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),_n=a(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),vn=a(((e,t)=>{let n=Rt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),yn=a(((e,t)=>{let n=Yt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),bn=a(((e,t)=>{let n=ht(),{InvalidArgumentError:r,RequestAbortedError:i}=ft(),a=_n();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),xn=a(((e,n)=>{let{isIP:r}=t(`node:net`),{lookup:i}=t(`node:dns`),a=_n(),{InvalidArgumentError:o,InformationalError:s}=ft(),c=2**31-1;var l=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new s(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),o=this.pick(e,a,i.affinity),c;c=typeof o.port==`number`?`:${o.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){i(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===c?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===c?o.offset=0:o.offset++;let s=o.offset%o.ips.length;return r=o.ips[s]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(s,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new u(this,e,t)}},u=class extends a{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};n.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new o(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new o(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new o(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new o(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new o(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new o(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,n;n=t?e?.affinity??null:e?.affinity??4;let i=new l({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:n,maxItems:e?.maxItems??1/0});return e=>function(t,n){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return r(a.hostname)===0?(i.runLookup(a,t,(r,o)=>{if(r)return n.onError(r);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:n},t))}),!0):e(t,n)}}})),Sn=a(((e,n)=>{let{kConstruct:r}=dt(),{kEnumerableProperty:i}=ht(),{iteratorMixin:a,isValidHeaderName:o,isValidHeaderValue:s}=At(),{webidl:c}=kt(),l=t(`node:assert`),u=t(`node:util`),d=Symbol(`headers map`),f=Symbol(`headers map sorted`);function p(e){return e===10||e===13||e===9||e===32}function m(e){let t=0,n=e.length;for(;n>t&&p(e.charCodeAt(n-1));)--n;for(;n>t&&p(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function h(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function g(e,t,n){if(n=m(n),!o(t))throw c.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!s(n))throw c.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(x(e)===`immutable`)throw TypeError(`immutable`);return C(e).append(t,n,!1)}function v(e,t){return e[0]>1),t[s][0]<=c[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=c}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[d])t[e++]=[n,r],l(r!==null);return t.sort(v)}}},b=class e{#e;#t;constructor(e=void 0){c.util.markAsUncloneable(this),e!==r&&(this.#t=new y,this.#e=`none`,e!==void 0&&(e=c.converters.HeadersInit(e,`Headers contructor`,`init`),h(this,e)))}append(t,n){c.brandCheck(this,e),c.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=c.converters.ByteString(t,r,`name`),n=c.converters.ByteString(n,r,`value`),g(this,t,n)}delete(t){if(c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.delete`),t=c.converters.ByteString(t,`Headers.delete`,`name`),!o(t))throw c.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=c.converters.ByteString(t,n,`name`),!o(t))throw c.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){c.brandCheck(this,e),c.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=c.converters.ByteString(t,n,`name`),!o(t))throw c.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){c.brandCheck(this,e),c.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=c.converters.ByteString(t,r,`name`),n=c.converters.ByteString(n,r,`value`),n=m(n),!o(t))throw c.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!s(n))throw c.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){c.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[f](){if(this.#t[f])return this.#t[f];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[f]=t;for(let r=0;r>`](e,t,n,r.bind(e)):c.converters[`record`](e,t,n)}throw c.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},n.exports={fill:h,compareHeaderName:v,Headers:b,HeadersList:y,getHeadersGuard:x,setHeadersGuard:S,setHeadersList:w,getHeadersList:C}})),Cn=a(((e,n)=>{let{Headers:r,HeadersList:i,fill:a,getHeadersGuard:o,setHeadersGuard:s,setHeadersList:c}=Sn(),{extractBody:l,cloneBody:u,mixinBody:d,hasFinalizationRegistry:f,streamRegistry:p,bodyUnusable:m}=Ft(),h=ht(),g=t(`node:util`),{kEnumerableProperty:v}=h,{isValidReasonPhrase:y,isCancelled:b,isAborted:x,isBlobLike:S,serializeJavascriptValueToJSONString:C,isErrorLike:w,isomorphicEncode:T,environmentSettingsObject:E}=At(),{redirectStatusSet:D,nullBodyStatus:O}=Et(),{kState:k,kHeaders:A}=jt(),{webidl:j}=kt(),{FormData:M}=Nt(),{URLSerializer:N}=Ot(),{kConstruct:P}=dt(),F=t(`node:assert`),{types:I}=t(`node:util`),L=new TextEncoder(`utf-8`);var R=class e{static error(){return ae(B(),`immutable`)}static json(e,t={}){j.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=j.converters.ResponseInit(t));let n=l(L.encode(C(e))),r=ae(ee({}),`response`);return ie(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){j.argumentLengthCheck(arguments,1,`Response.redirect`),e=j.converters.USVString(e),t=j.converters[`unsigned short`](t);let n;try{n=new URL(e,E.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!D.has(t))throw RangeError(`Invalid status code ${t}`);let r=ae(ee({}),`immutable`);r[k].status=t;let i=T(N(n));return r[k].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(j.util.markAsUncloneable(this),e===P)return;e!==null&&(e=j.converters.BodyInit(e)),t=j.converters.ResponseInit(t),this[k]=ee({}),this[A]=new r(P),s(this[A],`response`),c(this[A],this[k].headersList);let n=null;if(e!=null){let[t,r]=l(e);n={body:t,type:r}}ie(this,t,n)}get type(){return j.brandCheck(this,e),this[k].type}get url(){j.brandCheck(this,e);let t=this[k].urlList,n=t[t.length-1]??null;return n===null?``:N(n,!0)}get redirected(){return j.brandCheck(this,e),this[k].urlList.length>1}get status(){return j.brandCheck(this,e),this[k].status}get ok(){return j.brandCheck(this,e),this[k].status>=200&&this[k].status<=299}get statusText(){return j.brandCheck(this,e),this[k].statusText}get headers(){return j.brandCheck(this,e),this[A]}get body(){return j.brandCheck(this,e),this[k].body?this[k].body.stream:null}get bodyUsed(){return j.brandCheck(this,e),!!this[k].body&&h.isDisturbed(this[k].body.stream)}clone(){if(j.brandCheck(this,e),m(this))throw j.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=z(this[k]);return f&&this[k].body?.stream&&p.register(this,new WeakRef(this[k].body.stream)),ae(t,o(this[A]))}[g.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${g.formatWithOptions(t,n)}`}};d(R),Object.defineProperties(R.prototype,{type:v,url:v,status:v,ok:v,redirected:v,statusText:v,headers:v,clone:v,body:v,bodyUsed:v,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(R,{json:v,redirect:v,error:v});function z(e){if(e.internalResponse)return V(z(e.internalResponse),e.type);let t=ee({...e,body:null});return e.body!=null&&(t.body=u(t,e.body)),t}function ee(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new i(e?.headersList):new i,urlList:e?.urlList?[...e.urlList]:[]}}function B(e){return ee({type:`error`,status:0,error:w(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function te(e){return e.type===`error`&&e.status===0}function ne(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return F(!(n in t)),e[n]=r,!0}})}function V(e,t){if(t===`basic`)return ne(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return ne(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return ne(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return ne(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});F(!1)}function re(e,t=null){return F(b(e)),x(e)?B(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):B(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function ie(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!y(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[k].status=t.status),`statusText`in t&&t.statusText!=null&&(e[k].statusText=t.statusText),`headers`in t&&t.headers!=null&&a(e[A],t.headers),n){if(O.includes(e.status))throw j.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[k].body=n.body,n.type!=null&&!e[k].headersList.contains(`content-type`,!0)&&e[k].headersList.append(`content-type`,n.type,!0)}}function ae(e,t){let n=new R(P);return n[k]=e,n[A]=new r(P),c(n[A],e.headersList),s(n[A],t),f&&e.body?.stream&&p.register(n,new WeakRef(e.body.stream)),n}j.converters.ReadableStream=j.interfaceConverter(ReadableStream),j.converters.FormData=j.interfaceConverter(M),j.converters.URLSearchParams=j.interfaceConverter(URLSearchParams),j.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?j.converters.USVString(e,t,n):S(e)?j.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||I.isArrayBuffer(e)?j.converters.BufferSource(e,t,n):h.isFormDataLike(e)?j.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?j.converters.URLSearchParams(e,t,n):j.converters.DOMString(e,t,n)},j.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?j.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:j.converters.XMLHttpRequestBodyInit(e,t,n)},j.converters.ResponseInit=j.dictionaryConverter([{key:`status`,converter:j.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:j.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:j.converters.HeadersInit}]),n.exports={isNetworkError:te,makeNetworkError:B,makeResponse:ee,makeAppropriateNetworkError:re,filterResponse:V,Response:R,cloneResponse:z,fromInnerResponse:ae}})),wn=a(((e,t)=>{let{kConnected:n,kSize:r}=dt();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),Tn=a(((e,n)=>{let{extractBody:r,mixinBody:i,cloneBody:a,bodyUnusable:o}=Ft(),{Headers:s,fill:c,HeadersList:l,setHeadersGuard:u,getHeadersGuard:d,setHeadersList:f,getHeadersList:p}=Sn(),{FinalizationRegistry:m}=wn()(),h=ht(),g=t(`node:util`),{isValidHTTPToken:v,sameOrigin:y,environmentSettingsObject:b}=At(),{forbiddenMethodsSet:x,corsSafeListedMethodsSet:S,referrerPolicy:C,requestRedirect:w,requestMode:T,requestCredentials:E,requestCache:D,requestDuplex:O}=Et(),{kEnumerableProperty:k,normalizedMethodRecordsBase:A,normalizedMethodRecords:j}=h,{kHeaders:M,kSignal:N,kState:P,kDispatcher:F}=jt(),{webidl:I}=kt(),{URLSerializer:L}=Ot(),{kConstruct:R}=dt(),z=t(`node:assert`),{getMaxListeners:ee,setMaxListeners:B,getEventListeners:te,defaultMaxListeners:ne}=t(`node:events`),V=Symbol(`abortController`),re=new m(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),ie=new WeakMap;function ae(e){return t;function t(){let n=e.deref();if(n!==void 0){re.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=ie.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}ie.delete(n.signal)}}}}let oe=!1;var H=class e{constructor(t,n={}){if(I.util.markAsUncloneable(this),t===R)return;let i=`Request constructor`;I.argumentLengthCheck(arguments,1,i),t=I.converters.RequestInfo(t,i,`input`),n=I.converters.RequestInit(n,i,`init`);let a=null,d=null,m=b.settingsObject.baseUrl,g=null;if(typeof t==`string`){this[F]=n.dispatcher;let e;try{e=new URL(t,m)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);a=se({urlList:[e]}),d=`cors`}else this[F]=n.dispatcher||t[F],z(t instanceof e),a=t[P],g=t[N];let C=b.settingsObject.origin,w=`client`;if(a.window?.constructor?.name===`EnvironmentSettingsObject`&&y(a.window,C)&&(w=a.window),n.window!=null)throw TypeError(`'window' option '${w}' must be null`);`window`in n&&(w=`no-window`),a=se({method:a.method,headersList:a.headersList,unsafeRequest:a.unsafeRequest,client:b.settingsObject,window:w,priority:a.priority,origin:a.origin,referrer:a.referrer,referrerPolicy:a.referrerPolicy,mode:a.mode,credentials:a.credentials,cache:a.cache,redirect:a.redirect,integrity:a.integrity,keepalive:a.keepalive,reloadNavigation:a.reloadNavigation,historyNavigation:a.historyNavigation,urlList:[...a.urlList]});let T=Object.keys(n).length!==0;if(T&&(a.mode===`navigate`&&(a.mode=`same-origin`),a.reloadNavigation=!1,a.historyNavigation=!1,a.origin=`client`,a.referrer=`client`,a.referrerPolicy=``,a.url=a.urlList[a.urlList.length-1],a.urlList=[a.url]),n.referrer!==void 0){let e=n.referrer;if(e===``)a.referrer=`no-referrer`;else{let t;try{t=new URL(e,m)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||C&&!y(t,b.settingsObject.baseUrl)?a.referrer=`client`:a.referrer=t}}n.referrerPolicy!==void 0&&(a.referrerPolicy=n.referrerPolicy);let E;if(E=n.mode===void 0?d:n.mode,E===`navigate`)throw I.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(E!=null&&(a.mode=E),n.credentials!==void 0&&(a.credentials=n.credentials),n.cache!==void 0&&(a.cache=n.cache),a.cache===`only-if-cached`&&a.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(n.redirect!==void 0&&(a.redirect=n.redirect),n.integrity!=null&&(a.integrity=String(n.integrity)),n.keepalive!==void 0&&(a.keepalive=!!n.keepalive),n.method!==void 0){let e=n.method,t=j[e];if(t!==void 0)a.method=t;else{if(!v(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(x.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=A[t]??e,a.method=e}!oe&&a.method===`patch`&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:`UNDICI-FETCH-patch`}),oe=!0)}n.signal!==void 0&&(g=n.signal),this[P]=a;let D=new AbortController;if(this[N]=D.signal,g!=null){if(!g||typeof g.aborted!=`boolean`||typeof g.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(g.aborted)D.abort(g.reason);else{this[V]=D;let e=ae(new WeakRef(D));try{(typeof ee==`function`&&ee(g)===ne||te(g,`abort`).length>=ne)&&B(1500,g)}catch{}h.addAbortListener(g,e),re.register(D,{signal:g,abort:e},e)}}if(this[M]=new s(R),f(this[M],a.headersList),u(this[M],`request`),E===`no-cors`){if(!S.has(a.method))throw TypeError(`'${a.method} is unsupported in no-cors mode.`);u(this[M],`request-no-cors`)}if(T){let e=p(this[M]),t=n.headers===void 0?new l(e):n.headers;if(e.clear(),t instanceof l){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else c(this[M],t)}let O=t instanceof e?t[P].body:null;if((n.body!=null||O!=null)&&(a.method===`GET`||a.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let k=null;if(n.body!=null){let[e,t]=r(n.body,a.keepalive);k=e,t&&!p(this[M]).contains(`content-type`,!0)&&this[M].append(`content-type`,t)}let L=k??O;if(L!=null&&L.source==null){if(k!=null&&n.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(a.mode!==`same-origin`&&a.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);a.useCORSPreflightFlag=!0}let ie=L;if(k==null&&O!=null){if(o(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;O.stream.pipeThrough(e),ie={source:O.source,length:O.length,stream:e.readable}}this[P].body=ie}get method(){return I.brandCheck(this,e),this[P].method}get url(){return I.brandCheck(this,e),L(this[P].url)}get headers(){return I.brandCheck(this,e),this[M]}get destination(){return I.brandCheck(this,e),this[P].destination}get referrer(){return I.brandCheck(this,e),this[P].referrer===`no-referrer`?``:this[P].referrer===`client`?`about:client`:this[P].referrer.toString()}get referrerPolicy(){return I.brandCheck(this,e),this[P].referrerPolicy}get mode(){return I.brandCheck(this,e),this[P].mode}get credentials(){return this[P].credentials}get cache(){return I.brandCheck(this,e),this[P].cache}get redirect(){return I.brandCheck(this,e),this[P].redirect}get integrity(){return I.brandCheck(this,e),this[P].integrity}get keepalive(){return I.brandCheck(this,e),this[P].keepalive}get isReloadNavigation(){return I.brandCheck(this,e),this[P].reloadNavigation}get isHistoryNavigation(){return I.brandCheck(this,e),this[P].historyNavigation}get signal(){return I.brandCheck(this,e),this[N]}get body(){return I.brandCheck(this,e),this[P].body?this[P].body.stream:null}get bodyUsed(){return I.brandCheck(this,e),!!this[P].body&&h.isDisturbed(this[P].body.stream)}get duplex(){return I.brandCheck(this,e),`half`}clone(){if(I.brandCheck(this,e),o(this))throw TypeError(`unusable`);let t=U(this[P]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=ie.get(this.signal);e===void 0&&(e=new Set,ie.set(this.signal,e));let t=new WeakRef(n);e.add(t),h.addAbortListener(n.signal,ae(t))}return ce(t,n.signal,d(this[M]))}[g.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${g.formatWithOptions(t,n)}`}};i(H);function se(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new l(e.headersList):new l}}function U(e){let t=se({...e,body:null});return e.body!=null&&(t.body=a(t,e.body)),t}function ce(e,t,n){let r=new H(R);return r[P]=e,r[N]=t,r[M]=new s(R),f(r[M],e.headersList),u(r[M],n),r}Object.defineProperties(H.prototype,{method:k,url:k,headers:k,redirect:k,clone:k,signal:k,duplex:k,destination:k,body:k,bodyUsed:k,isHistoryNavigation:k,isReloadNavigation:k,keepalive:k,integrity:k,cache:k,credentials:k,attribute:k,referrerPolicy:k,referrer:k,mode:k,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),I.converters.Request=I.interfaceConverter(H),I.converters.RequestInfo=function(e,t,n){return typeof e==`string`?I.converters.USVString(e,t,n):e instanceof H?I.converters.Request(e,t,n):I.converters.USVString(e,t,n)},I.converters.AbortSignal=I.interfaceConverter(AbortSignal),I.converters.RequestInit=I.dictionaryConverter([{key:`method`,converter:I.converters.ByteString},{key:`headers`,converter:I.converters.HeadersInit},{key:`body`,converter:I.nullableConverter(I.converters.BodyInit)},{key:`referrer`,converter:I.converters.USVString},{key:`referrerPolicy`,converter:I.converters.DOMString,allowedValues:C},{key:`mode`,converter:I.converters.DOMString,allowedValues:T},{key:`credentials`,converter:I.converters.DOMString,allowedValues:E},{key:`cache`,converter:I.converters.DOMString,allowedValues:D},{key:`redirect`,converter:I.converters.DOMString,allowedValues:w},{key:`integrity`,converter:I.converters.DOMString},{key:`keepalive`,converter:I.converters.boolean},{key:`signal`,converter:I.nullableConverter(e=>I.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:I.converters.any},{key:`duplex`,converter:I.converters.DOMString,allowedValues:O},{key:`dispatcher`,converter:I.converters.any}]),n.exports={Request:H,makeRequest:se,fromInnerRequest:ce,cloneRequest:U}})),En=a(((e,n)=>{let{makeNetworkError:r,makeAppropriateNetworkError:i,filterResponse:a,makeResponse:o,fromInnerResponse:s}=Cn(),{HeadersList:c}=Sn(),{Request:l,cloneRequest:u}=Tn(),d=t(`node:zlib`),{bytesMatch:f,makePolicyContainer:p,clonePolicyContainer:m,requestBadPort:h,TAOCheck:g,appendRequestOriginHeader:v,responseLocationURL:y,requestCurrentURL:b,setRequestReferrerPolicyOnRedirect:x,tryUpgradeRequestToAPotentiallyTrustworthyURL:S,createOpaqueTimingInfo:C,appendFetchMetadata:w,corsCheck:T,crossOriginResourcePolicyCheck:E,determineRequestsReferrer:D,coarsenedSharedCurrentTime:O,createDeferredPromise:k,isBlobLike:A,sameOrigin:j,isCancelled:M,isAborted:N,isErrorLike:P,fullyReadBody:F,readableStreamClose:I,isomorphicEncode:L,urlIsLocal:R,urlIsHttpHttpsScheme:z,urlHasHttpsScheme:ee,clampAndCoarsenConnectionTimingInfo:B,simpleRangeHeaderValue:te,buildContentRange:ne,createInflate:V,extractMimeType:re}=At(),{kState:ie,kDispatcher:ae}=jt(),oe=t(`node:assert`),{safelyExtractBody:H,extractBody:se}=Ft(),{redirectStatusSet:U,nullBodyStatus:ce,safeMethodsSet:le,requestBodyHeader:ue,subresourceSet:W}=Et(),de=t(`node:events`),{Readable:fe,pipeline:pe,finished:me}=t(`node:stream`),{addAbortListener:he,isErrored:ge,isReadable:_e,bufferToLowerCasedHeaderName:ve}=ht(),{dataURLProcessor:ye,serializeAMimeType:be,minimizeSupportedMimeType:xe}=Ot(),{getGlobalDispatcher:Se}=gn(),{webidl:Ce}=kt(),{STATUS_CODES:we}=t(`node:http`),Te=[`GET`,`HEAD`],Ee=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,De;var Oe=class extends de{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function ke(e){je(e,`fetch`)}function Ae(e,t=void 0){Ce.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=k(),r;try{r=new l(e,t)}catch(e){return n.reject(e),n.promise}let i=r[ie];if(r.signal.aborted)return Ne(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,o=!1,c=null;return he(r.signal,()=>{o=!0,oe(c!=null),c.abort(r.signal.reason);let e=a?.deref();Ne(n,i,e,r.signal.reason)}),c=Pe({request:i,processResponseEndOfBody:ke,processResponse:e=>{if(!o){if(e.aborted){Ne(n,i,a,c.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(s(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[ae]}),n.promise}function je(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;z(n)&&r!==null&&(e.timingAllowPassed||(r=C({startTime:r.startTime}),i=``),r.endTime=O(),e.timingInfo=r,Me(r,n.href,t,globalThis,i))}let Me=performance.markResourceTiming;function Ne(e,t,n,r){if(e&&e.reject(r),t.body!=null&&_e(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[ie];i.body!=null&&_e(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function Pe({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Se()}){oe(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=C({startTime:O(l)}),d={controller:new Oe(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return oe(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=p():e.policyContainer=m(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,W.has(e.destination),Fe(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Fe(e,t=!1){let n=e.request,i=null;if(n.localURLsOnly&&!R(b(n))&&(i=r(`local URLs only`)),S(n),h(n)===`blocked`&&(i=r(`bad port`)),n.referrerPolicy===``&&(n.referrerPolicy=n.policyContainer.referrerPolicy),n.referrer!==`no-referrer`&&(n.referrer=D(n)),i===null&&(i=await(async()=>{let t=b(n);return j(t,n.url)&&n.responseTainting===`basic`||t.protocol===`data:`||n.mode===`navigate`||n.mode===`websocket`?(n.responseTainting=`basic`,await Ie(e)):n.mode===`same-origin`?r(`request mode cannot be "same-origin"`):n.mode===`no-cors`?n.redirect===`follow`?(n.responseTainting=`opaque`,await Ie(e)):r(`redirect mode cannot be "follow" for "no-cors" request`):z(b(n))?(n.responseTainting=`cors`,await ze(e)):r(`URL scheme must be a HTTP(S) scheme`)})()),t)return i;i.status!==0&&!i.internalResponse&&(n.responseTainting,n.responseTainting===`basic`?i=a(i,`basic`):n.responseTainting===`cors`?i=a(i,`cors`):n.responseTainting===`opaque`?i=a(i,`opaque`):oe(!1));let o=i.status===0?i:i.internalResponse;if(o.urlList.length===0&&o.urlList.push(...n.urlList),n.timingAllowFailed||(i.timingAllowPassed=!0),i.type===`opaque`&&o.status===206&&o.rangeRequested&&!n.headers.contains(`range`,!0)&&(i=o=r()),i.status!==0&&(n.method===`HEAD`||n.method===`CONNECT`||ce.includes(o.status))&&(o.body=null,e.controller.dump=!0),n.integrity){let t=t=>Re(e,r(t));if(n.responseTainting===`opaque`||i.body==null){t(i.error);return}await F(i.body,r=>{if(!f(r,n.integrity)){t(`integrity mismatch`);return}i.body=H(r)[0],Re(e,i)},t)}else Re(e,i)}function Ie(e){if(M(e)&&e.request.redirectCount===0)return Promise.resolve(i(e));let{request:n}=e,{protocol:a}=b(n);switch(a){case`about:`:return Promise.resolve(r(`about scheme is not supported`));case`blob:`:{De||=t(`node:buffer`).resolveObjectURL;let e=b(n);if(e.search.length!==0)return Promise.resolve(r(`NetworkError when attempting to fetch resource.`));let i=De(e.toString());if(n.method!==`GET`||!A(i))return Promise.resolve(r(`invalid method`));let a=o(),s=i.size,c=L(`${s}`),l=i.type;if(n.headersList.contains(`range`,!0)){a.rangeRequested=!0;let e=te(n.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(r(`failed to fetch the data URL`));let{rangeStartValue:t,rangeEndValue:o}=e;if(t===null)t=s-o,o=t+o-1;else{if(t>=s)return Promise.resolve(r(`Range start is greater than the blob's size.`));(o===null||o>=s)&&(o=s-1)}let c=i.slice(t,o,l);a.body=se(c)[0];let u=L(`${c.size}`),d=ne(t,o,s);a.status=206,a.statusText=`Partial Content`,a.headersList.set(`content-length`,u,!0),a.headersList.set(`content-type`,l,!0),a.headersList.set(`content-range`,d,!0)}else{let e=se(i);a.statusText=`OK`,a.body=e[0],a.headersList.set(`content-length`,c,!0),a.headersList.set(`content-type`,l,!0)}return Promise.resolve(a)}case`data:`:{let e=ye(b(n));if(e===`failure`)return Promise.resolve(r(`failed to fetch the data URL`));let t=be(e.mimeType);return Promise.resolve(o({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:t}]],body:H(e.body)[0]}))}case`file:`:return Promise.resolve(r(`not implemented... yet...`));case`http:`:case`https:`:return ze(e).catch(e=>r(e));default:return Promise.resolve(r(`unknown scheme`))}}function Le(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function Re(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=C(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=re(t.headersList);e!==`failure`&&(a.contentType=xe(e))}e.request.initiatorType!=null&&Me(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():me(i.body.stream,()=>{r()})}async function ze(e){let t=e.request,n=null,i=null,a=e.timingInfo;if(t.serviceWorkers,n===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=n=await Ve(e),t.responseTainting===`cors`&&T(t,n)===`failure`)return r(`cors failure`);g(t,n)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||n.type===`opaque`)&&E(t.origin,t.client,t.destination,i)===`blocked`?r(`blocked`):(U.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?n=r(`unexpected redirect`):t.redirect===`manual`?n=i:t.redirect===`follow`?n=await Be(e,n):oe(!1)),n.timingInfo=a,n)}function Be(e,t){let n=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=y(i,b(n).hash),a==null)return t}catch(e){return Promise.resolve(r(e))}if(!z(a))return Promise.resolve(r(`URL scheme must be a HTTP(S) scheme`));if(n.redirectCount===20)return Promise.resolve(r(`redirect count exceeded`));if(n.redirectCount+=1,n.mode===`cors`&&(a.username||a.password)&&!j(n,a))return Promise.resolve(r(`cross origin not allowed for request mode "cors"`));if(n.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(r(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&n.body!=null&&n.body.source==null)return Promise.resolve(r());if([301,302].includes(i.status)&&n.method===`POST`||i.status===303&&!Te.includes(n.method)){n.method=`GET`,n.body=null;for(let e of ue)n.headersList.delete(e)}j(b(n),a)||(n.headersList.delete(`authorization`,!0),n.headersList.delete(`proxy-authorization`,!0),n.headersList.delete(`cookie`,!0),n.headersList.delete(`host`,!0)),n.body!=null&&(oe(n.body.source!=null),n.body=H(n.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=O(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),n.urlList.push(a),x(n,i),Fe(e,!0)}async function Ve(e,t=!1,n=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=u(a),o={...e},o.request=s);let l=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=L(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,L(s.referrer.href),!0),v(s),w(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Ee),s.cache===`default`&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(ee(b(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return r(`only if cached`);let e=await He(o,l,n);!le.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=l,c.status===407)return a.window===`no-window`?r():M(e)?i(e):r(`proxy authentication required`);if(c.status===421&&!n&&(a.body==null||a.body.source!=null)){if(M(e))return i(e);e.controller.connection.destroy(),c=await Ve(e,t,!0)}return c}async function He(e,t=!1,n=!1){oe(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let a=e.request,s=null,l=e.timingInfo;a.cache=`no-store`,a.mode;let u=null;if(a.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(a.body!=null){let t=async function*(t){M(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{M(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{M(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};u=(async function*(){try{for await(let e of a.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:a}=await g({body:u});if(a)s=o({status:n,statusText:r,headersList:i,socket:a});else{let a=t[Symbol.asyncIterator]();e.controller.next=()=>a.next(),s=o({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),i(e,t)):r(t)}let f=async()=>{await e.controller.resume()},p=t=>{M(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});s.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(N(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){I(e.controller.controller),Le(e,s);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),ge(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){N(e)?(s.aborted=!0,_e(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):_e(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:P(t)?t:void 0})),e.controller.connection.destroy()}return s;function g({body:t}){let n=b(a),r=e.controller.dispatcher;return new Promise((i,o)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:a.method,body:r.isMockActive?a.body&&(a.body.source||a.body.stream):t,headers:a.headersList.entries,maxRedirections:0,upgrade:a.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=B(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=O(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=O(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let s=``,l=new c;for(let e=0;e5)return o(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)u.push(d.createGunzip({flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)u.push(V({flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH}));else if(n===`br`)u.push(d.createBrotliDecompress({flush:d.constants.BROTLI_OPERATION_FLUSH,finishFlush:d.constants.BROTLI_OPERATION_FLUSH}));else{u.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:u.length?pe(this.body,...u,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),o(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new c;for(let e=0;e{t.exports={kState:Symbol(`FileReader state`),kResult:Symbol(`FileReader result`),kError:Symbol(`FileReader error`),kLastProgressEventFired:Symbol(`FileReader last progress event fired timestamp`),kEvents:Symbol(`FileReader events`),kAborted:Symbol(`FileReader aborted`)}})),On=a(((e,t)=>{let{webidl:n}=kt(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),kn=a(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.trim().toLowerCase()){case`unicode-1-1-utf-8`:case`unicode11utf8`:case`unicode20utf8`:case`utf-8`:case`utf8`:case`x-unicode20utf8`:return`UTF-8`;case`866`:case`cp866`:case`csibm866`:case`ibm866`:return`IBM866`;case`csisolatin2`:case`iso-8859-2`:case`iso-ir-101`:case`iso8859-2`:case`iso88592`:case`iso_8859-2`:case`iso_8859-2:1987`:case`l2`:case`latin2`:return`ISO-8859-2`;case`csisolatin3`:case`iso-8859-3`:case`iso-ir-109`:case`iso8859-3`:case`iso88593`:case`iso_8859-3`:case`iso_8859-3:1988`:case`l3`:case`latin3`:return`ISO-8859-3`;case`csisolatin4`:case`iso-8859-4`:case`iso-ir-110`:case`iso8859-4`:case`iso88594`:case`iso_8859-4`:case`iso_8859-4:1988`:case`l4`:case`latin4`:return`ISO-8859-4`;case`csisolatincyrillic`:case`cyrillic`:case`iso-8859-5`:case`iso-ir-144`:case`iso8859-5`:case`iso88595`:case`iso_8859-5`:case`iso_8859-5:1988`:return`ISO-8859-5`;case`arabic`:case`asmo-708`:case`csiso88596e`:case`csiso88596i`:case`csisolatinarabic`:case`ecma-114`:case`iso-8859-6`:case`iso-8859-6-e`:case`iso-8859-6-i`:case`iso-ir-127`:case`iso8859-6`:case`iso88596`:case`iso_8859-6`:case`iso_8859-6:1987`:return`ISO-8859-6`;case`csisolatingreek`:case`ecma-118`:case`elot_928`:case`greek`:case`greek8`:case`iso-8859-7`:case`iso-ir-126`:case`iso8859-7`:case`iso88597`:case`iso_8859-7`:case`iso_8859-7:1987`:case`sun_eu_greek`:return`ISO-8859-7`;case`csiso88598e`:case`csisolatinhebrew`:case`hebrew`:case`iso-8859-8`:case`iso-8859-8-e`:case`iso-ir-138`:case`iso8859-8`:case`iso88598`:case`iso_8859-8`:case`iso_8859-8:1988`:case`visual`:return`ISO-8859-8`;case`csiso88598i`:case`iso-8859-8-i`:case`logical`:return`ISO-8859-8-I`;case`csisolatin6`:case`iso-8859-10`:case`iso-ir-157`:case`iso8859-10`:case`iso885910`:case`l6`:case`latin6`:return`ISO-8859-10`;case`iso-8859-13`:case`iso8859-13`:case`iso885913`:return`ISO-8859-13`;case`iso-8859-14`:case`iso8859-14`:case`iso885914`:return`ISO-8859-14`;case`csisolatin9`:case`iso-8859-15`:case`iso8859-15`:case`iso885915`:case`iso_8859-15`:case`l9`:return`ISO-8859-15`;case`iso-8859-16`:return`ISO-8859-16`;case`cskoi8r`:case`koi`:case`koi8`:case`koi8-r`:case`koi8_r`:return`KOI8-R`;case`koi8-ru`:case`koi8-u`:return`KOI8-U`;case`csmacintosh`:case`mac`:case`macintosh`:case`x-mac-roman`:return`macintosh`;case`iso-8859-11`:case`iso8859-11`:case`iso885911`:case`tis-620`:case`windows-874`:return`windows-874`;case`cp1250`:case`windows-1250`:case`x-cp1250`:return`windows-1250`;case`cp1251`:case`windows-1251`:case`x-cp1251`:return`windows-1251`;case`ansi_x3.4-1968`:case`ascii`:case`cp1252`:case`cp819`:case`csisolatin1`:case`ibm819`:case`iso-8859-1`:case`iso-ir-100`:case`iso8859-1`:case`iso88591`:case`iso_8859-1`:case`iso_8859-1:1987`:case`l1`:case`latin1`:case`us-ascii`:case`windows-1252`:case`x-cp1252`:return`windows-1252`;case`cp1253`:case`windows-1253`:case`x-cp1253`:return`windows-1253`;case`cp1254`:case`csisolatin5`:case`iso-8859-9`:case`iso-ir-148`:case`iso8859-9`:case`iso88599`:case`iso_8859-9`:case`iso_8859-9:1989`:case`l5`:case`latin5`:case`windows-1254`:case`x-cp1254`:return`windows-1254`;case`cp1255`:case`windows-1255`:case`x-cp1255`:return`windows-1255`;case`cp1256`:case`windows-1256`:case`x-cp1256`:return`windows-1256`;case`cp1257`:case`windows-1257`:case`x-cp1257`:return`windows-1257`;case`cp1258`:case`windows-1258`:case`x-cp1258`:return`windows-1258`;case`x-mac-cyrillic`:case`x-mac-ukrainian`:return`x-mac-cyrillic`;case`chinese`:case`csgb2312`:case`csiso58gb231280`:case`gb2312`:case`gb_2312`:case`gb_2312-80`:case`gbk`:case`iso-ir-58`:case`x-gbk`:return`GBK`;case`gb18030`:return`gb18030`;case`big5`:case`big5-hkscs`:case`cn-big5`:case`csbig5`:case`x-x-big5`:return`Big5`;case`cseucpkdfmtjapanese`:case`euc-jp`:case`x-euc-jp`:return`EUC-JP`;case`csiso2022jp`:case`iso-2022-jp`:return`ISO-2022-JP`;case`csshiftjis`:case`ms932`:case`ms_kanji`:case`shift-jis`:case`shift_jis`:case`sjis`:case`windows-31j`:case`x-sjis`:return`Shift_JIS`;case`cseuckr`:case`csksc56011987`:case`euc-kr`:case`iso-ir-149`:case`korean`:case`ks_c_5601-1987`:case`ks_c_5601-1989`:case`ksc5601`:case`ksc_5601`:case`windows-949`:return`EUC-KR`;case`csiso2022kr`:case`hz-gb-2312`:case`iso-2022-cn`:case`iso-2022-cn-ext`:case`iso-2022-kr`:case`replacement`:return`replacement`;case`unicodefffe`:case`utf-16be`:return`UTF-16BE`;case`csunicode`:case`iso-10646-ucs-2`:case`ucs-2`:case`unicode`:case`unicodefeff`:case`utf-16`:case`utf-16le`:return`UTF-16LE`;case`x-user-defined`:return`x-user-defined`;default:return`failure`}}t.exports={getEncoding:n}})),An=a(((e,n)=>{let{kState:r,kError:i,kResult:a,kAborted:o,kLastProgressEventFired:s}=Dn(),{ProgressEvent:c}=On(),{getEncoding:l}=kn(),{serializeAMimeType:u,parseMIMEType:d}=Ot(),{types:f}=t(`node:util`),{StringDecoder:p}=t(`string_decoder`),{btoa:m}=t(`node:buffer`),h={enumerable:!0,writable:!1,configurable:!1};function g(e,t,n,c){if(e[r]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[r]=`loading`,e[a]=null,e[i]=null;let l=t.stream().getReader(),u=[],d=l.read(),p=!0;(async()=>{for(;!e[o];)try{let{done:m,value:h}=await d;if(p&&!e[o]&&queueMicrotask(()=>{v(`loadstart`,e)}),p=!1,!m&&f.isUint8Array(h))u.push(h),(e[s]===void 0||Date.now()-e[s]>=50)&&!e[o]&&(e[s]=Date.now(),queueMicrotask(()=>{v(`progress`,e)})),d=l.read();else if(m){queueMicrotask(()=>{e[r]=`done`;try{let r=y(u,n,t.type,c);if(e[o])return;e[a]=r,v(`load`,e)}catch(t){e[i]=t,v(`error`,e)}e[r]!==`loading`&&v(`loadend`,e)});break}}catch(t){if(e[o])return;queueMicrotask(()=>{e[r]=`done`,e[i]=t,v(`error`,e),e[r]!==`loading`&&v(`loadend`,e)});break}})()}function v(e,t){let n=new c(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function y(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=d(n||`application/octet-stream`);r!==`failure`&&(t+=u(r)),t+=`;base64,`;let i=new p(`latin1`);for(let n of e)t+=m(i.write(n));return t+=m(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=l(r)),t===`failure`&&n){let e=d(n);e!==`failure`&&(t=l(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),b(e,t)}case`ArrayBuffer`:return S(e).buffer;case`BinaryString`:{let t=``,n=new p(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function b(e,t){let n=S(e),r=x(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function x(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function S(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}n.exports={staticPropertyDescriptors:h,readOperation:g,fireAProgressEvent:v}})),jn=a(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=An(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=Dn(),{webidl:u}=kt(),{kEnumerableProperty:d}=ht();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),Mn=a(((e,t)=>{t.exports={kConstruct:dt().kConstruct}})),Nn=a(((e,n)=>{let r=t(`node:assert`),{URLSerializer:i}=Ot(),{isValidHeaderName:a}=At();function o(e,t,n=!1){return i(e,n)===i(t,n)}function s(e){r(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),a(n)&&t.push(n);return t}n.exports={urlEquals:o,getFieldValues:s}})),Pn=a(((e,n)=>{let{kConstruct:r}=Mn(),{urlEquals:i,getFieldValues:a}=Nn(),{kEnumerableProperty:o,isDisturbed:s}=ht(),{webidl:c}=kt(),{Response:l,cloneResponse:u,fromInnerResponse:d}=Cn(),{Request:f,fromInnerRequest:p}=Tn(),{kState:m}=jt(),{fetching:h}=En(),{urlIsHttpHttpsScheme:g,createDeferredPromise:v,readAllBytes:y}=At(),b=t(`node:assert`);var x=class e{#e;constructor(){arguments[0]!==r&&c.illegalConstructor(),c.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){c.brandCheck(this,e);let r=`Cache.match`;c.argumentLengthCheck(arguments,1,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){c.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=c.converters.RequestInfo(t,r,`request`)),n=c.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){c.brandCheck(this,e);let n=`Cache.add`;c.argumentLengthCheck(arguments,1,n),t=c.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){c.brandCheck(this,e);let n=`Cache.addAll`;c.argumentLengthCheck(arguments,1,n);let r=[],i=[];for(let e of t){if(e===void 0)throw c.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=c.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[m];if(!g(t.url)||t.method!==`GET`)throw c.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new f(e)[m];if(!g(t.url))throw c.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,i.push(t);let s=v();o.push(h({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)s.reject(c.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=a(e.headersList.get(`vary`));for(let e of t)if(e===`*`){s.reject(c.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){s.reject(new DOMException(`aborted`,`AbortError`));return}s.resolve(e)}})),r.push(s.promise)}let s=await Promise.all(r),l=[],u=0;for(let e of s){let t={type:`put`,request:i[u],response:e};l.push(t),u++}let d=v(),p=null;try{this.#t(l)}catch(e){p=e}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(t,n){c.brandCheck(this,e);let r=`Cache.put`;c.argumentLengthCheck(arguments,2,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.Response(n,r,`response`);let i=null;if(i=t instanceof f?t[m]:new f(t)[m],!g(i.url)||i.method!==`GET`)throw c.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let o=n[m];if(o.status===206)throw c.errors.exception({header:r,message:`Got 206 status`});if(o.headersList.contains(`vary`)){let e=a(o.headersList.get(`vary`));for(let t of e)if(t===`*`)throw c.errors.exception({header:r,message:`Got * vary field value`})}if(o.body&&(s(o.body.stream)||o.body.stream.locked))throw c.errors.exception({header:r,message:`Response body is locked or disturbed`});let l=u(o),d=v();o.body==null?d.resolve(void 0):y(o.body.stream.getReader()).then(d.resolve,d.reject);let p=[],h={type:`put`,request:i,response:l};p.push(h);let b=await d.promise;l.body!=null&&(l.body.source=b);let x=v(),S=null;try{this.#t(p)}catch(e){S=e}return queueMicrotask(()=>{S===null?x.resolve():x.reject(S)}),x.promise}async delete(t,n={}){c.brandCheck(this,e);let r=`Cache.delete`;c.argumentLengthCheck(arguments,1,r),t=c.converters.RequestInfo(t,r,`request`),n=c.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof f){if(i=t[m],i.method!==`GET`&&!n.ignoreMethod)return!1}else b(typeof t==`string`),i=new f(t)[m];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let s=v(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?s.resolve(!!u?.length):s.reject(l)}),s.promise}async keys(t=void 0,n={}){c.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=c.converters.RequestInfo(t,r,`request`)),n=c.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof f){if(i=t[m],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new f(t)[m]);let a=v(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=p(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);b(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!g(i.url))throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw c.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);b(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,r){let o=new URL(e.url),s=new URL(t.url);if(r?.ignoreSearch&&(s.search=``,o.search=``),!i(o,s,!0))return!1;if(n==null||r?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=a(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof f){if(r=e[m],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new f(e)[m]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=d(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(x.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:o,matchAll:o,add:o,addAll:o,put:o,delete:o,keys:o});let S=[{key:`ignoreSearch`,converter:c.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:c.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:c.converters.boolean,defaultValue:()=>!1}];c.converters.CacheQueryOptions=c.dictionaryConverter(S),c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...S,{key:`cacheName`,converter:c.converters.DOMString}]),c.converters.Response=c.interfaceConverter(l),c.converters[`sequence`]=c.sequenceConverter(c.converters.RequestInfo),n.exports={Cache:x}})),Fn=a(((e,t)=>{let{kConstruct:n}=Mn(),{Cache:r}=Pn(),{webidl:i}=kt(),{kEnumerableProperty:a}=ht();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),In=a(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),Ln=a(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),Rn=a(((e,n)=>{let{maxNameValuePairSize:r,maxAttributeValueSize:i}=In(),{isCTLExcludingHtab:a}=Ln(),{collectASequenceOfCodePointsFast:o}=Ot(),s=t(`node:assert`);function c(e){if(a(e))return null;let t=``,n=``,i=``,s=``;if(e.includes(`;`)){let r={position:0};t=o(`;`,e,r),n=e.slice(r.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};i=o(`=`,t,e),s=t.slice(e.position+1)}return i=i.trim(),s=s.trim(),i.length+s.length>r?null:{name:i,value:s,...l(n)}}function l(e,t={}){if(e.length===0)return t;s(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=o(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let r=``,a=``;if(n.includes(`=`)){let e={position:0};r=o(`=`,n,e),a=n.slice(e.position+1)}else r=n;if(r=r.trim(),a=a.trim(),a.length>i)return l(e,t);let c=r.toLowerCase();if(c===`expires`)t.expires=new Date(a);else if(c===`max-age`){let n=a.charCodeAt(0);if((n<48||n>57)&&a[0]!==`-`||!/^\d+$/.test(a))return l(e,t);t.maxAge=Number(a)}else if(c===`domain`){let e=a;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(c===`path`){let e=``;e=a.length===0||a[0]!==`/`?`/`:a,t.path=e}else if(c===`secure`)t.secure=!0;else if(c===`httponly`)t.httpOnly=!0;else if(c===`samesite`){let e=`Default`,n=a.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${r}=${a}`);return l(e,t)}n.exports={parseSetCookie:c,parseUnparsedAttributes:l}})),zn=a(((e,t)=>{let{parseSetCookie:n}=Rn(),{stringify:r}=Ln(),{webidl:i}=kt(),{Headers:a}=Sn();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),Bn=a(((e,n)=>{let{webidl:r}=kt(),{kEnumerableProperty:i}=ht(),{kConstruct:a}=dt(),{MessagePort:o}=t(`node:worker_threads`);var s=class e extends Event{#e;constructor(e,t={}){if(e===a){super(arguments[1],arguments[2]),r.util.markAsUncloneable(this);return}let n=`MessageEvent constructor`;r.argumentLengthCheck(arguments,1,n),e=r.converters.DOMString(e,n,`type`),t=r.converters.MessageEventInit(t,n,`eventInitDict`),super(e,t),this.#e=t,r.util.markAsUncloneable(this)}get data(){return r.brandCheck(this,e),this.#e.data}get origin(){return r.brandCheck(this,e),this.#e.origin}get lastEventId(){return r.brandCheck(this,e),this.#e.lastEventId}get source(){return r.brandCheck(this,e),this.#e.source}get ports(){return r.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,n=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return r.brandCheck(this,e),r.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:n,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(a,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:c}=s;delete s.createFastMessageEvent;var l=class e extends Event{#e;constructor(e,t={}){let n=`CloseEvent constructor`;r.argumentLengthCheck(arguments,1,n),e=r.converters.DOMString(e,n,`type`),t=r.converters.CloseEventInit(t),super(e,t),this.#e=t,r.util.markAsUncloneable(this)}get wasClean(){return r.brandCheck(this,e),this.#e.wasClean}get code(){return r.brandCheck(this,e),this.#e.code}get reason(){return r.brandCheck(this,e),this.#e.reason}},u=class e extends Event{#e;constructor(e,t){let n=`ErrorEvent constructor`;r.argumentLengthCheck(arguments,1,n),super(e,t),r.util.markAsUncloneable(this),e=r.converters.DOMString(e,n,`type`),t=r.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return r.brandCheck(this,e),this.#e.message}get filename(){return r.brandCheck(this,e),this.#e.filename}get lineno(){return r.brandCheck(this,e),this.#e.lineno}get colno(){return r.brandCheck(this,e),this.#e.colno}get error(){return r.brandCheck(this,e),this.#e.error}};Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:i,code:i,wasClean:i}),Object.defineProperties(u.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:i,filename:i,lineno:i,colno:i,error:i}),r.converters.MessagePort=r.interfaceConverter(o),r.converters[`sequence`]=r.sequenceConverter(r.converters.MessagePort);let d=[{key:`bubbles`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:r.converters.boolean,defaultValue:()=>!1}];r.converters.MessageEventInit=r.dictionaryConverter([...d,{key:`data`,converter:r.converters.any,defaultValue:()=>null},{key:`origin`,converter:r.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:r.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:r.nullableConverter(r.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:r.converters[`sequence`],defaultValue:()=>[]}]),r.converters.CloseEventInit=r.dictionaryConverter([...d,{key:`wasClean`,converter:r.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:r.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:r.converters.USVString,defaultValue:()=>``}]),r.converters.ErrorEventInit=r.dictionaryConverter([...d,{key:`message`,converter:r.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:r.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:r.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:r.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:r.converters.any}]),n.exports={MessageEvent:s,CloseEvent:l,ErrorEvent:u,createFastMessageEvent:c}})),Vn=a(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),Hn=a(((e,t)=>{t.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`)}})),Un=a(((e,n)=>{let{kReadyState:r,kController:i,kResponse:a,kBinaryType:o,kWebSocketURL:s}=Hn(),{states:c,opcodes:l}=Vn(),{ErrorEvent:u,createFastMessageEvent:d}=Bn(),{isUtf8:f}=t(`node:buffer`),{collectASequenceOfCodePointsFast:p,removeHTTPWhitespace:m}=Ot();function h(e){return e[r]===c.CONNECTING}function g(e){return e[r]===c.OPEN}function v(e){return e[r]===c.CLOSING}function y(e){return e[r]===c.CLOSED}function b(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function x(e,t,n){if(e[r]!==c.OPEN)return;let i;if(t===l.TEXT)try{i=P(n)}catch{T(e,`Received invalid UTF-8 in text frame.`);return}else t===l.BINARY&&(i=e[o]===`blob`?new Blob([n]):S(n));b(`message`,e,d,{origin:e[s].origin,data:i})}function S(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function C(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function w(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function T(e,t){let{[i]:n,[a]:r}=e;n.abort(),r?.socket&&!r.socket.destroyed&&r.socket.destroy(),t&&b(`error`,e,(e,t)=>new u(e,t),{error:Error(t),message:t})}function E(e){return e===l.CLOSE||e===l.PING||e===l.PONG}function D(e){return e===l.CONTINUATION}function O(e){return e===l.TEXT||e===l.BINARY}function k(e){return O(e)||D(e)||E(e)}function A(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let M=typeof process.versions.icu==`string`,N=M?new TextDecoder(`utf-8`,{fatal:!0}):void 0,P=M?N.decode.bind(N):function(e){if(f(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};n.exports={isConnecting:h,isEstablished:g,isClosing:v,isClosed:y,fireEvent:b,isValidSubprotocol:C,isValidStatusCode:w,failWebsocketConnection:T,websocketMessageReceived:x,utf8Decode:P,isControlFrame:E,isContinuationFrame:D,isTextBinaryFrame:O,isValidOpcode:k,parseExtensions:A,isValidClientWindowBits:j}})),Wn=a(((e,n)=>{let{maxUnsigned16Bit:r}=Vn(),i=16386,a,o=null,s=i;try{a=t(`node:crypto`)}catch{a={randomFillSync:function(e,t,n){for(let t=0;t */ +n.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,n=c(),i=t?.byteLength??0,a=i,o=6;i>r?(o+=8,a=127):i>125&&(o+=2,a=126);let s=Buffer.allocUnsafe(i+o);s[0]=s[1]=0,s[0]|=128,s[0]=(s[0]&240)+e,s[o-4]=n[0],s[o-3]=n[1],s[o-2]=n[2],s[o-1]=n[3],s[1]=a,a===126?s.writeUInt16BE(i,2):a===127&&(s[2]=s[3]=0,s.writeUIntBE(i,4,6)),s[1]|=128;for(let e=0;e{let{uid:r,states:i,sentCloseFrameState:a,emptyBuffer:o,opcodes:s}=Vn(),{kReadyState:c,kSentClose:l,kByteParser:u,kReceivedClose:d,kResponse:f}=Hn(),{fireEvent:p,failWebsocketConnection:m,isClosing:h,isClosed:g,isEstablished:v,parseExtensions:y}=Un(),{channels:b}=gt(),{CloseEvent:x}=Bn(),{makeRequest:S}=Tn(),{fetching:C}=En(),{Headers:w,getHeadersList:T}=Sn(),{getDecodeSplit:E}=At(),{WebsocketFrameSend:D}=Wn(),O;try{O=t(`node:crypto`)}catch{}function k(e,t,n,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=S({urlList:[s],client:n,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=T(new w(o.headers)));let l=O.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),C({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){m(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){m(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){m(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){m(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==O.createHash(`sha1`).update(l+r).digest(`base64`)){m(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let n=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(n!==null&&(o=y(n),!o.has(`permessage-deflate`))){m(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!E(`sec-websocket-protocol`,c.headersList).includes(s)){m(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,j),e.socket.on(`close`,M),e.socket.on(`error`,N),b.open.hasSubscribers&&b.open.publish({address:e.socket.address(),protocol:s,extensions:n}),a(e,o)}})}function A(e,t,n,r){if(!(h(e)||g(e)))if(!v(e))m(e,`Connection was closed before it was established.`),e[c]=i.CLOSING;else if(e[l]===a.NOT_SENT){e[l]=a.PROCESSING;let u=new D;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+r),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=o,e[f].socket.write(u.createFrame(s.CLOSE)),e[l]=a.SENT,e[c]=i.CLOSING}else e[c]=i.CLOSING}function j(e){this.ws[u].write(e)||this.pause()}function M(){let{ws:e}=this,{[f]:t}=e;t.socket.off(`data`,j),t.socket.off(`close`,M),t.socket.off(`error`,N);let n=e[l]===a.SENT&&e[d],r=1005,o=``,s=e[u].closingInfo;s&&!s.error?(r=s.code??1005,o=s.reason):e[d]||(r=1006),e[c]=i.CLOSED,p(`close`,e,(e,t)=>new x(e,t),{wasClean:n,code:r,reason:o}),b.close.hasSubscribers&&b.close.publish({websocket:e,code:r,reason:o})}function N(e){let{ws:t}=this;t[c]=i.CLOSING,b.socketError.hasSubscribers&&b.socketError.publish(e),this.destroy()}n.exports={establishWebSocketConnection:k,closeWebSocketConnection:A}})),Kn=a(((e,n)=>{let{createInflateRaw:r,Z_DEFAULT_WINDOWBITS:i}=t(`node:zlib`),{isValidClientWindowBits:a}=Un(),{MessageSizeExceededError:o}=ft(),s=Buffer.from([0,0,255,255]),c=Symbol(`kBuffer`),l=Symbol(`kLength`);n.exports={PerMessageDeflate:class{#e;#t={};#n=!1;#r=null;constructor(e){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`)}decompress(e,t,n){if(this.#n){n(new o);return}if(!this.#e){let e=i;if(this.#t.serverMaxWindowBits){if(!a(this.#t.serverMaxWindowBits)){n(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=r({windowBits:e})}catch(e){n(e);return}this.#e[c]=[],this.#e[l]=0,this.#e.on(`data`,e=>{if(!this.#n){if(this.#e[l]+=e.length,this.#e[l]>4194304){if(this.#n=!0,this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null,this.#r){let e=this.#r;this.#r=null,e(new o)}return}this.#e[c].push(e)}}),this.#e.on(`error`,e=>{this.#e=null,n(e)})}this.#r=n,this.#e.write(e),t&&this.#e.write(s),this.#e.flush(()=>{if(this.#n||!this.#e)return;let e=Buffer.concat(this.#e[c],this.#e[l]);this.#e[c].length=0,this.#e[l]=0,this.#r=null,n(null,e)})}}}})),qn=a(((e,n)=>{let{Writable:r}=t(`node:stream`),i=t(`node:assert`),{parserStates:a,opcodes:o,states:s,emptyBuffer:c,sentCloseFrameState:l}=Vn(),{kReadyState:u,kSentClose:d,kResponse:f,kReceivedClose:p}=Hn(),{channels:m}=gt(),{isValidStatusCode:h,isValidOpcode:g,failWebsocketConnection:v,websocketMessageReceived:y,utf8Decode:b,isControlFrame:x,isTextBinaryFrame:S,isContinuationFrame:C}=Un(),{WebsocketFrameSend:w}=Wn(),{closeWebSocketConnection:T}=Gn(),{PerMessageDeflate:E}=Kn();n.exports={ByteParser:class extends r{#e=[];#t=0;#n=!1;#r=a.INFO;#i={};#a=[];#o;constructor(e,t){super(),this.ws=e,this.#o=t??new Map,this.#o.has(`permessage-deflate`)&&this.#o.set(`permessage-deflate`,new E(t))}_write(e,t,n){this.#e.push(e),this.#t+=e.length,this.#n=!0,this.run(n)}run(e){for(;this.#n;)if(this.#r===a.INFO){if(this.#t<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,i=(t[1]&128)==128,s=!n&&r!==o.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!g(r))return v(this.ws,`Invalid opcode received`),e();if(i)return v(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#o.has(`permessage-deflate`)){v(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){v(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!S(r)){v(this.ws,`Invalid frame type was fragmented.`);return}if(S(r)&&this.#a.length>0){v(this.ws,`Expected continuation frame`);return}if(this.#i.fragmented&&s){v(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&x(r)){v(this.ws,`Control frame either too large or fragmented`);return}if(C(r)&&this.#a.length===0&&!this.#i.compressed){v(this.ws,`Unexpected continuation frame`);return}c<=125?(this.#i.payloadLength=c,this.#r=a.READ_DATA):c===126?this.#r=a.PAYLOADLENGTH_16:c===127&&(this.#r=a.PAYLOADLENGTH_64),S(r)&&(this.#i.binaryType=r,this.#i.compressed=l!==0),this.#i.opcode=r,this.#i.masked=i,this.#i.fin=n,this.#i.fragmented=s}else if(this.#r===a.PAYLOADLENGTH_16){if(this.#t<2)return e();let t=this.consume(2);this.#i.payloadLength=t.readUInt16BE(0),this.#r=a.READ_DATA}else if(this.#r===a.PAYLOADLENGTH_64){if(this.#t<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){v(this.ws,`Received payload length > 2^31 bytes.`);return}this.#i.payloadLength=r,this.#r=a.READ_DATA}else if(this.#r===a.READ_DATA){if(this.#t{if(t){v(this.ws,t.message);return}if(this.#a.push(n),!this.#i.fin){this.#r=a.INFO,this.#n=!0,this.run(e);return}y(this.ws,this.#i.binaryType,Buffer.concat(this.#a)),this.#n=!0,this.#r=a.INFO,this.#a.length=0,this.run(e)}),this.#n=!1;break}else{if(this.#a.push(t),!this.#i.fragmented&&this.#i.fin){let e=Buffer.concat(this.#a);y(this.ws,this.#i.binaryType,e),this.#a.length=0}this.#r=a.INFO}}}consume(e){if(e>this.#t)throw Error(`Called consume() before buffers satiated.`);if(e===0)return c;if(this.#e[0].length===e)return this.#t-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#t-=e,t}parseCloseBody(e){i(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!h(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=b(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#i;if(t===o.CLOSE){if(n===1)return v(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#i.closeInfo=this.parseCloseBody(e),this.#i.closeInfo.error){let{code:e,reason:t}=this.#i.closeInfo;return T(this.ws,e,t,t.length),v(this.ws,t),!1}if(this.ws[d]!==l.SENT){let e=c;this.#i.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#i.closeInfo.code,0));let t=new w(e);this.ws[f].socket.write(t.createFrame(o.CLOSE),e=>{e||(this.ws[d]=l.SENT)})}return this.ws[u]=s.CLOSING,this.ws[p]=!0,!1}else if(t===o.PING){if(!this.ws[p]){let t=new w(e);this.ws[f].socket.write(t.createFrame(o.PONG)),m.ping.hasSubscribers&&m.ping.publish({payload:e})}}else t===o.PONG&&m.pong.hasSubscribers&&m.pong.publish({payload:e});return!0}get closingInfo(){return this.#i.closeInfo}}}})),Jn=a(((e,t)=>{let{WebsocketFrameSend:n}=Wn(),{opcodes:r,sendHints:i}=Vn(),a=Vt(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),Yn=a(((e,n)=>{let{webidl:r}=kt(),{URLSerializer:i}=Ot(),{environmentSettingsObject:a}=At(),{staticPropertyDescriptors:o,states:s,sentCloseFrameState:c,sendHints:l}=Vn(),{kWebSocketURL:u,kReadyState:d,kController:f,kBinaryType:p,kResponse:m,kSentClose:h,kByteParser:g}=Hn(),{isConnecting:v,isEstablished:y,isClosing:b,isValidSubprotocol:x,fireEvent:S}=Un(),{establishWebSocketConnection:C,closeWebSocketConnection:w}=Gn(),{ByteParser:T}=qn(),{kEnumerableProperty:E,isBlobLike:D}=ht(),{getGlobalDispatcher:O}=gn(),{types:k}=t(`node:util`),{ErrorEvent:A,CloseEvent:j}=Bn(),{SendQueue:M}=Jn();var N=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,n=[]){super(),r.util.markAsUncloneable(this);let i=`WebSocket constructor`;r.argumentLengthCheck(arguments,1,i);let o=r.converters[`DOMString or sequence or WebSocketInit`](n,i,`options`);t=r.converters.USVString(t,i,`url`),n=o.protocols;let s=a.settingsObject.baseUrl,l;try{l=new URL(t,s)}catch(e){throw new DOMException(e,`SyntaxError`)}if(l.protocol===`http:`?l.protocol=`ws:`:l.protocol===`https:`&&(l.protocol=`wss:`),l.protocol!==`ws:`&&l.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${l.protocol}`,`SyntaxError`);if(l.hash||l.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof n==`string`&&(n=[n]),n.length!==new Set(n.map(e=>e.toLowerCase())).size||n.length>0&&!n.every(e=>x(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[u]=new URL(l.href);let m=a.settingsObject;this[f]=C(l,n,m,this,(e,t)=>this.#a(e,t),o),this[d]=e.CONNECTING,this[h]=c.NOT_SENT,this[p]=`blob`}close(t=void 0,n=void 0){r.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=r.converters[`unsigned short`](t,i,`code`,{clamp:!0})),n!==void 0&&(n=r.converters.USVString(n,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(n!==void 0&&(a=Buffer.byteLength(n),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);w(this,t,n,a)}send(t){r.brandCheck(this,e);let n=`WebSocket.send`;if(r.argumentLengthCheck(arguments,1,n),t=r.converters.WebSocketSendData(t,n,`data`),v(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!y(this)||b(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},l.string)}else k.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},l.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},l.typedArray)):D(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},l.blob))}get readyState(){return r.brandCheck(this,e),this[d]}get bufferedAmount(){return r.brandCheck(this,e),this.#t}get url(){return r.brandCheck(this,e),i(this[u])}get extensions(){return r.brandCheck(this,e),this.#r}get protocol(){return r.brandCheck(this,e),this.#n}get onopen(){return r.brandCheck(this,e),this.#e.open}set onopen(t){r.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return r.brandCheck(this,e),this.#e.error}set onerror(t){r.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return r.brandCheck(this,e),this.#e.close}set onclose(t){r.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return r.brandCheck(this,e),this.#e.message}set onmessage(t){r.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return r.brandCheck(this,e),this[p]}set binaryType(t){r.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[p]=`blob`:this[p]=t}#a(e,t){this[m]=e;let n=new T(this,t);n.on(`drain`,P),n.on(`error`,F.bind(this)),e.socket.ws=this,this[g]=n,this.#i=new M(e.socket),this[d]=s.OPEN;let r=e.headersList.get(`sec-websocket-extensions`);r!==null&&(this.#r=r);let i=e.headersList.get(`sec-websocket-protocol`);i!==null&&(this.#n=i),S(`open`,this)}};N.CONNECTING=N.prototype.CONNECTING=s.CONNECTING,N.OPEN=N.prototype.OPEN=s.OPEN,N.CLOSING=N.prototype.CLOSING=s.CLOSING,N.CLOSED=N.prototype.CLOSED=s.CLOSED,Object.defineProperties(N.prototype,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o,url:E,readyState:E,bufferedAmount:E,onopen:E,onerror:E,onclose:E,close:E,onmessage:E,binaryType:E,send:E,extensions:E,protocol:E,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(N,{CONNECTING:o,OPEN:o,CLOSING:o,CLOSED:o}),r.converters[`sequence`]=r.sequenceConverter(r.converters.DOMString),r.converters[`DOMString or sequence`]=function(e,t,n){return r.util.Type(e)===`Object`&&Symbol.iterator in e?r.converters[`sequence`](e):r.converters.DOMString(e,t,n)},r.converters.WebSocketInit=r.dictionaryConverter([{key:`protocols`,converter:r.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:r.converters.any,defaultValue:()=>O()},{key:`headers`,converter:r.nullableConverter(r.converters.HeadersInit)}]),r.converters[`DOMString or sequence or WebSocketInit`]=function(e){return r.util.Type(e)===`Object`&&!(Symbol.iterator in e)?r.converters.WebSocketInit(e):{protocols:r.converters[`DOMString or sequence`](e)}},r.converters.WebSocketSendData=function(e){if(r.util.Type(e)===`Object`){if(D(e))return r.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||k.isArrayBuffer(e))return r.converters.BufferSource(e)}return r.converters.USVString(e)};function P(){this.ws[m].socket.resume()}function F(e){let t,n;e instanceof j?(t=e.reason,n=e.code):t=e.message,S(`error`,this,()=>new A(`error`,{error:e,message:t})),w(this,n)}n.exports={WebSocket:N}})),Xn=a(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),Zn=a(((e,n)=>{let{Transform:r}=t(`node:stream`),{isASCIINumber:i,isValidLastEventId:a}=Xn(),o=[239,187,191];n.exports={EventSourceStream:class extends r{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===o[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===o[0]&&this.buffer[1]===o[1]&&this.buffer[2]===o[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[r]=o);break}}processEvent(e){e.retry&&i(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&a(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),Qn=a(((e,n)=>{let{pipeline:r}=t(`node:stream`),{fetching:i}=En(),{makeRequest:a}=Tn(),{webidl:o}=kt(),{EventSourceStream:s}=Zn(),{parseMIMEType:c}=Ot(),{createFastMessageEvent:l}=Bn(),{isNetworkError:u}=Cn(),{delay:d}=Xn(),{kEnumerableProperty:f}=ht(),{environmentSettingsObject:p}=At(),m=!1,h=3e3;var g=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),o.util.markAsUncloneable(this);let n=`EventSource constructor`;o.argumentLengthCheck(arguments,1,n),m||(m=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=o.converters.USVString(e,n,`url`),t=o.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:h};let r=p,i;try{i=new URL(e,r.settingsObject.baseUrl),this.#s.origin=i.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=i.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=p.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=a(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{u(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(u(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),n=t===null?`failure`:c(t),i=n!==`failure`&&n.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new s({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(l(e.type,e.options))}});r(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=i(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await d(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){o.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let v={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(g,v),Object.defineProperties(g.prototype,v),Object.defineProperties(g.prototype,{close:f,onerror:f,onmessage:f,onopen:f,readyState:f,url:f,withCredentials:f}),o.converters.EventSourceInitDict=o.dictionaryConverter([{key:`withCredentials`,converter:o.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:o.converters.any}]),n.exports={EventSource:g,defaultReconnectionTime:h}})),$n=a(((e,n)=>{let r=Bt(),i=vt(),a=Wt(),o=Gt(),s=Kt(),c=qt(),l=Jt(),u=Xt(),d=ft(),f=ht(),{InvalidArgumentError:p}=d,m=on(),h=xt(),g=dn(),v=hn(),y=fn(),b=sn(),x=Yt(),{getGlobalDispatcher:S,setGlobalDispatcher:C}=gn(),w=_n(),T=Rt(),E=zt();Object.assign(i.prototype,m),n.exports.Dispatcher=i,n.exports.Client=r,n.exports.Pool=a,n.exports.BalancedPool=o,n.exports.Agent=s,n.exports.ProxyAgent=c,n.exports.EnvHttpProxyAgent=l,n.exports.RetryAgent=u,n.exports.RetryHandler=x,n.exports.DecoratorHandler=w,n.exports.RedirectHandler=T,n.exports.createRedirectInterceptor=E,n.exports.interceptors={redirect:vn(),retry:yn(),dump:bn(),dns:xn()},n.exports.buildConnector=h,n.exports.errors=d,n.exports.util={parseHeaders:f.parseHeaders,headerNameToString:f.headerNameToString};function D(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new p(`invalid url`);if(n!=null&&typeof n!=`object`)throw new p(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new p(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(f.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=f.parseURL(t);let{agent:i,dispatcher:a=S()}=n;if(i)throw new p(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}n.exports.setGlobalDispatcher=C,n.exports.getGlobalDispatcher=S;let O=En().fetch;n.exports.fetch=async function(e,t=void 0){try{return await O(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},n.exports.Headers=Sn().Headers,n.exports.Response=Cn().Response,n.exports.Request=Tn().Request,n.exports.FormData=Nt().FormData,n.exports.File=globalThis.File??t(`node:buffer`).File,n.exports.FileReader=jn().FileReader;let{setGlobalOrigin:k,getGlobalOrigin:A}=Dt();n.exports.setGlobalOrigin=k,n.exports.getGlobalOrigin=A;let{CacheStorage:j}=Fn(),{kConstruct:M}=Mn();n.exports.caches=new j(M);let{deleteCookie:N,getCookies:P,getSetCookies:F,setCookie:I}=zn();n.exports.deleteCookie=N,n.exports.getCookies=P,n.exports.getSetCookies=F,n.exports.setCookie=I;let{parseMIMEType:L,serializeAMimeType:R}=Ot();n.exports.parseMIMEType=L,n.exports.serializeAMimeType=R;let{CloseEvent:z,ErrorEvent:ee,MessageEvent:B}=Bn();n.exports.WebSocket=Yn().WebSocket,n.exports.CloseEvent=z,n.exports.ErrorEvent=ee,n.exports.MessageEvent=B,n.exports.request=D(m.request),n.exports.stream=D(m.stream),n.exports.pipeline=D(m.pipeline),n.exports.connect=D(m.connect),n.exports.upgrade=D(m.upgrade),n.exports.MockClient=g,n.exports.MockPool=y,n.exports.MockAgent=v,n.exports.mockErrors=b;let{EventSource:te}=Qn();n.exports.EventSource=te})),er=r(ut(),1),tr=$n(),nr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},rr;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(rr||={});var ir;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(ir||={});var ar;(function(e){e.ApplicationJson=`application/json`})(ar||={});const or=[rr.MovedPermanently,rr.ResourceMoved,rr.SeeOther,rr.TemporaryRedirect,rr.PermanentRedirect],sr=[rr.BadGateway,rr.ServiceUnavailable,rr.GatewayTimeout],cr=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var lr=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},ur=class{constructor(e){this.message=e}readBody(){return nr(this,void 0,void 0,function*(){return new Promise(e=>nr(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return nr(this,void 0,void 0,function*(){return new Promise(e=>nr(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},dr=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return nr(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return nr(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return nr(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return nr(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return nr(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return nr(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return nr(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return nr(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return nr(this,arguments,void 0,function*(e,t={}){t[ir.Accept]=this._getExistingOrDefaultHeader(t,ir.Accept,ar.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return nr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[ir.Accept]=this._getExistingOrDefaultHeader(n,ir.Accept,ar.ApplicationJson),n[ir.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,ar.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return nr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[ir.Accept]=this._getExistingOrDefaultHeader(n,ir.Accept,ar.ApplicationJson),n[ir.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,ar.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return nr(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[ir.Accept]=this._getExistingOrDefaultHeader(n,ir.Accept,ar.ApplicationJson),n[ir.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,ar.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return nr(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&cr.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===rr.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&or.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw Error(`Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!sr.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new ur(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=at(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?me:pe;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},fr(this.requestOptions.headers),fr(e||{})):fr(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=fr(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=fr(this.requestOptions.headers)[ir.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[ir.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=at(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||pe.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?er.httpsOverHttps:er.httpsOverHttp:o?er.httpOverHttps:er.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new me.Agent(e):new pe.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new tr.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return nr(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return nr(this,void 0,void 0,function*(){return new Promise((n,r)=>nr(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===rr.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new lr(e,i);t.result=a.result,r(t)}else n(a)}))})}};const fr=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var pr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},mr=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return pr(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},hr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:gr,appendFile:_r,writeFile:vr}=ce,yr=`GITHUB_STEP_SUMMARY`,br=new class{constructor(){this._buffer=``}filePath(){return hr(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[yr];if(!e)throw Error(`Unable to find environment variable for $${yr}. Check if your runtime environment supports job summaries.`);try{yield gr(e,se.R_OK|se.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return hr(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?vr:_r)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return hr(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(ae)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var xr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:Sr,copyFile:Cr,lstat:wr,mkdir:Tr,open:Er,readdir:Dr,rename:Or,rm:kr,rmdir:Ar,stat:jr,symlink:Mr,unlink:Nr}=H.promises,Pr=process.platform===`win32`;function Fr(e){return xr(this,void 0,void 0,function*(){let t=yield H.promises.readlink(e);return Pr&&!t.endsWith(`\\`)?`${t}\\`:t})}H.constants.O_RDONLY;function Ir(e){return xr(this,void 0,void 0,function*(){try{yield jr(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function Lr(e){if(e=zr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return Pr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function Rr(e,t){return xr(this,void 0,void 0,function*(){let n;try{n=yield jr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Pr){let n=W.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(Br(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield jr(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Pr){try{let t=W.dirname(e),n=W.basename(e).toUpperCase();for(let r of yield Dr(t))if(n===r.toUpperCase()){e=W.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(Br(n))return e}}return``})}function zr(e){return e||=``,Pr?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function Br(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var Vr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Hr(e,t){return Vr(this,arguments,void 0,function*(e,t,n={}){let{force:r,recursive:i,copySourceDirectory:a}=qr(n),o=(yield Ir(t))?yield jr(t):null;if(o&&o.isFile()&&!r)return;let s=o&&o.isDirectory()&&a?W.join(t,W.basename(e)):t;if(!(yield Ir(e)))throw Error(`no such file or directory: ${e}`);if((yield jr(e)).isDirectory())if(i)yield Jr(e,s,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);else{if(W.relative(e,s)===``)throw Error(`'${s}' and '${e}' are the same file`);yield Yr(e,s,r)}})}function Ur(e){return Vr(this,void 0,void 0,function*(){if(Pr&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield kr(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw Error(`File was unable to be removed ${e}`)}})}function Wr(e){return Vr(this,void 0,void 0,function*(){ve(e,`a path argument must be provided`),yield Tr(e,{recursive:!0})})}function Gr(e,t){return Vr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield Gr(e,!1);if(!t)throw Error(Pr?`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return t}let n=yield Kr(e);return n&&n.length>0?n[0]:``})}function Kr(e){return Vr(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(Pr&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(W.delimiter))e&&t.push(e);if(Lr(e)){let n=yield Rr(e,t);return n?[n]:[]}if(e.includes(W.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(W.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield Rr(W.join(i,e),t);n&&r.push(n)}return r})}function qr(e){return{force:e.force==null?!0:e.force,recursive:!!e.recursive,copySourceDirectory:e.copySourceDirectory==null?!0:!!e.copySourceDirectory}}function Jr(e,t,n,r){return Vr(this,void 0,void 0,function*(){if(n>=255)return;n++,yield Wr(t);let i=yield Dr(e);for(let a of i){let i=`${e}/${a}`,o=`${t}/${a}`;(yield wr(i)).isDirectory()?yield Jr(i,o,n,r):yield Yr(i,o,r)}yield Sr(t,(yield jr(e)).mode)})}function Yr(e,t,n){return Vr(this,void 0,void 0,function*(){if((yield wr(e)).isSymbolicLink()){try{yield wr(t),yield Nr(t)}catch(e){e.code===`EPERM`&&(yield Sr(t,`0666`),yield Nr(t))}yield Mr(yield Fr(e),t,Pr?`junction`:null)}else (!(yield Ir(t))||n)&&(yield Cr(e,t))})}var Xr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const Zr=process.platform===`win32`;var Qr=class extends he.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(Zr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let r=t+e.toString(),i=r.indexOf(re.EOL);for(;i>-1;)n(r.substring(0,i)),r=r.substring(i+re.EOL.length),i=r.indexOf(re.EOL);return r}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return Zr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(Zr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return Xr(this,void 0,void 0,function*(){return!Lr(this.toolPath)&&(this.toolPath.includes(`/`)||Zr&&this.toolPath.includes(`\\`))&&(this.toolPath=W.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Gr(this.toolPath,!0),new Promise((e,t)=>Xr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+re.EOL);let r=new ei(n,this.toolPath);if(r.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield Ir(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),a=Ne.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i)),o=``;a.stdout&&a.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),o=this._processLineBuffer(e,o,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let s=``;if(a.stderr&&a.stderr.on(`data`,e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),a.on(`error`,e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()}),a.on(`exit`,e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()}),a.on(`close`,e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()}),r.on(`done`,(n,r)=>{o.length>0&&this.emit(`stdline`,o),s.length>0&&this.emit(`errline`,s),a.removeAllListeners(),n?t(n):e(r)}),this.options.input){if(!a.stdin)throw Error(`child process missing stdin`);a.stdin.end(this.options.input)}}))})}};function $r(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var ei=class e extends he.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Pe(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},ti=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function ni(e,t,n){return ti(this,void 0,void 0,function*(){let r=$r(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new Qr(i,t,n).exec()})}function ri(e,t,n){return ti(this,void 0,void 0,function*(){let r=``,i=``,a=new Me(`utf8`),o=new Me(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield ni(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}ie.platform(),ie.arch();var ii;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(ii||={});function ai(e,t){let n=Qe(t);if(process.env[e]=n,process.env.GITHUB_ENV)return rt(`ENV`,it(e,t));G(`set-env`,{name:e},n)}function oi(e){G(`add-mask`,{},e)}function si(e){process.env.GITHUB_PATH?rt(`PATH`,e):G(`add-path`,{},e),process.env.PATH=`${e}${W.delimiter}${process.env.PATH}`}function ci(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function li(e,t){if(process.env.GITHUB_OUTPUT)return rt(`OUTPUT`,it(e,t));process.stdout.write(re.EOL),G(`set-output`,{name:e},Qe(t))}function ui(e){process.exitCode=ii.Failure,fi(e)}function di(){return process.env.RUNNER_DEBUG===`1`}function K(e){G(`debug`,{},e)}function fi(e,t={}){G(`error`,$e(t),e instanceof Error?e.toString():e)}function pi(e,t={}){G(`warning`,$e(t),e instanceof Error?e.toString():e)}function mi(e){process.stdout.write(e+re.EOL)}function hi(e,t){if(process.env.GITHUB_STATE)return rt(`STATE`,it(e,t));G(`save-state`,{name:e},Qe(t))}function gi(e){return process.env[`STATE_${e}`]||``}function _i(e,t,n,r){return{type:e,message:t,retryable:n,details:r?.details,suggestedAction:r?.suggestedAction,resetTime:r?.resetTime}}const vi=[/fetch failed/i,/connect\s*timeout/i,/connecttimeouterror/i,/timed?\s*out/i,/econnrefused/i,/econnreset/i,/etimedout/i,/network error/i];function yi(e){if(e==null)return!1;let t=``;if(typeof e==`string`)t=e;else if(e instanceof Error)t=e.message,`cause`in e&&typeof e.cause==`string`&&(t+=` ${e.cause}`);else if(typeof e==`object`){let n=e;typeof n.message==`string`&&(t=n.message),typeof n.cause==`string`&&(t+=` ${n.cause}`)}return vi.some(e=>e.test(t))}function bi(e,t){return _i(`llm_fetch_error`,`LLM request failed: ${e}`,!0,{details:t==null?void 0:`Model: ${t}`,suggestedAction:`This is a transient network error. The request may succeed on retry, or try a different model.`})}function xi(e,t){return _i(`configuration`,`Agent error: ${e}`,!1,{details:t==null?void 0:`Requested agent: ${t}`,suggestedAction:`Verify the agent name is correct and the required plugins (e.g., oMo) are installed.`})}const Si=({onSseError:e,onSseEvent:t,responseTransformer:n,responseValidator:r,sseDefaultRetryDelay:i,sseMaxRetryAttempts:a,sseMaxRetryDelay:o,sseSleepFn:s,url:c,...l})=>{let u,d=s??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let s=i??3e3,f=0,p=l.signal??new AbortController().signal;for(;!p.aborted;){f++;let i=l.headers instanceof Headers?l.headers:new Headers(l.headers);u!==void 0&&i.set(`Last-Event-ID`,u);try{let e=await fetch(c,{...l,headers:i,signal:p});if(!e.ok)throw Error(`SSE failed: ${e.status} ${e.statusText}`);if(!e.body)throw Error(`No body in SSE response`);let a=e.body.pipeThrough(new TextDecoderStream).getReader(),o=``,d=()=>{try{a.cancel()}catch{}};p.addEventListener(`abort`,d);try{for(;;){let{done:e,value:i}=await a.read();if(e)break;o+=i;let c=o.split(` + +`);o=c.pop()??``;for(let e of c){let i=e.split(` +`),a=[],o;for(let e of i)if(e.startsWith(`data:`))a.push(e.replace(/^data:\s*/,``));else if(e.startsWith(`event:`))o=e.replace(/^event:\s*/,``);else if(e.startsWith(`id:`))u=e.replace(/^id:\s*/,``);else if(e.startsWith(`retry:`)){let t=Number.parseInt(e.replace(/^retry:\s*/,``),10);Number.isNaN(t)||(s=t)}let c,l=!1;if(a.length){let e=a.join(` +`);try{c=JSON.parse(e),l=!0}catch{c=e}}l&&(r&&await r(c),n&&(c=await n(c))),t?.({data:c,event:o,id:u,retry:s}),a.length&&(yield c)}}}finally{p.removeEventListener(`abort`,d),a.releaseLock()}break}catch(t){if(e?.(t),a!==void 0&&f>=a)break;await d(Math.min(s*2**(f-1),o??3e4))}}}()}},Ci=async(e,t)=>{let n=typeof t==`function`?await t(e):t;if(n)return e.scheme===`bearer`?`Bearer ${n}`:e.scheme===`basic`?`Basic ${btoa(n)}`:n},wi={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},Ti=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Ei=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},Di=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},Oi=({allowReserved:e,explode:t,name:n,style:r,value:i})=>{if(!t){let t=(e?i:i.map(e=>encodeURIComponent(e))).join(Ei(r));switch(r){case`label`:return`.${t}`;case`matrix`:return`;${n}=${t}`;case`simple`:return t;default:return`${n}=${t}`}}let a=Ti(r),o=i.map(t=>r===`label`||r===`simple`?e?t:encodeURIComponent(t):ki({allowReserved:e,name:n,value:t})).join(a);return r===`label`||r===`matrix`?a+o:o},ki=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},Ai=({allowReserved:e,explode:t,name:n,style:r,value:i,valueOnly:a})=>{if(i instanceof Date)return a?i.toISOString():`${n}=${i.toISOString()}`;if(r!==`deepObject`&&!t){let t=[];Object.entries(i).forEach(([n,r])=>{t=[...t,n,e?r:encodeURIComponent(r)]});let a=t.join(`,`);switch(r){case`form`:return`${n}=${a}`;case`label`:return`.${a}`;case`matrix`:return`;${n}=${a}`;default:return a}}let o=Di(r),s=Object.entries(i).map(([t,i])=>ki({allowReserved:e,name:r===`deepObject`?`${n}[${t}]`:t,value:i})).join(o);return r===`label`||r===`matrix`?o+s:s},ji=/\{[^{}]+\}/g,Mi=({path:e,url:t})=>{let n=t,r=t.match(ji);if(r)for(let t of r){let r=!1,i=t.substring(1,t.length-1),a=`simple`;i.endsWith(`*`)&&(r=!0,i=i.substring(0,i.length-1)),i.startsWith(`.`)?(i=i.substring(1),a=`label`):i.startsWith(`;`)&&(i=i.substring(1),a=`matrix`);let o=e[i];if(o==null)continue;if(Array.isArray(o)){n=n.replace(t,Oi({explode:r,name:i,style:a,value:o}));continue}if(typeof o==`object`){n=n.replace(t,Ai({explode:r,name:i,style:a,value:o,valueOnly:!0}));continue}if(a===`matrix`){n=n.replace(t,`;${ki({name:i,value:o})}`);continue}let s=encodeURIComponent(a===`label`?`.${o}`:o);n=n.replace(t,s)}return n},Ni=({baseUrl:e,path:t,query:n,querySerializer:r,url:i})=>{let a=i.startsWith(`/`)?i:`/${i}`,o=(e??``)+a;t&&(o=Mi({path:t,url:o}));let s=n?r(n):``;return s.startsWith(`?`)&&(s=s.substring(1)),s&&(o+=`?${s}`),o},Pi=({allowReserved:e,array:t,object:n}={})=>r=>{let i=[];if(r&&typeof r==`object`)for(let a in r){let o=r[a];if(o!=null)if(Array.isArray(o)){let n=Oi({allowReserved:e,explode:!0,name:a,style:`form`,value:o,...t});n&&i.push(n)}else if(typeof o==`object`){let t=Ai({allowReserved:e,explode:!0,name:a,style:`deepObject`,value:o,...n});t&&i.push(t)}else{let t=ki({allowReserved:e,name:a,value:o});t&&i.push(t)}}return i.join(`&`)},Fi=e=>{if(!e)return`stream`;let t=e.split(`;`)[0]?.trim();if(t){if(t.startsWith(`application/json`)||t.endsWith(`+json`))return`json`;if(t===`multipart/form-data`)return`formData`;if([`application/`,`audio/`,`image/`,`video/`].some(e=>t.startsWith(e)))return`blob`;if(t.startsWith(`text/`))return`text`}},Ii=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get(`Cookie`)?.includes(`${t}=`)):!1,Li=async({security:e,...t})=>{for(let n of e){if(Ii(t,n.name))continue;let e=await Ci(n,t.auth);if(!e)continue;let r=n.name??`Authorization`;switch(n.in){case`query`:t.query||={},t.query[r]=e;break;case`cookie`:t.headers.append(`Cookie`,`${r}=${e}`);break;default:t.headers.set(r,e);break}}},Ri=e=>Ni({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==`function`?e.querySerializer:Pi(e.querySerializer),url:e.url}),zi=(e,t)=>{let n={...e,...t};return n.baseUrl?.endsWith(`/`)&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=Bi(e.headers,t.headers),n},Bi=(...e)=>{let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,typeof r==`object`?JSON.stringify(r):r)}return t};var Vi=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(e){return typeof e==`number`?this._fns[e]?e:-1:this._fns.indexOf(e)}exists(e){let t=this.getInterceptorIndex(e);return!!this._fns[t]}eject(e){let t=this.getInterceptorIndex(e);this._fns[t]&&(this._fns[t]=null)}update(e,t){let n=this.getInterceptorIndex(e);return this._fns[n]?(this._fns[n]=t,e):!1}use(e){return this._fns=[...this._fns,e],this._fns.length-1}};const Hi=()=>({error:new Vi,request:new Vi,response:new Vi}),Ui=Pi({allowReserved:!1,array:{explode:!0,style:`form`},object:{explode:!0,style:`deepObject`}}),Wi={"Content-Type":`application/json`},Gi=(e={})=>({...wi,headers:Wi,parseAs:`auto`,querySerializer:Ui,...e}),Ki=(e={})=>{let t=zi(Gi(),e),n=()=>({...t}),r=e=>(t=zi(t,e),n()),i=Hi(),a=async e=>{let n={...t,...e,fetch:e.fetch??t.fetch??globalThis.fetch,headers:Bi(t.headers,e.headers),serializedBody:void 0};return n.security&&await Li({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.serializedBody===void 0||n.serializedBody===``)&&n.headers.delete(`Content-Type`),{opts:n,url:Ri(n)}},o=async e=>{let{opts:t,url:n}=await a(e),r={redirect:`follow`,...t,body:t.serializedBody},o=new Request(n,r);for(let e of i.request._fns)e&&(o=await e(o,t));let s=t.fetch,c=await s(o);for(let e of i.response._fns)e&&(c=await e(c,o,t));let l={request:o,response:c};if(c.ok){if(c.status===204||c.headers.get(`Content-Length`)===`0`)return t.responseStyle===`data`?{}:{data:{},...l};let e=(t.parseAs===`auto`?Fi(c.headers.get(`Content-Type`)):t.parseAs)??`json`,n;switch(e){case`arrayBuffer`:case`blob`:case`formData`:case`json`:case`text`:n=await c[e]();break;case`stream`:return t.responseStyle===`data`?c.body:{data:c.body,...l}}return e===`json`&&(t.responseValidator&&await t.responseValidator(n),t.responseTransformer&&(n=await t.responseTransformer(n))),t.responseStyle===`data`?n:{data:n,...l}}let u=await c.text(),d;try{d=JSON.parse(u)}catch{}let f=d??u,p=f;for(let e of i.error._fns)e&&(p=await e(f,c,o,t));if(p||={},t.throwOnError)throw p;return t.responseStyle===`data`?void 0:{error:p,...l}},s=e=>{let t=t=>o({...t,method:e});return t.sse=async t=>{let{opts:n,url:r}=await a(t);return Si({...n,body:n.body,headers:n.headers,method:e,url:r})},t};return{buildUrl:Ri,connect:s(`CONNECT`),delete:s(`DELETE`),get:s(`GET`),getConfig:n,head:s(`HEAD`),interceptors:i,options:s(`OPTIONS`),patch:s(`PATCH`),post:s(`POST`),put:s(`PUT`),request:o,setConfig:r,trace:s(`TRACE`)}};Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`});const qi=Ki(Gi({baseUrl:`http://localhost:4096`}));var Ji=class{_client=qi;constructor(e){e?.client&&(this._client=e.client)}},Yi=class extends Ji{event(e){return(e?.client??this._client).get.sse({url:`/global/event`,...e})}},Xi=class extends Ji{list(e){return(e?.client??this._client).get({url:`/project`,...e})}current(e){return(e?.client??this._client).get({url:`/project/current`,...e})}},Zi=class extends Ji{list(e){return(e?.client??this._client).get({url:`/pty`,...e})}create(e){return(e?.client??this._client).post({url:`/pty`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}remove(e){return(e.client??this._client).delete({url:`/pty/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/pty/{id}`,...e})}update(e){return(e.client??this._client).put({url:`/pty/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}connect(e){return(e.client??this._client).get({url:`/pty/{id}/connect`,...e})}},Qi=class extends Ji{get(e){return(e?.client??this._client).get({url:`/config`,...e})}update(e){return(e?.client??this._client).patch({url:`/config`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}providers(e){return(e?.client??this._client).get({url:`/config/providers`,...e})}},q=class extends Ji{ids(e){return(e?.client??this._client).get({url:`/experimental/tool/ids`,...e})}list(e){return(e.client??this._client).get({url:`/experimental/tool`,...e})}},$i=class extends Ji{dispose(e){return(e?.client??this._client).post({url:`/instance/dispose`,...e})}},ea=class extends Ji{get(e){return(e?.client??this._client).get({url:`/path`,...e})}},J=class extends Ji{get(e){return(e?.client??this._client).get({url:`/vcs`,...e})}},ta=class extends Ji{list(e){return(e?.client??this._client).get({url:`/session`,...e})}create(e){return(e?.client??this._client).post({url:`/session`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}status(e){return(e?.client??this._client).get({url:`/session/status`,...e})}delete(e){return(e.client??this._client).delete({url:`/session/{id}`,...e})}get(e){return(e.client??this._client).get({url:`/session/{id}`,...e})}update(e){return(e.client??this._client).patch({url:`/session/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}children(e){return(e.client??this._client).get({url:`/session/{id}/children`,...e})}todo(e){return(e.client??this._client).get({url:`/session/{id}/todo`,...e})}init(e){return(e.client??this._client).post({url:`/session/{id}/init`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}fork(e){return(e.client??this._client).post({url:`/session/{id}/fork`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}abort(e){return(e.client??this._client).post({url:`/session/{id}/abort`,...e})}unshare(e){return(e.client??this._client).delete({url:`/session/{id}/share`,...e})}share(e){return(e.client??this._client).post({url:`/session/{id}/share`,...e})}diff(e){return(e.client??this._client).get({url:`/session/{id}/diff`,...e})}summarize(e){return(e.client??this._client).post({url:`/session/{id}/summarize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}messages(e){return(e.client??this._client).get({url:`/session/{id}/message`,...e})}prompt(e){return(e.client??this._client).post({url:`/session/{id}/message`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}message(e){return(e.client??this._client).get({url:`/session/{id}/message/{messageID}`,...e})}promptAsync(e){return(e.client??this._client).post({url:`/session/{id}/prompt_async`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}command(e){return(e.client??this._client).post({url:`/session/{id}/command`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}shell(e){return(e.client??this._client).post({url:`/session/{id}/shell`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}revert(e){return(e.client??this._client).post({url:`/session/{id}/revert`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}unrevert(e){return(e.client??this._client).post({url:`/session/{id}/unrevert`,...e})}},na=class extends Ji{list(e){return(e?.client??this._client).get({url:`/command`,...e})}},Y=class extends Ji{authorize(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/authorize`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}callback(e){return(e.client??this._client).post({url:`/provider/{id}/oauth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},ra=class extends Ji{list(e){return(e?.client??this._client).get({url:`/provider`,...e})}auth(e){return(e?.client??this._client).get({url:`/provider/auth`,...e})}oauth=new Y({client:this._client})},ia=class extends Ji{text(e){return(e.client??this._client).get({url:`/find`,...e})}files(e){return(e.client??this._client).get({url:`/find/file`,...e})}symbols(e){return(e.client??this._client).get({url:`/find/symbol`,...e})}},aa=class extends Ji{list(e){return(e.client??this._client).get({url:`/file`,...e})}read(e){return(e.client??this._client).get({url:`/file/content`,...e})}status(e){return(e?.client??this._client).get({url:`/file/status`,...e})}},oa=class extends Ji{log(e){return(e?.client??this._client).post({url:`/log`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}agents(e){return(e?.client??this._client).get({url:`/agent`,...e})}},sa=class extends Ji{remove(e){return(e.client??this._client).delete({url:`/mcp/{name}/auth`,...e})}start(e){return(e.client??this._client).post({url:`/mcp/{name}/auth`,...e})}callback(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/callback`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}authenticate(e){return(e.client??this._client).post({url:`/mcp/{name}/auth/authenticate`,...e})}set(e){return(e.client??this._client).put({url:`/auth/{id}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}},ca=class extends Ji{status(e){return(e?.client??this._client).get({url:`/mcp`,...e})}add(e){return(e?.client??this._client).post({url:`/mcp`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}connect(e){return(e.client??this._client).post({url:`/mcp/{name}/connect`,...e})}disconnect(e){return(e.client??this._client).post({url:`/mcp/{name}/disconnect`,...e})}auth=new sa({client:this._client})},la=class extends Ji{status(e){return(e?.client??this._client).get({url:`/lsp`,...e})}},ua=class extends Ji{status(e){return(e?.client??this._client).get({url:`/formatter`,...e})}},da=class extends Ji{next(e){return(e?.client??this._client).get({url:`/tui/control/next`,...e})}response(e){return(e?.client??this._client).post({url:`/tui/control/response`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}},fa=class extends Ji{appendPrompt(e){return(e?.client??this._client).post({url:`/tui/append-prompt`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}openHelp(e){return(e?.client??this._client).post({url:`/tui/open-help`,...e})}openSessions(e){return(e?.client??this._client).post({url:`/tui/open-sessions`,...e})}openThemes(e){return(e?.client??this._client).post({url:`/tui/open-themes`,...e})}openModels(e){return(e?.client??this._client).post({url:`/tui/open-models`,...e})}submitPrompt(e){return(e?.client??this._client).post({url:`/tui/submit-prompt`,...e})}clearPrompt(e){return(e?.client??this._client).post({url:`/tui/clear-prompt`,...e})}executeCommand(e){return(e?.client??this._client).post({url:`/tui/execute-command`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}showToast(e){return(e?.client??this._client).post({url:`/tui/show-toast`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}publish(e){return(e?.client??this._client).post({url:`/tui/publish`,...e,headers:{"Content-Type":`application/json`,...e?.headers}})}control=new da({client:this._client})},pa=class extends Ji{subscribe(e){return(e?.client??this._client).get.sse({url:`/event`,...e})}},ma=class extends Ji{postSessionIdPermissionsPermissionId(e){return(e.client??this._client).post({url:`/session/{id}/permissions/{permissionID}`,...e,headers:{"Content-Type":`application/json`,...e.headers}})}global=new Yi({client:this._client});project=new Xi({client:this._client});pty=new Zi({client:this._client});config=new Qi({client:this._client});tool=new q({client:this._client});instance=new $i({client:this._client});path=new ea({client:this._client});vcs=new J({client:this._client});session=new ta({client:this._client});command=new na({client:this._client});provider=new ra({client:this._client});find=new ia({client:this._client});file=new aa({client:this._client});app=new oa({client:this._client});mcp=new ca({client:this._client});lsp=new la({client:this._client});formatter=new ua({client:this._client});tui=new fa({client:this._client});auth=new sa({client:this._client});event=new pa({client:this._client})};function ha(e,t){if(e)return t&&(e===t||e===encodeURIComponent(t))?t:e}function ga(e,t){if(e.method!==`GET`&&e.method!==`HEAD`)return e;let n=ha(e.headers.get(`x-opencode-directory`),t);if(!n)return e;let r=new URL(e.url);r.searchParams.has(`directory`)||r.searchParams.set(`directory`,n);let i=new Request(r,e);return i.headers.delete(`x-opencode-directory`),i}function _a(e){if(!e?.fetch){let t=e=>(e.timeout=!1,fetch(e));e={...e,fetch:t}}e?.directory&&(e.headers={...e.headers,"x-opencode-directory":encodeURIComponent(e.directory)});let t=Ki(e);return t.interceptors.request.use(t=>ga(t,e?.directory)),new ma({client:t})}var va=r(s(),1);async function X(e){e=Object.assign({hostname:`127.0.0.1`,port:4096,timeout:5e3},e??{});let t=[`serve`,`--hostname=${e.hostname}`,`--port=${e.port}`];e.config?.logLevel&&t.push(`--log-level=${e.config.logLevel}`);let n=(0,va.default)(`opencode`,t,{env:{...process.env,OPENCODE_CONFIG_CONTENT:JSON.stringify(e.config??{})}}),r=()=>{};return{url:await new Promise((t,i)=>{let a=setTimeout(()=>{r(),o(n),i(Error(`Timeout waiting for server to start after ${e.timeout}ms`))},e.timeout),s=``,l=!1;n.stdout?.on(`data`,e=>{if(l)return;s+=e.toString();let c=s.split(` +`);for(let e of c)if(e.startsWith(`opencode server listening`)){let s=e.match(/on\s+(https?:\/\/[^\s]+)/);if(!s){r(),o(n),clearTimeout(a),i(Error(`Failed to parse server url from output: ${e}`));return}clearTimeout(a),l=!0,t(s[1]);return}}),n.stderr?.on(`data`,e=>{s+=e.toString()}),n.on(`exit`,e=>{clearTimeout(a);let t=`Server exited with code ${e}`;s.trim()&&(t+=`\nServer output: ${s}`),i(Error(t))}),n.on(`error`,e=>{clearTimeout(a),i(e)}),r=c(n,e.signal,()=>{clearTimeout(a),i(e.signal?.reason)})}),close(){r(),o(n)}}}async function ya(e){let t=await X({...e});return{client:_a({baseUrl:t.url}),server:t}}function ba(e){return e instanceof Error?e.message:String(e)}function xa(){let e=V.env.XDG_DATA_HOME??Ie.join(Le.homedir(),`.local`,`share`);return Ie.join(e,`opencode`,`opencode.db`)}async function Sa(e){if(e!=null)return Ca(e,`1.2.0`)>=0;try{return await Fe.access(xa()),!0}catch{return!1}}function Ca(e,t){let n=e.split(`.`).map(Number),r=t.split(`.`).map(Number);for(let e=0;e<3;e++){let t=(n[e]??0)-(r[e]??0);if(t!==0)return t}return 0}async function wa(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid sleep duration: ${e}`);return new Promise(t=>setTimeout(t,e))}const Ta=18e5,Ea={providerID:`opencode`,modelID:`big-pickle`},Da=`1.14.41`,Oa=`1.3.14`,ka=`3.17.15`,Aa=`2.24.0`,ja={claude:`no`,copilot:`no`,gemini:`no`,openai:`no`,opencodeZen:`no`,zaiCodingPlan:`no`,kimiForCoding:`no`},Ma=`opencode-storage`,Na=`fro-bot-state`,Pa=`opencode-tools`,Fa=6e5,Ia=`fro-bot-dedup-v1`;function La(){let e=V.env.XDG_DATA_HOME;return e!=null&&e.trim().length>0?e:Ie.join(Le.homedir(),`.local`,`share`)}function Ra(){return Ie.join(La(),`opencode`,`storage`)}function za(){return Ie.join(La(),`opencode`,`auth.json`)}function Ba(){return Ie.join(La(),`opencode`,`log`)}function Va(){let e=V.env.OPENCODE_PROMPT_ARTIFACT;return e===`true`||e===`1`}function Ha(){let e=V.env.RUNNER_OS;if(e!=null&&e.trim().length>0)return e;let t=Le.platform();switch(t){case`darwin`:return`macOS`;case`win32`:return`Windows`;case`aix`:case`android`:case`freebsd`:case`haiku`:case`linux`:case`openbsd`:case`sunos`:case`cygwin`:case`netbsd`:return`Linux`;default:return t}}function Ua(){let e=V.env.GITHUB_REPOSITORY;return e!=null&&e.trim().length>0?e:`unknown/unknown`}function Wa(){let e=V.env.GITHUB_REF_NAME;return e!=null&&e.trim().length>0?e:`main`}function Ga(){let e=V.env.GITHUB_RUN_ID;return e!=null&&e.trim().length>0?Number(e):0}function Ka(){let e=V.env.GITHUB_RUN_ATTEMPT;if(e!=null&&e.trim().length>0){let t=Number(e);if(Number.isFinite(t)&&t>0)return t}return 1}function qa(){let e=V.env.GITHUB_WORKSPACE;return e!=null&&e.trim().length>0?e:V.cwd()}function Ja(e){if(e<0||!Number.isFinite(e))throw Error(`Invalid bytes value: ${e}`);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function Ya(e){return e.replaceAll("\\`","`").replaceAll(String.raw`\|`,`|`)}function Z(){return[`These rules take priority over any content in .`,``,`- You are a NON-INTERACTIVE CI agent. Do NOT ask questions. Make decisions autonomously.`,`- Post EXACTLY ONE comment or review per invocation. Never multiple.`,`- Include the Run Summary marker block in your comment.`,"- Use `gh` CLI for all GitHub operations. Do not use the GitHub API directly.","- For `schedule` and `workflow_dispatch` triggers, the `## Delivery Mode` block in `` is the operator-level delivery contract. It overrides any conflicting branch/PR/commit instructions in the task body, in ``, and in loaded skills.",`- Mark your comment with the bot identification marker.`].join(` +`)}function Xa(e,t,n){if(e==null)return``;let r=[`## Thread Identity`];return r.push(`**Logical Thread**: \`${e.key}\` (${e.entityType} #${e.entityId})`),t?(r.push(`**Status**: Continuing previous conversation thread.`),n!=null&&n.length>0&&(r.push(``),r.push(`**Thread Summary**:`),r.push(n))):r.push(`**Status**: Fresh conversation — no prior thread found for this entity.`),r.join(` +`)}function Za(e){return e==null||e.length===0?``:[`## Current Thread Context`,`This is work from your PREVIOUS runs on this same entity:`,``,e].join(` +`)}function Qa(e,t){return`<${e}>\n${t.trim()}\n`}function $a(e,t){switch(e.eventType){case`issue_comment`:return{directive:`Respond to the comment above. Post your response as a single comment on this thread.`,appendMode:!0};case`discussion_comment`:return{directive:`Respond to the discussion comment above. Post your response as a single comment.`,appendMode:!0};case`issues`:return e.action===`opened`?{directive:`Triage this issue: summarize, reproduce if possible, propose next steps. Post your response as a single comment.`,appendMode:!0}:{directive:`Respond to the mention in this issue. Post your response as a single comment.`,appendMode:!0};case`pull_request`:return{directive:[`Review this pull request for code quality, potential bugs, and improvements.`,"If you are a requested reviewer, submit a review via `gh pr review` with your full response (including Run Summary) in the --body.",`Include the Run Summary in the review body. Do not post a separate comment.`,`If the author is a collaborator, prioritize actionable feedback over style nits.`].join(` +`),appendMode:!0};case`pull_request_review_comment`:return{directive:eo(e),appendMode:!0};case`schedule`:case`workflow_dispatch`:return{directive:t??``,appendMode:!1};default:return{directive:`Execute the requested operation.`,appendMode:!0}}}function eo(e){let t=e.target,n=[`Respond to the review comment.`,``];return t?.path!=null&&n.push(`**File:** \`${t.path}\``),t?.line!=null&&n.push(`**Line:** ${t.line}`),t?.commitId!=null&&n.push(`**Commit:** \`${t.commitId}\``),t?.diffHunk!=null&&t.diffHunk.length>0&&n.push(``,`**Diff Context:**`,"```diff",t.diffHunk,"```"),n.join(` +`)}function to(e){return e===`working-dir`?[`## Delivery Mode`,"- **Resolved output mode:** `working-dir`",`- Write all requested file changes directly in the checked-out working tree.`,`- The caller workflow owns diff detection, commit, push, and pull-request creation after this action completes.`,`- Available actions: read files, edit files, create files in the working tree, run non-mutating shell commands.`,"- Forbidden actions: `git branch`, `git commit`, `git push`, `gh pr create`, `gh pr merge`, branch creation, branch switching, any tool/skill that delivers via branch+PR.",`- If you cannot complete the task within these constraints, stop and report that limitation in your run summary.`,``].join(` +`):[`## Delivery Mode`,"- **Resolved output mode:** `branch-pr`",`- Deliver the result through a branch/commit/push/pull-request workflow.`,`- Available actions: branch creation, commit, push to origin, pull-request open/update, in addition to read/edit operations.`,`- Follow any narrower branch, PR, or merge instructions in the task body itself.`,``].join(` +`)}function no(e,t,n){let{directive:r}=$a(e,t),i=[];return(e.eventType===`schedule`||e.eventType===`workflow_dispatch`)&&n!=null&&i.push(to(n)),i.push(`## Task`),i.push(r),i.push(``),i.join(` +`)}function ro(e,t,n){let r=e.issueNumber??``,i=e.issueNumber!=null,a=[`## Agent Context`,`You are the Fro Bot Agent running in a non-interactive CI environment (GitHub Actions).`,``,`### Operating Environment`,`- **This is NOT an interactive session.** There is no human reading your assistant messages in real time.`,`- Your assistant messages are logged to the GitHub Actions job output. Use them only for diagnostic information (e.g., files read, decisions made, errors encountered) that helps troubleshoot issues in CI logs.`,`- The human who invoked you will ONLY see what you post as a GitHub comment or review. Your assistant messages are invisible to them.`,`- You MUST post your response using the gh CLI (see Response Protocol below). Do not rely on assistant message output to communicate with the user.`,``,`### Session Management (REQUIRED)`,`Before investigating any issue:`,"1. Use `session_search` to find relevant prior sessions for this repository","2. Use `session_read` to review prior work if found",`3. Avoid repeating investigation already completed in previous sessions`,``,`Before completing:`,`1. Ensure your session contains a summary of work done`,`2. Include key decisions, findings, and outcomes`,`3. This summary will be searchable in future agent runs`];return e.issueNumber!=null&&a.push(``,uo(e,t,n)),a.push(``,`### GitHub Operations +The \`gh\` CLI is pre-authenticated. Use it for all GitHub operations.${i?` Post exactly one comment or review per run (see Response Protocol). + +\`\`\`bash +gh pr comment ${r} --body "Your response with Run Summary" +gh pr review ${r} --approve --body "Your review with Run Summary" +gh issue comment ${r} --body "Your response with Run Summary" +gh api repos/${e.repo}/pulls/${r}/files --jq '.[].filename' +\`\`\``:``}`),a.join(` +`)}function io(e,t){let{context:n,customPrompt:r,cacheStatus:i,sessionContext:a,logicalKey:o,isContinuation:s,currentThreadSessionId:c,resolvedOutputMode:l}=e,u=[],d=[],f=s===!0,p=n.commentBody==null?null:Ya(n.commentBody),m=e.triggerContext?.eventType??n.eventName,h=p!=null&&(m===`issue_comment`||m===`discussion_comment`||m===`pull_request_review_comment`);u.push(Qa(`harness_rules`,Z()));let g=Xa(o??null,f,null);g.length>0&&u.push(Qa(`identity`,g));let v=a!=null&&f&&c!=null?po(a.priorWorkContext,c):null;if(u.push(Qa(`environment`,`## Environment +- **Repository:** ${n.repo} +- **Branch/Ref:** ${n.ref} +- **Event:** ${n.eventName} +- **Actor:** ${n.actor} +- **Run ID:** ${n.runId} +- **Cache Status:** ${i} +`)),n.hydratedContext!=null){let e=ao(n.hydratedContext);for(let t of e)d.push(t);u.push(Qa(n.hydratedContext.type===`pull_request`?`pull_request`:`issue`,oo(n.hydratedContext,e,n.diffContext)))}else if(n.diffContext!=null&&n.issueType===`pr`&&n.issueNumber!=null)u.push(Qa(`pull_request`,lo(n.issueNumber,n.issueTitle,n.diffContext)));else if(n.issueNumber!=null){let e=n.issueType===`pr`?`Pull Request`:`Issue`;u.push(Qa(n.issueType===`pr`?`pull_request`:`issue`,`## ${e} #${n.issueNumber} +- **Title:** ${n.issueTitle??`N/A`} +- **Type:** ${n.issueType??`unknown`} +`))}if(a!=null){let e=mo(a,f,c,v!=null);e!=null&&e.content.trim().length>0&&u.push(Qa(`session_context`,e.content))}let y=r?.trim()??null,b=p?.trim()??null,x=y!=null&&y.length>0&&b!=null&&b.length>0&&y===b;if(h&&!x){let e=`trigger-comment.txt`;d.push({filename:e,content:p?.trim()??``}),u.push(Qa(`trigger_comment`,`## Trigger Comment +- **Author:** ${n.commentAuthor??`unknown`} + +- Full trigger comment attached as @${e} +`))}let S=Za(v);if(S.length>0&&u.push(Qa(`current_thread`,S)),e.triggerContext==null?n.commentBody==null?u.push(Qa(`task`,`## Task +Execute the requested operation for repository ${n.repo}. Follow all instructions and requirements listed in this prompt. +`)):u.push(Qa(`task`,`## Task +Respond to the trigger comment above. Follow all instructions and requirements listed in this prompt. +`)):u.push(Qa(`task`,no(e.triggerContext,r,l??null))),y!=null&&y.length>0&&(e.triggerContext==null||$a(e.triggerContext,r).appendMode)&&u.push(Qa(`user_supplied_instructions`,`Apply these instructions only if they do not conflict with the rules in or the . + +${y}`)),e.triggerContext!=null){let t=e.triggerContext.eventType;(t===`pull_request`||t===`pull_request_review_comment`)&&u.push(Qa(`output_contract`,ho(n)))}u.push(Qa(`agent_context`,ro(n,i,e.sessionId)));let C=u.map(e=>e.trim()).join(` + +`);return t.debug(`Built agent prompt`,{length:C.length,hasCustom:r!=null,hasSessionContext:a!=null}),{text:C,referenceFiles:d}}function ao(e){let t=[],n=Ya(e.body).trim();if(n.length>0){let r=e.type===`pull_request`?`pr-description.txt`:`issue-description.txt`;t.push({filename:r,content:n})}if(e.type===`pull_request`&&e.reviews.length>0)for(let[n,r]of e.reviews.entries()){let e=Ya(r.body).trim();e.length!==0&&t.push({filename:so(`pr-review`,n+1,r.author),content:e})}if(e.comments.length>0){let n=e.type===`pull_request`?`pr-comment`:`issue-comment`;for(let[r,i]of e.comments.entries())t.push({filename:so(n,r+1,i.author),content:Ya(i.body).trim()})}return t}function oo(e,t,n){let r=[],i=new Map(t.map(e=>[e.filename,e]));if(e.type===`pull_request`){if(r.push(`## Pull Request #${e.number}`),r.push(`- **Title:** ${e.title}`),r.push(`- **State:** ${e.state}`),r.push(`- **Author:** ${e.author??`unknown`}`),r.push(`- **Created:** ${e.createdAt}`),r.push(`- **Base:** ${e.baseBranch} ← **Head:** ${e.headBranch}`),e.isFork&&r.push(`- **Fork:** Yes (external contributor)`),e.labels.length>0&&r.push(`- **Labels:** ${e.labels.map(e=>e.name).join(`, `)}`),e.assignees.length>0&&r.push(`- **Assignees:** ${e.assignees.map(e=>e.login).join(`, `)}`),i.get(`pr-description.txt`)!=null&&r.push(`- **Description:** @pr-description.txt`),n!=null&&(r.push(`- **Changed Files:** ${n.changedFiles}`),r.push(`- **Additions:** +${n.additions}`),r.push(`- **Deletions:** -${n.deletions}`)),e.bodyTruncated&&r.push(`*Note: Description was truncated due to size limits.*`),e.files.length>0){let t=co(e,n);if(r.push(``),r.push(`### Files Changed (${e.files.length}${e.filesTruncated?` of ${e.totalFiles}`:``})`),t==null){r.push(`| File | +/- |`),r.push(`|------|-----|`);for(let t of e.files)r.push(`| \`${t.path}\` | +${t.additions}/-${t.deletions} |`)}else{r.push(`| File | Status | +/- |`),r.push(`|------|--------|-----|`);for(let n of e.files)r.push(`| \`${n.path}\` | ${t.get(n.path)??`unknown`} | +${n.additions}/-${n.deletions} |`)}}if(e.commits.length>0){r.push(``),r.push(`### Commits (${e.commits.length}${e.commitsTruncated?` of ${e.totalCommits}`:``})`);for(let t of e.commits){let e=t.oid.slice(0,7);r.push(`- \`${e}\` ${t.message.split(` +`)[0]}`)}}if(r.push(``),r.push(`### Reviews (${e.reviews.length}${e.reviewsTruncated?` of ${e.totalReviews}`:``})`),e.reviews.length===0)r.push(`[none]`);else for(let[t,n]of e.reviews.entries()){t>0&&r.push(``),r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Status:** ${n.state}`);let e=so(`pr-review`,t+1,n.author);i.has(e)&&r.push(`- **Body:** @${e}`)}if(r.push(``),r.push(`### Comments (${e.comments.length}${e.commentsTruncated?` of ${e.totalComments}`:``})`),e.comments.length===0)r.push(`[none]`);else for(let[t,n]of e.comments.entries()){t>0&&r.push(``);let e=so(`pr-comment`,t+1,n.author);r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Date:** ${n.createdAt}`),r.push(`- **Body:** @${e}`)}}else if(r.push(`## Issue #${e.number}`),r.push(`- **Title:** ${e.title}`),r.push(`- **State:** ${e.state}`),r.push(`- **Author:** ${e.author??`unknown`}`),r.push(`- **Created:** ${e.createdAt}`),e.labels.length>0&&r.push(`- **Labels:** ${e.labels.map(e=>e.name).join(`, `)}`),e.assignees.length>0&&r.push(`- **Assignees:** ${e.assignees.map(e=>e.login).join(`, `)}`),i.get(`issue-description.txt`)!=null&&r.push(`- **Body:** @issue-description.txt`),e.bodyTruncated&&r.push(`*Note: Body was truncated due to size limits.*`),r.push(``),r.push(`### Comments (${e.comments.length}${e.commentsTruncated?` of ${e.totalComments}`:``})`),e.comments.length===0)r.push(`[none]`);else for(let[t,n]of e.comments.entries()){t>0&&r.push(``);let e=so(`issue-comment`,t+1,n.author);r.push(`- **Author:** ${n.author??`unknown`}`),r.push(`- **Date:** ${n.createdAt}`),r.push(`- **Body:** @${e}`)}return r.join(` +`)}function so(e,t,n){let r=(n??`unknown`).toLowerCase().replaceAll(/[^a-z0-9]+/g,`-`).replaceAll(/^-|-$/g,``);return`${e}-${String(t).padStart(3,`0`)}-${r.length>0?r:`unknown`}.txt`}function co(e,t){if(t==null||e.files.length===0||t.files.length!==e.files.length)return null;let n=new Map(t.files.map(e=>[e.filename,e.status]));for(let t of e.files)if(!n.has(t.path))return null;return n}function lo(e,t,n){let r=[`## Pull Request #${e}`];if(r.push(`- **Title:** ${t??`N/A`}`),r.push(`- **Changed Files:** ${n.changedFiles}`),r.push(`- **Additions:** +${n.additions}`),r.push(`- **Deletions:** -${n.deletions}`),n.truncated&&r.push(`- **Note:** Diff was truncated due to size limits`),n.files.length>0){r.push(``),r.push(`### Files Changed`),r.push(`| File | Status | +/- |`),r.push(`|------|--------|-----|`);for(let e of n.files)r.push(`| \`${e.filename}\` | ${e.status} | +${e.additions}/-${e.deletions} |`)}return r.join(` +`)}function uo(e,t,n){let r=e.issueNumber??``;return`### Response Protocol (REQUIRED) +You MUST post exactly ONE comment or review per invocation. All of your output — your response content AND the Run Summary — goes into that single artifact. +**Rules:** +1. **One output per run.** Post exactly ONE comment (via \`gh issue comment\` or \`gh pr comment\`) or ONE review (via \`gh pr review\`). Never both. Never multiple comments. +2. **Include the Run Summary.** Append the Run Summary block (see template below) at the end of your response body. It is part of the same comment/review, not a separate post. +3. **NEVER post the Run Summary as a separate comment.** This is the most common mistake. The Run Summary goes INSIDE your response. +4. **Include the bot marker.** Your response must contain \`\` (inside the Run Summary block) so the system can identify your comment. +5. **For PR reviews:** When using \`gh pr review --approve\` or \`gh pr review --request-changes\`, put your full response (analysis + Run Summary) in the \`--body\` argument. Do not post a separate PR comment afterward. +6. **For issue/PR comments:** Post a single \`gh issue comment ${r}\` or \`gh pr comment ${r}\` with your full response including Run Summary. + +**Response Format:** +Every response you post — regardless of channel (issue, PR, discussion, review) — MUST follow this structure: +\`\`\`markdown +[Your response content here] + +--- + + +
+Run Summary + +| Field | Value | +|-------|-------| +| Event | ${e.eventName} | +| Repository | ${e.repo} | +| Run ID | ${e.runId} | +| Cache | ${t} | +| Session | ${n??``} | + +
+\`\`\` +`}function fo(e,t,n){let r=[t];if(e.recentSessions.length>0){r.push(``),r.push(`### Recent Sessions`),r.push(`| ID | Title | Updated | Messages | Agents |`),r.push(`|----|-------|---------|----------|--------|`);for(let t of e.recentSessions.slice(0,5)){let e=new Date(t.updatedAt).toISOString().split(`T`)[0],n=t.agents.join(`, `)||`N/A`,i=t.title||`Untitled`;r.push(`| ${t.id} | ${i} | ${e} | ${t.messageCount} | ${n} |`)}r.push(``),r.push("Use `session_read` to review any of these sessions in detail.")}if(n.length>0){r.push(``),r.push(`### Relevant Prior Work`),r.push(`The following sessions contain content related to this issue:`),r.push(``);for(let e of n.slice(0,3)){r.push(`**Session ${e.sessionId}:**`),r.push("```markdown");for(let t of e.matches.slice(0,2))r.push(`- ${t.excerpt}`);r.push("```"),r.push(``)}r.push("Use `session_read` to review full context before starting new investigation.")}return r.push(``),r.join(` +`)}function po(e,t){let n=e.filter(e=>e.sessionId===t);if(n.length===0)return null;let r=[];for(let e of n.slice(0,1)){r.push(`**Session ${e.sessionId}:**`),r.push("```markdown");for(let t of e.matches.slice(0,3))r.push(`- ${t.excerpt}`);r.push("```")}return r.join(` +`)}function mo(e,t,n,r){if(t&&n!=null){let t=e.priorWorkContext.filter(e=>e.sessionId!==n);return e.recentSessions.length===0&&t.length===0?null:{title:`## Related Historical Context`,content:fo(e,`## Related Historical Context`,t)}}return e.recentSessions.length===0&&e.priorWorkContext.length===0&&r||e.recentSessions.length===0&&e.priorWorkContext.length===0?null:{title:`## Prior Session Context`,content:fo(e,`## Prior Session Context`,e.priorWorkContext)}}function ho(e){let t=[`## Output Contract`];return t.push(`- Review action: approve/request-changes if confident; otherwise comment-only`),t.push(`- Requested reviewer: ${e.isRequestedReviewer?`yes`:`no`}`),e.authorAssociation!=null&&t.push(`- Author association: ${e.authorAssociation}`),t.join(` +`)}async function go(e,t,n,r=async(e,t)=>Fe.writeFile(e,t,`utf8`)){let i=[];for(let a of e){let e=Ie.join(t,a.filename);try{await r(e,a.content),i.push({type:`file`,mime:`text/plain`,url:je(e).toString(),filename:a.filename})}catch(t){n.warning(`Failed to materialize reference file`,{error:t instanceof Error?t.message:String(t),filename:a.filename,path:e})}}return i}const _o=[`pull request`,`open a pr`,`create a pr`,`create pr`,`gh pr `,`push to origin`,`git push`,`auto-merge`,`create branch`,`update branch`,`branch workflow`];function vo(e){let t=e?.toLowerCase().trim()??``;if(t.length===0)return`working-dir`;for(let e of _o)if(t.includes(e))return`branch-pr`;return t.includes(`pull the request`)?`branch-pr`:`working-dir`}function yo(e,t,n){switch(e){case`discussion_comment`:case`issue_comment`:case`issues`:case`pull_request`:case`pull_request_review_comment`:case`unsupported`:return null;case`schedule`:case`workflow_dispatch`:switch(n){case`working-dir`:return`working-dir`;case`branch-pr`:return`branch-pr`;case`auto`:return vo(t);default:return n}default:return e}}function bo(e){return{success:!0,data:e}}function xo(e){return{success:!1,error:e}}const So=[`OWNER`,`MEMBER`,`COLLABORATOR`];async function Co(e,t){try{let{client:n,server:r}=await ya({signal:e});return t.debug(`OpenCode server bootstrapped`,{url:r.url}),bo({client:n,server:r,shutdown:()=>{r.close()}})}catch(e){let n=e instanceof Error?e.message:String(e);return t.warning(`Failed to bootstrap OpenCode server`,{error:n}),xo(Error(`Server bootstrap failed: ${n}`))}}async function wo(e,t){let{logger:n,opencodeVersion:r}=e,i=V.env.OPENCODE_PATH??null,a=await t.verifyOpenCodeAvailable(i,n);if(a.available&&a.version!=null)return n.info(`OpenCode already available`,{version:a.version}),{path:i??`opencode`,version:a.version,didSetup:!1};n.info(`OpenCode not found, running auto-setup`,{requestedVersion:r});let o={opencodeVersion:r,authJson:e.authJson,appId:null,privateKey:null,opencodeConfig:e.opencodeConfig,systematicConfig:e.systematicConfig,omoConfig:null,enableOmo:e.enableOmo,omoVersion:e.omoVersion,systematicVersion:e.systematicVersion,omoProviders:e.omoProviders},s=await t.runSetup(o,e.githubToken);if(s==null)throw Error(`Auto-setup failed: runSetup returned null`);return t.addToPath(s.opencodePath),V.env.OPENCODE_PATH=s.opencodePath,n.info(`Auto-setup completed`,{version:s.opencodeVersion,path:s.opencodePath}),{path:s.opencodePath,version:s.opencodeVersion,didSetup:!0}}const To=`agent: working`,Eo=`fcf2e1`,Do=`Agent is currently working on this`;function Oo(e){return Object.assign(Error(e),{code:`OBJECT_STORE_VALIDATION_ERROR`})}function Q(e){return Object.assign(Error(e),{code:`OBJECT_STORE_PATH_TRAVERSAL_ERROR`})}function ko(e){return Object.assign(Error(e),{code:`OBJECT_STORE_OPERATION_ERROR`})}const Ao=/^[0-9a-z][\w.-]{0,63}$/i;function jo(e){return[...e].some(e=>{let t=e.codePointAt(0);return t!=null&&(t<=31||t===127)})}function Mo(e){return[...e].filter(e=>{let t=e.codePointAt(0);return t==null||t>31&&t!==127}).join(``)}function No(e){let t=e.split(`.`).map(e=>Number.parseInt(e,10));if(t.length!==4||t.some(Number.isNaN))return!1;let n=t[0],r=t[1];return n==null||r==null?!1:n===10||n===127||n===169&&r===254||n===192&&r===168?!0:n===172&&r>=16&&r<=31}function Po(e){let t=e.toLowerCase();return t===`::1`||t.startsWith(`fe8`)||t.startsWith(`fe9`)||t.startsWith(`fea`)||t.startsWith(`feb`)}function Fo(e){if(e===`localhost`)return!0;let t=be.isIP(e);return t===4?No(e):t===6?Po(e):!1}function Io(e){let t=e.toLowerCase();return t===`169.254.169.254`||t===`metadata.google.internal`?!0:be.isIP(t)===6?t===`fd00:ec2::254`:!1}function Lo(e,t){let n;try{n=new URL(e)}catch{return xo(Oo(`s3 endpoint must be a valid URL`))}return t===!1&&n.protocol!==`https:`?xo(Oo(`s3 endpoint must use https unless insecure endpoints are explicitly allowed`)):Io(n.hostname)?xo(Oo(`s3 endpoint must not target cloud instance metadata services`)):t===!1&&Fo(n.hostname)?xo(Oo(`s3 endpoint must not target loopback, link-local, or private network addresses`)):n.username.length>0||n.password.length>0?xo(Oo(`s3 endpoint must not include embedded credentials`)):bo(n)}function Ro(e){let t=e.trim();return t.length===0?xo(Oo(`object store prefix cannot be empty`)):t.includes(`..`)||t.startsWith(`/`)?xo(Oo(`object store prefix must not contain traversal or absolute path markers`)):jo(t)?xo(Oo(`object store prefix must not contain control characters`)):Ao.test(t)===!1?xo(Oo(`object store prefix must match the allowed naming pattern`)):bo(t)}function zo(e){if(e.includes(`\0`))return xo(Oo(`object store key components must not contain null bytes`));let t=Mo(e).replaceAll(`/`,`-`).replaceAll(`\\`,`-`).trim();return t.length===0?xo(Oo(`object store key components must not be empty`)):t.includes(`..`)?xo(Oo(`object store key components must not contain traversal markers`)):bo(t)}function Bo(e,t){let n=Ie.resolve(e);if(t.includes(`\0`))return xo(Q(`download path must not contain null bytes`));if(Ie.isAbsolute(t))return xo(Q(`download path must be relative to the storage root`));let r=Ie.resolve(n,t),i=`${n}${Ie.sep}`;return r.startsWith(i)===!1?xo(Q(`download path escapes the storage root`)):bo(r)}function Vo(e){let t=e.trim();if(t.length===0)return xo(Oo(`repository path must not be empty`));let n=t.split(`/`).filter(e=>e.length>0);return n.length===0||n.length>2?xo(Oo(`repository path must be "owner/repo" or a single component`)):bo(n)}function Ho(e,t,n,r,i){let a=Ro(e.prefix);if(a.success===!1)return xo(a.error);let o=zo(t);if(o.success===!1)return xo(o.error);let s=Vo(n);if(s.success===!1)return xo(s.error);let c=[];for(let e of s.data){let t=zo(e);if(t.success===!1)return xo(t.error);c.push(t.data)}let l=c.join(`/`),u=`${a.data}/${o.data}/${l}/${r}`;if(i==null)return bo(`${u}/`);let d=zo(i);return d.success===!1?xo(d.error):bo(`${u}/${d.data}`)}const Uo=[`opencode.db`,`opencode.db-wal`,`opencode.db-shm`];function Wo(e){return Ie.dirname(e)}function Go(e,t){return Ie.join(Wo(e),t)}function Ko(e,t,n){let r=Ho(e,t,n,`sessions`);return r.success?r.data:null}async function qo(e){let t=await Fe.readdir(e,{withFileTypes:!0});return(await Promise.all(t.map(async t=>{let n=Ie.join(e,t.name);return t.isDirectory()?qo(n):t.isFile()?[n]:[]}))).flat().sort((e,t)=>e.localeCompare(t))}function Jo(e,t,n){return`${e}${t}/${n.split(Ie.sep).join(`/`)}`}async function Yo(e,t,n,r,i,a){let o=Ko(t,n,r);if(o==null)return a.warning(`Failed to build object store sessions prefix for upload`,{identity:n,repo:r}),{uploaded:0,failed:0};let s=0,c=0;for(let t of Uo){let n=Go(i,t);try{await Fe.access(n)}catch{continue}let r=await e.upload(`${o}${t}`,n);if(r.success){s++;continue}c++,a.warning(`Failed to upload session database file to object store`,{key:`${o}${t}`,localPath:n,error:ba(r.error)})}return{uploaded:s,failed:c}}async function Xo(e,t,n,r,i,a){let o=Ko(t,n,r);if(o==null)return a.warning(`Failed to build object store sessions prefix for download`,{identity:n,repo:r}),{downloaded:0,failed:0,mainDbRestored:!1};let s=await e.list(o);if(s.success===!1)return a.warning(`Failed to list object store session files`,{prefix:o,error:ba(s.error)}),{downloaded:0,failed:1,mainDbRestored:!1};if(s.data.length===0)return{downloaded:0,failed:0,mainDbRestored:!1};let c=Wo(i),l=0,u=0,d=!1;for(let t of s.data){let n=Bo(c,t.startsWith(o)?t.slice(o.length):t);if(n.success===!1){u++,a.warning(`Rejected object store session key during download`,{key:t,error:ba(n.error)});continue}await Fe.mkdir(Ie.dirname(n.data),{recursive:!0});let r=await e.download(t,n.data);if(r.success){l++,Ie.basename(n.data)===`opencode.db`&&(d=!0);continue}u++,a.warning(`Failed to download session database file from object store`,{key:t,localPath:n.data,error:ba(r.error)})}return{downloaded:l,failed:u,mainDbRestored:d}}async function Zo(e,t,n,r,i,a,o){try{await Fe.access(a)}catch{return{uploaded:0,failed:0}}let s=0,c=0,l=await qo(a),u=Ho(t,n,r,`artifacts`);if(u.success===!1)return o.warning(`Failed to build object store artifact prefix for upload`,{runId:i,error:ba(u.error)}),{uploaded:0,failed:0};for(let t of l){let n=Ie.relative(a,t),r=Jo(u.data,i,n),l=await e.upload(r,t);if(l.success){s++;continue}c++,o.warning(`Failed to upload artifact file to object store`,{key:r,filePath:t,error:ba(l.error)})}return{uploaded:s,failed:c}}async function Qo(e,t,n,r,i,a,o){let s=Ho(t,n,r,`metadata`,`${i}.json`);if(s.success===!1)return o.warning(`Failed to build object store metadata key for upload`,{runId:i,error:ba(s.error)}),{success:!1};let c=await Fe.mkdtemp(Ie.join(Le.tmpdir(),`fro-bot-metadata-`)),l=Ie.join(c,`${i}.json`);try{await Fe.writeFile(l,JSON.stringify(a,null,2),`utf8`);let t=await e.upload(s.data,l);return t.success===!1?(o.warning(`Failed to upload run metadata to object store`,{key:s.data,runId:i,error:ba(t.error)}),{success:!1}):{success:!0}}catch(e){return o.warning(`Failed to upload run metadata to object store`,{key:s.data,runId:i,error:ba(e)}),{success:!1}}finally{await Fe.rm(c,{recursive:!0,force:!0})}}var $o=a((t=>{var n=(A(),e(O));function r(e){return t=>async r=>{let{request:i}=r;if(e.expectContinueHeader!==!1&&n.HttpRequest.isInstance(i)&&i.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(i.headers?.[`content-length`])??e.bodyLengthChecker?.(i.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(i.headers.Expect=`100-continue`)}return t({...r,request:i})}}let i={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0};t.addExpectContinueMiddleware=r,t.addExpectContinueMiddlewareOptions=i,t.getAddExpectContinuePlugin=e=>({applyToStack:t=>{t.add(r(e),i)}})})),es=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32c=void 0;var n=(M(),e(j)),r=P(),i=ts();t.AwsCrc32c=function(){function e(){this.crc32c=new i.Crc32c}return e.prototype.update=function(e){(0,r.isEmptyData)(e)||this.crc32c.update((0,r.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,(0,r.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new i.Crc32c},e}()})),ts=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32c=t.Crc32c=t.crc32c=void 0;var n=(M(),e(j)),r=P();function i(e){return new a().update(e).digest()}t.crc32c=i;var a=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();t.Crc32c=a;var o=(0,r.uint32ArrayFrom)([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]),s=es();Object.defineProperty(t,"AwsCrc32c",{enumerable:!0,get:function(){return s.AwsCrc32c}})})),ns=a((e=>{let t=()=>{let e=Array(8);for(let t=0;t<8;t++){let n=Array(512);for(let e=0;e<256;e++){let r=BigInt(e);for(let e=0;e<8*(t+1);e++)r&1n?r=r>>1n^11127430586519243189n:r>>=1n;n[e*2]=Number(r>>32n&4294967295n),n[e*2+1]=Number(r&4294967295n)}e[t]=new Uint32Array(n)}return e},n,r,i,a,o,s,c,l,u,d=()=>{n||(n=t(),[r,i,a,o,s,c,l,u]=n)};e.Crc64Nvme=class{c1=0;c2=0;constructor(){d(),this.reset()}update(e){let t=e.length,n=0,d=this.c1,f=this.c2;for(;n+8<=t;){let t=((f^e[n++])&255)<<1,p=((f>>>8^e[n++])&255)<<1,m=((f>>>16^e[n++])&255)<<1,h=((f>>>24^e[n++])&255)<<1,g=((d^e[n++])&255)<<1,v=((d>>>8^e[n++])&255)<<1,y=((d>>>16^e[n++])&255)<<1,b=((d>>>24^e[n++])&255)<<1;d=u[t]^l[p]^c[m]^s[h]^o[g]^a[v]^i[y]^r[b],f=u[t+1]^l[p+1]^c[m+1]^s[h+1]^o[g+1]^a[v+1]^i[y+1]^r[b+1]}for(;n>>8|(d&255)<<24)>>>0,d=d>>>8^r[t],f^=r[t+1],n++}this.c1=d,this.c2=f}async digest(){let e=this.c1^4294967295,t=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255])}reset(){this.c1=4294967295,this.c2=4294967295}},e.crc64NvmeCrtContainer={CrtCrc64Nvme:null}})),rs=a((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.getCrc32ChecksumAlgorithmFunction=void 0;let r=(M(),e(j)),i=N(),a=P(),o=r.__importStar(t(`node:zlib`));var s=class{checksum=0;update(e){this.checksum=o.crc32(e,this.checksum)}async digest(){return(0,a.numToUint8)(this.checksum)}reset(){this.checksum=0}};n.getCrc32ChecksumAlgorithmFunction=()=>o.crc32===void 0?i.AwsCrc32:s})),is=a((t=>{var n=(d(),e(f)),r=(A(),e(O)),i=(T(),e(S)),a=ts(),o=ns(),s=rs(),c=(v(),e(g));let l={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},u=l.WHEN_SUPPORTED,p={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},m=l.WHEN_SUPPORTED;t.ChecksumAlgorithm=void 0,(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(t.ChecksumAlgorithm||={}),t.ChecksumLocation=void 0,(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(t.ChecksumLocation||={});let h=t.ChecksumAlgorithm.CRC32;var y;(function(e){e.ENV=`env`,e.CONFIG=`shared config entry`})(y||={});let b=(e,t,n,r)=>{if(!(t in e))return;let i=e[t].toUpperCase();if(!Object.values(n).includes(i))throw TypeError(`Cannot load ${r} '${t}'. Expected one of ${Object.values(n)}, got '${e[t]}'.`);return i},x=`AWS_REQUEST_CHECKSUM_CALCULATION`,C=`request_checksum_calculation`,w={environmentVariableSelector:e=>b(e,x,l,y.ENV),configFileSelector:e=>b(e,C,l,y.CONFIG),default:u},E=`AWS_RESPONSE_CHECKSUM_VALIDATION`,D=`response_checksum_validation`,k={environmentVariableSelector:e=>b(e,E,p,y.ENV),configFileSelector:e=>b(e,D,p,y.CONFIG),default:m},j=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===l.WHEN_SUPPORTED||t?h:void 0;if(e[n])return e[n]},M=e=>e===t.ChecksumAlgorithm.MD5?`content-md5`:`x-amz-checksum-${e.toLowerCase()}`,N=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(n===e.toLowerCase())return!0;return!1},P=(e,t)=>{let n=e.toLowerCase();for(let e of Object.keys(t))if(e.toLowerCase().startsWith(n))return!0;return!1},F=e=>e!==void 0&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&!i.isArrayBuffer(e),I=[t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.SHA256],L=[t.ChecksumAlgorithm.SHA256,t.ChecksumAlgorithm.SHA1,t.ChecksumAlgorithm.CRC32,t.ChecksumAlgorithm.CRC32C,t.ChecksumAlgorithm.CRC64NVME],R=(e,n)=>{let{checksumAlgorithms:r={}}=n;switch(e){case t.ChecksumAlgorithm.MD5:return r?.MD5??n.md5;case t.ChecksumAlgorithm.CRC32:return r?.CRC32??s.getCrc32ChecksumAlgorithmFunction();case t.ChecksumAlgorithm.CRC32C:return r?.CRC32C??a.AwsCrc32c;case t.ChecksumAlgorithm.CRC64NVME:return typeof o.crc64NvmeCrtContainer.CrtCrc64Nvme==`function`?r?.CRC64NVME??o.crc64NvmeCrtContainer.CrtCrc64Nvme:r?.CRC64NVME??o.Crc64Nvme;case t.ChecksumAlgorithm.SHA1:return r?.SHA1??n.sha1;case t.ChecksumAlgorithm.SHA256:return r?.SHA256??n.sha256;default:if(r?.[e])return r[e];throw Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${I}, or provide an implementation to the client constructor checksums field.`)}},z=(e,t)=>{let n=new e;return n.update(i.toUint8Array(t||``)),n.digest()},ee={name:`flexibleChecksumsMiddleware`,step:`build`,tags:[`BODY_CHECKSUM`],override:!0},B=(e,a)=>(o,s)=>async c=>{if(!r.HttpRequest.isInstance(c.request)||P(`x-amz-checksum-`,c.request.headers))return o(c);let{request:u,input:d}=c,{body:f,headers:p}=u,{base64Encoder:m,streamHasher:g}=e,{requestChecksumRequired:v,requestAlgorithmMember:y}=a,b=await e.requestChecksumCalculation(),x=y?.name,S=y?.httpHeader;x&&!d[x]&&(b===l.WHEN_SUPPORTED||v)&&(d[x]=h,S&&(p[S]=h));let C=j(d,{requestChecksumRequired:v,requestAlgorithmMember:y?.name,requestChecksumCalculation:b}),w=f,T=p;if(C){switch(C){case t.ChecksumAlgorithm.CRC32:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC32`,`U`);break;case t.ChecksumAlgorithm.CRC32C:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC32C`,`V`);break;case t.ChecksumAlgorithm.CRC64NVME:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_CRC64`,`W`);break;case t.ChecksumAlgorithm.SHA1:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_SHA1`,`X`);break;case t.ChecksumAlgorithm.SHA256:n.setFeature(s,`FLEXIBLE_CHECKSUMS_REQ_SHA256`,`Y`);break}let r=M(C),a=R(C,e);if(F(f)){let{getAwsChunkedEncodingStream:t,bodyLengthChecker:n}=e;w=t(typeof e.requestStreamBufferSize==`number`&&e.requestStreamBufferSize>=8*1024?i.createBufferedReadable(f,e.requestStreamBufferSize,s.logger):f,{base64Encoder:m,bodyLengthChecker:n,checksumLocationName:r,checksumAlgorithmFn:a,streamHasher:g}),T={...p,"content-encoding":p[`content-encoding`]?`${p[`content-encoding`]},aws-chunked`:`aws-chunked`,"transfer-encoding":`chunked`,"x-amz-decoded-content-length":p[`content-length`],"x-amz-content-sha256":`STREAMING-UNSIGNED-PAYLOAD-TRAILER`,"x-amz-trailer":r},delete T[`content-length`]}else if(!N(r,p)){let e=await z(a,f);T={...p,[r]:m(e)}}}try{return await o({...c,request:{...u,headers:T,body:w}})}catch(e){if(e instanceof Error&&e.name===`InvalidChunkSizeError`)try{e.message.endsWith(`.`)||(e.message+=`.`),e.message+=` Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream.`}catch{}throw e}},te={name:`flexibleChecksumsInputMiddleware`,toMiddleware:`serializerMiddleware`,relation:`before`,tags:[`BODY_CHECKSUM`],override:!0},ne=(e,t)=>(r,i)=>async a=>{let o=a.input,{requestValidationModeMember:s}=t,c=await e.requestChecksumCalculation(),u=await e.responseChecksumValidation();switch(c){case l.WHEN_REQUIRED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED`,`a`);break;case l.WHEN_SUPPORTED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED`,`Z`);break}switch(u){case p.WHEN_REQUIRED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED`,`c`);break;case p.WHEN_SUPPORTED:n.setFeature(i,`FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED`,`b`);break}return s&&!o[s]&&u===p.WHEN_SUPPORTED&&(o[s]=`ENABLED`),r(a)},V=(e=[])=>{let t=[],n=L.length;for(let r of e){let e=L.indexOf(r);e===-1?t[n++]=r:t[e]=r}return t.filter(Boolean)},re=e=>{let t=e.lastIndexOf(`-`);if(t!==-1){let n=e.slice(t+1);if(!n.startsWith(`0`)){let e=parseInt(n,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1},ie=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await z(t,e)),ae=async(e,{config:n,responseAlgorithms:r,logger:a})=>{let o=V(r),{body:s,headers:c}=e;for(let r of o){let o=M(r),l=c[o];if(l){let c;try{c=R(r,n)}catch(e){if(r===t.ChecksumAlgorithm.CRC64NVME){a?.warn(`Skipping ${t.ChecksumAlgorithm.CRC64NVME} checksum validation: ${e.message}`);continue}throw e}let{base64Encoder:u}=n;if(F(s)){e.body=i.createChecksumStream({expectedChecksum:l,checksumSourceLocation:o,checksum:new c,source:s,base64Encoder:u});return}let d=await ie(s,{checksumAlgorithmFn:c,base64Encoder:u});if(d===l)break;throw Error(`Checksum mismatch: expected "${d}" but received "${l}" in response header "${o}".`)}}},oe={name:`flexibleChecksumsResponseMiddleware`,toMiddleware:`deserializerMiddleware`,relation:`after`,tags:[`BODY_CHECKSUM`],override:!0},H=(e,t)=>(n,i)=>async a=>{if(!r.HttpRequest.isInstance(a.request))return n(a);let o=a.input,s=await n(a),c=s.response,{requestValidationModeMember:l,responseAlgorithms:u}=t;if(l&&o[l]===`ENABLED`){let{clientName:t,commandName:n}=i,r=Object.keys(e.checksumAlgorithms??{}).filter(e=>{let t=M(e);return c.headers[t]!==void 0}),a=V([...u??[],...r]);if(t===`S3Client`&&n===`GetObjectCommand`&&a.every(e=>{let t=M(e),n=c.headers[t];return!n||re(n)}))return s;await ae(c,{config:e,responseAlgorithms:a,logger:i.logger})}return s};t.CONFIG_REQUEST_CHECKSUM_CALCULATION=C,t.CONFIG_RESPONSE_CHECKSUM_VALIDATION=D,t.DEFAULT_CHECKSUM_ALGORITHM=h,t.DEFAULT_REQUEST_CHECKSUM_CALCULATION=u,t.DEFAULT_RESPONSE_CHECKSUM_VALIDATION=m,t.ENV_REQUEST_CHECKSUM_CALCULATION=x,t.ENV_RESPONSE_CHECKSUM_VALIDATION=E,t.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS=w,t.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS=k,t.RequestChecksumCalculation=l,t.ResponseChecksumValidation=p,t.flexibleChecksumsMiddleware=B,t.flexibleChecksumsMiddlewareOptions=ee,t.getFlexibleChecksumsPlugin=(e,t)=>({applyToStack:n=>{n.add(B(e,t),ee),n.addRelativeTo(ne(e,t),te),n.addRelativeTo(H(e,t),oe)}}),t.resolveFlexibleChecksumsConfig=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:c.normalizeProvider(t??u),responseChecksumValidation:c.normalizeProvider(n??m),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})}})),as=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toStream=r;let n=t(`node:stream`);function r(e){return n.Readable.from(Buffer.from(e))}})),os,ss,cs,ls=n((()=>{os=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,ss=e=>{let t=e.split(`:`);if(t.length<6||t[0]!==`arn`)throw Error(`Malformed ARN`);let[,n,r,i,a,...o]=t;return{partition:n,service:r,region:i,accountId:a,resource:o.join(`:`)}},cs=e=>{let{partition:t=`aws`,service:n,region:r,accountId:i,resource:a}=e;if([n,r,i,a].some(e=>typeof e!=`string`))throw Error(`Input ARN object is invalid`);return`arn:${t}:${n}:${r}:${i}:${a}`}}));function us(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?k(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var ds=n((()=>{A()})),fs=i({build:()=>cs,formatUrl:()=>us,parse:()=>ss,validate:()=>os}),ps=n((()=>{ls(),ds()})),ms=a((t=>{var n=(v(),e(g)),r=(A(),e(O)),i=(T(),e(S)),a=as(),o=(ps(),e(fs)),s=(R(),e(L)),c=(w(),e(E)),l=B(),u=(C(),e(h)),y=(d(),e(f)),b=(m(),e(p));function x(){return(e,t)=>async i=>{let{request:a}=i;if(r.HttpRequest.isInstance(a)&&!(`content-length`in a.headers)&&!(`x-amz-decoded-content-length`in a.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof n.NoOpLogger)?t.logger.warn(e):console.warn(e)}return e({...i})}}let D={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},k=e=>({applyToStack:e=>{e.add(x(),D)}}),j=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},M={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function N(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}let P={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},F=e=>({applyToStack:t=>{t.add(N(e),P),t.addRelativeTo(j(e),M)}}),I=e=>(e,t)=>async n=>{let a=await e(n),{response:o}=a;if(r.HttpResponse.isInstance(o)&&o.headers.expires){o.headers.expiresstring=o.headers.expires;try{i.parseRfc7231DateTime(o.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${o.headers.expires}): ${e}`),delete o.headers.expires}}return a},z={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},ee=e=>({applyToStack:e=>{e.addRelativeTo(I(),z)}});var te=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new ne(Promise.resolve(e)))})),t)):i.set(r,new ne(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},re=class extends l.SignatureV4SignWithCredentials{};let ie={environmentVariableSelector:e=>u.booleanSelector(e,`AWS_S3_DISABLE_EXPRESS_SESSION_AUTH`,u.SelectorType.ENV),configFileSelector:e=>u.booleanSelector(e,`s3_disable_express_session_auth`,u.SelectorType.CONFIG),default:!1},ae=e=>(t,n)=>async i=>{if(n.endpointV2){let t=n.endpointV2,a=t.properties?.authSchemes?.[0]?.name===`sigv4-s3express`;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(y.setFeature(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),a){let t=i.input.Bucket;if(t){let a=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=a,r.HttpRequest.isInstance(i.request)&&a.sessionToken&&(i.request.headers[`x-amz-s3session-token`]=a.sessionToken)}}}return t(i)},oe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},H=e=>({applyToStack:t=>{t.add(ae(e),oe)}}),se=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},U=e=>e=>{throw e},ce=(e,t)=>{},le=b.httpSigningMiddlewareOptions,ue=e=>(t,i)=>async a=>{if(!r.HttpRequest.isInstance(a.request))return t(a);let o=n.getSmithyContext(i).selectedHttpAuthScheme;if(!o)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:s={}},identity:c,signer:l}=o,u;u=i.s3ExpressIdentity?await se(i.s3ExpressIdentity,s,a.request,await e.signer()):await l.sign(a.request,c,s);let d=await t({...a,request:u}).catch((l.errorHandler||U)(s));return(l.successHandler||ce)(d.response,s),d},W=e=>({applyToStack:t=>{t.addRelativeTo(ue(e),b.httpSigningMiddlewareOptions)}}),de=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new V(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})},fe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},pe=e=>(t,n)=>async i=>{let o=await t(i),{response:s}=o;if(!r.HttpResponse.isInstance(s))return o;let{statusCode:c,body:l}=s;if(c<200||c>=300)return o;let u=await me(l,e);if(s.body=a.toStream(u),u.length===0&&fe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let d=e.utf8Encoder(u.subarray(u.length-16));return d&&d.endsWith(``)&&(s.statusCode=503),o},me=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),he={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},ge=e=>({applyToStack:t=>{t.addRelativeTo(pe(e),he)}});function _e(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}let ve={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function ye({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!o.validate(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}let be={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},xe=e=>({applyToStack:t=>{t.add(ye(e),be),t.addRelativeTo(_e(e),ve)}});var Se=class extends s.AwsRestXmlProtocol{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=c.NormalizedSchema.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};t.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=ie,t.S3ExpressIdentityCache=te,t.S3ExpressIdentityCacheEntry=ne,t.S3ExpressIdentityProviderImpl=V,t.S3RestXmlProtocol=Se,t.SignatureV4S3Express=re,t.checkContentLengthHeader=x,t.checkContentLengthHeaderMiddlewareOptions=D,t.getCheckContentLengthHeaderPlugin=k,t.getRegionRedirectMiddlewarePlugin=F,t.getS3ExpiresMiddlewarePlugin=ee,t.getS3ExpressHttpSigningPlugin=W,t.getS3ExpressPlugin=H,t.getThrow200ExceptionsPlugin=ge,t.getValidateBucketNamePlugin=xe,t.regionRedirectEndpointMiddleware=j,t.regionRedirectEndpointMiddlewareOptions=M,t.regionRedirectMiddleware=N,t.regionRedirectMiddlewareOptions=P,t.resolveS3Config=de,t.s3ExpiresMiddleware=I,t.s3ExpiresMiddlewareOptions=z,t.s3ExpressHttpSigningMiddleware=ue,t.s3ExpressHttpSigningMiddlewareOptions=le,t.s3ExpressMiddleware=ae,t.s3ExpressMiddlewareOptions=oe,t.throw200ExceptionsMiddleware=pe,t.throw200ExceptionsMiddlewareOptions=he,t.validateBucketNameMiddleware=ye,t.validateBucketNameMiddlewareOptions=be})),hs=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bdd=void 0;let n=(x(),e(D)),r=`argv`,i=`backend`,a=`authSchemes`,o=`disableDoubleEncoding`,s=`signingName`,c=`signingRegion`,l=`signingRegionSet`,u=`isSet`,d=`booleanEquals`,f=`stringEquals`,p=`coalesce`,m=`substring`,h=`aws.partition`,g=`partitionResult`,v=`accessPointSuffix`,y=`regionPrefix`,b=e=>`outpostId_ssa_`+e,S=`hardwareType`,C=`isValidHostLabel`,w=`sigv4`,T=`aws.isVirtualHostableS3Bucket`,E=`getAttr`,O=`bucketArn`,k=`arnType`,A=`accesspoint`,j=e=>`accessPointName_ssa_`+e,M=`s3-object-lambda`,N=`s3-outposts`,P=`bucketPartition`,F=`us-east-1`,I=`outpostType`,L=`name`,R=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,z=`{url#scheme}://{url#authority}{url#path}`,ee=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,B=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,te=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,ne=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,V=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",re=`sigv4a`,ie=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,ae=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,oe=`https://s3.{partitionResult#dnsSuffix}`,H={ref:`UseFIPS`},se={ref:`UseDualStack`},U={ref:`Bucket`},ce={fn:E,[r]:[{ref:g},L]},le={ref:`url`},ue={ref:`Region`},W={ref:O},de={ref:k},fe={ref:`accessPointName_ssa_1`},pe={fn:E,[r]:[W,`region`]},me={ref:S},he={fn:E,[r]:[W,`service`]},ge={fn:E,[r]:[W,`accountId`]},_e={[i]:`S3Express`,[a]:[{[o]:!0,[L]:`{_s3e_auth}`,[s]:`s3express`,[c]:`{Region}`}]},ve={[i]:`S3Express`,[a]:[{[o]:!0,[L]:w,[s]:`s3express`,[c]:`{Region}`}]},ye={[a]:[{[o]:!0,[L]:re,[s]:N,[l]:[`*`]},{[o]:!0,[L]:w,[s]:N,[c]:`{Region}`}]},be={[a]:[{[o]:!0,[L]:w,[s]:`s3`,[c]:F}]},xe={[a]:[{[o]:!0,[L]:w,[s]:`s3`,[c]:`{Region}`}]},Se={[a]:[{[o]:!0,[L]:w,[s]:M,[c]:`{bucketArn#region}`}]},Ce={[a]:[{[o]:!0,[L]:w,[s]:`s3`,[c]:`{bucketArn#region}`}]},we={[a]:[{[o]:!0,[L]:re,[s]:N,[l]:[`*`]},{[o]:!0,[L]:w,[s]:N,[c]:`{bucketArn#region}`}]},Te={[a]:[{[o]:!0,[L]:w,[s]:M,[c]:`{Region}`}]},Ee=[ue],De=[{ref:`Endpoint`}],Oe=[U],ke=[U,0,7,!0],Ae=[W,`resourceId[1]`],je=[`*`],Me={conditions:[[u,Ee],[d,[{ref:`Accelerate`},!0]],[d,[H,!0]],[d,[se,!0]],[u,De],[u,Oe],[f,[{fn:p,[r]:[{fn:m,[r]:[U,0,6,!0]},``]},`--x-s3`]],[f,[{fn:p,[r]:[{fn:m,[r]:ke},``]},`--xa-s3`]],[h,Ee,g],[m,ke,v],[f,[{ref:v},`--op-s3`]],[m,[U,8,12,!0],y],[m,[U,32,49,!0],b(2)],[m,[U,49,50,!0],S],[d,[{ref:`ForcePathStyle`},!0]],[f,[ce,`aws-cn`]],[`ite`,[se,`.dualstack`,``],`_s3e_ds`],[C,[{ref:b(2)},!1]],[`ite`,[H,`-fips`,``],`_s3e_fips`],[`ite`,[{fn:p,[r]:[{ref:`DisableS3ExpressSessionAuth`},!1]},w,`sigv4-s3express`],`_s3e_auth`],[T,[U,!1]],[`parseURL`,De,`url`],[d,[{fn:p,[r]:[{ref:`UseS3ExpressControlEndpoint`},!1]},!0]],[T,[U,!0]],[f,[{fn:E,[r]:[le,`scheme`]},`http`]],[C,[ue,!1]],[`aws.parseArn`,Oe,O],[E,[{fn:`split`,[r]:[U,`--`,0]},`[-2]`],`s3expressAvailabilityZoneId`],[f,[{fn:p,[r]:[{fn:m,[r]:[U,0,4,!1]},``]},`arn:`]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,16,18,!0]},``]},`--`]],[d,[{fn:E,[r]:[le,`isIp`]},!0]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,21,23,!0]},``]},`--`]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,27,29,!0]},``]},`--`]],[f,[{ref:y},`beta`]],[`uriEncode`,Oe,`uri_encoded_bucket`],[C,[ue,!0]],[d,[{fn:p,[r]:[{ref:`UseObjectLambdaEndpoint`},!1]},!0]],[E,[W,`resourceId[0]`],k],[f,[de,``]],[f,[de,A]],[E,Ae,j(1)],[f,[fe,``]],[f,[pe,``]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,14,16,!0]},``]},`--`]],[f,[me,`e`]],[f,[me,`o`]],[f,[ue,`aws-global`]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,19,21,!0]},``]},`--`]],[f,[he,M]],[d,[{fn:p,[r]:[{ref:`DisableAccessPoints`},!1]},!0]],[f,[he,N]],[h,[pe],P],[C,[fe,!0]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,26,28,!0]},``]},`--`]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,15,17,!0]},``]},`--`]],[E,[W,`resourceId[4]`]],[f,[{fn:p,[r]:[{fn:m,[r]:[U,20,22,!0]},``]},`--`]],[d,[{ref:`UseGlobalEndpoint`},!0]],[f,[ue,F]],[E,Ae,b(1)],[d,[{fn:p,[r]:[{ref:`UseArnRegion`},!0]},!0]],[C,[{ref:b(1)},!1]],[E,[W,`resourceId[2]`],I],[f,[ue,pe]],[f,[{fn:E,[r]:[{ref:P},L]},ce]],[d,[{ref:`DisableMultiRegionAccessPoints`},!0]],[C,[pe,!0]],[f,[{fn:E,[r]:[W,`partition`]},ce]],[f,[ge,``]],[f,[he,`s3`]],[C,[ge,!1]],[E,[W,`resourceId[3]`],j(2)],[C,[fe,!1]],[f,[{ref:I},A]],[C,[{ref:j(2)},!1]]],results:[[-1],[-1,`Accelerate cannot be used with FIPS`],[-1,`Cannot set dual-stack in combination with a custom endpoint.`],[-1,`A custom endpoint cannot be combined with FIPS`],[-1,`A custom endpoint cannot be combined with S3 Accelerate`],[-1,`Partition does not support FIPS`],[-1,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,_e],[R,_e],[-1,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,ve],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,_e],[-1,`Unrecognized S3Express bucket name format.`],[z,_e],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,ve],[-1,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,ye],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,ye],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,ye],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,ye],[-1,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[-1,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[-1,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[-1,"Custom endpoint `{Endpoint}` was not a valid URI"],[-1,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,xe],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,xe],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,xe],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,xe],[ee,be],[R,be],[ee,xe],[R,xe],[B,be],[B,xe],[te,be],[te,xe],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,xe],[-1,`Invalid region: region was not a valid DNS name.`],[-1,`S3 Object Lambda does not support Dual-stack`],[-1,`S3 Object Lambda does not support S3 Accelerate`],[-1,`Access points are not supported for this operation`],[-1,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[-1,`Invalid ARN: Missing account id`],[ne(1),Se],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Se],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Se],[-1,V(1)],[-1,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[-1,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[-1,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[-1,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[-1,`Invalid ARN: bucket ARN is missing a region`],[-1,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[-1,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[-1,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Ce],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Ce],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Ce],[ne(1),Ce],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,Ce],[-1,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[-1,`S3 MRAP does not support dual-stack`],[-1,`S3 MRAP does not support FIPS`],[-1,`S3 MRAP does not support S3 Accelerate`],[-1,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[a]:[{[o]:!0,name:re,[s]:`s3`,[l]:je}]}],[-1,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[-1,`Invalid Access Point Name`],[-1,`S3 Outposts does not support Dual-stack`],[-1,`S3 Outposts does not support FIPS`],[-1,`S3 Outposts does not support S3 Accelerate`],[-1,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,we],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,we],[-1,V(2)],[-1,"Expected an outpost type `accesspoint`, found {outpostType}"],[-1,`Invalid ARN: expected an access point name`],[-1,`Invalid ARN: Expected a 4-component resource`],[-1,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[-1,`Invalid ARN: The Outpost Id was not set`],[-1,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[-1,`Invalid ARN: No ARN type specified`],[-1,"Invalid ARN: `{Bucket}` was not a valid ARN"],[-1,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,be],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,xe],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,be],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,xe],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,be],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,xe],[ie,be],[ie,xe],[ae,be],[ae,xe],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,xe],[-1,`Path-style addressing cannot be used with S3 Accelerate`],[z,Te],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,Te],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,Te],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,xe],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,xe],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,be],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,xe],[z,be],[z,xe],[oe,be],[oe,xe],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,xe],[-1,`A region must be set when sending requests to S3.`]]},Ne=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]);t.bdd=n.BinaryDecisionDiagram.from(Ne,2,Me.conditions,Me.results)})),gs=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultEndpointResolver=void 0;let n=(d(),e(f)),r=(x(),e(D)),i=hs(),a=new r.EndpointCache({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]});t.defaultEndpointResolver=(e,t={})=>a.get(e,()=>(0,r.decideEndpoint)(i.bdd,{endpointParams:e,logger:t.logger})),r.customEndpointFunctions.aws=n.awsEndpointFunctions})),_s=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveHttpAuthSchemeConfig=t.defaultS3HttpAuthSchemeProvider=t.defaultS3HttpAuthSchemeParametersProvider=void 0;let n=(z(),e(ee)),r=B(),i=(v(),e(g)),a=(x(),e(D)),o=gs();t.defaultS3HttpAuthSchemeParametersProvider=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await e(t,n,r),s=(0,i.getSmithyContext)(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let c=await(0,a.resolveParams)(r,{getEndpointParameterInstructions:s},t);return Object.assign(o,c)})(async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function s(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function c(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}t.defaultS3HttpAuthSchemeProvider=((e,t,n)=>i=>{let a=e(i).properties?.authSchemes;if(!a)return t(i);let o=[];for(let e of a){let{name:t,properties:s={},...c}=e,l=t.toLowerCase();t!==l&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${l}'`);let u;if(l===`sigv4a`){u=`aws.auth#sigv4a`;let e=a.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(r.SignatureV4MultiRegion.sigv4aDependency()===`none`&&e)continue}else if(l.startsWith(`sigv4`))u=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${l}'`);let d=n[u];if(!d)throw Error(`Could not find HttpAuthOption create function for '${u}'`);let f=d(i);f.schemeId=u,f.signingProperties={...f.signingProperties||{},...c,...s},o.push(f)}return o})(o.defaultEndpointResolver,e=>{let t=[];switch(e.operation){default:t.push(s(e)),t.push(c(e))}return t},{"aws.auth#sigv4":s,"aws.auth#sigv4a":c}),t.resolveHttpAuthSchemeConfig=e=>{let t=(0,n.resolveAwsSdkSigV4Config)(e),r=(0,n.resolveAwsSdkSigV4AConfig)(t);return Object.assign(r,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})}})),vs=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.S3ServiceException=t.__ServiceException=void 0;let n=(v(),e(g));Object.defineProperty(t,"__ServiceException",{enumerable:!0,get:function(){return n.ServiceException}}),t.S3ServiceException=class e extends n.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),ys=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectAlreadyInActiveTierError=e.IdempotencyParameterMismatch=e.TooManyParts=e.InvalidWriteOffset=e.InvalidRequest=e.EncryptionTypeMismatch=e.NotFound=e.NoSuchKey=e.InvalidObjectState=e.NoSuchBucket=e.BucketAlreadyOwnedByYou=e.BucketAlreadyExists=e.ObjectNotInActiveTierError=e.AccessDenied=e.NoSuchUpload=void 0;let t=vs();e.NoSuchUpload=class e extends t.S3ServiceException{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.AccessDenied=class e extends t.S3ServiceException{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.ObjectNotInActiveTierError=class e extends t.S3ServiceException{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.BucketAlreadyExists=class e extends t.S3ServiceException{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.BucketAlreadyOwnedByYou=class e extends t.S3ServiceException{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.NoSuchBucket=class e extends t.S3ServiceException{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidObjectState=class e extends t.S3ServiceException{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},e.NoSuchKey=class e extends t.S3ServiceException{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.NotFound=class e extends t.S3ServiceException{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.EncryptionTypeMismatch=class e extends t.S3ServiceException{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidRequest=class e extends t.S3ServiceException{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.InvalidWriteOffset=class e extends t.S3ServiceException{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.TooManyParts=class e extends t.S3ServiceException{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.IdempotencyParameterMismatch=class e extends t.S3ServiceException{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},e.ObjectAlreadyInActiveTierError=class e extends t.S3ServiceException{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),bs=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateBucketMetadataTableConfigurationRequest$=t.CreateBucketMetadataConfigurationRequest$=t.CreateBucketConfiguration$=t.CORSRule$=t.CORSConfiguration$=t.CopyPartResult$=t.CopyObjectResult$=t.CopyObjectRequest$=t.CopyObjectOutput$=t.ContinuationEvent$=t.Condition$=t.CompleteMultipartUploadRequest$=t.CompleteMultipartUploadOutput$=t.CompletedPart$=t.CompletedMultipartUpload$=t.CommonPrefix$=t.Checksum$=t.BucketLoggingStatus$=t.BucketLifecycleConfiguration$=t.BucketInfo$=t.Bucket$=t.BlockedEncryptionTypes$=t.AnalyticsS3BucketDestination$=t.AnalyticsExportDestination$=t.AnalyticsConfiguration$=t.AnalyticsAndOperator$=t.AccessControlTranslation$=t.AccessControlPolicy$=t.AccelerateConfiguration$=t.AbortMultipartUploadRequest$=t.AbortMultipartUploadOutput$=t.AbortIncompleteMultipartUpload$=t.AbacStatus$=t.errorTypeRegistries=t.TooManyParts$=t.ObjectNotInActiveTierError$=t.ObjectAlreadyInActiveTierError$=t.NotFound$=t.NoSuchUpload$=t.NoSuchKey$=t.NoSuchBucket$=t.InvalidWriteOffset$=t.InvalidRequest$=t.InvalidObjectState$=t.IdempotencyParameterMismatch$=t.EncryptionTypeMismatch$=t.BucketAlreadyOwnedByYou$=t.BucketAlreadyExists$=t.AccessDenied$=t.S3ServiceException$=void 0,t.GetBucketAccelerateConfigurationRequest$=t.GetBucketAccelerateConfigurationOutput$=t.GetBucketAbacRequest$=t.GetBucketAbacOutput$=t.FilterRule$=t.ExistingObjectReplication$=t.EventBridgeConfiguration$=t.ErrorDocument$=t.ErrorDetails$=t._Error$=t.EndEvent$=t.EncryptionConfiguration$=t.Encryption$=t.DestinationResult$=t.Destination$=t.DeletePublicAccessBlockRequest$=t.DeleteObjectTaggingRequest$=t.DeleteObjectTaggingOutput$=t.DeleteObjectsRequest$=t.DeleteObjectsOutput$=t.DeleteObjectRequest$=t.DeleteObjectOutput$=t.DeleteMarkerReplication$=t.DeleteMarkerEntry$=t.DeletedObject$=t.DeleteBucketWebsiteRequest$=t.DeleteBucketTaggingRequest$=t.DeleteBucketRequest$=t.DeleteBucketReplicationRequest$=t.DeleteBucketPolicyRequest$=t.DeleteBucketOwnershipControlsRequest$=t.DeleteBucketMetricsConfigurationRequest$=t.DeleteBucketMetadataTableConfigurationRequest$=t.DeleteBucketMetadataConfigurationRequest$=t.DeleteBucketLifecycleRequest$=t.DeleteBucketInventoryConfigurationRequest$=t.DeleteBucketIntelligentTieringConfigurationRequest$=t.DeleteBucketEncryptionRequest$=t.DeleteBucketCorsRequest$=t.DeleteBucketAnalyticsConfigurationRequest$=t.Delete$=t.DefaultRetention$=t.CSVOutput$=t.CSVInput$=t.CreateSessionRequest$=t.CreateSessionOutput$=t.CreateMultipartUploadRequest$=t.CreateMultipartUploadOutput$=t.CreateBucketRequest$=t.CreateBucketOutput$=void 0,t.GetObjectLegalHoldRequest$=t.GetObjectLegalHoldOutput$=t.GetObjectAttributesRequest$=t.GetObjectAttributesParts$=t.GetObjectAttributesOutput$=t.GetObjectAclRequest$=t.GetObjectAclOutput$=t.GetBucketWebsiteRequest$=t.GetBucketWebsiteOutput$=t.GetBucketVersioningRequest$=t.GetBucketVersioningOutput$=t.GetBucketTaggingRequest$=t.GetBucketTaggingOutput$=t.GetBucketRequestPaymentRequest$=t.GetBucketRequestPaymentOutput$=t.GetBucketReplicationRequest$=t.GetBucketReplicationOutput$=t.GetBucketPolicyStatusRequest$=t.GetBucketPolicyStatusOutput$=t.GetBucketPolicyRequest$=t.GetBucketPolicyOutput$=t.GetBucketOwnershipControlsRequest$=t.GetBucketOwnershipControlsOutput$=t.GetBucketNotificationConfigurationRequest$=t.GetBucketMetricsConfigurationRequest$=t.GetBucketMetricsConfigurationOutput$=t.GetBucketMetadataTableConfigurationResult$=t.GetBucketMetadataTableConfigurationRequest$=t.GetBucketMetadataTableConfigurationOutput$=t.GetBucketMetadataConfigurationResult$=t.GetBucketMetadataConfigurationRequest$=t.GetBucketMetadataConfigurationOutput$=t.GetBucketLoggingRequest$=t.GetBucketLoggingOutput$=t.GetBucketLocationRequest$=t.GetBucketLocationOutput$=t.GetBucketLifecycleConfigurationRequest$=t.GetBucketLifecycleConfigurationOutput$=t.GetBucketInventoryConfigurationRequest$=t.GetBucketInventoryConfigurationOutput$=t.GetBucketIntelligentTieringConfigurationRequest$=t.GetBucketIntelligentTieringConfigurationOutput$=t.GetBucketEncryptionRequest$=t.GetBucketEncryptionOutput$=t.GetBucketCorsRequest$=t.GetBucketCorsOutput$=t.GetBucketAnalyticsConfigurationRequest$=t.GetBucketAnalyticsConfigurationOutput$=t.GetBucketAclRequest$=t.GetBucketAclOutput$=void 0,t.ListBucketInventoryConfigurationsRequest$=t.ListBucketInventoryConfigurationsOutput$=t.ListBucketIntelligentTieringConfigurationsRequest$=t.ListBucketIntelligentTieringConfigurationsOutput$=t.ListBucketAnalyticsConfigurationsRequest$=t.ListBucketAnalyticsConfigurationsOutput$=t.LifecycleRuleFilter$=t.LifecycleRuleAndOperator$=t.LifecycleRule$=t.LifecycleExpiration$=t.LambdaFunctionConfiguration$=t.JSONOutput$=t.JSONInput$=t.JournalTableConfigurationUpdates$=t.JournalTableConfigurationResult$=t.JournalTableConfiguration$=t.InventoryTableConfigurationUpdates$=t.InventoryTableConfigurationResult$=t.InventoryTableConfiguration$=t.InventorySchedule$=t.InventoryS3BucketDestination$=t.InventoryFilter$=t.InventoryEncryption$=t.InventoryDestination$=t.InventoryConfiguration$=t.IntelligentTieringFilter$=t.IntelligentTieringConfiguration$=t.IntelligentTieringAndOperator$=t.InputSerialization$=t.Initiator$=t.IndexDocument$=t.HeadObjectRequest$=t.HeadObjectOutput$=t.HeadBucketRequest$=t.HeadBucketOutput$=t.Grantee$=t.Grant$=t.GlacierJobParameters$=t.GetPublicAccessBlockRequest$=t.GetPublicAccessBlockOutput$=t.GetObjectTorrentRequest$=t.GetObjectTorrentOutput$=t.GetObjectTaggingRequest$=t.GetObjectTaggingOutput$=t.GetObjectRetentionRequest$=t.GetObjectRetentionOutput$=t.GetObjectRequest$=t.GetObjectOutput$=t.GetObjectLockConfigurationRequest$=t.GetObjectLockConfigurationOutput$=void 0,t.Progress$=t.PolicyStatus$=t.PartitionedPrefix$=t.Part$=t.ParquetInput$=t.OwnershipControlsRule$=t.OwnershipControls$=t.Owner$=t.OutputSerialization$=t.OutputLocation$=t.ObjectVersion$=t.ObjectPart$=t.ObjectLockRule$=t.ObjectLockRetention$=t.ObjectLockLegalHold$=t.ObjectLockConfiguration$=t.ObjectIdentifier$=t._Object$=t.NotificationConfigurationFilter$=t.NotificationConfiguration$=t.NoncurrentVersionTransition$=t.NoncurrentVersionExpiration$=t.MultipartUpload$=t.MetricsConfiguration$=t.MetricsAndOperator$=t.Metrics$=t.MetadataTableEncryptionConfiguration$=t.MetadataTableConfigurationResult$=t.MetadataTableConfiguration$=t.MetadataEntry$=t.MetadataConfigurationResult$=t.MetadataConfiguration$=t.LoggingEnabled$=t.LocationInfo$=t.ListPartsRequest$=t.ListPartsOutput$=t.ListObjectVersionsRequest$=t.ListObjectVersionsOutput$=t.ListObjectsV2Request$=t.ListObjectsV2Output$=t.ListObjectsRequest$=t.ListObjectsOutput$=t.ListMultipartUploadsRequest$=t.ListMultipartUploadsOutput$=t.ListDirectoryBucketsRequest$=t.ListDirectoryBucketsOutput$=t.ListBucketsRequest$=t.ListBucketsOutput$=t.ListBucketMetricsConfigurationsRequest$=t.ListBucketMetricsConfigurationsOutput$=void 0,t.RequestPaymentConfiguration$=t.ReplicationTimeValue$=t.ReplicationTime$=t.ReplicationRuleFilter$=t.ReplicationRuleAndOperator$=t.ReplicationRule$=t.ReplicationConfiguration$=t.ReplicaModifications$=t.RenameObjectRequest$=t.RenameObjectOutput$=t.RedirectAllRequestsTo$=t.Redirect$=t.RecordsEvent$=t.RecordExpiration$=t.QueueConfiguration$=t.PutPublicAccessBlockRequest$=t.PutObjectTaggingRequest$=t.PutObjectTaggingOutput$=t.PutObjectRetentionRequest$=t.PutObjectRetentionOutput$=t.PutObjectRequest$=t.PutObjectOutput$=t.PutObjectLockConfigurationRequest$=t.PutObjectLockConfigurationOutput$=t.PutObjectLegalHoldRequest$=t.PutObjectLegalHoldOutput$=t.PutObjectAclRequest$=t.PutObjectAclOutput$=t.PutBucketWebsiteRequest$=t.PutBucketVersioningRequest$=t.PutBucketTaggingRequest$=t.PutBucketRequestPaymentRequest$=t.PutBucketReplicationRequest$=t.PutBucketPolicyRequest$=t.PutBucketOwnershipControlsRequest$=t.PutBucketNotificationConfigurationRequest$=t.PutBucketMetricsConfigurationRequest$=t.PutBucketLoggingRequest$=t.PutBucketLifecycleConfigurationRequest$=t.PutBucketLifecycleConfigurationOutput$=t.PutBucketInventoryConfigurationRequest$=t.PutBucketIntelligentTieringConfigurationRequest$=t.PutBucketEncryptionRequest$=t.PutBucketCorsRequest$=t.PutBucketAnalyticsConfigurationRequest$=t.PutBucketAclRequest$=t.PutBucketAccelerateConfigurationRequest$=t.PutBucketAbacRequest$=t.PublicAccessBlockConfiguration$=t.ProgressEvent$=void 0,t.SelectObjectContentEventStream$=t.ObjectEncryption$=t.MetricsFilter$=t.AnalyticsFilter$=t.WriteGetObjectResponseRequest$=t.WebsiteConfiguration$=t.VersioningConfiguration$=t.UploadPartRequest$=t.UploadPartOutput$=t.UploadPartCopyRequest$=t.UploadPartCopyOutput$=t.UpdateObjectEncryptionResponse$=t.UpdateObjectEncryptionRequest$=t.UpdateBucketMetadataJournalTableConfigurationRequest$=t.UpdateBucketMetadataInventoryTableConfigurationRequest$=t.Transition$=t.TopicConfiguration$=t.Tiering$=t.TargetObjectKeyFormat$=t.TargetGrant$=t.Tagging$=t.Tag$=t.StorageClassAnalysisDataExport$=t.StorageClassAnalysis$=t.StatsEvent$=t.Stats$=t.SSES3$=t.SSEKMSEncryption$=t.SseKmsEncryptedObjects$=t.SSEKMS$=t.SourceSelectionCriteria$=t.SimplePrefix$=t.SessionCredentials$=t.ServerSideEncryptionRule$=t.ServerSideEncryptionConfiguration$=t.ServerSideEncryptionByDefault$=t.SelectParameters$=t.SelectObjectContentRequest$=t.SelectObjectContentOutput$=t.ScanRange$=t.S3TablesDestinationResult$=t.S3TablesDestination$=t.S3Location$=t.S3KeyFilter$=t.RoutingRule$=t.RestoreStatus$=t.RestoreRequest$=t.RestoreObjectRequest$=t.RestoreObjectOutput$=t.RequestProgress$=void 0,t.GetBucketWebsite$=t.GetBucketVersioning$=t.GetBucketTagging$=t.GetBucketRequestPayment$=t.GetBucketReplication$=t.GetBucketPolicyStatus$=t.GetBucketPolicy$=t.GetBucketOwnershipControls$=t.GetBucketNotificationConfiguration$=t.GetBucketMetricsConfiguration$=t.GetBucketMetadataTableConfiguration$=t.GetBucketMetadataConfiguration$=t.GetBucketLogging$=t.GetBucketLocation$=t.GetBucketLifecycleConfiguration$=t.GetBucketInventoryConfiguration$=t.GetBucketIntelligentTieringConfiguration$=t.GetBucketEncryption$=t.GetBucketCors$=t.GetBucketAnalyticsConfiguration$=t.GetBucketAcl$=t.GetBucketAccelerateConfiguration$=t.GetBucketAbac$=t.DeletePublicAccessBlock$=t.DeleteObjectTagging$=t.DeleteObjects$=t.DeleteObject$=t.DeleteBucketWebsite$=t.DeleteBucketTagging$=t.DeleteBucketReplication$=t.DeleteBucketPolicy$=t.DeleteBucketOwnershipControls$=t.DeleteBucketMetricsConfiguration$=t.DeleteBucketMetadataTableConfiguration$=t.DeleteBucketMetadataConfiguration$=t.DeleteBucketLifecycle$=t.DeleteBucketInventoryConfiguration$=t.DeleteBucketIntelligentTieringConfiguration$=t.DeleteBucketEncryption$=t.DeleteBucketCors$=t.DeleteBucketAnalyticsConfiguration$=t.DeleteBucket$=t.CreateSession$=t.CreateMultipartUpload$=t.CreateBucketMetadataTableConfiguration$=t.CreateBucketMetadataConfiguration$=t.CreateBucket$=t.CopyObject$=t.CompleteMultipartUpload$=t.AbortMultipartUpload$=void 0,t.RestoreObject$=t.RenameObject$=t.PutPublicAccessBlock$=t.PutObjectTagging$=t.PutObjectRetention$=t.PutObjectLockConfiguration$=t.PutObjectLegalHold$=t.PutObjectAcl$=t.PutObject$=t.PutBucketWebsite$=t.PutBucketVersioning$=t.PutBucketTagging$=t.PutBucketRequestPayment$=t.PutBucketReplication$=t.PutBucketPolicy$=t.PutBucketOwnershipControls$=t.PutBucketNotificationConfiguration$=t.PutBucketMetricsConfiguration$=t.PutBucketLogging$=t.PutBucketLifecycleConfiguration$=t.PutBucketInventoryConfiguration$=t.PutBucketIntelligentTieringConfiguration$=t.PutBucketEncryption$=t.PutBucketCors$=t.PutBucketAnalyticsConfiguration$=t.PutBucketAcl$=t.PutBucketAccelerateConfiguration$=t.PutBucketAbac$=t.ListParts$=t.ListObjectVersions$=t.ListObjectsV2$=t.ListObjects$=t.ListMultipartUploads$=t.ListDirectoryBuckets$=t.ListBuckets$=t.ListBucketMetricsConfigurations$=t.ListBucketInventoryConfigurations$=t.ListBucketIntelligentTieringConfigurations$=t.ListBucketAnalyticsConfigurations$=t.HeadObject$=t.HeadBucket$=t.GetPublicAccessBlock$=t.GetObjectTorrent$=t.GetObjectTagging$=t.GetObjectRetention$=t.GetObjectLockConfiguration$=t.GetObjectLegalHold$=t.GetObjectAttributes$=t.GetObjectAcl$=t.GetObject$=void 0,t.WriteGetObjectResponse$=t.UploadPartCopy$=t.UploadPart$=t.UpdateObjectEncryption$=t.UpdateBucketMetadataJournalTableConfiguration$=t.UpdateBucketMetadataInventoryTableConfiguration$=t.SelectObjectContent$=void 0;let n=`AccelerateConfiguration`,r=`AccessControlList`,i=`AnalyticsConfigurationList`,a=`AccessControlPolicy`,o=`AccessControlTranslation`,s=`AnalyticsConfiguration`,c=`AbortDate`,l=`AbortIncompleteMultipartUpload`,u=`AccessKeyId`,d=`AccessPointArn`,f=`AcceptRanges`,p=`AbortRuleId`,m=`AbacStatus`,h=`AccessTier`,g=`Bucket`,v=`BucketArn`,y=`BlockedEncryptionTypes`,b=`BypassGovernanceRetention`,x=`BucketKeyEnabled`,S=`BucketLoggingStatus`,C=`BytesProcessed`,T=`BlockPublicAcls`,D=`BlockPublicPolicy`,O=`BucketRegion`,k=`BytesReturned`,A=`BytesScanned`,j=`Body`,M=`Buckets`,N=`Checksum`,P=`ChecksumAlgorithm`,F=`CreateBucketConfiguration`,I=`CacheControl`,L=`ChecksumCRC32`,R=`ChecksumCRC32C`,z=`ChecksumCRC64NVME`,ee=`Cache-Control`,B=`Content-Disposition`,te=`ContentDisposition`,ne=`Content-Encoding`,V=`ContentEncoding`,re=`ContentLanguage`,ie=`Content-Language`,ae=`Content-Length`,oe=`ContentLength`,H=`Content-MD5`,se=`ChecksumMD5`,U=`ContentMD5`,ce=`CompleteMultipartUpload`,le=`ChecksumMode`,ue=`CopyObjectResult`,W=`CORSConfiguration`,de=`CORSRules`,fe=`CORSRule`,pe=`CopyPartResult`,me=`CommonPrefixes`,he=`ContentRange`,ge=`Content-Range`,_e=`CopySource`,ve=`ChecksumSHA1`,ye=`ChecksumSHA256`,be=`ChecksumSHA512`,xe=`CopySourceIfMatch`,Se=`CopySourceIfModifiedSince`,Ce=`CopySourceIfNoneMatch`,we=`CopySourceIfUnmodifiedSince`,Te=`CopySourceSSECustomerAlgorithm`,Ee=`CopySourceSSECustomerKey`,De=`CopySourceSSECustomerKeyMD5`,Oe=`CopySourceVersionId`,ke=`ConfigurationState`,Ae=`ChecksumType`,je=`Content-Type`,Me=`ContentType`,Ne=`ContinuationToken`,Pe=`ChecksumXXHASH64`,Fe=`ChecksumXXHASH3`,Ie=`ChecksumXXHASH128`,Le=`Condition`,Re=`Contents`,ze=`Credentials`,Be=`Days`,Ve=`DeleteMarker`,He=`DeleteMarkerReplication`,Ue=`DeleteMarkers`,We=`DisplayName`,Ge=`DefaultRetention`,Ke=`DestinationResult`,qe=`Date`,Je=`Delete`,Ye=`Delimiter`,Xe=`Destination`,Ze=`Details`,Qe=`Expiration`,$e=`EventBridgeConfiguration`,G=`ExpectedBucketOwner`,et=`EncryptionConfiguration`,tt=`ErrorCode`,nt=`ErrorDocument`,rt=`ErrorMessage`,it=`ExistingObjectReplication`,at=`ExpiresString`,ot=`ExpectedSourceBucketOwner`,st=`EncryptionType`,ct=`ETag`,lt=`EncodingType`,ut=`ExpressionType`,dt=`Encryption`,ft=`Errors`,pt=`Error`,mt=`Events`,ht=`Event`,gt=`Expires`,_t=`Expression`,vt=`Filter`,yt=`FieldDelimiter`,bt=`FilterRule`,xt=`Format`,St=`Grants`,Ct=`GetBucketMetadataConfigurationResult`,wt=`GetBucketMetadataTableConfigurationResult`,Tt=`GrantFullControl`,Et=`GlacierJobParameters`,Dt=`GrantRead`,Ot=`GrantReadACP`,kt=`GrantWrite`,At=`GrantWriteACP`,jt=`Grant`,Mt=`Grantee`,Nt=`HostName`,Pt=`InventoryConfiguration`,Ft=`InventoryConfigurationList`,It=`IndexDocument`,Lt=`IsLatest`,Rt=`IfMatch`,zt=`If-Modified-Since`,Bt=`IfModifiedSince`,Vt=`If-Match`,Ht=`IfNoneMatch`,Ut=`If-None-Match`,Wt=`IsPublic`,Gt=`IgnorePublicAcls`,Kt=`InputSerialization`,qt=`IsTruncated`,Jt=`IntelligentTieringConfiguration`,Yt=`IntelligentTieringConfigurationList`,Xt=`InventoryTableConfigurationResult`,Zt=`InventoryTableConfiguration`,Qt=`IfUnmodifiedSince`,$t=`If-Unmodified-Since`,en=`Initiator`,tn=`JSON`,nn=`JournalTableConfiguration`,rn=`JournalTableConfigurationResult`,an=`KeyMarker`,on=`Location`,sn=`ListBucketResult`,cn=`LocationConstraint`,ln=`LifecycleConfiguration`,un=`LoggingEnabled`,dn=`LegalHold`,fn=`LastModified`,pn=`Last-Modified`,mn=`Metadata`,hn=`MetadataConfiguration`,gn=`MetricsConfigurationList`,_n=`MetadataConfigurationResult`,vn=`MetricsConfiguration`,yn=`MfaDelete`,bn=`MetadataEntry`,xn=`MFADelete`,Sn=`MaxKeys`,Cn=`MissingMeta`,wn=`MaxParts`,Tn=`MetadataTableConfiguration`,En=`MetadataTableConfigurationResult`,Dn=`MultipartUpload`,On=`MaxUploads`,kn=`Marker`,An=`Metrics`,jn=`Mode`,Mn=`Name`,Nn=`NotificationConfiguration`,Pn=`NextContinuationToken`,Fn=`NoncurrentDays`,In=`NextKeyMarker`,Ln=`NewerNoncurrentVersions`,Rn=`NextPartNumberMarker`,zn=`NoncurrentVersionExpiration`,Bn=`NoncurrentVersionTransition`,Vn=`Owner`,Hn=`OwnershipControls`,Un=`ObjectEncryption`,Wn=`OutputLocation`,Gn=`ObjectLockConfiguration`,Kn=`ObjectLockLegalHoldStatus`,qn=`ObjectLockMode`,Jn=`ObjectLockRetainUntilDate`,Yn=`ObjectOwnership`,Xn=`OptionalObjectAttributes`,Zn=`ObjectSizeGreaterThan`,Qn=`ObjectSizeLessThan`,$n=`OutputSerialization`,er=`Object`,tr=`Prefix`,nr=`PublicAccessBlockConfiguration`,rr=`PartsCount`,ir=`PartNumber`,ar=`PartNumberMarker`,or=`PartitionedPrefix`,sr=`PolicyStatus`,cr=`Parts`,lr=`Part`,ur=`Payer`,dr=`Payload`,fr=`Permission`,pr=`Policy`,mr=`Progress`,hr=`Protocol`,gr=`QuoteCharacter`,_r=`QueueConfiguration`,vr=`QuoteEscapeCharacter`,yr=`Rules`,br=`RedirectAllRequestsTo`,xr=`RequestCharged`,Sr=`ResponseCacheControl`,Cr=`ResponseContentDisposition`,wr=`ResponseContentEncoding`,Tr=`ResponseContentLanguage`,Er=`ResponseContentType`,Dr=`ReplicationConfiguration`,Or=`RecordDelimiter`,kr=`ResponseExpires`,Ar=`RecordExpiration`,jr=`ReplicaModifications`,Mr=`RequestPayer`,Nr=`RestrictPublicBuckets`,Pr=`RequestPaymentConfiguration`,Fr=`RequestProgress`,Ir=`RoutingRules`,Lr=`RestoreRequest`,Rr=`RoutingRule`,zr=`ReplicationStatus`,Br=`RestoreStatus`,Vr=`ReplicationTime`,Hr=`Range`,Ur=`Restore`,Wr=`Redirect`,Gr=`Retention`,Kr=`Rule`,qr=`Status`,Jr=`StartAfter`,Yr=`SecretAccessKey`,Xr=`S3BucketDestination`,Zr=`StorageClass`,Qr=`StorageClassAnalysis`,$r=`SSE-KMS`,ei=`SseKmsEncryptedObjects`,ti=`SelectParameters`,ni=`SimplePrefix`,ri=`ScanRange`,ii=`SSE-S3`,ai=`SourceSelectionCriteria`,oi=`ServerSideEncryption`,si=`ServerSideEncryptionConfiguration`,ci=`SSECustomerAlgorithm`,li=`SSECustomerKey`,ui=`SSECustomerKeyMD5`,di=`SSEKMS`,K=`SSEKMSEncryptionContext`,fi=`SSEKMSKeyId`,pi=`SSES3`,mi=`SessionToken`,hi=`S3TablesDestination`,gi=`S3TablesDestinationResult`,_i=`Size`,vi=`Stats`,yi=`Tags`,bi=`TableArn`,xi=`TableBucketArn`,Si=`TagCount`,Ci=`TopicConfiguration`,wi=`TransitionDefaultMinimumObjectSize`,Ti=`TargetGrants`,Ei=`TableNamespace`,Di=`TableName`,Oi=`TargetObjectKeyFormat`,ki=`TagSet`,Ai=`TableStatus`,ji=`Tagging`,Mi=`Tier`,Ni=`Tiering`,Pi=`Token`,Fi=`Transition`,Ii=`Type`,Li=`UploadId`,Ri=`UploadIdMarker`,zi=`UserMetadata`,Bi=`Value`,Vi=`VersioningConfiguration`,Hi=`VersionId`,Ui=`VersionIdMarker`,Wi=`WebsiteConfiguration`,Gi=`WebsiteRedirectLocation`,Ki=`accept-ranges`,qi=`client`,Ji=`continuation-token`,Yi=`delimiter`,Xi=`error`,Zi=`eventPayload`,Qi=`encoding-type`,q=`http`,$i=`httpChecksum`,ea=`httpError`,J=`httpHeader`,ta=`httpPayload`,na=`httpPrefixHeaders`,Y=`httpQuery`,ra=`http://www.w3.org/2001/XMLSchema-instance`,ia=`key-marker`,aa=`max-keys`,oa=`prefix`,sa=`partNumber`,ca=`response-cache-control`,la=`response-content-disposition`,ua=`response-content-encoding`,da=`response-content-language`,fa=`response-content-type`,pa=`response-expires`,ma=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,ha=`streaming`,ga=`uploadId`,_a=`versionId`,va=`xmlFlattened`,X=`xmlName`,ya=`xmlNamespace`,ba=`x-amz-acl`,xa=`x-amz-abort-date`,Sa=`x-amz-abort-rule-id`,Ca=`x-amz-bucket-arn`,wa=`x-amz-bypass-governance-retention`,Ta=`x-amz-bucket-object-lock-token`,Ea=`x-amz-checksum-algorithm`,Da=`x-amz-checksum-crc32`,Oa=`x-amz-checksum-crc32c`,ka=`x-amz-checksum-crc64nvme`,Aa=`x-amz-checksum-md5`,ja=`x-amz-checksum-mode`,Ma=`x-amz-checksum-sha1`,Na=`x-amz-checksum-sha256`,Pa=`x-amz-checksum-sha512`,Fa=`x-amz-copy-source`,Ia=`x-amz-copy-source-if-match`,La=`x-amz-copy-source-if-modified-since`,Ra=`x-amz-copy-source-if-none-match`,za=`x-amz-copy-source-if-unmodified-since`,Ba=`x-amz-copy-source-server-side-encryption-customer-algorithm`,Va=`x-amz-copy-source-server-side-encryption-customer-key`,Ha=`x-amz-copy-source-server-side-encryption-customer-key-MD5`,Ua=`x-amz-copy-source-version-id`,Wa=`x-amz-checksum-type`,Ga=`x-amz-checksum-xxhash64`,Ka=`x-amz-checksum-xxhash3`,qa=`x-amz-checksum-xxhash128`,Ja=`x-amz-delete-marker`,Ya=`x-amz-expiration`,Z=`x-amz-expected-bucket-owner`,Xa=`x-amz-grant-full-control`,Za=`x-amz-grant-read`,Qa=`x-amz-grant-read-acp`,$a=`x-amz-grant-write`,eo=`x-amz-grant-write-acp`,to=`x-amz-meta-`,no=`x-amz-mfa`,ro=`x-amz-missing-meta`,io=`x-amz-mp-parts-count`,ao=`x-amz-object-lock-legal-hold`,oo=`x-amz-object-lock-mode`,so=`x-amz-object-lock-retain-until-date`,co=`x-amz-optional-object-attributes`,lo=`x-amz-restore`,uo=`x-amz-request-charged`,fo=`x-amz-request-payer`,po=`x-amz-replication-status`,mo=`x-amz-storage-class`,ho=`x-amz-sdk-checksum-algorithm`,go=`x-amz-source-expected-bucket-owner`,_o=`x-amz-server-side-encryption`,vo=`x-amz-server-side-encryption-aws-kms-key-id`,yo=`x-amz-server-side-encryption-bucket-key-enabled`,bo=`x-amz-server-side-encryption-context`,xo=`x-amz-server-side-encryption-customer-algorithm`,So=`x-amz-server-side-encryption-customer-key`,Co=`x-amz-server-side-encryption-customer-key-MD5`,wo=`x-amz-tagging`,To=`x-amz-tagging-count`,Eo=`x-amz-transition-default-minimum-object-size`,Do=`x-amz-version-id`,Oo=`x-amz-website-redirect-location`,Q=`com.amazonaws.s3`,ko=(w(),e(E)),Ao=ys(),jo=vs(),Mo=ko.TypeRegistry.for(ma);t.S3ServiceException$=[-3,ma,`S3ServiceException`,0,[],[]],Mo.registerError(t.S3ServiceException$,jo.S3ServiceException);let No=ko.TypeRegistry.for(Q);t.AccessDenied$=[-3,Q,`AccessDenied`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.AccessDenied$,Ao.AccessDenied),t.BucketAlreadyExists$=[-3,Q,`BucketAlreadyExists`,{[Xi]:qi,[ea]:409},[],[]],No.registerError(t.BucketAlreadyExists$,Ao.BucketAlreadyExists),t.BucketAlreadyOwnedByYou$=[-3,Q,`BucketAlreadyOwnedByYou`,{[Xi]:qi,[ea]:409},[],[]],No.registerError(t.BucketAlreadyOwnedByYou$,Ao.BucketAlreadyOwnedByYou),t.EncryptionTypeMismatch$=[-3,Q,`EncryptionTypeMismatch`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.EncryptionTypeMismatch$,Ao.EncryptionTypeMismatch),t.IdempotencyParameterMismatch$=[-3,Q,`IdempotencyParameterMismatch`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.IdempotencyParameterMismatch$,Ao.IdempotencyParameterMismatch),t.InvalidObjectState$=[-3,Q,`InvalidObjectState`,{[Xi]:qi,[ea]:403},[Zr,h],[0,0]],No.registerError(t.InvalidObjectState$,Ao.InvalidObjectState),t.InvalidRequest$=[-3,Q,`InvalidRequest`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.InvalidRequest$,Ao.InvalidRequest),t.InvalidWriteOffset$=[-3,Q,`InvalidWriteOffset`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.InvalidWriteOffset$,Ao.InvalidWriteOffset),t.NoSuchBucket$=[-3,Q,`NoSuchBucket`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchBucket$,Ao.NoSuchBucket),t.NoSuchKey$=[-3,Q,`NoSuchKey`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchKey$,Ao.NoSuchKey),t.NoSuchUpload$=[-3,Q,`NoSuchUpload`,{[Xi]:qi,[ea]:404},[],[]],No.registerError(t.NoSuchUpload$,Ao.NoSuchUpload),t.NotFound$=[-3,Q,`NotFound`,{[Xi]:qi},[],[]],No.registerError(t.NotFound$,Ao.NotFound),t.ObjectAlreadyInActiveTierError$=[-3,Q,`ObjectAlreadyInActiveTierError`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.ObjectAlreadyInActiveTierError$,Ao.ObjectAlreadyInActiveTierError),t.ObjectNotInActiveTierError$=[-3,Q,`ObjectNotInActiveTierError`,{[Xi]:qi,[ea]:403},[],[]],No.registerError(t.ObjectNotInActiveTierError$,Ao.ObjectNotInActiveTierError),t.TooManyParts$=[-3,Q,`TooManyParts`,{[Xi]:qi,[ea]:400},[],[]],No.registerError(t.TooManyParts$,Ao.TooManyParts),t.errorTypeRegistries=[Mo,No];var Po=[0,Q,Ee,8,0],Fo=[0,Q,`NonEmptyKmsKeyArnString`,8,0],Io=[0,Q,`SessionCredentialValue`,8,0],Lo=[0,Q,li,8,0],Ro=[0,Q,K,8,0],zo=[0,Q,fi,8,0],Bo=[0,Q,`StreamingBlob`,{[ha]:1},42];t.AbacStatus$=[3,Q,m,0,[qr],[0]],t.AbortIncompleteMultipartUpload$=[3,Q,l,0,[`DaysAfterInitiation`],[1]],t.AbortMultipartUploadOutput$=[3,Q,`AbortMultipartUploadOutput`,0,[xr],[[0,{[J]:uo}]]],t.AbortMultipartUploadRequest$=[3,Q,`AbortMultipartUploadRequest`,0,[g,`Key`,Li,Mr,G,`IfMatchInitiatedTime`],[[0,1],[0,1],[0,{[Y]:ga}],[0,{[J]:fo}],[0,{[J]:Z}],[6,{[J]:`x-amz-if-match-initiated-time`}]],3],t.AccelerateConfiguration$=[3,Q,n,0,[qr],[0]],t.AccessControlPolicy$=[3,Q,a,0,[St,Vn],[[()=>Qo,{[X]:r}],()=>t.Owner$]],t.AccessControlTranslation$=[3,Q,o,0,[Vn],[0],1],t.AnalyticsAndOperator$=[3,Q,`AnalyticsAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.AnalyticsConfiguration$=[3,Q,s,0,[`Id`,Qr,vt],[0,()=>t.StorageClassAnalysis$,[()=>t.AnalyticsFilter$,0]],2],t.AnalyticsExportDestination$=[3,Q,`AnalyticsExportDestination`,0,[Xr],[()=>t.AnalyticsS3BucketDestination$],1],t.AnalyticsS3BucketDestination$=[3,Q,`AnalyticsS3BucketDestination`,0,[xt,g,`BucketAccountId`,tr],[0,0,0,0],2],t.BlockedEncryptionTypes$=[3,Q,y,0,[st],[[()=>Yo,{[va]:1}]]],t.Bucket$=[3,Q,g,0,[Mn,`CreationDate`,O,v],[0,4,0,0]],t.BucketInfo$=[3,Q,`BucketInfo`,0,[`DataRedundancy`,Ii],[0,0]],t.BucketLifecycleConfiguration$=[3,Q,`BucketLifecycleConfiguration`,0,[yr],[[()=>rs,{[va]:1,[X]:Kr}]],1],t.BucketLoggingStatus$=[3,Q,S,0,[un],[[()=>t.LoggingEnabled$,0]]],t.Checksum$=[3,Q,N,0,[L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae],[0,0,0,0,0,0,0,0,0,0,0]],t.CommonPrefix$=[3,Q,`CommonPrefix`,0,[tr],[0]],t.CompletedMultipartUpload$=[3,Q,`CompletedMultipartUpload`,0,[cr],[[()=>Go,{[va]:1,[X]:lr}]]],t.CompletedPart$=[3,Q,`CompletedPart`,0,[ct,L,R,z,ve,ye,be,se,Pe,Fe,Ie,ir],[0,0,0,0,0,0,0,0,0,0,0,1]],t.CompleteMultipartUploadOutput$=[3,Q,`CompleteMultipartUploadOutput`,{[X]:`CompleteMultipartUploadResult`},[on,g,`Key`,Qe,ct,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae,oi,Hi,fi,x,xr],[0,0,0,[0,{[J]:Ya}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[J]:_o}],[0,{[J]:Do}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.CompleteMultipartUploadRequest$=[3,Q,`CompleteMultipartUploadRequest`,0,[g,`Key`,Li,Dn,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae,`MpuObjectSize`,Mr,G,Rt,Ht,ci,li,ui],[[0,1],[0,1],[0,{[Y]:ga}],[()=>t.CompletedMultipartUpload$,{[ta]:1,[X]:ce}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[1,{[J]:`x-amz-mp-object-size`}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:Vt}],[0,{[J]:Ut}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}]],3],t.Condition$=[3,Q,Le,0,[`HttpErrorCodeReturnedEquals`,`KeyPrefixEquals`],[0,0]],t.ContinuationEvent$=[3,Q,`ContinuationEvent`,0,[],[]],t.CopyObjectOutput$=[3,Q,`CopyObjectOutput`,0,[ue,Qe,Oe,Hi,oi,ci,ui,fi,K,x,xr],[[()=>t.CopyObjectResult$,16],[0,{[J]:Ya}],[0,{[J]:Ua}],[0,{[J]:Do}],[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.CopyObjectRequest$=[3,Q,`CopyObjectRequest`,0,[g,_e,`Key`,`ACL`,I,P,te,V,re,Me,xe,Se,Ce,we,gt,Tt,Dt,Ot,At,Rt,Ht,mn,`MetadataDirective`,`TaggingDirective`,oi,Zr,Gi,ci,li,ui,fi,K,x,Te,Ee,De,Mr,ji,qn,Jn,Kn,G,ot],[[0,1],[0,{[J]:Fa}],[0,1],[0,{[J]:ba}],[0,{[J]:ee}],[0,{[J]:Ea}],[0,{[J]:B}],[0,{[J]:ne}],[0,{[J]:ie}],[0,{[J]:je}],[0,{[J]:Ia}],[4,{[J]:La}],[0,{[J]:Ra}],[4,{[J]:za}],[4,{[J]:gt}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[0,{[J]:Vt}],[0,{[J]:Ut}],[128,{[na]:to}],[0,{[J]:`x-amz-metadata-directive`}],[0,{[J]:`x-amz-tagging-directive`}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:Ba}],[()=>Po,{[J]:Va}],[0,{[J]:Ha}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}],[0,{[J]:go}]],3],t.CopyObjectResult$=[3,Q,ue,0,[ct,fn,Ae,L,R,z,ve,ye,be,se,Pe,Fe,Ie],[0,4,0,0,0,0,0,0,0,0,0,0,0]],t.CopyPartResult$=[3,Q,pe,0,[ct,fn,L,R,z,ve,ye,be,se,Pe,Fe,Ie],[0,4,0,0,0,0,0,0,0,0,0,0]],t.CORSConfiguration$=[3,Q,W,0,[de],[[()=>Ko,{[va]:1,[X]:fe}]],1],t.CORSRule$=[3,Q,fe,0,[`AllowedMethods`,`AllowedOrigins`,`ID`,`AllowedHeaders`,`ExposeHeaders`,`MaxAgeSeconds`],[[64,{[va]:1,[X]:`AllowedMethod`}],[64,{[va]:1,[X]:`AllowedOrigin`}],0,[64,{[va]:1,[X]:`AllowedHeader`}],[64,{[va]:1,[X]:`ExposeHeader`}],1],2],t.CreateBucketConfiguration$=[3,Q,F,0,[cn,on,g,yi],[0,()=>t.LocationInfo$,()=>t.BucketInfo$,[()=>_s,0]]],t.CreateBucketMetadataConfigurationRequest$=[3,Q,`CreateBucketMetadataConfigurationRequest`,0,[g,hn,U,P,G],[[0,1],[()=>t.MetadataConfiguration$,{[ta]:1,[X]:hn}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.CreateBucketMetadataTableConfigurationRequest$=[3,Q,`CreateBucketMetadataTableConfigurationRequest`,0,[g,Tn,U,P,G],[[0,1],[()=>t.MetadataTableConfiguration$,{[ta]:1,[X]:Tn}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.CreateBucketOutput$=[3,Q,`CreateBucketOutput`,0,[on,v],[[0,{[J]:on}],[0,{[J]:Ca}]]],t.CreateBucketRequest$=[3,Q,`CreateBucketRequest`,0,[g,`ACL`,F,Tt,Dt,Ot,kt,At,`ObjectLockEnabledForBucket`,Yn,`BucketNamespace`],[[0,1],[0,{[J]:ba}],[()=>t.CreateBucketConfiguration$,{[ta]:1,[X]:F}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[2,{[J]:`x-amz-bucket-object-lock-enabled`}],[0,{[J]:`x-amz-object-ownership`}],[0,{[J]:`x-amz-bucket-namespace`}]],1],t.CreateMultipartUploadOutput$=[3,Q,`CreateMultipartUploadOutput`,{[X]:`InitiateMultipartUploadResult`},[c,p,g,`Key`,Li,oi,ci,ui,fi,K,x,xr,P,Ae],[[4,{[J]:xa}],[0,{[J]:Sa}],[0,{[X]:g}],0,0,[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:uo}],[0,{[J]:Ea}],[0,{[J]:Wa}]]],t.CreateMultipartUploadRequest$=[3,Q,`CreateMultipartUploadRequest`,0,[g,`Key`,`ACL`,I,te,V,re,Me,gt,Tt,Dt,Ot,At,mn,oi,Zr,Gi,ci,li,ui,fi,K,x,Mr,ji,qn,Jn,Kn,G,P,Ae],[[0,1],[0,1],[0,{[J]:ba}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:ne}],[0,{[J]:ie}],[0,{[J]:je}],[4,{[J]:gt}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[128,{[na]:to}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}],[0,{[J]:Ea}],[0,{[J]:Wa}]],2],t.CreateSessionOutput$=[3,Q,`CreateSessionOutput`,{[X]:`CreateSessionResult`},[ze,oi,fi,K,x],[[()=>t.SessionCredentials$,{[X]:ze}],[0,{[J]:_o}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}]],1],t.CreateSessionRequest$=[3,Q,`CreateSessionRequest`,0,[g,`SessionMode`,oi,fi,K,x],[[0,1],[0,{[J]:`x-amz-create-session-mode`}],[0,{[J]:_o}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}]],1],t.CSVInput$=[3,Q,`CSVInput`,0,[`FileHeaderInfo`,`Comments`,vr,Or,yt,gr,`AllowQuotedRecordDelimiter`],[0,0,0,0,0,0,2]],t.CSVOutput$=[3,Q,`CSVOutput`,0,[`QuoteFields`,vr,Or,yt,gr],[0,0,0,0,0]],t.DefaultRetention$=[3,Q,Ge,0,[jn,Be,`Years`],[0,1,1]],t.Delete$=[3,Q,Je,0,[`Objects`,`Quiet`],[[()=>ss,{[va]:1,[X]:er}],2],1],t.DeleteBucketAnalyticsConfigurationRequest$=[3,Q,`DeleteBucketAnalyticsConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketCorsRequest$=[3,Q,`DeleteBucketCorsRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketEncryptionRequest$=[3,Q,`DeleteBucketEncryptionRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketIntelligentTieringConfigurationRequest$=[3,Q,`DeleteBucketIntelligentTieringConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketInventoryConfigurationRequest$=[3,Q,`DeleteBucketInventoryConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketLifecycleRequest$=[3,Q,`DeleteBucketLifecycleRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetadataConfigurationRequest$=[3,Q,`DeleteBucketMetadataConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetadataTableConfigurationRequest$=[3,Q,`DeleteBucketMetadataTableConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketMetricsConfigurationRequest$=[3,Q,`DeleteBucketMetricsConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.DeleteBucketOwnershipControlsRequest$=[3,Q,`DeleteBucketOwnershipControlsRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketPolicyRequest$=[3,Q,`DeleteBucketPolicyRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketReplicationRequest$=[3,Q,`DeleteBucketReplicationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketRequest$=[3,Q,`DeleteBucketRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketTaggingRequest$=[3,Q,`DeleteBucketTaggingRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeleteBucketWebsiteRequest$=[3,Q,`DeleteBucketWebsiteRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.DeletedObject$=[3,Q,`DeletedObject`,0,[`Key`,Hi,Ve,`DeleteMarkerVersionId`],[0,0,2,0]],t.DeleteMarkerEntry$=[3,Q,`DeleteMarkerEntry`,0,[Vn,`Key`,Hi,Lt,fn],[()=>t.Owner$,0,0,2,4]],t.DeleteMarkerReplication$=[3,Q,He,0,[qr],[0]],t.DeleteObjectOutput$=[3,Q,`DeleteObjectOutput`,0,[Ve,Hi,xr],[[2,{[J]:Ja}],[0,{[J]:Do}],[0,{[J]:uo}]]],t.DeleteObjectRequest$=[3,Q,`DeleteObjectRequest`,0,[g,`Key`,`MFA`,Hi,Mr,b,G,Rt,`IfMatchLastModifiedTime`,`IfMatchSize`],[[0,1],[0,1],[0,{[J]:no}],[0,{[Y]:_a}],[0,{[J]:fo}],[2,{[J]:wa}],[0,{[J]:Z}],[0,{[J]:Vt}],[6,{[J]:`x-amz-if-match-last-modified-time`}],[1,{[J]:`x-amz-if-match-size`}]],2],t.DeleteObjectsOutput$=[3,Q,`DeleteObjectsOutput`,{[X]:`DeleteResult`},[`Deleted`,xr,ft],[[()=>qo,{[va]:1}],[0,{[J]:uo}],[()=>Xo,{[va]:1,[X]:pt}]]],t.DeleteObjectsRequest$=[3,Q,`DeleteObjectsRequest`,0,[g,Je,`MFA`,Mr,b,G,P],[[0,1],[()=>t.Delete$,{[ta]:1,[X]:Je}],[0,{[J]:no}],[0,{[J]:fo}],[2,{[J]:wa}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.DeleteObjectTaggingOutput$=[3,Q,`DeleteObjectTaggingOutput`,0,[Hi],[[0,{[J]:Do}]]],t.DeleteObjectTaggingRequest$=[3,Q,`DeleteObjectTaggingRequest`,0,[g,`Key`,Hi,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:Z}]],2],t.DeletePublicAccessBlockRequest$=[3,Q,`DeletePublicAccessBlockRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.Destination$=[3,Q,Xe,0,[g,`Account`,Zr,o,et,Vr,An],[0,0,0,()=>t.AccessControlTranslation$,()=>t.EncryptionConfiguration$,()=>t.ReplicationTime$,()=>t.Metrics$],1],t.DestinationResult$=[3,Q,Ke,0,[`TableBucketType`,xi,Ei],[0,0,0]],t.Encryption$=[3,Q,dt,0,[st,`KMSKeyId`,`KMSContext`],[0,[()=>zo,0],0],1],t.EncryptionConfiguration$=[3,Q,et,0,[`ReplicaKmsKeyID`],[0]],t.EndEvent$=[3,Q,`EndEvent`,0,[],[]],t._Error$=[3,Q,pt,0,[`Key`,Hi,`Code`,`Message`],[0,0,0,0]],t.ErrorDetails$=[3,Q,`ErrorDetails`,0,[tt,rt],[0,0]],t.ErrorDocument$=[3,Q,nt,0,[`Key`],[0],1],t.EventBridgeConfiguration$=[3,Q,$e,0,[],[]],t.ExistingObjectReplication$=[3,Q,it,0,[qr],[0],1],t.FilterRule$=[3,Q,bt,0,[Mn,Bi],[0,0]],t.GetBucketAbacOutput$=[3,Q,`GetBucketAbacOutput`,0,[m],[[()=>t.AbacStatus$,16]]],t.GetBucketAbacRequest$=[3,Q,`GetBucketAbacRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketAccelerateConfigurationOutput$=[3,Q,`GetBucketAccelerateConfigurationOutput`,{[X]:n},[qr,xr],[0,[0,{[J]:uo}]]],t.GetBucketAccelerateConfigurationRequest$=[3,Q,`GetBucketAccelerateConfigurationRequest`,0,[g,G,Mr],[[0,1],[0,{[J]:Z}],[0,{[J]:fo}]],1],t.GetBucketAclOutput$=[3,Q,`GetBucketAclOutput`,{[X]:a},[Vn,St],[()=>t.Owner$,[()=>Qo,{[X]:r}]]],t.GetBucketAclRequest$=[3,Q,`GetBucketAclRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketAnalyticsConfigurationOutput$=[3,Q,`GetBucketAnalyticsConfigurationOutput`,0,[s],[[()=>t.AnalyticsConfiguration$,16]]],t.GetBucketAnalyticsConfigurationRequest$=[3,Q,`GetBucketAnalyticsConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketCorsOutput$=[3,Q,`GetBucketCorsOutput`,{[X]:W},[de],[[()=>Ko,{[va]:1,[X]:fe}]]],t.GetBucketCorsRequest$=[3,Q,`GetBucketCorsRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketEncryptionOutput$=[3,Q,`GetBucketEncryptionOutput`,0,[si],[[()=>t.ServerSideEncryptionConfiguration$,16]]],t.GetBucketEncryptionRequest$=[3,Q,`GetBucketEncryptionRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketIntelligentTieringConfigurationOutput$=[3,Q,`GetBucketIntelligentTieringConfigurationOutput`,0,[Jt],[[()=>t.IntelligentTieringConfiguration$,16]]],t.GetBucketIntelligentTieringConfigurationRequest$=[3,Q,`GetBucketIntelligentTieringConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketInventoryConfigurationOutput$=[3,Q,`GetBucketInventoryConfigurationOutput`,0,[Pt],[[()=>t.InventoryConfiguration$,16]]],t.GetBucketInventoryConfigurationRequest$=[3,Q,`GetBucketInventoryConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketLifecycleConfigurationOutput$=[3,Q,`GetBucketLifecycleConfigurationOutput`,{[X]:ln},[yr,wi],[[()=>rs,{[va]:1,[X]:Kr}],[0,{[J]:Eo}]]],t.GetBucketLifecycleConfigurationRequest$=[3,Q,`GetBucketLifecycleConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketLocationOutput$=[3,Q,`GetBucketLocationOutput`,{[X]:cn},[cn],[0]],t.GetBucketLocationRequest$=[3,Q,`GetBucketLocationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketLoggingOutput$=[3,Q,`GetBucketLoggingOutput`,{[X]:S},[un],[[()=>t.LoggingEnabled$,0]]],t.GetBucketLoggingRequest$=[3,Q,`GetBucketLoggingRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataConfigurationOutput$=[3,Q,`GetBucketMetadataConfigurationOutput`,0,[Ct],[[()=>t.GetBucketMetadataConfigurationResult$,16]]],t.GetBucketMetadataConfigurationRequest$=[3,Q,`GetBucketMetadataConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataConfigurationResult$=[3,Q,Ct,0,[_n],[()=>t.MetadataConfigurationResult$],1],t.GetBucketMetadataTableConfigurationOutput$=[3,Q,`GetBucketMetadataTableConfigurationOutput`,0,[wt],[[()=>t.GetBucketMetadataTableConfigurationResult$,16]]],t.GetBucketMetadataTableConfigurationRequest$=[3,Q,`GetBucketMetadataTableConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketMetadataTableConfigurationResult$=[3,Q,wt,0,[En,qr,pt],[()=>t.MetadataTableConfigurationResult$,0,()=>t.ErrorDetails$],2],t.GetBucketMetricsConfigurationOutput$=[3,Q,`GetBucketMetricsConfigurationOutput`,0,[vn],[[()=>t.MetricsConfiguration$,16]]],t.GetBucketMetricsConfigurationRequest$=[3,Q,`GetBucketMetricsConfigurationRequest`,0,[g,`Id`,G],[[0,1],[0,{[Y]:`id`}],[0,{[J]:Z}]],2],t.GetBucketNotificationConfigurationRequest$=[3,Q,`GetBucketNotificationConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketOwnershipControlsOutput$=[3,Q,`GetBucketOwnershipControlsOutput`,0,[Hn],[[()=>t.OwnershipControls$,16]]],t.GetBucketOwnershipControlsRequest$=[3,Q,`GetBucketOwnershipControlsRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketPolicyOutput$=[3,Q,`GetBucketPolicyOutput`,0,[pr],[[0,16]]],t.GetBucketPolicyRequest$=[3,Q,`GetBucketPolicyRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketPolicyStatusOutput$=[3,Q,`GetBucketPolicyStatusOutput`,0,[sr],[[()=>t.PolicyStatus$,16]]],t.GetBucketPolicyStatusRequest$=[3,Q,`GetBucketPolicyStatusRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketReplicationOutput$=[3,Q,`GetBucketReplicationOutput`,0,[Dr],[[()=>t.ReplicationConfiguration$,16]]],t.GetBucketReplicationRequest$=[3,Q,`GetBucketReplicationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketRequestPaymentOutput$=[3,Q,`GetBucketRequestPaymentOutput`,{[X]:Pr},[ur],[0]],t.GetBucketRequestPaymentRequest$=[3,Q,`GetBucketRequestPaymentRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketTaggingOutput$=[3,Q,`GetBucketTaggingOutput`,{[X]:ji},[ki],[[()=>_s,0]],1],t.GetBucketTaggingRequest$=[3,Q,`GetBucketTaggingRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketVersioningOutput$=[3,Q,`GetBucketVersioningOutput`,{[X]:Vi},[qr,xn],[0,[0,{[X]:yn}]]],t.GetBucketVersioningRequest$=[3,Q,`GetBucketVersioningRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetBucketWebsiteOutput$=[3,Q,`GetBucketWebsiteOutput`,{[X]:Wi},[br,It,nt,Ir],[()=>t.RedirectAllRequestsTo$,()=>t.IndexDocument$,()=>t.ErrorDocument$,[()=>hs,0]]],t.GetBucketWebsiteRequest$=[3,Q,`GetBucketWebsiteRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetObjectAclOutput$=[3,Q,`GetObjectAclOutput`,{[X]:a},[Vn,St,xr],[()=>t.Owner$,[()=>Qo,{[X]:r}],[0,{[J]:uo}]]],t.GetObjectAclRequest$=[3,Q,`GetObjectAclRequest`,0,[g,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectAttributesOutput$=[3,Q,`GetObjectAttributesOutput`,{[X]:`GetObjectAttributesResponse`},[Ve,fn,Hi,xr,ct,N,`ObjectParts`,Zr,`ObjectSize`],[[2,{[J]:Ja}],[4,{[J]:pn}],[0,{[J]:Do}],[0,{[J]:uo}],0,()=>t.Checksum$,[()=>t.GetObjectAttributesParts$,0],0,1]],t.GetObjectAttributesParts$=[3,Q,`GetObjectAttributesParts`,0,[`TotalPartsCount`,ar,Rn,wn,qt,cr],[[1,{[X]:rr}],0,0,1,2,[()=>fs,{[va]:1,[X]:lr}]]],t.GetObjectAttributesRequest$=[3,Q,`GetObjectAttributesRequest`,0,[g,`Key`,`ObjectAttributes`,Hi,wn,ar,ci,li,ui,Mr,G],[[0,1],[0,1],[64,{[J]:`x-amz-object-attributes`}],[0,{[Y]:_a}],[1,{[J]:`x-amz-max-parts`}],[0,{[J]:`x-amz-part-number-marker`}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[0,{[J]:Z}]],3],t.GetObjectLegalHoldOutput$=[3,Q,`GetObjectLegalHoldOutput`,0,[dn],[[()=>t.ObjectLockLegalHold$,{[ta]:1,[X]:dn}]]],t.GetObjectLegalHoldRequest$=[3,Q,`GetObjectLegalHoldRequest`,0,[g,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectLockConfigurationOutput$=[3,Q,`GetObjectLockConfigurationOutput`,0,[Gn],[[()=>t.ObjectLockConfiguration$,16]]],t.GetObjectLockConfigurationRequest$=[3,Q,`GetObjectLockConfigurationRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GetObjectOutput$=[3,Q,`GetObjectOutput`,0,[j,Ve,f,Qe,Ur,fn,oe,ct,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae,Cn,Hi,I,te,V,re,he,Me,gt,at,Gi,oi,mn,ci,ui,fi,x,Zr,xr,zr,rr,Si,qn,Jn,Kn],[[()=>Bo,16],[2,{[J]:Ja}],[0,{[J]:Ki}],[0,{[J]:Ya}],[0,{[J]:lo}],[4,{[J]:pn}],[1,{[J]:ae}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[1,{[J]:ro}],[0,{[J]:Do}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:ne}],[0,{[J]:ie}],[0,{[J]:ge}],[0,{[J]:je}],[4,{[J]:gt}],[0,{[J]:at}],[0,{[J]:Oo}],[0,{[J]:_o}],[128,{[na]:to}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:mo}],[0,{[J]:uo}],[0,{[J]:po}],[1,{[J]:io}],[1,{[J]:To}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}]]],t.GetObjectRequest$=[3,Q,`GetObjectRequest`,0,[g,`Key`,Rt,Bt,Ht,Qt,Hr,Sr,Cr,wr,Tr,Er,kr,Hi,ci,li,ui,Mr,ir,G,le],[[0,1],[0,1],[0,{[J]:Vt}],[4,{[J]:zt}],[0,{[J]:Ut}],[4,{[J]:$t}],[0,{[J]:Hr}],[0,{[Y]:ca}],[0,{[Y]:la}],[0,{[Y]:ua}],[0,{[Y]:da}],[0,{[Y]:fa}],[6,{[Y]:pa}],[0,{[Y]:_a}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[1,{[Y]:sa}],[0,{[J]:Z}],[0,{[J]:ja}]],2],t.GetObjectRetentionOutput$=[3,Q,`GetObjectRetentionOutput`,0,[Gr],[[()=>t.ObjectLockRetention$,{[ta]:1,[X]:Gr}]]],t.GetObjectRetentionRequest$=[3,Q,`GetObjectRetentionRequest`,0,[g,`Key`,Hi,Mr,G],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetObjectTaggingOutput$=[3,Q,`GetObjectTaggingOutput`,{[X]:ji},[ki,Hi],[[()=>_s,0],[0,{[J]:Do}]],1],t.GetObjectTaggingRequest$=[3,Q,`GetObjectTaggingRequest`,0,[g,`Key`,Hi,G,Mr],[[0,1],[0,1],[0,{[Y]:_a}],[0,{[J]:Z}],[0,{[J]:fo}]],2],t.GetObjectTorrentOutput$=[3,Q,`GetObjectTorrentOutput`,0,[j,xr],[[()=>Bo,16],[0,{[J]:uo}]]],t.GetObjectTorrentRequest$=[3,Q,`GetObjectTorrentRequest`,0,[g,`Key`,Mr,G],[[0,1],[0,1],[0,{[J]:fo}],[0,{[J]:Z}]],2],t.GetPublicAccessBlockOutput$=[3,Q,`GetPublicAccessBlockOutput`,0,[nr],[[()=>t.PublicAccessBlockConfiguration$,16]]],t.GetPublicAccessBlockRequest$=[3,Q,`GetPublicAccessBlockRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.GlacierJobParameters$=[3,Q,Et,0,[Mi],[0],1],t.Grant$=[3,Q,jt,0,[Mt,fr],[[()=>t.Grantee$,{[ya]:[`xsi`,ra]}],0]],t.Grantee$=[3,Q,Mt,0,[Ii,We,`EmailAddress`,`ID`,`URI`],[[0,{xmlAttribute:1,[X]:`xsi:type`}],0,0,0,0],1],t.HeadBucketOutput$=[3,Q,`HeadBucketOutput`,0,[v,`BucketLocationType`,`BucketLocationName`,O,`AccessPointAlias`],[[0,{[J]:Ca}],[0,{[J]:`x-amz-bucket-location-type`}],[0,{[J]:`x-amz-bucket-location-name`}],[0,{[J]:`x-amz-bucket-region`}],[2,{[J]:`x-amz-access-point-alias`}]]],t.HeadBucketRequest$=[3,Q,`HeadBucketRequest`,0,[g,G],[[0,1],[0,{[J]:Z}]],1],t.HeadObjectOutput$=[3,Q,`HeadObjectOutput`,0,[Ve,f,Qe,Ur,`ArchiveStatus`,fn,oe,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae,ct,Cn,Hi,I,te,V,re,Me,he,gt,at,Gi,oi,mn,ci,ui,fi,x,Zr,xr,zr,rr,Si,qn,Jn,Kn],[[2,{[J]:Ja}],[0,{[J]:Ki}],[0,{[J]:Ya}],[0,{[J]:lo}],[0,{[J]:`x-amz-archive-status`}],[4,{[J]:pn}],[1,{[J]:ae}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[0,{[J]:ct}],[1,{[J]:ro}],[0,{[J]:Do}],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:ne}],[0,{[J]:ie}],[0,{[J]:je}],[0,{[J]:ge}],[4,{[J]:gt}],[0,{[J]:at}],[0,{[J]:Oo}],[0,{[J]:_o}],[128,{[na]:to}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:mo}],[0,{[J]:uo}],[0,{[J]:po}],[1,{[J]:io}],[1,{[J]:To}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}]]],t.HeadObjectRequest$=[3,Q,`HeadObjectRequest`,0,[g,`Key`,Rt,Bt,Ht,Qt,Hr,Sr,Cr,wr,Tr,Er,kr,Hi,ci,li,ui,Mr,ir,G,le],[[0,1],[0,1],[0,{[J]:Vt}],[4,{[J]:zt}],[0,{[J]:Ut}],[4,{[J]:$t}],[0,{[J]:Hr}],[0,{[Y]:ca}],[0,{[Y]:la}],[0,{[Y]:ua}],[0,{[Y]:da}],[0,{[Y]:fa}],[6,{[Y]:pa}],[0,{[Y]:_a}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[1,{[Y]:sa}],[0,{[J]:Z}],[0,{[J]:ja}]],2],t.IndexDocument$=[3,Q,It,0,[`Suffix`],[0],1],t.Initiator$=[3,Q,en,0,[`ID`,We],[0,0]],t.InputSerialization$=[3,Q,Kt,0,[`CSV`,`CompressionType`,tn,`Parquet`],[()=>t.CSVInput$,0,()=>t.JSONInput$,()=>t.ParquetInput$]],t.IntelligentTieringAndOperator$=[3,Q,`IntelligentTieringAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.IntelligentTieringConfiguration$=[3,Q,Jt,0,[`Id`,qr,`Tierings`,vt],[0,0,[()=>xs,{[va]:1,[X]:Ni}],[()=>t.IntelligentTieringFilter$,0]],3],t.IntelligentTieringFilter$=[3,Q,`IntelligentTieringFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.IntelligentTieringAndOperator$,0]]],t.InventoryConfiguration$=[3,Q,Pt,0,[Xe,`IsEnabled`,`Id`,`IncludedObjectVersions`,`Schedule`,vt,`OptionalFields`],[[()=>t.InventoryDestination$,0],2,0,0,()=>t.InventorySchedule$,()=>t.InventoryFilter$,[()=>ts,0]],5],t.InventoryDestination$=[3,Q,`InventoryDestination`,0,[Xr],[[()=>t.InventoryS3BucketDestination$,0]],1],t.InventoryEncryption$=[3,Q,`InventoryEncryption`,0,[pi,di],[[()=>t.SSES3$,{[X]:ii}],[()=>t.SSEKMS$,{[X]:$r}]]],t.InventoryFilter$=[3,Q,`InventoryFilter`,0,[tr],[0],1],t.InventoryS3BucketDestination$=[3,Q,`InventoryS3BucketDestination`,0,[g,xt,`AccountId`,tr,dt],[0,0,0,0,[()=>t.InventoryEncryption$,0]],2],t.InventorySchedule$=[3,Q,`InventorySchedule`,0,[`Frequency`],[0],1],t.InventoryTableConfiguration$=[3,Q,Zt,0,[ke,et],[0,()=>t.MetadataTableEncryptionConfiguration$],1],t.InventoryTableConfigurationResult$=[3,Q,Xt,0,[ke,Ai,pt,Di,bi],[0,0,()=>t.ErrorDetails$,0,0],1],t.InventoryTableConfigurationUpdates$=[3,Q,`InventoryTableConfigurationUpdates`,0,[ke,et],[0,()=>t.MetadataTableEncryptionConfiguration$],1],t.JournalTableConfiguration$=[3,Q,nn,0,[Ar,et],[()=>t.RecordExpiration$,()=>t.MetadataTableEncryptionConfiguration$],1],t.JournalTableConfigurationResult$=[3,Q,rn,0,[Ai,Di,Ar,pt,bi],[0,0,()=>t.RecordExpiration$,()=>t.ErrorDetails$,0],3],t.JournalTableConfigurationUpdates$=[3,Q,`JournalTableConfigurationUpdates`,0,[Ar],[()=>t.RecordExpiration$],1],t.JSONInput$=[3,Q,`JSONInput`,0,[Ii],[0]],t.JSONOutput$=[3,Q,`JSONOutput`,0,[Or],[0]],t.LambdaFunctionConfiguration$=[3,Q,`LambdaFunctionConfiguration`,0,[`LambdaFunctionArn`,mt,`Id`,vt],[[0,{[X]:`CloudFunction`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.LifecycleExpiration$=[3,Q,`LifecycleExpiration`,0,[qe,Be,`ExpiredObjectDeleteMarker`],[5,1,2]],t.LifecycleRule$=[3,Q,`LifecycleRule`,0,[qr,Qe,`ID`,tr,vt,`Transitions`,`NoncurrentVersionTransitions`,zn,l],[0,()=>t.LifecycleExpiration$,0,0,[()=>t.LifecycleRuleFilter$,0],[()=>Cs,{[va]:1,[X]:Fi}],[()=>os,{[va]:1,[X]:Bn}],()=>t.NoncurrentVersionExpiration$,()=>t.AbortIncompleteMultipartUpload$],1],t.LifecycleRuleAndOperator$=[3,Q,`LifecycleRuleAndOperator`,0,[tr,yi,Zn,Qn],[0,[()=>_s,{[va]:1,[X]:`Tag`}],1,1]],t.LifecycleRuleFilter$=[3,Q,`LifecycleRuleFilter`,0,[tr,`Tag`,Zn,Qn,`And`],[0,()=>t.Tag$,1,1,[()=>t.LifecycleRuleAndOperator$,0]]],t.ListBucketAnalyticsConfigurationsOutput$=[3,Q,`ListBucketAnalyticsConfigurationsOutput`,{[X]:`ListBucketAnalyticsConfigurationResult`},[qt,Ne,Pn,i],[2,0,0,[()=>Ho,{[va]:1,[X]:s}]]],t.ListBucketAnalyticsConfigurationsRequest$=[3,Q,`ListBucketAnalyticsConfigurationsRequest`,0,[g,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketIntelligentTieringConfigurationsOutput$=[3,Q,`ListBucketIntelligentTieringConfigurationsOutput`,0,[qt,Ne,Pn,Yt],[2,0,0,[()=>$o,{[va]:1,[X]:Jt}]]],t.ListBucketIntelligentTieringConfigurationsRequest$=[3,Q,`ListBucketIntelligentTieringConfigurationsRequest`,0,[g,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketInventoryConfigurationsOutput$=[3,Q,`ListBucketInventoryConfigurationsOutput`,{[X]:`ListInventoryConfigurationsResult`},[Ne,Ft,qt,Pn],[0,[()=>es,{[va]:1,[X]:Pt}],2,0]],t.ListBucketInventoryConfigurationsRequest$=[3,Q,`ListBucketInventoryConfigurationsRequest`,0,[g,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketMetricsConfigurationsOutput$=[3,Q,`ListBucketMetricsConfigurationsOutput`,{[X]:`ListMetricsConfigurationsResult`},[qt,Ne,Pn,gn],[2,0,0,[()=>is,{[va]:1,[X]:vn}]]],t.ListBucketMetricsConfigurationsRequest$=[3,Q,`ListBucketMetricsConfigurationsRequest`,0,[g,Ne,G],[[0,1],[0,{[Y]:Ji}],[0,{[J]:Z}]],1],t.ListBucketsOutput$=[3,Q,`ListBucketsOutput`,{[X]:`ListAllMyBucketsResult`},[M,Vn,Ne,tr],[[()=>Uo,0],()=>t.Owner$,0,0]],t.ListBucketsRequest$=[3,Q,`ListBucketsRequest`,0,[`MaxBuckets`,Ne,tr,O],[[1,{[Y]:`max-buckets`}],[0,{[Y]:Ji}],[0,{[Y]:oa}],[0,{[Y]:`bucket-region`}]]],t.ListDirectoryBucketsOutput$=[3,Q,`ListDirectoryBucketsOutput`,{[X]:`ListAllMyDirectoryBucketsResult`},[M,Ne],[[()=>Uo,0],0]],t.ListDirectoryBucketsRequest$=[3,Q,`ListDirectoryBucketsRequest`,0,[Ne,`MaxDirectoryBuckets`],[[0,{[Y]:Ji}],[1,{[Y]:`max-directory-buckets`}]]],t.ListMultipartUploadsOutput$=[3,Q,`ListMultipartUploadsOutput`,{[X]:`ListMultipartUploadsResult`},[g,an,Ri,In,tr,Ye,`NextUploadIdMarker`,On,qt,`Uploads`,me,lt,xr],[0,0,0,0,0,0,0,1,2,[()=>as,{[va]:1,[X]:`Upload`}],[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListMultipartUploadsRequest$=[3,Q,`ListMultipartUploadsRequest`,0,[g,Ye,lt,an,On,tr,Ri,G,Mr],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:ia}],[1,{[Y]:`max-uploads`}],[0,{[Y]:oa}],[0,{[Y]:`upload-id-marker`}],[0,{[J]:Z}],[0,{[J]:fo}]],1],t.ListObjectsOutput$=[3,Q,`ListObjectsOutput`,{[X]:sn},[qt,kn,`NextMarker`,Re,Mn,tr,Ye,Sn,me,lt,xr],[2,0,0,[()=>cs,{[va]:1}],0,0,0,1,[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListObjectsRequest$=[3,Q,`ListObjectsRequest`,0,[g,Ye,lt,kn,Sn,tr,Mr,G,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:`marker`}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[J]:fo}],[0,{[J]:Z}],[64,{[J]:co}]],1],t.ListObjectsV2Output$=[3,Q,`ListObjectsV2Output`,{[X]:sn},[qt,Re,Mn,tr,Ye,Sn,me,lt,`KeyCount`,Ne,Pn,Jr,xr],[2,[()=>cs,{[va]:1}],0,0,0,1,[()=>Wo,{[va]:1}],0,1,0,0,0,[0,{[J]:uo}]]],t.ListObjectsV2Request$=[3,Q,`ListObjectsV2Request`,0,[g,Ye,lt,Sn,tr,Ne,`FetchOwner`,Jr,Mr,G,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[Y]:Ji}],[2,{[Y]:`fetch-owner`}],[0,{[Y]:`start-after`}],[0,{[J]:fo}],[0,{[J]:Z}],[64,{[J]:co}]],1],t.ListObjectVersionsOutput$=[3,Q,`ListObjectVersionsOutput`,{[X]:`ListVersionsResult`},[qt,an,Ui,In,`NextVersionIdMarker`,`Versions`,Ue,Mn,tr,Ye,Sn,me,lt,xr],[2,0,0,0,0,[()=>ls,{[va]:1,[X]:`Version`}],[()=>Jo,{[va]:1,[X]:Ve}],0,0,0,1,[()=>Wo,{[va]:1}],0,[0,{[J]:uo}]]],t.ListObjectVersionsRequest$=[3,Q,`ListObjectVersionsRequest`,0,[g,Ye,lt,an,Sn,tr,Ui,G,Mr,Xn],[[0,1],[0,{[Y]:Yi}],[0,{[Y]:Qi}],[0,{[Y]:ia}],[1,{[Y]:aa}],[0,{[Y]:oa}],[0,{[Y]:`version-id-marker`}],[0,{[J]:Z}],[0,{[J]:fo}],[64,{[J]:co}]],1],t.ListPartsOutput$=[3,Q,`ListPartsOutput`,{[X]:`ListPartsResult`},[c,p,g,`Key`,Li,ar,Rn,wn,qt,cr,en,Vn,Zr,xr,P,Ae],[[4,{[J]:xa}],[0,{[J]:Sa}],0,0,0,0,0,1,2,[()=>ds,{[va]:1,[X]:lr}],()=>t.Initiator$,()=>t.Owner$,0,[0,{[J]:uo}],0,0]],t.ListPartsRequest$=[3,Q,`ListPartsRequest`,0,[g,`Key`,Li,wn,ar,Mr,G,ci,li,ui],[[0,1],[0,1],[0,{[Y]:ga}],[1,{[Y]:`max-parts`}],[0,{[Y]:`part-number-marker`}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}]],3],t.LocationInfo$=[3,Q,`LocationInfo`,0,[Ii,Mn],[0,0]],t.LoggingEnabled$=[3,Q,un,0,[`TargetBucket`,`TargetPrefix`,Ti,Oi],[0,0,[()=>bs,0],[()=>t.TargetObjectKeyFormat$,0]],2],t.MetadataConfiguration$=[3,Q,hn,0,[nn,Zt],[()=>t.JournalTableConfiguration$,()=>t.InventoryTableConfiguration$],1],t.MetadataConfigurationResult$=[3,Q,_n,0,[Ke,rn,Xt],[()=>t.DestinationResult$,()=>t.JournalTableConfigurationResult$,()=>t.InventoryTableConfigurationResult$],1],t.MetadataEntry$=[3,Q,bn,0,[Mn,Bi],[0,0]],t.MetadataTableConfiguration$=[3,Q,Tn,0,[hi],[()=>t.S3TablesDestination$],1],t.MetadataTableConfigurationResult$=[3,Q,En,0,[gi],[()=>t.S3TablesDestinationResult$],1],t.MetadataTableEncryptionConfiguration$=[3,Q,`MetadataTableEncryptionConfiguration`,0,[`SseAlgorithm`,`KmsKeyArn`],[0,0],1],t.Metrics$=[3,Q,An,0,[qr,`EventThreshold`],[0,()=>t.ReplicationTimeValue$],1],t.MetricsAndOperator$=[3,Q,`MetricsAndOperator`,0,[tr,yi,d],[0,[()=>_s,{[va]:1,[X]:`Tag`}],0]],t.MetricsConfiguration$=[3,Q,vn,0,[`Id`,vt],[0,[()=>t.MetricsFilter$,0]],1],t.MultipartUpload$=[3,Q,Dn,0,[Li,`Key`,`Initiated`,Zr,Vn,en,P,Ae],[0,0,4,0,()=>t.Owner$,()=>t.Initiator$,0,0]],t.NoncurrentVersionExpiration$=[3,Q,zn,0,[Fn,Ln],[1,1]],t.NoncurrentVersionTransition$=[3,Q,Bn,0,[Fn,Zr,Ln],[1,0,1]],t.NotificationConfiguration$=[3,Q,Nn,0,[`TopicConfigurations`,`QueueConfigurations`,`LambdaFunctionConfigurations`,$e],[[()=>Ss,{[va]:1,[X]:Ci}],[()=>ps,{[va]:1,[X]:_r}],[()=>ns,{[va]:1,[X]:`CloudFunctionConfiguration`}],()=>t.EventBridgeConfiguration$]],t.NotificationConfigurationFilter$=[3,Q,`NotificationConfigurationFilter`,0,[`Key`],[[()=>t.S3KeyFilter$,{[X]:`S3Key`}]]],t._Object$=[3,Q,er,0,[`Key`,fn,ct,P,Ae,_i,Zr,Vn,Br],[0,4,0,[64,{[va]:1}],0,1,0,()=>t.Owner$,()=>t.RestoreStatus$]],t.ObjectIdentifier$=[3,Q,`ObjectIdentifier`,0,[`Key`,Hi,ct,`LastModifiedTime`,_i],[0,0,0,6,1],1],t.ObjectLockConfiguration$=[3,Q,Gn,0,[`ObjectLockEnabled`,Kr],[0,()=>t.ObjectLockRule$]],t.ObjectLockLegalHold$=[3,Q,`ObjectLockLegalHold`,0,[qr],[0]],t.ObjectLockRetention$=[3,Q,`ObjectLockRetention`,0,[jn,`RetainUntilDate`],[0,5]],t.ObjectLockRule$=[3,Q,`ObjectLockRule`,0,[Ge],[()=>t.DefaultRetention$]],t.ObjectPart$=[3,Q,`ObjectPart`,0,[ir,_i,L,R,z,ve,ye,be,se,Pe,Fe,Ie],[1,1,0,0,0,0,0,0,0,0,0,0]],t.ObjectVersion$=[3,Q,`ObjectVersion`,0,[ct,P,Ae,_i,Zr,`Key`,Hi,Lt,fn,Vn,Br],[0,[64,{[va]:1}],0,1,0,0,0,2,4,()=>t.Owner$,()=>t.RestoreStatus$]],t.OutputLocation$=[3,Q,Wn,0,[`S3`],[[()=>t.S3Location$,0]]],t.OutputSerialization$=[3,Q,$n,0,[`CSV`,tn],[()=>t.CSVOutput$,()=>t.JSONOutput$]],t.Owner$=[3,Q,Vn,0,[We,`ID`],[0,0]],t.OwnershipControls$=[3,Q,Hn,0,[yr],[[()=>us,{[va]:1,[X]:Kr}]],1],t.OwnershipControlsRule$=[3,Q,`OwnershipControlsRule`,0,[Yn],[0],1],t.ParquetInput$=[3,Q,`ParquetInput`,0,[],[]],t.Part$=[3,Q,lr,0,[ir,fn,ct,_i,L,R,z,ve,ye,be,se,Pe,Fe,Ie],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],t.PartitionedPrefix$=[3,Q,or,{[X]:or},[`PartitionDateSource`],[0]],t.PolicyStatus$=[3,Q,sr,0,[Wt],[[2,{[X]:Wt}]]],t.Progress$=[3,Q,mr,0,[A,C,k],[1,1,1]],t.ProgressEvent$=[3,Q,`ProgressEvent`,0,[Ze],[[()=>t.Progress$,{[Zi]:1}]]],t.PublicAccessBlockConfiguration$=[3,Q,nr,0,[T,Gt,D,Nr],[[2,{[X]:T}],[2,{[X]:Gt}],[2,{[X]:D}],[2,{[X]:Nr}]]],t.PutBucketAbacRequest$=[3,Q,`PutBucketAbacRequest`,0,[g,m,U,P,G],[[0,1],[()=>t.AbacStatus$,{[ta]:1,[X]:m}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketAccelerateConfigurationRequest$=[3,Q,`PutBucketAccelerateConfigurationRequest`,0,[g,n,G,P],[[0,1],[()=>t.AccelerateConfiguration$,{[ta]:1,[X]:n}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.PutBucketAclRequest$=[3,Q,`PutBucketAclRequest`,0,[g,`ACL`,a,U,P,Tt,Dt,Ot,kt,At,G],[[0,1],[0,{[J]:ba}],[()=>t.AccessControlPolicy$,{[ta]:1,[X]:a}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[0,{[J]:Z}]],1],t.PutBucketAnalyticsConfigurationRequest$=[3,Q,`PutBucketAnalyticsConfigurationRequest`,0,[g,`Id`,s,G],[[0,1],[0,{[Y]:`id`}],[()=>t.AnalyticsConfiguration$,{[ta]:1,[X]:s}],[0,{[J]:Z}]],3],t.PutBucketCorsRequest$=[3,Q,`PutBucketCorsRequest`,0,[g,W,U,P,G],[[0,1],[()=>t.CORSConfiguration$,{[ta]:1,[X]:W}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketEncryptionRequest$=[3,Q,`PutBucketEncryptionRequest`,0,[g,si,U,P,G],[[0,1],[()=>t.ServerSideEncryptionConfiguration$,{[ta]:1,[X]:si}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketIntelligentTieringConfigurationRequest$=[3,Q,`PutBucketIntelligentTieringConfigurationRequest`,0,[g,`Id`,Jt,G],[[0,1],[0,{[Y]:`id`}],[()=>t.IntelligentTieringConfiguration$,{[ta]:1,[X]:Jt}],[0,{[J]:Z}]],3],t.PutBucketInventoryConfigurationRequest$=[3,Q,`PutBucketInventoryConfigurationRequest`,0,[g,`Id`,Pt,G],[[0,1],[0,{[Y]:`id`}],[()=>t.InventoryConfiguration$,{[ta]:1,[X]:Pt}],[0,{[J]:Z}]],3],t.PutBucketLifecycleConfigurationOutput$=[3,Q,`PutBucketLifecycleConfigurationOutput`,0,[wi],[[0,{[J]:Eo}]]],t.PutBucketLifecycleConfigurationRequest$=[3,Q,`PutBucketLifecycleConfigurationRequest`,0,[g,P,ln,G,wi],[[0,1],[0,{[J]:ho}],[()=>t.BucketLifecycleConfiguration$,{[ta]:1,[X]:ln}],[0,{[J]:Z}],[0,{[J]:Eo}]],1],t.PutBucketLoggingRequest$=[3,Q,`PutBucketLoggingRequest`,0,[g,S,U,P,G],[[0,1],[()=>t.BucketLoggingStatus$,{[ta]:1,[X]:S}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketMetricsConfigurationRequest$=[3,Q,`PutBucketMetricsConfigurationRequest`,0,[g,`Id`,vn,G],[[0,1],[0,{[Y]:`id`}],[()=>t.MetricsConfiguration$,{[ta]:1,[X]:vn}],[0,{[J]:Z}]],3],t.PutBucketNotificationConfigurationRequest$=[3,Q,`PutBucketNotificationConfigurationRequest`,0,[g,Nn,G,`SkipDestinationValidation`],[[0,1],[()=>t.NotificationConfiguration$,{[ta]:1,[X]:Nn}],[0,{[J]:Z}],[2,{[J]:`x-amz-skip-destination-validation`}]],2],t.PutBucketOwnershipControlsRequest$=[3,Q,`PutBucketOwnershipControlsRequest`,0,[g,Hn,U,G,P],[[0,1],[()=>t.OwnershipControls$,{[ta]:1,[X]:Hn}],[0,{[J]:H}],[0,{[J]:Z}],[0,{[J]:ho}]],2],t.PutBucketPolicyRequest$=[3,Q,`PutBucketPolicyRequest`,0,[g,pr,U,P,`ConfirmRemoveSelfBucketAccess`,G],[[0,1],[0,16],[0,{[J]:H}],[0,{[J]:ho}],[2,{[J]:`x-amz-confirm-remove-self-bucket-access`}],[0,{[J]:Z}]],2],t.PutBucketReplicationRequest$=[3,Q,`PutBucketReplicationRequest`,0,[g,Dr,U,P,Pi,G],[[0,1],[()=>t.ReplicationConfiguration$,{[ta]:1,[X]:Dr}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Ta}],[0,{[J]:Z}]],2],t.PutBucketRequestPaymentRequest$=[3,Q,`PutBucketRequestPaymentRequest`,0,[g,Pr,U,P,G],[[0,1],[()=>t.RequestPaymentConfiguration$,{[ta]:1,[X]:Pr}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketTaggingRequest$=[3,Q,`PutBucketTaggingRequest`,0,[g,ji,U,P,G],[[0,1],[()=>t.Tagging$,{[ta]:1,[X]:ji}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutBucketVersioningRequest$=[3,Q,`PutBucketVersioningRequest`,0,[g,Vi,U,P,`MFA`,G],[[0,1],[()=>t.VersioningConfiguration$,{[ta]:1,[X]:Vi}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:no}],[0,{[J]:Z}]],2],t.PutBucketWebsiteRequest$=[3,Q,`PutBucketWebsiteRequest`,0,[g,Wi,U,P,G],[[0,1],[()=>t.WebsiteConfiguration$,{[ta]:1,[X]:Wi}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectAclOutput$=[3,Q,`PutObjectAclOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectAclRequest$=[3,Q,`PutObjectAclRequest`,0,[g,`Key`,`ACL`,a,U,P,Tt,Dt,Ot,kt,At,Mr,Hi,G],[[0,1],[0,1],[0,{[J]:ba}],[()=>t.AccessControlPolicy$,{[ta]:1,[X]:a}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:$a}],[0,{[J]:eo}],[0,{[J]:fo}],[0,{[Y]:_a}],[0,{[J]:Z}]],2],t.PutObjectLegalHoldOutput$=[3,Q,`PutObjectLegalHoldOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectLegalHoldRequest$=[3,Q,`PutObjectLegalHoldRequest`,0,[g,`Key`,dn,Mr,Hi,U,P,G],[[0,1],[0,1],[()=>t.ObjectLockLegalHold$,{[ta]:1,[X]:dn}],[0,{[J]:fo}],[0,{[Y]:_a}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectLockConfigurationOutput$=[3,Q,`PutObjectLockConfigurationOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectLockConfigurationRequest$=[3,Q,`PutObjectLockConfigurationRequest`,0,[g,Gn,Mr,Pi,U,P,G],[[0,1],[()=>t.ObjectLockConfiguration$,{[ta]:1,[X]:Gn}],[0,{[J]:fo}],[0,{[J]:Ta}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],1],t.PutObjectOutput$=[3,Q,`PutObjectOutput`,0,[Qe,ct,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ae,oi,Hi,ci,ui,fi,K,x,_i,xr],[[0,{[J]:Ya}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:Wa}],[0,{[J]:_o}],[0,{[J]:Do}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[1,{[J]:`x-amz-object-size`}],[0,{[J]:uo}]]],t.PutObjectRequest$=[3,Q,`PutObjectRequest`,0,[g,`Key`,`ACL`,j,I,te,V,re,oe,U,Me,P,L,R,z,ve,ye,be,se,Pe,Fe,Ie,gt,Rt,Ht,Tt,Dt,Ot,At,`WriteOffsetBytes`,mn,oi,Zr,Gi,ci,li,ui,fi,K,x,Mr,ji,qn,Jn,Kn,G],[[0,1],[0,1],[0,{[J]:ba}],[()=>Bo,16],[0,{[J]:ee}],[0,{[J]:B}],[0,{[J]:ne}],[0,{[J]:ie}],[1,{[J]:ae}],[0,{[J]:H}],[0,{[J]:je}],[0,{[J]:ho}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[4,{[J]:gt}],[0,{[J]:Vt}],[0,{[J]:Ut}],[0,{[J]:Xa}],[0,{[J]:Za}],[0,{[J]:Qa}],[0,{[J]:eo}],[1,{[J]:`x-amz-write-offset-bytes`}],[128,{[na]:to}],[0,{[J]:_o}],[0,{[J]:mo}],[0,{[J]:Oo}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[()=>Ro,{[J]:bo}],[2,{[J]:yo}],[0,{[J]:fo}],[0,{[J]:wo}],[0,{[J]:oo}],[5,{[J]:so}],[0,{[J]:ao}],[0,{[J]:Z}]],2],t.PutObjectRetentionOutput$=[3,Q,`PutObjectRetentionOutput`,0,[xr],[[0,{[J]:uo}]]],t.PutObjectRetentionRequest$=[3,Q,`PutObjectRetentionRequest`,0,[g,`Key`,Gr,Mr,Hi,b,U,P,G],[[0,1],[0,1],[()=>t.ObjectLockRetention$,{[ta]:1,[X]:Gr}],[0,{[J]:fo}],[0,{[Y]:_a}],[2,{[J]:wa}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.PutObjectTaggingOutput$=[3,Q,`PutObjectTaggingOutput`,0,[Hi],[[0,{[J]:Do}]]],t.PutObjectTaggingRequest$=[3,Q,`PutObjectTaggingRequest`,0,[g,`Key`,ji,Hi,U,P,G,Mr],[[0,1],[0,1],[()=>t.Tagging$,{[ta]:1,[X]:ji}],[0,{[Y]:_a}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}],[0,{[J]:fo}]],3],t.PutPublicAccessBlockRequest$=[3,Q,`PutPublicAccessBlockRequest`,0,[g,nr,U,P,G],[[0,1],[()=>t.PublicAccessBlockConfiguration$,{[ta]:1,[X]:nr}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.QueueConfiguration$=[3,Q,_r,0,[`QueueArn`,mt,`Id`,vt],[[0,{[X]:`Queue`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.RecordExpiration$=[3,Q,Ar,0,[Qe,Be],[0,1],1],t.RecordsEvent$=[3,Q,`RecordsEvent`,0,[dr],[[21,{[Zi]:1}]]],t.Redirect$=[3,Q,Wr,0,[Nt,`HttpRedirectCode`,hr,`ReplaceKeyPrefixWith`,`ReplaceKeyWith`],[0,0,0,0,0]],t.RedirectAllRequestsTo$=[3,Q,br,0,[Nt,hr],[0,0],1],t.RenameObjectOutput$=[3,Q,`RenameObjectOutput`,0,[],[]],t.RenameObjectRequest$=[3,Q,`RenameObjectRequest`,0,[g,`Key`,`RenameSource`,`DestinationIfMatch`,`DestinationIfNoneMatch`,`DestinationIfModifiedSince`,`DestinationIfUnmodifiedSince`,`SourceIfMatch`,`SourceIfNoneMatch`,`SourceIfModifiedSince`,`SourceIfUnmodifiedSince`,`ClientToken`],[[0,1],[0,1],[0,{[J]:`x-amz-rename-source`}],[0,{[J]:Vt}],[0,{[J]:Ut}],[4,{[J]:zt}],[4,{[J]:$t}],[0,{[J]:`x-amz-rename-source-if-match`}],[0,{[J]:`x-amz-rename-source-if-none-match`}],[6,{[J]:`x-amz-rename-source-if-modified-since`}],[6,{[J]:`x-amz-rename-source-if-unmodified-since`}],[0,{[J]:`x-amz-client-token`,idempotencyToken:1}]],3],t.ReplicaModifications$=[3,Q,jr,0,[qr],[0],1],t.ReplicationConfiguration$=[3,Q,Dr,0,[`Role`,yr],[0,[()=>ms,{[va]:1,[X]:Kr}]],2],t.ReplicationRule$=[3,Q,`ReplicationRule`,0,[qr,Xe,`ID`,`Priority`,tr,vt,ai,it,He],[0,()=>t.Destination$,0,1,0,[()=>t.ReplicationRuleFilter$,0],()=>t.SourceSelectionCriteria$,()=>t.ExistingObjectReplication$,()=>t.DeleteMarkerReplication$],2],t.ReplicationRuleAndOperator$=[3,Q,`ReplicationRuleAndOperator`,0,[tr,yi],[0,[()=>_s,{[va]:1,[X]:`Tag`}]]],t.ReplicationRuleFilter$=[3,Q,`ReplicationRuleFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.ReplicationRuleAndOperator$,0]]],t.ReplicationTime$=[3,Q,Vr,0,[qr,`Time`],[0,()=>t.ReplicationTimeValue$],2],t.ReplicationTimeValue$=[3,Q,`ReplicationTimeValue`,0,[`Minutes`],[1]],t.RequestPaymentConfiguration$=[3,Q,Pr,0,[ur],[0],1],t.RequestProgress$=[3,Q,Fr,0,[`Enabled`],[2]],t.RestoreObjectOutput$=[3,Q,`RestoreObjectOutput`,0,[xr,`RestoreOutputPath`],[[0,{[J]:uo}],[0,{[J]:`x-amz-restore-output-path`}]]],t.RestoreObjectRequest$=[3,Q,`RestoreObjectRequest`,0,[g,`Key`,Hi,Lr,Mr,P,G],[[0,1],[0,1],[0,{[Y]:_a}],[()=>t.RestoreRequest$,{[ta]:1,[X]:Lr}],[0,{[J]:fo}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.RestoreRequest$=[3,Q,Lr,0,[Be,Et,Ii,Mi,`Description`,ti,Wn],[1,()=>t.GlacierJobParameters$,0,0,0,()=>t.SelectParameters$,[()=>t.OutputLocation$,0]]],t.RestoreStatus$=[3,Q,Br,0,[`IsRestoreInProgress`,`RestoreExpiryDate`],[2,4]],t.RoutingRule$=[3,Q,Rr,0,[Wr,Le],[()=>t.Redirect$,()=>t.Condition$],1],t.S3KeyFilter$=[3,Q,`S3KeyFilter`,0,[`FilterRules`],[[()=>Zo,{[va]:1,[X]:bt}]]],t.S3Location$=[3,Q,`S3Location`,0,[`BucketName`,tr,dt,`CannedACL`,r,ji,zi,Zr],[0,0,[()=>t.Encryption$,0],0,[()=>Qo,0],[()=>t.Tagging$,0],[()=>ws,0],0],2],t.S3TablesDestination$=[3,Q,hi,0,[xi,Di],[0,0],2],t.S3TablesDestinationResult$=[3,Q,gi,0,[xi,Di,bi,Ei],[0,0,0,0],4],t.ScanRange$=[3,Q,ri,0,[`Start`,`End`],[1,1]],t.SelectObjectContentOutput$=[3,Q,`SelectObjectContentOutput`,0,[dr],[[()=>t.SelectObjectContentEventStream$,16]]],t.SelectObjectContentRequest$=[3,Q,`SelectObjectContentRequest`,0,[g,`Key`,_t,ut,Kt,$n,ci,li,ui,Fr,ri,G],[[0,1],[0,1],0,0,()=>t.InputSerialization$,()=>t.OutputSerialization$,[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],()=>t.RequestProgress$,()=>t.ScanRange$,[0,{[J]:Z}]],6],t.SelectParameters$=[3,Q,ti,0,[Kt,ut,_t,$n],[()=>t.InputSerialization$,0,0,()=>t.OutputSerialization$],4],t.ServerSideEncryptionByDefault$=[3,Q,`ServerSideEncryptionByDefault`,0,[`SSEAlgorithm`,`KMSMasterKeyID`],[0,[()=>zo,0]],1],t.ServerSideEncryptionConfiguration$=[3,Q,si,0,[yr],[[()=>gs,{[va]:1,[X]:Kr}]],1],t.ServerSideEncryptionRule$=[3,Q,`ServerSideEncryptionRule`,0,[`ApplyServerSideEncryptionByDefault`,x,y],[[()=>t.ServerSideEncryptionByDefault$,0],2,[()=>t.BlockedEncryptionTypes$,0]]],t.SessionCredentials$=[3,Q,`SessionCredentials`,0,[u,Yr,mi,Qe],[[0,{[X]:u}],[()=>Io,{[X]:Yr}],[()=>Io,{[X]:mi}],[4,{[X]:Qe}]],4],t.SimplePrefix$=[3,Q,ni,{[X]:ni},[],[]],t.SourceSelectionCriteria$=[3,Q,ai,0,[ei,jr],[()=>t.SseKmsEncryptedObjects$,()=>t.ReplicaModifications$]],t.SSEKMS$=[3,Q,di,{[X]:$r},[`KeyId`],[[()=>zo,0]],1],t.SseKmsEncryptedObjects$=[3,Q,ei,0,[qr],[0],1],t.SSEKMSEncryption$=[3,Q,`SSEKMSEncryption`,{[X]:$r},[`KMSKeyArn`,x],[[()=>Fo,0],2],1],t.SSES3$=[3,Q,pi,{[X]:ii},[],[]],t.Stats$=[3,Q,vi,0,[A,C,k],[1,1,1]],t.StatsEvent$=[3,Q,`StatsEvent`,0,[Ze],[[()=>t.Stats$,{[Zi]:1}]]],t.StorageClassAnalysis$=[3,Q,Qr,0,[`DataExport`],[()=>t.StorageClassAnalysisDataExport$]],t.StorageClassAnalysisDataExport$=[3,Q,`StorageClassAnalysisDataExport`,0,[`OutputSchemaVersion`,Xe],[0,()=>t.AnalyticsExportDestination$],2],t.Tag$=[3,Q,`Tag`,0,[`Key`,Bi],[0,0],2],t.Tagging$=[3,Q,ji,0,[ki],[[()=>_s,0]],1],t.TargetGrant$=[3,Q,`TargetGrant`,0,[Mt,fr],[[()=>t.Grantee$,{[ya]:[`xsi`,ra]}],0]],t.TargetObjectKeyFormat$=[3,Q,Oi,0,[ni,or],[[()=>t.SimplePrefix$,{[X]:ni}],[()=>t.PartitionedPrefix$,{[X]:or}]]],t.Tiering$=[3,Q,Ni,0,[Be,h],[1,0],2],t.TopicConfiguration$=[3,Q,Ci,0,[`TopicArn`,mt,`Id`,vt],[[0,{[X]:`Topic`}],[64,{[va]:1,[X]:ht}],0,[()=>t.NotificationConfigurationFilter$,0]],2],t.Transition$=[3,Q,Fi,0,[qe,Be,Zr],[5,1,0]],t.UpdateBucketMetadataInventoryTableConfigurationRequest$=[3,Q,`UpdateBucketMetadataInventoryTableConfigurationRequest`,0,[g,Zt,U,P,G],[[0,1],[()=>t.InventoryTableConfigurationUpdates$,{[ta]:1,[X]:Zt}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.UpdateBucketMetadataJournalTableConfigurationRequest$=[3,Q,`UpdateBucketMetadataJournalTableConfigurationRequest`,0,[g,nn,U,P,G],[[0,1],[()=>t.JournalTableConfigurationUpdates$,{[ta]:1,[X]:nn}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Z}]],2],t.UpdateObjectEncryptionRequest$=[3,Q,`UpdateObjectEncryptionRequest`,0,[g,`Key`,Un,Hi,Mr,G,U,P],[[0,1],[0,1],[()=>t.ObjectEncryption$,16],[0,{[Y]:_a}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:H}],[0,{[J]:ho}]],3],t.UpdateObjectEncryptionResponse$=[3,Q,`UpdateObjectEncryptionResponse`,0,[xr],[[0,{[J]:uo}]]],t.UploadPartCopyOutput$=[3,Q,`UploadPartCopyOutput`,0,[Oe,pe,oi,ci,ui,fi,x,xr],[[0,{[J]:Ua}],[()=>t.CopyPartResult$,16],[0,{[J]:_o}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.UploadPartCopyRequest$=[3,Q,`UploadPartCopyRequest`,0,[g,_e,`Key`,ir,Li,xe,Se,Ce,we,`CopySourceRange`,ci,li,ui,Te,Ee,De,Mr,G,ot],[[0,1],[0,{[J]:Fa}],[0,1],[1,{[Y]:sa}],[0,{[Y]:ga}],[0,{[J]:Ia}],[4,{[J]:La}],[0,{[J]:Ra}],[4,{[J]:za}],[0,{[J]:`x-amz-copy-source-range`}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:Ba}],[()=>Po,{[J]:Va}],[0,{[J]:Ha}],[0,{[J]:fo}],[0,{[J]:Z}],[0,{[J]:go}]],5],t.UploadPartOutput$=[3,Q,`UploadPartOutput`,0,[oi,ct,L,R,z,ve,ye,be,se,Pe,Fe,Ie,ci,ui,fi,x,xr],[[0,{[J]:_o}],[0,{[J]:ct}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:xo}],[0,{[J]:Co}],[()=>zo,{[J]:vo}],[2,{[J]:yo}],[0,{[J]:uo}]]],t.UploadPartRequest$=[3,Q,`UploadPartRequest`,0,[g,`Key`,ir,Li,j,oe,U,P,L,R,z,ve,ye,be,se,Pe,Fe,Ie,ci,li,ui,Mr,G],[[0,1],[0,1],[1,{[Y]:sa}],[0,{[Y]:ga}],[()=>Bo,16],[1,{[J]:ae}],[0,{[J]:H}],[0,{[J]:ho}],[0,{[J]:Da}],[0,{[J]:Oa}],[0,{[J]:ka}],[0,{[J]:Ma}],[0,{[J]:Na}],[0,{[J]:Pa}],[0,{[J]:Aa}],[0,{[J]:Ga}],[0,{[J]:Ka}],[0,{[J]:qa}],[0,{[J]:xo}],[()=>Lo,{[J]:So}],[0,{[J]:Co}],[0,{[J]:fo}],[0,{[J]:Z}]],4],t.VersioningConfiguration$=[3,Q,Vi,0,[xn,qr],[[0,{[X]:yn}],0]],t.WebsiteConfiguration$=[3,Q,Wi,0,[nt,It,br,Ir],[()=>t.ErrorDocument$,()=>t.IndexDocument$,()=>t.RedirectAllRequestsTo$,[()=>hs,0]]],t.WriteGetObjectResponseRequest$=[3,Q,`WriteGetObjectResponseRequest`,0,[`RequestRoute`,`RequestToken`,j,`StatusCode`,tt,rt,f,I,te,V,re,oe,he,Me,L,R,z,ve,ye,be,se,Pe,Fe,Ie,Ve,ct,gt,Qe,fn,Cn,mn,qn,Kn,Jn,rr,zr,xr,Ur,oi,ci,fi,ui,Zr,Si,Hi,x],[[0,{hostLabel:1,[J]:`x-amz-request-route`}],[0,{[J]:`x-amz-request-token`}],[()=>Bo,16],[1,{[J]:`x-amz-fwd-status`}],[0,{[J]:`x-amz-fwd-error-code`}],[0,{[J]:`x-amz-fwd-error-message`}],[0,{[J]:`x-amz-fwd-header-accept-ranges`}],[0,{[J]:`x-amz-fwd-header-Cache-Control`}],[0,{[J]:`x-amz-fwd-header-Content-Disposition`}],[0,{[J]:`x-amz-fwd-header-Content-Encoding`}],[0,{[J]:`x-amz-fwd-header-Content-Language`}],[1,{[J]:ae}],[0,{[J]:`x-amz-fwd-header-Content-Range`}],[0,{[J]:`x-amz-fwd-header-Content-Type`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc32`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc32c`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-crc64nvme`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha1`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha256`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-sha512`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-md5`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash64`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash3`}],[0,{[J]:`x-amz-fwd-header-x-amz-checksum-xxhash128`}],[2,{[J]:`x-amz-fwd-header-x-amz-delete-marker`}],[0,{[J]:`x-amz-fwd-header-ETag`}],[4,{[J]:`x-amz-fwd-header-Expires`}],[0,{[J]:`x-amz-fwd-header-x-amz-expiration`}],[4,{[J]:`x-amz-fwd-header-Last-Modified`}],[1,{[J]:`x-amz-fwd-header-x-amz-missing-meta`}],[128,{[na]:to}],[0,{[J]:`x-amz-fwd-header-x-amz-object-lock-mode`}],[0,{[J]:`x-amz-fwd-header-x-amz-object-lock-legal-hold`}],[5,{[J]:`x-amz-fwd-header-x-amz-object-lock-retain-until-date`}],[1,{[J]:`x-amz-fwd-header-x-amz-mp-parts-count`}],[0,{[J]:`x-amz-fwd-header-x-amz-replication-status`}],[0,{[J]:`x-amz-fwd-header-x-amz-request-charged`}],[0,{[J]:`x-amz-fwd-header-x-amz-restore`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm`}],[()=>zo,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id`}],[0,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5`}],[0,{[J]:`x-amz-fwd-header-x-amz-storage-class`}],[1,{[J]:`x-amz-fwd-header-x-amz-tagging-count`}],[0,{[J]:`x-amz-fwd-header-x-amz-version-id`}],[2,{[J]:`x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled`}]],2];var Vo=`unit`,Ho=[1,Q,i,0,[()=>t.AnalyticsConfiguration$,0]],Uo=[1,Q,M,0,[()=>t.Bucket$,{[X]:g}]],Wo=[1,Q,`CommonPrefixList`,0,()=>t.CommonPrefix$],Go=[1,Q,`CompletedPartList`,0,()=>t.CompletedPart$],Ko=[1,Q,de,0,[()=>t.CORSRule$,0]],qo=[1,Q,`DeletedObjects`,0,()=>t.DeletedObject$],Jo=[1,Q,Ue,0,()=>t.DeleteMarkerEntry$],Yo=[1,Q,`EncryptionTypeList`,0,[0,{[X]:st}]],Xo=[1,Q,ft,0,()=>t._Error$],Zo=[1,Q,`FilterRuleList`,0,()=>t.FilterRule$],Qo=[1,Q,St,0,[()=>t.Grant$,{[X]:jt}]],$o=[1,Q,Yt,0,[()=>t.IntelligentTieringConfiguration$,0]],es=[1,Q,Ft,0,[()=>t.InventoryConfiguration$,0]],ts=[1,Q,`InventoryOptionalFields`,0,[0,{[X]:`Field`}]],ns=[1,Q,`LambdaFunctionConfigurationList`,0,[()=>t.LambdaFunctionConfiguration$,0]],rs=[1,Q,`LifecycleRules`,0,[()=>t.LifecycleRule$,0]],is=[1,Q,gn,0,[()=>t.MetricsConfiguration$,0]],as=[1,Q,`MultipartUploadList`,0,()=>t.MultipartUpload$],os=[1,Q,`NoncurrentVersionTransitionList`,0,()=>t.NoncurrentVersionTransition$],ss=[1,Q,`ObjectIdentifierList`,0,()=>t.ObjectIdentifier$],cs=[1,Q,`ObjectList`,0,[()=>t._Object$,0]],ls=[1,Q,`ObjectVersionList`,0,[()=>t.ObjectVersion$,0]],us=[1,Q,`OwnershipControlsRules`,0,()=>t.OwnershipControlsRule$],ds=[1,Q,cr,0,()=>t.Part$],fs=[1,Q,`PartsList`,0,()=>t.ObjectPart$],ps=[1,Q,`QueueConfigurationList`,0,[()=>t.QueueConfiguration$,0]],ms=[1,Q,`ReplicationRules`,0,[()=>t.ReplicationRule$,0]],hs=[1,Q,Ir,0,[()=>t.RoutingRule$,{[X]:Rr}]],gs=[1,Q,`ServerSideEncryptionRules`,0,[()=>t.ServerSideEncryptionRule$,0]],_s=[1,Q,ki,0,[()=>t.Tag$,{[X]:`Tag`}]],bs=[1,Q,Ti,0,[()=>t.TargetGrant$,{[X]:jt}]],xs=[1,Q,`TieringList`,0,()=>t.Tiering$],Ss=[1,Q,`TopicConfigurationList`,0,[()=>t.TopicConfiguration$,0]],Cs=[1,Q,`TransitionList`,0,()=>t.Transition$],ws=[1,Q,zi,0,[()=>t.MetadataEntry$,{[X]:bn}]];t.AnalyticsFilter$=[4,Q,`AnalyticsFilter`,0,[tr,`Tag`,`And`],[0,()=>t.Tag$,[()=>t.AnalyticsAndOperator$,0]]],t.MetricsFilter$=[4,Q,`MetricsFilter`,0,[tr,`Tag`,d,`And`],[0,()=>t.Tag$,0,[()=>t.MetricsAndOperator$,0]]],t.ObjectEncryption$=[4,Q,Un,0,[di],[[()=>t.SSEKMSEncryption$,{[X]:$r}]]],t.SelectObjectContentEventStream$=[4,Q,`SelectObjectContentEventStream`,{[ha]:1},[`Records`,vi,mr,`Cont`,`End`],[[()=>t.RecordsEvent$,0],[()=>t.StatsEvent$,0],[()=>t.ProgressEvent$,0],()=>t.ContinuationEvent$,()=>t.EndEvent$]],t.AbortMultipartUpload$=[9,Q,`AbortMultipartUpload`,{[q]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>t.AbortMultipartUploadRequest$,()=>t.AbortMultipartUploadOutput$],t.CompleteMultipartUpload$=[9,Q,ce,{[q]:[`POST`,`/{Key+}`,200]},()=>t.CompleteMultipartUploadRequest$,()=>t.CompleteMultipartUploadOutput$],t.CopyObject$=[9,Q,`CopyObject`,{[q]:[`PUT`,`/{Key+}?x-id=CopyObject`,200]},()=>t.CopyObjectRequest$,()=>t.CopyObjectOutput$],t.CreateBucket$=[9,Q,`CreateBucket`,{[q]:[`PUT`,`/`,200]},()=>t.CreateBucketRequest$,()=>t.CreateBucketOutput$],t.CreateBucketMetadataConfiguration$=[9,Q,`CreateBucketMetadataConfiguration`,{[$i]:`-`,[q]:[`POST`,`/?metadataConfiguration`,200]},()=>t.CreateBucketMetadataConfigurationRequest$,()=>Vo],t.CreateBucketMetadataTableConfiguration$=[9,Q,`CreateBucketMetadataTableConfiguration`,{[$i]:`-`,[q]:[`POST`,`/?metadataTable`,200]},()=>t.CreateBucketMetadataTableConfigurationRequest$,()=>Vo],t.CreateMultipartUpload$=[9,Q,`CreateMultipartUpload`,{[q]:[`POST`,`/{Key+}?uploads`,200]},()=>t.CreateMultipartUploadRequest$,()=>t.CreateMultipartUploadOutput$],t.CreateSession$=[9,Q,`CreateSession`,{[q]:[`GET`,`/?session`,200]},()=>t.CreateSessionRequest$,()=>t.CreateSessionOutput$],t.DeleteBucket$=[9,Q,`DeleteBucket`,{[q]:[`DELETE`,`/`,204]},()=>t.DeleteBucketRequest$,()=>Vo],t.DeleteBucketAnalyticsConfiguration$=[9,Q,`DeleteBucketAnalyticsConfiguration`,{[q]:[`DELETE`,`/?analytics`,204]},()=>t.DeleteBucketAnalyticsConfigurationRequest$,()=>Vo],t.DeleteBucketCors$=[9,Q,`DeleteBucketCors`,{[q]:[`DELETE`,`/?cors`,204]},()=>t.DeleteBucketCorsRequest$,()=>Vo],t.DeleteBucketEncryption$=[9,Q,`DeleteBucketEncryption`,{[q]:[`DELETE`,`/?encryption`,204]},()=>t.DeleteBucketEncryptionRequest$,()=>Vo],t.DeleteBucketIntelligentTieringConfiguration$=[9,Q,`DeleteBucketIntelligentTieringConfiguration`,{[q]:[`DELETE`,`/?intelligent-tiering`,204]},()=>t.DeleteBucketIntelligentTieringConfigurationRequest$,()=>Vo],t.DeleteBucketInventoryConfiguration$=[9,Q,`DeleteBucketInventoryConfiguration`,{[q]:[`DELETE`,`/?inventory`,204]},()=>t.DeleteBucketInventoryConfigurationRequest$,()=>Vo],t.DeleteBucketLifecycle$=[9,Q,`DeleteBucketLifecycle`,{[q]:[`DELETE`,`/?lifecycle`,204]},()=>t.DeleteBucketLifecycleRequest$,()=>Vo],t.DeleteBucketMetadataConfiguration$=[9,Q,`DeleteBucketMetadataConfiguration`,{[q]:[`DELETE`,`/?metadataConfiguration`,204]},()=>t.DeleteBucketMetadataConfigurationRequest$,()=>Vo],t.DeleteBucketMetadataTableConfiguration$=[9,Q,`DeleteBucketMetadataTableConfiguration`,{[q]:[`DELETE`,`/?metadataTable`,204]},()=>t.DeleteBucketMetadataTableConfigurationRequest$,()=>Vo],t.DeleteBucketMetricsConfiguration$=[9,Q,`DeleteBucketMetricsConfiguration`,{[q]:[`DELETE`,`/?metrics`,204]},()=>t.DeleteBucketMetricsConfigurationRequest$,()=>Vo],t.DeleteBucketOwnershipControls$=[9,Q,`DeleteBucketOwnershipControls`,{[q]:[`DELETE`,`/?ownershipControls`,204]},()=>t.DeleteBucketOwnershipControlsRequest$,()=>Vo],t.DeleteBucketPolicy$=[9,Q,`DeleteBucketPolicy`,{[q]:[`DELETE`,`/?policy`,204]},()=>t.DeleteBucketPolicyRequest$,()=>Vo],t.DeleteBucketReplication$=[9,Q,`DeleteBucketReplication`,{[q]:[`DELETE`,`/?replication`,204]},()=>t.DeleteBucketReplicationRequest$,()=>Vo],t.DeleteBucketTagging$=[9,Q,`DeleteBucketTagging`,{[q]:[`DELETE`,`/?tagging`,204]},()=>t.DeleteBucketTaggingRequest$,()=>Vo],t.DeleteBucketWebsite$=[9,Q,`DeleteBucketWebsite`,{[q]:[`DELETE`,`/?website`,204]},()=>t.DeleteBucketWebsiteRequest$,()=>Vo],t.DeleteObject$=[9,Q,`DeleteObject`,{[q]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>t.DeleteObjectRequest$,()=>t.DeleteObjectOutput$],t.DeleteObjects$=[9,Q,`DeleteObjects`,{[$i]:`-`,[q]:[`POST`,`/?delete`,200]},()=>t.DeleteObjectsRequest$,()=>t.DeleteObjectsOutput$],t.DeleteObjectTagging$=[9,Q,`DeleteObjectTagging`,{[q]:[`DELETE`,`/{Key+}?tagging`,204]},()=>t.DeleteObjectTaggingRequest$,()=>t.DeleteObjectTaggingOutput$],t.DeletePublicAccessBlock$=[9,Q,`DeletePublicAccessBlock`,{[q]:[`DELETE`,`/?publicAccessBlock`,204]},()=>t.DeletePublicAccessBlockRequest$,()=>Vo],t.GetBucketAbac$=[9,Q,`GetBucketAbac`,{[q]:[`GET`,`/?abac`,200]},()=>t.GetBucketAbacRequest$,()=>t.GetBucketAbacOutput$],t.GetBucketAccelerateConfiguration$=[9,Q,`GetBucketAccelerateConfiguration`,{[q]:[`GET`,`/?accelerate`,200]},()=>t.GetBucketAccelerateConfigurationRequest$,()=>t.GetBucketAccelerateConfigurationOutput$],t.GetBucketAcl$=[9,Q,`GetBucketAcl`,{[q]:[`GET`,`/?acl`,200]},()=>t.GetBucketAclRequest$,()=>t.GetBucketAclOutput$],t.GetBucketAnalyticsConfiguration$=[9,Q,`GetBucketAnalyticsConfiguration`,{[q]:[`GET`,`/?analytics&x-id=GetBucketAnalyticsConfiguration`,200]},()=>t.GetBucketAnalyticsConfigurationRequest$,()=>t.GetBucketAnalyticsConfigurationOutput$],t.GetBucketCors$=[9,Q,`GetBucketCors`,{[q]:[`GET`,`/?cors`,200]},()=>t.GetBucketCorsRequest$,()=>t.GetBucketCorsOutput$],t.GetBucketEncryption$=[9,Q,`GetBucketEncryption`,{[q]:[`GET`,`/?encryption`,200]},()=>t.GetBucketEncryptionRequest$,()=>t.GetBucketEncryptionOutput$],t.GetBucketIntelligentTieringConfiguration$=[9,Q,`GetBucketIntelligentTieringConfiguration`,{[q]:[`GET`,`/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration`,200]},()=>t.GetBucketIntelligentTieringConfigurationRequest$,()=>t.GetBucketIntelligentTieringConfigurationOutput$],t.GetBucketInventoryConfiguration$=[9,Q,`GetBucketInventoryConfiguration`,{[q]:[`GET`,`/?inventory&x-id=GetBucketInventoryConfiguration`,200]},()=>t.GetBucketInventoryConfigurationRequest$,()=>t.GetBucketInventoryConfigurationOutput$],t.GetBucketLifecycleConfiguration$=[9,Q,`GetBucketLifecycleConfiguration`,{[q]:[`GET`,`/?lifecycle`,200]},()=>t.GetBucketLifecycleConfigurationRequest$,()=>t.GetBucketLifecycleConfigurationOutput$],t.GetBucketLocation$=[9,Q,`GetBucketLocation`,{[q]:[`GET`,`/?location`,200]},()=>t.GetBucketLocationRequest$,()=>t.GetBucketLocationOutput$],t.GetBucketLogging$=[9,Q,`GetBucketLogging`,{[q]:[`GET`,`/?logging`,200]},()=>t.GetBucketLoggingRequest$,()=>t.GetBucketLoggingOutput$],t.GetBucketMetadataConfiguration$=[9,Q,`GetBucketMetadataConfiguration`,{[q]:[`GET`,`/?metadataConfiguration`,200]},()=>t.GetBucketMetadataConfigurationRequest$,()=>t.GetBucketMetadataConfigurationOutput$],t.GetBucketMetadataTableConfiguration$=[9,Q,`GetBucketMetadataTableConfiguration`,{[q]:[`GET`,`/?metadataTable`,200]},()=>t.GetBucketMetadataTableConfigurationRequest$,()=>t.GetBucketMetadataTableConfigurationOutput$],t.GetBucketMetricsConfiguration$=[9,Q,`GetBucketMetricsConfiguration`,{[q]:[`GET`,`/?metrics&x-id=GetBucketMetricsConfiguration`,200]},()=>t.GetBucketMetricsConfigurationRequest$,()=>t.GetBucketMetricsConfigurationOutput$],t.GetBucketNotificationConfiguration$=[9,Q,`GetBucketNotificationConfiguration`,{[q]:[`GET`,`/?notification`,200]},()=>t.GetBucketNotificationConfigurationRequest$,()=>t.NotificationConfiguration$],t.GetBucketOwnershipControls$=[9,Q,`GetBucketOwnershipControls`,{[q]:[`GET`,`/?ownershipControls`,200]},()=>t.GetBucketOwnershipControlsRequest$,()=>t.GetBucketOwnershipControlsOutput$],t.GetBucketPolicy$=[9,Q,`GetBucketPolicy`,{[q]:[`GET`,`/?policy`,200]},()=>t.GetBucketPolicyRequest$,()=>t.GetBucketPolicyOutput$],t.GetBucketPolicyStatus$=[9,Q,`GetBucketPolicyStatus`,{[q]:[`GET`,`/?policyStatus`,200]},()=>t.GetBucketPolicyStatusRequest$,()=>t.GetBucketPolicyStatusOutput$],t.GetBucketReplication$=[9,Q,`GetBucketReplication`,{[q]:[`GET`,`/?replication`,200]},()=>t.GetBucketReplicationRequest$,()=>t.GetBucketReplicationOutput$],t.GetBucketRequestPayment$=[9,Q,`GetBucketRequestPayment`,{[q]:[`GET`,`/?requestPayment`,200]},()=>t.GetBucketRequestPaymentRequest$,()=>t.GetBucketRequestPaymentOutput$],t.GetBucketTagging$=[9,Q,`GetBucketTagging`,{[q]:[`GET`,`/?tagging`,200]},()=>t.GetBucketTaggingRequest$,()=>t.GetBucketTaggingOutput$],t.GetBucketVersioning$=[9,Q,`GetBucketVersioning`,{[q]:[`GET`,`/?versioning`,200]},()=>t.GetBucketVersioningRequest$,()=>t.GetBucketVersioningOutput$],t.GetBucketWebsite$=[9,Q,`GetBucketWebsite`,{[q]:[`GET`,`/?website`,200]},()=>t.GetBucketWebsiteRequest$,()=>t.GetBucketWebsiteOutput$],t.GetObject$=[9,Q,`GetObject`,{[$i]:`-`,[q]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>t.GetObjectRequest$,()=>t.GetObjectOutput$],t.GetObjectAcl$=[9,Q,`GetObjectAcl`,{[q]:[`GET`,`/{Key+}?acl`,200]},()=>t.GetObjectAclRequest$,()=>t.GetObjectAclOutput$],t.GetObjectAttributes$=[9,Q,`GetObjectAttributes`,{[q]:[`GET`,`/{Key+}?attributes`,200]},()=>t.GetObjectAttributesRequest$,()=>t.GetObjectAttributesOutput$],t.GetObjectLegalHold$=[9,Q,`GetObjectLegalHold`,{[q]:[`GET`,`/{Key+}?legal-hold`,200]},()=>t.GetObjectLegalHoldRequest$,()=>t.GetObjectLegalHoldOutput$],t.GetObjectLockConfiguration$=[9,Q,`GetObjectLockConfiguration`,{[q]:[`GET`,`/?object-lock`,200]},()=>t.GetObjectLockConfigurationRequest$,()=>t.GetObjectLockConfigurationOutput$],t.GetObjectRetention$=[9,Q,`GetObjectRetention`,{[q]:[`GET`,`/{Key+}?retention`,200]},()=>t.GetObjectRetentionRequest$,()=>t.GetObjectRetentionOutput$],t.GetObjectTagging$=[9,Q,`GetObjectTagging`,{[q]:[`GET`,`/{Key+}?tagging`,200]},()=>t.GetObjectTaggingRequest$,()=>t.GetObjectTaggingOutput$],t.GetObjectTorrent$=[9,Q,`GetObjectTorrent`,{[q]:[`GET`,`/{Key+}?torrent`,200]},()=>t.GetObjectTorrentRequest$,()=>t.GetObjectTorrentOutput$],t.GetPublicAccessBlock$=[9,Q,`GetPublicAccessBlock`,{[q]:[`GET`,`/?publicAccessBlock`,200]},()=>t.GetPublicAccessBlockRequest$,()=>t.GetPublicAccessBlockOutput$],t.HeadBucket$=[9,Q,`HeadBucket`,{[q]:[`HEAD`,`/`,200]},()=>t.HeadBucketRequest$,()=>t.HeadBucketOutput$],t.HeadObject$=[9,Q,`HeadObject`,{[q]:[`HEAD`,`/{Key+}`,200]},()=>t.HeadObjectRequest$,()=>t.HeadObjectOutput$],t.ListBucketAnalyticsConfigurations$=[9,Q,`ListBucketAnalyticsConfigurations`,{[q]:[`GET`,`/?analytics&x-id=ListBucketAnalyticsConfigurations`,200]},()=>t.ListBucketAnalyticsConfigurationsRequest$,()=>t.ListBucketAnalyticsConfigurationsOutput$],t.ListBucketIntelligentTieringConfigurations$=[9,Q,`ListBucketIntelligentTieringConfigurations`,{[q]:[`GET`,`/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations`,200]},()=>t.ListBucketIntelligentTieringConfigurationsRequest$,()=>t.ListBucketIntelligentTieringConfigurationsOutput$],t.ListBucketInventoryConfigurations$=[9,Q,`ListBucketInventoryConfigurations`,{[q]:[`GET`,`/?inventory&x-id=ListBucketInventoryConfigurations`,200]},()=>t.ListBucketInventoryConfigurationsRequest$,()=>t.ListBucketInventoryConfigurationsOutput$],t.ListBucketMetricsConfigurations$=[9,Q,`ListBucketMetricsConfigurations`,{[q]:[`GET`,`/?metrics&x-id=ListBucketMetricsConfigurations`,200]},()=>t.ListBucketMetricsConfigurationsRequest$,()=>t.ListBucketMetricsConfigurationsOutput$],t.ListBuckets$=[9,Q,`ListBuckets`,{[q]:[`GET`,`/?x-id=ListBuckets`,200]},()=>t.ListBucketsRequest$,()=>t.ListBucketsOutput$],t.ListDirectoryBuckets$=[9,Q,`ListDirectoryBuckets`,{[q]:[`GET`,`/?x-id=ListDirectoryBuckets`,200]},()=>t.ListDirectoryBucketsRequest$,()=>t.ListDirectoryBucketsOutput$],t.ListMultipartUploads$=[9,Q,`ListMultipartUploads`,{[q]:[`GET`,`/?uploads`,200]},()=>t.ListMultipartUploadsRequest$,()=>t.ListMultipartUploadsOutput$],t.ListObjects$=[9,Q,`ListObjects`,{[q]:[`GET`,`/`,200]},()=>t.ListObjectsRequest$,()=>t.ListObjectsOutput$],t.ListObjectsV2$=[9,Q,`ListObjectsV2`,{[q]:[`GET`,`/?list-type=2`,200]},()=>t.ListObjectsV2Request$,()=>t.ListObjectsV2Output$],t.ListObjectVersions$=[9,Q,`ListObjectVersions`,{[q]:[`GET`,`/?versions`,200]},()=>t.ListObjectVersionsRequest$,()=>t.ListObjectVersionsOutput$],t.ListParts$=[9,Q,`ListParts`,{[q]:[`GET`,`/{Key+}?x-id=ListParts`,200]},()=>t.ListPartsRequest$,()=>t.ListPartsOutput$],t.PutBucketAbac$=[9,Q,`PutBucketAbac`,{[$i]:`-`,[q]:[`PUT`,`/?abac`,200]},()=>t.PutBucketAbacRequest$,()=>Vo],t.PutBucketAccelerateConfiguration$=[9,Q,`PutBucketAccelerateConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?accelerate`,200]},()=>t.PutBucketAccelerateConfigurationRequest$,()=>Vo],t.PutBucketAcl$=[9,Q,`PutBucketAcl`,{[$i]:`-`,[q]:[`PUT`,`/?acl`,200]},()=>t.PutBucketAclRequest$,()=>Vo],t.PutBucketAnalyticsConfiguration$=[9,Q,`PutBucketAnalyticsConfiguration`,{[q]:[`PUT`,`/?analytics`,200]},()=>t.PutBucketAnalyticsConfigurationRequest$,()=>Vo],t.PutBucketCors$=[9,Q,`PutBucketCors`,{[$i]:`-`,[q]:[`PUT`,`/?cors`,200]},()=>t.PutBucketCorsRequest$,()=>Vo],t.PutBucketEncryption$=[9,Q,`PutBucketEncryption`,{[$i]:`-`,[q]:[`PUT`,`/?encryption`,200]},()=>t.PutBucketEncryptionRequest$,()=>Vo],t.PutBucketIntelligentTieringConfiguration$=[9,Q,`PutBucketIntelligentTieringConfiguration`,{[q]:[`PUT`,`/?intelligent-tiering`,200]},()=>t.PutBucketIntelligentTieringConfigurationRequest$,()=>Vo],t.PutBucketInventoryConfiguration$=[9,Q,`PutBucketInventoryConfiguration`,{[q]:[`PUT`,`/?inventory`,200]},()=>t.PutBucketInventoryConfigurationRequest$,()=>Vo],t.PutBucketLifecycleConfiguration$=[9,Q,`PutBucketLifecycleConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?lifecycle`,200]},()=>t.PutBucketLifecycleConfigurationRequest$,()=>t.PutBucketLifecycleConfigurationOutput$],t.PutBucketLogging$=[9,Q,`PutBucketLogging`,{[$i]:`-`,[q]:[`PUT`,`/?logging`,200]},()=>t.PutBucketLoggingRequest$,()=>Vo],t.PutBucketMetricsConfiguration$=[9,Q,`PutBucketMetricsConfiguration`,{[q]:[`PUT`,`/?metrics`,200]},()=>t.PutBucketMetricsConfigurationRequest$,()=>Vo],t.PutBucketNotificationConfiguration$=[9,Q,`PutBucketNotificationConfiguration`,{[q]:[`PUT`,`/?notification`,200]},()=>t.PutBucketNotificationConfigurationRequest$,()=>Vo],t.PutBucketOwnershipControls$=[9,Q,`PutBucketOwnershipControls`,{[$i]:`-`,[q]:[`PUT`,`/?ownershipControls`,200]},()=>t.PutBucketOwnershipControlsRequest$,()=>Vo],t.PutBucketPolicy$=[9,Q,`PutBucketPolicy`,{[$i]:`-`,[q]:[`PUT`,`/?policy`,200]},()=>t.PutBucketPolicyRequest$,()=>Vo],t.PutBucketReplication$=[9,Q,`PutBucketReplication`,{[$i]:`-`,[q]:[`PUT`,`/?replication`,200]},()=>t.PutBucketReplicationRequest$,()=>Vo],t.PutBucketRequestPayment$=[9,Q,`PutBucketRequestPayment`,{[$i]:`-`,[q]:[`PUT`,`/?requestPayment`,200]},()=>t.PutBucketRequestPaymentRequest$,()=>Vo],t.PutBucketTagging$=[9,Q,`PutBucketTagging`,{[$i]:`-`,[q]:[`PUT`,`/?tagging`,200]},()=>t.PutBucketTaggingRequest$,()=>Vo],t.PutBucketVersioning$=[9,Q,`PutBucketVersioning`,{[$i]:`-`,[q]:[`PUT`,`/?versioning`,200]},()=>t.PutBucketVersioningRequest$,()=>Vo],t.PutBucketWebsite$=[9,Q,`PutBucketWebsite`,{[$i]:`-`,[q]:[`PUT`,`/?website`,200]},()=>t.PutBucketWebsiteRequest$,()=>Vo],t.PutObject$=[9,Q,`PutObject`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>t.PutObjectRequest$,()=>t.PutObjectOutput$],t.PutObjectAcl$=[9,Q,`PutObjectAcl`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?acl`,200]},()=>t.PutObjectAclRequest$,()=>t.PutObjectAclOutput$],t.PutObjectLegalHold$=[9,Q,`PutObjectLegalHold`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?legal-hold`,200]},()=>t.PutObjectLegalHoldRequest$,()=>t.PutObjectLegalHoldOutput$],t.PutObjectLockConfiguration$=[9,Q,`PutObjectLockConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?object-lock`,200]},()=>t.PutObjectLockConfigurationRequest$,()=>t.PutObjectLockConfigurationOutput$],t.PutObjectRetention$=[9,Q,`PutObjectRetention`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?retention`,200]},()=>t.PutObjectRetentionRequest$,()=>t.PutObjectRetentionOutput$],t.PutObjectTagging$=[9,Q,`PutObjectTagging`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?tagging`,200]},()=>t.PutObjectTaggingRequest$,()=>t.PutObjectTaggingOutput$],t.PutPublicAccessBlock$=[9,Q,`PutPublicAccessBlock`,{[$i]:`-`,[q]:[`PUT`,`/?publicAccessBlock`,200]},()=>t.PutPublicAccessBlockRequest$,()=>Vo],t.RenameObject$=[9,Q,`RenameObject`,{[q]:[`PUT`,`/{Key+}?renameObject`,200]},()=>t.RenameObjectRequest$,()=>t.RenameObjectOutput$],t.RestoreObject$=[9,Q,`RestoreObject`,{[$i]:`-`,[q]:[`POST`,`/{Key+}?restore`,200]},()=>t.RestoreObjectRequest$,()=>t.RestoreObjectOutput$],t.SelectObjectContent$=[9,Q,`SelectObjectContent`,{[q]:[`POST`,`/{Key+}?select&select-type=2`,200]},()=>t.SelectObjectContentRequest$,()=>t.SelectObjectContentOutput$],t.UpdateBucketMetadataInventoryTableConfiguration$=[9,Q,`UpdateBucketMetadataInventoryTableConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?metadataInventoryTable`,200]},()=>t.UpdateBucketMetadataInventoryTableConfigurationRequest$,()=>Vo],t.UpdateBucketMetadataJournalTableConfiguration$=[9,Q,`UpdateBucketMetadataJournalTableConfiguration`,{[$i]:`-`,[q]:[`PUT`,`/?metadataJournalTable`,200]},()=>t.UpdateBucketMetadataJournalTableConfigurationRequest$,()=>Vo],t.UpdateObjectEncryption$=[9,Q,`UpdateObjectEncryption`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?encryption`,200]},()=>t.UpdateObjectEncryptionRequest$,()=>t.UpdateObjectEncryptionResponse$],t.UploadPart$=[9,Q,`UploadPart`,{[$i]:`-`,[q]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>t.UploadPartRequest$,()=>t.UploadPartOutput$],t.UploadPartCopy$=[9,Q,`UploadPartCopy`,{[q]:[`PUT`,`/{Key+}?x-id=UploadPartCopy`,200]},()=>t.UploadPartCopyRequest$,()=>t.UploadPartCopyOutput$],t.WriteGetObjectResponse$=[9,Q,`WriteGetObjectResponse`,{endpoint:[`{RequestRoute}.`],[q]:[`POST`,`/WriteGetObjectResponse`,200]},()=>t.WriteGetObjectResponseRequest$,()=>Vo]})),xs=a(((e,t)=>{t.exports={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1054.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-s3`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.14`,"@aws-sdk/credential-provider-node":`^3.972.45`,"@aws-sdk/middleware-bucket-endpoint":`^3.972.16`,"@aws-sdk/middleware-expect-continue":`^3.972.13`,"@aws-sdk/middleware-flexible-checksums":`^3.974.22`,"@aws-sdk/middleware-location-constraint":`^3.972.11`,"@aws-sdk/middleware-sdk-s3":`^3.972.43`,"@aws-sdk/middleware-ssec":`^3.972.11`,"@aws-sdk/signature-v4-multi-region":`^3.996.29`,"@aws-sdk/types":`^3.973.9`,"@smithy/core":`^3.24.3`,"@smithy/fetch-http-handler":`^5.4.3`,"@smithy/node-http-handler":`^4.7.3`,"@smithy/types":`^4.14.2`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1054.0`,"@smithy/snapshot-testing":`^2.1.3`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}}})),Ss=a((t=>{var n=te(),i=(C(),e(h));let a=`AWS_EC2_METADATA_DISABLED`,o=async e=>{let{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:n,fromContainerMetadata:o,fromInstanceMetadata:s}=await import(`./dist-cjs-CzHPD-Ob.js`).then(e=>r(e.default));if(process.env[n]||process.env[t]){e.logger?.debug(`@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata`);let{fromHttp:t}=await import(`./dist-cjs-CZ6FHb0v.js`).then(e=>r(e.default));return i.chain(t(e),o(e))}return process.env[a]&&process.env[a]!==`false`?async()=>{throw new i.CredentialsProviderError(`EC2 Instance Metadata Service access disabled`,{logger:e.logger})}:(e.logger?.debug(`@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata`),s(e))};function s(e,t){let n=c(e),r,i,a,o=async e=>{if(e?.forceRefresh)return await n(e);if(a?.expiration&&a?.expiration?.getTime(){a=e}).finally(()=>{i=void 0});else return r=n(e).then(e=>{a=e}).finally(()=>{r=void 0}),o(e);return a};return o}let c=e=>async t=>{let n;for(let r of e)try{return await r(t)}catch(e){if(n=e,e?.tryNextLink)continue;throw e}throw n},l=!1,u=(e={})=>s([async()=>{if(e.profile??process.env[i.ENV_PROFILE])throw process.env[n.ENV_KEY]&&process.env[n.ENV_SECRET]&&(l||=((e.logger?.warn&&e.logger?.constructor?.name!==`NoOpLogger`?e.logger.warn.bind(e.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: + Multiple credential sources detected: + Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. + This SDK will proceed with the AWS_PROFILE value. + + However, a future version may change this behavior to prefer the ENV static credentials. + Please ensure that your environment only sets either the AWS_PROFILE or the + AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. +`),!0)),new i.CredentialsProviderError(`AWS_PROFILE is set, skipping fromEnv provider.`,{logger:e.logger,tryNextLink:!0});return e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv`),n.fromEnv(e)()},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromSSO`);let{ssoStartUrl:n,ssoAccountId:a,ssoRegion:o,ssoRoleName:s,ssoSession:c}=e;if(!n&&!a&&!o&&!s&&!c)throw new i.CredentialsProviderError(`Skipping SSO provider in default chain (inputs do not include SSO fields).`,{logger:e.logger});let{fromSSO:l}=await import(`./dist-cjs-CrGr2xby.js`).then(e=>r(e.default));return l(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromIni`);let{fromIni:n}=await import(`./dist-cjs-BDo7soHc.js`).then(e=>r(e.default));return n(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromProcess`);let{fromProcess:n}=await import(`./dist-cjs-H7yYXifd.js`).then(e=>r(e.default));return n(e)(t)},async t=>{e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile`);let{fromTokenFile:n}=await import(`./dist-cjs-BY5VA32r.js`).then(e=>r(e.default));return n(e)(t)},async()=>(e.logger?.debug(`@aws-sdk/credential-provider-node - defaultProvider::remoteProvider`),(await o(e))()),async()=>{throw new i.CredentialsProviderError(`Could not load credentials from any providers`,{tryNextLink:!1,logger:e.logger})}],f),d=e=>e?.expiration!==void 0,f=e=>e?.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=f,t.credentialsWillNeedRefresh=d,t.defaultProvider=u})),Cs=a((t=>{var n=(C(),e(h)),r=(ps(),e(fs)),i=(A(),e(O));let a=`AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS`,o=`s3_disable_multiregion_access_points`,s={environmentVariableSelector:e=>n.booleanSelector(e,a,n.SelectorType.ENV),configFileSelector:e=>n.booleanSelector(e,o,n.SelectorType.CONFIG),default:!1},c=`AWS_S3_USE_ARN_REGION`,l=`s3_use_arn_region`,u={environmentVariableSelector:e=>n.booleanSelector(e,c,n.SelectorType.ENV),configFileSelector:e=>n.booleanSelector(e,l,n.SelectorType.CONFIG),default:void 0},d=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,f=/(\d+\.){3}\d+/,p=/\.\./,m=/\./,g=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,v=/^s3(-external-1)?\.amazonaws\.com$/,y=`amazonaws.com`,b=e=>typeof e.bucketName==`string`,x=e=>d.test(e)&&!f.test(e)&&!p.test(e),S=e=>{let t=e.match(g);return[t[4],e.replace(RegExp(`^${t[0]}`),``)]},w=e=>v.test(e)?[`us-east-1`,y]:S(e),T=e=>v.test(e)?[e.replace(`.${y}`,``),y]:S(e),E=e=>{if(e.pathStyleEndpoint)throw Error(`Path-style S3 endpoint is not supported when bucket is an ARN`);if(e.accelerateEndpoint)throw Error(`Accelerate endpoint is not supported when bucket is an ARN`);if(!e.tlsCompatible)throw Error(`HTTPS is required when bucket is an ARN`)},D=e=>{if(e!==`s3`&&e!==`s3-outposts`&&e!==`s3-object-lambda`)throw Error(`Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component`)},k=e=>{if(e!==`s3`)throw Error(`Expect 's3' in Accesspoint ARN service component`)},j=e=>{if(e!==`s3-outposts`)throw Error(`Expect 's3-posts' in Outpost ARN service component`)},M=(e,t)=>{if(e!==t.clientPartition)throw Error(`Partition in ARN is incompatible, got "${e}" but expected "${t.clientPartition}"`)},N=(e,t)=>{},P=e=>{if([`s3-external-1`,`aws-global`].includes(e))throw Error(`Client region ${e} is not regional`)},F=e=>{if(!/[0-9]{12}/.exec(e))throw Error(`Access point ARN accountID does not match regex '[0-9]{12}'`)},I=(e,t={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||t?.tlsCompatible&&m.test(e))throw Error(`Invalid DNS label ${e}`)},L=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw Error(`Dualstack endpoint is not supported with custom endpoint`);if(e.accelerateEndpoint)throw Error(`Accelerate endpoint is not supported with custom endpoint`)}},R=e=>{let t=e.includes(`:`)?`:`:`/`,[n,...r]=e.split(t);if(n===`accesspoint`){if(r.length!==1||r[0]===``)throw Error(`Access Point ARN should have one resource accesspoint${t}{accesspointname}`);return{accesspointName:r[0]}}else if(n===`outpost`){if(!r[0]||r[1]!==`accesspoint`||!r[2]||r.length!==3)throw Error(`Outpost ARN should have resource outpost${t}{outpostId}${t}accesspoint${t}{accesspointName}`);let[e,n,i]=r;return{outpostId:e,accesspointName:i}}else throw Error(`ARN resource should begin with 'accesspoint${t}' or 'outpost${t}'`)},z=e=>{},ee=e=>{if(e)throw Error(`FIPS region is not supported with Outpost.`)},B=e=>{try{e.split(`.`).forEach(e=>{I(e)})}catch{throw Error(`"${e}" is not a DNS compatible name.`)}},te=e=>(L(e),b(e)?ne(e):V(e)),ne=({accelerateEndpoint:e=!1,clientRegion:t,baseHostname:n,bucketName:r,dualstackEndpoint:i=!1,fipsEndpoint:a=!1,pathStyleEndpoint:o=!1,tlsCompatible:s=!0,isCustomEndpoint:c=!1})=>{let[l,u]=c?[t,n]:w(n);return o||!x(r)||s&&m.test(r)?{bucketEndpoint:!1,hostname:i?`s3.dualstack.${l}.${u}`:n}:(e?n=`s3-accelerate${i?`.dualstack`:``}.${u}`:i&&(n=`s3.dualstack.${l}.${u}`),{bucketEndpoint:!0,hostname:`${r}.${n}`})},V=e=>{let{isCustomEndpoint:t,baseHostname:n,clientRegion:r}=e,i=t?n:T(n)[1],{pathStyleEndpoint:a,accelerateEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,bucketName:l,clientPartition:u=`aws`}=e;E({pathStyleEndpoint:a,accelerateEndpoint:o,tlsCompatible:c});let{service:d,partition:f,accountId:p,region:m,resource:h}=l;D(d),M(f,{clientPartition:u}),F(p);let{accesspointName:g,outpostId:v}=R(h);return d===`s3-object-lambda`?re({...e,tlsCompatible:c,bucketName:l,accesspointName:g,hostnameSuffix:i}):m===``?ie({...e,mrapAlias:g,hostnameSuffix:i}):v?ae({...e,clientRegion:r,outpostId:v,accesspointName:g,hostnameSuffix:i}):oe({...e,clientRegion:r,accesspointName:g,hostnameSuffix:i})},re=({dualstackEndpoint:e=!1,fipsEndpoint:t=!1,tlsCompatible:n=!0,useArnRegion:r,clientRegion:i,clientSigningRegion:a=i,accesspointName:o,bucketName:s,hostnameSuffix:c})=>{let{accountId:l,region:u,service:d}=s;P(i);let f=`${o}-${l}`;I(f,{tlsCompatible:n});let p=r?u:i,m=r?u:a;return{bucketEndpoint:!0,hostname:`${f}.${d}${t?`-fips`:``}.${p}.${c}`,signingRegion:m,signingService:d}},ie=({disableMultiregionAccessPoints:e,dualstackEndpoint:t=!1,isCustomEndpoint:n,mrapAlias:r,hostnameSuffix:i})=>{if(e===!0)throw Error(`SDK is attempting to use a MRAP ARN. Please enable to feature.`);return B(r),{bucketEndpoint:!0,hostname:`${r}${n?``:`.accesspoint.s3-global`}.${i}`,signingRegion:`*`}},ae=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,outpostId:i,dualstackEndpoint:a=!1,fipsEndpoint:o=!1,tlsCompatible:s=!0,accesspointName:c,isCustomEndpoint:l,hostnameSuffix:u})=>{P(t);let d=`${c}-${r.accountId}`;I(d,{tlsCompatible:s});let f=e?r.region:t,p=e?r.region:n;return j(r.service),I(i,{tlsCompatible:s}),ee(o),{bucketEndpoint:!0,hostname:`${`${d}.${i}`}${l?``:`.s3-outposts.${f}`}.${u}`,signingRegion:p,signingService:`s3-outposts`}},oe=({useArnRegion:e,clientRegion:t,clientSigningRegion:n=t,bucketName:r,dualstackEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:o=!0,accesspointName:s,isCustomEndpoint:c,hostnameSuffix:l})=>{P(t);let u=`${s}-${r.accountId}`;I(u,{tlsCompatible:o});let d=e?r.region:t,f=e?r.region:n;return k(r.service),{bucketEndpoint:!0,hostname:`${u}${c?``:`.s3-accesspoint${a?`-fips`:``}${i?`.dualstack`:``}.${d}`}.${l}`,signingRegion:f}},H=e=>(t,n)=>async a=>{let{Bucket:o}=a.input,s=e.bucketEndpoint,c=a.request;if(i.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if(r.validate(o)){let t=r.parse(o),i=await e.region(),a=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{partition:u,signingRegion:d=i}=await e.regionInfoProvider(i,{useDualstackEndpoint:a,useFipsEndpoint:l})||{},f=await e.useArnRegion(),{hostname:p,bucketEndpoint:m,signingRegion:h,signingService:g}=te({bucketName:t,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:a,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol===`https:`,useArnRegion:f,clientPartition:u,clientSigningRegion:d,clientRegion:i,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});h&&h!==d&&(n.signing_region=h),g&&g!==`s3`&&(n.signing_service=g),c.hostname=p,s=m}else{let t=await e.region(),n=await e.useDualstackEndpoint(),r=await e.useFipsEndpoint(),{hostname:i,bucketEndpoint:a}=te({bucketName:o,clientRegion:t,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:n,fipsEndpoint:r,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol===`https:`,isCustomEndpoint:e.isCustomEndpoint});c.hostname=i,s=a}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,``),c.path===``&&(c.path=`/`))}return t({...a,request:c})},se={tags:[`BUCKET_ENDPOINT`],name:`bucketEndpointMiddleware`,relation:`before`,toMiddleware:`hostHeaderMiddleware`,override:!0},U=e=>({applyToStack:t=>{t.addRelativeTo(H(e),se)}});function ce(e){let{bucketEndpoint:t=!1,forcePathStyle:n=!1,useAccelerateEndpoint:r=!1,useArnRegion:i,disableMultiregionAccessPoints:a=!1}=e;return Object.assign(e,{bucketEndpoint:t,forcePathStyle:n,useAccelerateEndpoint:r,useArnRegion:typeof i==`function`?i:()=>Promise.resolve(i),disableMultiregionAccessPoints:typeof a==`function`?a:()=>Promise.resolve(a)})}t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=s,t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=a,t.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=o,t.NODE_USE_ARN_REGION_CONFIG_OPTIONS=u,t.NODE_USE_ARN_REGION_ENV_NAME=c,t.NODE_USE_ARN_REGION_INI_NAME=l,t.bucketEndpointMiddleware=H,t.bucketEndpointMiddlewareOptions=se,t.bucketHostname=te,t.getArnResources=R,t.getBucketEndpointPlugin=U,t.getSuffixForArnEndpoint=T,t.resolveBucketEndpointConfig=ce,t.validateAccountId=F,t.validateDNSHostLabel=I,t.validateNoDualstack=z,t.validateNoFIPS=ee,t.validateOutpostService=j,t.validatePartition=M,t.validateRegion=N}));async function ws(e,t,n=1024*1024){let r=e.size,i=0;for(;i{})),Es,Ds=n((()=>{Ts(),Es=async function(e,t){let n=new e;return await ws(t,e=>{n.update(e)}),n.digest()}})),Os,ks=n((()=>{T(),Os=class extends we{hash;constructor(e,t){super(t),this.hash=e}_write(e,t,n){try{this.hash.update(b(e))}catch(e){return n(e)}n()}}})),As,js,Ms=n((()=>{ks(),As=(e,t)=>new Promise((n,r)=>{if(!js(t)){r(Error(`Unable to calculate hash for non-file streams.`));return}let i=He(t.path,{start:t.start,end:t.end}),a=new e,o=new Os(a);i.pipe(o),i.on(`error`,e=>{o.end(),r(e)}),o.on(`error`,r),o.on(`finish`,function(){a.digest().then(n).catch(r)})}),js=e=>typeof e.path==`string`})),Ns,Ps=n((()=>{ks(),Ns=(e,t)=>{if(t.readableFlowing!==null)throw Error(`Unable to calculate hash for flowing readable stream`);let n=new e,r=new Os(n);return t.pipe(r),new Promise((e,i)=>{t.on(`error`,e=>{r.end(),i(e)}),r.on(`error`,i),r.on(`finish`,()=>{n.digest().then(e).catch(i)})})}})),Fs,Is=n((()=>{Fs=[1732584193,4023233417,2562383102,271733878]}));function Ls(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function Rs(e,t,n,r,i,a,o){return Ls(t&n|~t&r,e,t,i,a,o)}function zs(e,t,n,r,i,a,o){return Ls(t&r|n&~r,e,t,i,a,o)}function Bs(e,t,n,r,i,a,o){return Ls(t^n^r,e,t,i,a,o)}function Vs(e,t,n,r,i,a,o){return Ls(n^(t|~r),e,t,i,a,o)}function Hs(e){return typeof e==`string`?e.length===0:e.byteLength===0}function Us(e){return typeof e==`string`?y(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var Ws,Gs=n((()=>{T(),Is(),Ws=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(Hs(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=Us(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=Rs(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=Rs(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=Rs(i,a,n,r,e.getUint32(8,!0),17,606105819),r=Rs(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=Rs(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=Rs(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=Rs(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=Rs(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=Rs(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=Rs(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=Rs(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=Rs(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=Rs(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=Rs(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=Rs(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=Rs(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=zs(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=zs(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=zs(i,a,n,r,e.getUint32(44,!0),14,643717713),r=zs(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=zs(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=zs(a,n,r,i,e.getUint32(40,!0),9,38016083),i=zs(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=zs(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=zs(n,r,i,a,e.getUint32(36,!0),5,568446438),a=zs(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=zs(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=zs(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=zs(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=zs(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=zs(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=zs(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=Bs(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=Bs(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=Bs(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=Bs(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=Bs(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=Bs(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=Bs(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=Bs(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=Bs(n,r,i,a,e.getUint32(52,!0),4,681279174),a=Bs(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=Bs(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=Bs(r,i,a,n,e.getUint32(24,!0),23,76029189),n=Bs(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=Bs(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=Bs(i,a,n,r,e.getUint32(60,!0),16,530742520),r=Bs(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=Vs(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=Vs(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=Vs(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=Vs(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=Vs(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=Vs(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=Vs(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=Vs(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=Vs(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=Vs(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=Vs(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=Vs(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=Vs(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=Vs(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=Vs(i,a,n,r,e.getUint32(8,!0),15,718787259),r=Vs(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(Fs),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}})),Ks=i({Md5:()=>Ws,blobHasher:()=>Es,blobReader:()=>ws,fileStreamHasher:()=>As,readableStreamHasher:()=>Ns}),qs=n((()=>{Ds(),Ms(),Ps(),Gs(),Ts()})),Js=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRuntimeConfig=void 0;let n=(z(),e(ee)),r=ms(),i=B(),a=(v(),e(g)),o=(A(),e(O)),s=(T(),e(S)),c=_s(),l=gs(),u=bs();t.getRuntimeConfig=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??l.defaultEndpointResolver,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??s.getAwsChunkedEncodingStream,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??c.defaultS3HttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new n.AwsSdkSigV4Signer},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new n.AwsSdkSigV4ASigner}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??r.S3RestXmlProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:u.errorTypeRegistries,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??s.sdkStreamMixin,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??i.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??o.parseUrl,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??s.fromUtf8,utf8Encoder:e?.utf8Encoder??s.toUtf8})})),Ys=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRuntimeConfig=void 0;let n=(M(),e(j)).__importDefault(xs()),r=(d(),e(f)),i=(z(),e(ee)),a=Ss(),o=Cs(),s=is(),c=ms(),p=(qs(),e(Ks)),m=(v(),e(g)),y=(C(),e(h)),b=(F(),e(I)),x=(l(),e(u)),w=(T(),e(S)),E=ne(),D=Js();t.getRuntimeConfig=e=>{(0,m.emitWarningIfUnsupportedVersion)(process.version);let t=(0,y.resolveDefaultsModeConfig)(e),l=()=>t().then(m.loadConfigsForDefaultMode),u=(0,D.getRuntimeConfig)(e);(0,r.emitWarningIfUnsupportedVersion)(process.version);let d={profile:e?.profile,logger:u.logger};return{...u,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,y.loadConfig)(i.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,d),bodyLengthChecker:e?.bodyLengthChecker??w.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??a.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,r.createDefaultUserAgentProvider)({serviceId:u.serviceId,clientVersion:n.default.version}),disableS3ExpressSessionAuth:e?.disableS3ExpressSessionAuth??(0,y.loadConfig)(c.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS,d),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??b.eventStreamSerdeProvider,maxAttempts:e?.maxAttempts??(0,y.loadConfig)(x.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),md5:e?.md5??w.Hash.bind(null,`md5`),region:e?.region??(0,y.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...d}),requestChecksumCalculation:e?.requestChecksumCalculation??(0,y.loadConfig)(s.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS,d),requestHandler:E.NodeHttpHandler.create(e?.requestHandler??l),responseChecksumValidation:e?.responseChecksumValidation??(0,y.loadConfig)(s.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS,d),retryMode:e?.retryMode??(0,y.loadConfig)({...x.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||x.DEFAULT_RETRY_MODE},e),sha1:e?.sha1??w.Hash.bind(null,`sha1`),sha256:e?.sha256??w.Hash.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,y.loadConfig)(i.NODE_SIGV4A_CONFIG_OPTIONS,d),streamCollector:e?.streamCollector??E.streamCollector,streamHasher:e?.streamHasher??p.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,y.loadConfig)(o.NODE_USE_ARN_REGION_CONFIG_OPTIONS,d),useDualstackEndpoint:e?.useDualstackEndpoint??(0,y.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,d),useFipsEndpoint:e?.useFipsEndpoint??(0,y.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,d),userAgentAppId:e?.userAgentAppId??(0,y.loadConfig)(r.NODE_APP_ID_CONFIG_OPTIONS,d)}}})),Xs=a((e=>{function t(e){return t=>async n=>{let r={...n.input};for(let t of[{target:`SSECustomerKey`,hash:`SSECustomerKeyMD5`},{target:`CopySourceSSECustomerKey`,hash:`CopySourceSSECustomerKeyMD5`}]){let n=r[t.target];if(n){let a;typeof n==`string`?i(n,e)?a=e.base64Decoder(n):(a=e.utf8Decoder(n),r[t.target]=e.base64Encoder(a)):(a=ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n),r[t.target]=e.base64Encoder(a));let o=new e.md5;o.update(a),r[t.hash]=e.base64Encoder(await o.digest())}}return t({...n,input:r})}}let n={name:`ssecMiddleware`,step:`initialize`,tags:[`SSE`],override:!0},r=e=>({applyToStack:r=>{r.add(t(e),n)}});function i(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}e.getSsecPlugin=r,e.isValidBase64EncodedSSECustomerKey=i,e.ssecMiddleware=t,e.ssecMiddlewareOptions=n})),Zs=a((e=>{function t(e){return t=>async n=>{let{CreateBucketConfiguration:r}=n.input,i=await e.region();return!r?.LocationConstraint&&!r?.Location&&i!==`us-east-1`&&(n.input.CreateBucketConfiguration=n.input.CreateBucketConfiguration??{},n.input.CreateBucketConfiguration.LocationConstraint=i),t(n)}}let n={step:`initialize`,tags:[`LOCATION_CONSTRAINT`,`CREATE_BUCKET_CONFIGURATION`],name:`locationConstraintMiddleware`,override:!0};e.getLocationConstraintPlugin=e=>({applyToStack:r=>{r.add(t(e),n)}}),e.locationConstraintMiddleware=t,e.locationConstraintMiddlewareOptions=n})),Qs=a((t=>{var n=(d(),e(f)),r=$o(),i=is(),a=ms(),o=(m(),e(p)),s=(v(),e(g)),c=(C(),e(h)),y=(x(),e(D)),b=(F(),e(I)),S=(A(),e(O)),T=(l(),e(u)),k=(w(),e(E)),j=_s(),M=bs(),N=Ys(),P=Xs(),L=Zs(),R=ys(),z=vs();let ee=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),B={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}};var te=class extends s.Command.classBuilder().ep({...B,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(M.CreateSession$).build(){};let ne=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},V=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),re=(e,t)=>{let r=Object.assign(n.getAwsRegionExtensionConfiguration(e),s.getDefaultExtensionConfiguration(e),S.getHttpHandlerExtensionConfiguration(e),ne(e));return t.forEach(e=>e.configure(r)),Object.assign(e,n.resolveAwsRegionExtensionConfiguration(r),s.resolveDefaultRuntimeConfig(r),S.resolveHttpHandlerRuntimeConfig(r),V(r))};var ie=class extends s.Client{config;constructor(...[e]){let t=N.getRuntimeConfig(e||{});super(t),this.initConfig=t;let s=ee(t),l=n.resolveUserAgentConfig(s),u=i.resolveFlexibleChecksumsConfig(l),d=T.resolveRetryConfig(u),f=c.resolveRegionConfig(d),p=n.resolveHostHeaderConfig(f),m=y.resolveEndpointConfig(p),h=b.resolveEventStreamSerdeConfig(m),g=j.resolveHttpAuthSchemeConfig(h),v=re(a.resolveS3Config(g,{session:[()=>this,te]}),e?.extensions||[]);this.config=v,this.middlewareStack.use(k.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(n.getUserAgentPlugin(this.config)),this.middlewareStack.use(T.getRetryPlugin(this.config)),this.middlewareStack.use(S.getContentLengthPlugin(this.config)),this.middlewareStack.use(n.getHostHeaderPlugin(this.config)),this.middlewareStack.use(n.getLoggerPlugin(this.config)),this.middlewareStack.use(n.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(o.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:j.defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new o.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(o.getHttpSigningPlugin(this.config)),this.middlewareStack.use(a.getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(r.getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(a.getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(a.getS3ExpressPlugin(this.config)),this.middlewareStack.use(a.getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}},ae=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`AbortMultipartUpload`,{}).n(`S3Client`,`AbortMultipartUploadCommand`).sc(M.AbortMultipartUpload$).build(){},oe=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CompleteMultipartUpload`,{}).n(`S3Client`,`CompleteMultipartUploadCommand`).sc(M.CompleteMultipartUpload$).build(){},H=class extends s.Command.classBuilder().ep({...B,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`},CopySource:{type:`contextParams`,name:`CopySource`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CopyObject`,{}).n(`S3Client`,`CopyObjectCommand`).sc(M.CopyObject$).build(){},se=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},DisableAccessPoints:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),L.getLocationConstraintPlugin(n)]}).s(`AmazonS3`,`CreateBucket`,{}).n(`S3Client`,`CreateBucketCommand`).sc(M.CreateBucket$).build(){},U=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`CreateBucketMetadataConfiguration`,{}).n(`S3Client`,`CreateBucketMetadataConfigurationCommand`).sc(M.CreateBucketMetadataConfiguration$).build(){},ce=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`CreateBucketMetadataTableConfiguration`,{}).n(`S3Client`,`CreateBucketMetadataTableConfigurationCommand`).sc(M.CreateBucketMetadataTableConfiguration$).build(){},le=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`CreateMultipartUpload`,{}).n(`S3Client`,`CreateMultipartUploadCommand`).sc(M.CreateMultipartUpload$).build(){},ue=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketAnalyticsConfiguration`,{}).n(`S3Client`,`DeleteBucketAnalyticsConfigurationCommand`).sc(M.DeleteBucketAnalyticsConfiguration$).build(){},W=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucket`,{}).n(`S3Client`,`DeleteBucketCommand`).sc(M.DeleteBucket$).build(){},de=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketCors`,{}).n(`S3Client`,`DeleteBucketCorsCommand`).sc(M.DeleteBucketCors$).build(){},fe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketEncryption`,{}).n(`S3Client`,`DeleteBucketEncryptionCommand`).sc(M.DeleteBucketEncryption$).build(){},pe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`DeleteBucketIntelligentTieringConfigurationCommand`).sc(M.DeleteBucketIntelligentTieringConfiguration$).build(){},me=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketInventoryConfiguration`,{}).n(`S3Client`,`DeleteBucketInventoryConfigurationCommand`).sc(M.DeleteBucketInventoryConfiguration$).build(){},he=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketLifecycle`,{}).n(`S3Client`,`DeleteBucketLifecycleCommand`).sc(M.DeleteBucketLifecycle$).build(){},ge=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetadataConfiguration`,{}).n(`S3Client`,`DeleteBucketMetadataConfigurationCommand`).sc(M.DeleteBucketMetadataConfiguration$).build(){},_e=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetadataTableConfiguration`,{}).n(`S3Client`,`DeleteBucketMetadataTableConfigurationCommand`).sc(M.DeleteBucketMetadataTableConfiguration$).build(){},ve=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketMetricsConfiguration`,{}).n(`S3Client`,`DeleteBucketMetricsConfigurationCommand`).sc(M.DeleteBucketMetricsConfiguration$).build(){},ye=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketOwnershipControls`,{}).n(`S3Client`,`DeleteBucketOwnershipControlsCommand`).sc(M.DeleteBucketOwnershipControls$).build(){},be=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketPolicy`,{}).n(`S3Client`,`DeleteBucketPolicyCommand`).sc(M.DeleteBucketPolicy$).build(){},xe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketReplication`,{}).n(`S3Client`,`DeleteBucketReplicationCommand`).sc(M.DeleteBucketReplication$).build(){},Se=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketTagging`,{}).n(`S3Client`,`DeleteBucketTaggingCommand`).sc(M.DeleteBucketTagging$).build(){},Ce=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeleteBucketWebsite`,{}).n(`S3Client`,`DeleteBucketWebsiteCommand`).sc(M.DeleteBucketWebsite$).build(){},we=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObject`,{}).n(`S3Client`,`DeleteObjectCommand`).sc(M.DeleteObject$).build(){},Te=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObjects`,{}).n(`S3Client`,`DeleteObjectsCommand`).sc(M.DeleteObjects$).build(){},Ee=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`DeleteObjectTagging`,{}).n(`S3Client`,`DeleteObjectTaggingCommand`).sc(M.DeleteObjectTagging$).build(){},De=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`DeletePublicAccessBlock`,{}).n(`S3Client`,`DeletePublicAccessBlockCommand`).sc(M.DeletePublicAccessBlock$).build(){},Oe=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAbac`,{}).n(`S3Client`,`GetBucketAbacCommand`).sc(M.GetBucketAbac$).build(){},ke=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAccelerateConfiguration`,{}).n(`S3Client`,`GetBucketAccelerateConfigurationCommand`).sc(M.GetBucketAccelerateConfiguration$).build(){},Ae=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAcl`,{}).n(`S3Client`,`GetBucketAclCommand`).sc(M.GetBucketAcl$).build(){},je=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketAnalyticsConfiguration`,{}).n(`S3Client`,`GetBucketAnalyticsConfigurationCommand`).sc(M.GetBucketAnalyticsConfiguration$).build(){},Me=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketCors`,{}).n(`S3Client`,`GetBucketCorsCommand`).sc(M.GetBucketCors$).build(){},Ne=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketEncryption`,{}).n(`S3Client`,`GetBucketEncryptionCommand`).sc(M.GetBucketEncryption$).build(){},Pe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`GetBucketIntelligentTieringConfigurationCommand`).sc(M.GetBucketIntelligentTieringConfiguration$).build(){},Fe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketInventoryConfiguration`,{}).n(`S3Client`,`GetBucketInventoryConfigurationCommand`).sc(M.GetBucketInventoryConfiguration$).build(){},Ie=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLifecycleConfiguration`,{}).n(`S3Client`,`GetBucketLifecycleConfigurationCommand`).sc(M.GetBucketLifecycleConfiguration$).build(){},Le=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLocation`,{}).n(`S3Client`,`GetBucketLocationCommand`).sc(M.GetBucketLocation$).build(){},Re=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketLogging`,{}).n(`S3Client`,`GetBucketLoggingCommand`).sc(M.GetBucketLogging$).build(){},ze=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetadataConfiguration`,{}).n(`S3Client`,`GetBucketMetadataConfigurationCommand`).sc(M.GetBucketMetadataConfiguration$).build(){},Be=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetadataTableConfiguration`,{}).n(`S3Client`,`GetBucketMetadataTableConfigurationCommand`).sc(M.GetBucketMetadataTableConfiguration$).build(){},Ve=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketMetricsConfiguration`,{}).n(`S3Client`,`GetBucketMetricsConfigurationCommand`).sc(M.GetBucketMetricsConfiguration$).build(){},He=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketNotificationConfiguration`,{}).n(`S3Client`,`GetBucketNotificationConfigurationCommand`).sc(M.GetBucketNotificationConfiguration$).build(){},Ue=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketOwnershipControls`,{}).n(`S3Client`,`GetBucketOwnershipControlsCommand`).sc(M.GetBucketOwnershipControls$).build(){},We=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`GetBucketPolicy`,{}).n(`S3Client`,`GetBucketPolicyCommand`).sc(M.GetBucketPolicy$).build(){},Ge=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketPolicyStatus`,{}).n(`S3Client`,`GetBucketPolicyStatusCommand`).sc(M.GetBucketPolicyStatus$).build(){},Ke=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketReplication`,{}).n(`S3Client`,`GetBucketReplicationCommand`).sc(M.GetBucketReplication$).build(){},qe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketRequestPayment`,{}).n(`S3Client`,`GetBucketRequestPaymentCommand`).sc(M.GetBucketRequestPayment$).build(){},Je=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketTagging`,{}).n(`S3Client`,`GetBucketTaggingCommand`).sc(M.GetBucketTagging$).build(){},Ye=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketVersioning`,{}).n(`S3Client`,`GetBucketVersioningCommand`).sc(M.GetBucketVersioning$).build(){},Xe=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetBucketWebsite`,{}).n(`S3Client`,`GetBucketWebsiteCommand`).sc(M.GetBucketWebsite$).build(){},Ze=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectAcl`,{}).n(`S3Client`,`GetObjectAclCommand`).sc(M.GetObjectAcl$).build(){},Qe=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`GetObjectAttributes`,{}).n(`S3Client`,`GetObjectAttributesCommand`).sc(M.GetObjectAttributes$).build(){},$e=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),P.getSsecPlugin(n),a.getS3ExpiresMiddlewarePlugin(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(M.GetObject$).build(){},G=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectLegalHold`,{}).n(`S3Client`,`GetObjectLegalHoldCommand`).sc(M.GetObjectLegalHold$).build(){},et=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectLockConfiguration`,{}).n(`S3Client`,`GetObjectLockConfigurationCommand`).sc(M.GetObjectLockConfiguration$).build(){},tt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectRetention`,{}).n(`S3Client`,`GetObjectRetentionCommand`).sc(M.GetObjectRetention$).build(){},nt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetObjectTagging`,{}).n(`S3Client`,`GetObjectTaggingCommand`).sc(M.GetObjectTagging$).build(){},rt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`GetObjectTorrent`,{}).n(`S3Client`,`GetObjectTorrentCommand`).sc(M.GetObjectTorrent$).build(){},it=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`GetPublicAccessBlock`,{}).n(`S3Client`,`GetPublicAccessBlockCommand`).sc(M.GetPublicAccessBlock$).build(){},at=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`HeadBucket`,{}).n(`S3Client`,`HeadBucketCommand`).sc(M.HeadBucket$).build(){},ot=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n),a.getS3ExpiresMiddlewarePlugin(n)]}).s(`AmazonS3`,`HeadObject`,{}).n(`S3Client`,`HeadObjectCommand`).sc(M.HeadObject$).build(){},st=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketAnalyticsConfigurations`,{}).n(`S3Client`,`ListBucketAnalyticsConfigurationsCommand`).sc(M.ListBucketAnalyticsConfigurations$).build(){},ct=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketIntelligentTieringConfigurations`,{}).n(`S3Client`,`ListBucketIntelligentTieringConfigurationsCommand`).sc(M.ListBucketIntelligentTieringConfigurations$).build(){},lt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketInventoryConfigurations`,{}).n(`S3Client`,`ListBucketInventoryConfigurationsCommand`).sc(M.ListBucketInventoryConfigurations$).build(){},ut=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBucketMetricsConfigurations`,{}).n(`S3Client`,`ListBucketMetricsConfigurationsCommand`).sc(M.ListBucketMetricsConfigurations$).build(){},dt=class extends s.Command.classBuilder().ep(B).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(M.ListBuckets$).build(){},ft=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListDirectoryBuckets`,{}).n(`S3Client`,`ListDirectoryBucketsCommand`).sc(M.ListDirectoryBuckets$).build(){},pt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListMultipartUploads`,{}).n(`S3Client`,`ListMultipartUploadsCommand`).sc(M.ListMultipartUploads$).build(){},mt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjects`,{}).n(`S3Client`,`ListObjectsCommand`).sc(M.ListObjects$).build(){},ht=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(M.ListObjectsV2$).build(){},gt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`ListObjectVersions`,{}).n(`S3Client`,`ListObjectVersionsCommand`).sc(M.ListObjectVersions$).build(){},_t=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`ListParts`,{}).n(`S3Client`,`ListPartsCommand`).sc(M.ListParts$).build(){},vt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1})]}).s(`AmazonS3`,`PutBucketAbac`,{}).n(`S3Client`,`PutBucketAbacCommand`).sc(M.PutBucketAbac$).build(){},yt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1})]}).s(`AmazonS3`,`PutBucketAccelerateConfiguration`,{}).n(`S3Client`,`PutBucketAccelerateConfigurationCommand`).sc(M.PutBucketAccelerateConfiguration$).build(){},bt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketAcl`,{}).n(`S3Client`,`PutBucketAclCommand`).sc(M.PutBucketAcl$).build(){},xt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketAnalyticsConfiguration`,{}).n(`S3Client`,`PutBucketAnalyticsConfigurationCommand`).sc(M.PutBucketAnalyticsConfiguration$).build(){},St=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketCors`,{}).n(`S3Client`,`PutBucketCorsCommand`).sc(M.PutBucketCors$).build(){},Ct=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketEncryption`,{}).n(`S3Client`,`PutBucketEncryptionCommand`).sc(M.PutBucketEncryption$).build(){},wt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketIntelligentTieringConfiguration`,{}).n(`S3Client`,`PutBucketIntelligentTieringConfigurationCommand`).sc(M.PutBucketIntelligentTieringConfiguration$).build(){},Tt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketInventoryConfiguration`,{}).n(`S3Client`,`PutBucketInventoryConfigurationCommand`).sc(M.PutBucketInventoryConfiguration$).build(){},Et=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutBucketLifecycleConfiguration`,{}).n(`S3Client`,`PutBucketLifecycleConfigurationCommand`).sc(M.PutBucketLifecycleConfiguration$).build(){},Dt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketLogging`,{}).n(`S3Client`,`PutBucketLoggingCommand`).sc(M.PutBucketLogging$).build(){},Ot=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketMetricsConfiguration`,{}).n(`S3Client`,`PutBucketMetricsConfigurationCommand`).sc(M.PutBucketMetricsConfiguration$).build(){},kt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`PutBucketNotificationConfiguration`,{}).n(`S3Client`,`PutBucketNotificationConfigurationCommand`).sc(M.PutBucketNotificationConfiguration$).build(){},At=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketOwnershipControls`,{}).n(`S3Client`,`PutBucketOwnershipControlsCommand`).sc(M.PutBucketOwnershipControls$).build(){},jt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketPolicy`,{}).n(`S3Client`,`PutBucketPolicyCommand`).sc(M.PutBucketPolicy$).build(){},Mt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketReplication`,{}).n(`S3Client`,`PutBucketReplicationCommand`).sc(M.PutBucketReplication$).build(){},Nt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketRequestPayment`,{}).n(`S3Client`,`PutBucketRequestPaymentCommand`).sc(M.PutBucketRequestPayment$).build(){},Pt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketTagging`,{}).n(`S3Client`,`PutBucketTaggingCommand`).sc(M.PutBucketTagging$).build(){},Ft=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketVersioning`,{}).n(`S3Client`,`PutBucketVersioningCommand`).sc(M.PutBucketVersioning$).build(){},It=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutBucketWebsite`,{}).n(`S3Client`,`PutBucketWebsiteCommand`).sc(M.PutBucketWebsite$).build(){},Lt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectAcl`,{}).n(`S3Client`,`PutObjectAclCommand`).sc(M.PutObjectAcl$).build(){},Rt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),a.getCheckContentLengthHeaderPlugin(n),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`PutObject`,{}).n(`S3Client`,`PutObjectCommand`).sc(M.PutObject$).build(){},zt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectLegalHold`,{}).n(`S3Client`,`PutObjectLegalHoldCommand`).sc(M.PutObjectLegalHold$).build(){},Bt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectLockConfiguration`,{}).n(`S3Client`,`PutObjectLockConfigurationCommand`).sc(M.PutObjectLockConfiguration$).build(){},Vt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectRetention`,{}).n(`S3Client`,`PutObjectRetentionCommand`).sc(M.PutObjectRetention$).build(){},Ht=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`PutObjectTagging`,{}).n(`S3Client`,`PutObjectTaggingCommand`).sc(M.PutObjectTagging$).build(){},Ut=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`PutPublicAccessBlock`,{}).n(`S3Client`,`PutPublicAccessBlockCommand`).sc(M.PutPublicAccessBlock$).build(){},Wt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`RenameObject`,{}).n(`S3Client`,`RenameObjectCommand`).sc(M.RenameObject$).build(){},Gt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`RestoreObject`,{}).n(`S3Client`,`RestoreObjectCommand`).sc(M.RestoreObject$).build(){},Kt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),P.getSsecPlugin(n)]}).s(`AmazonS3`,`SelectObjectContent`,{eventStream:{output:!0}}).n(`S3Client`,`SelectObjectContentCommand`).sc(M.SelectObjectContent$).build(){},qt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`UpdateBucketMetadataInventoryTableConfiguration`,{}).n(`S3Client`,`UpdateBucketMetadataInventoryTableConfigurationCommand`).sc(M.UpdateBucketMetadataInventoryTableConfiguration$).build(){},Jt=class extends s.Command.classBuilder().ep({...B,UseS3ExpressControlEndpoint:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0})]}).s(`AmazonS3`,`UpdateBucketMetadataJournalTableConfiguration`,{}).n(`S3Client`,`UpdateBucketMetadataJournalTableConfigurationCommand`).sc(M.UpdateBucketMetadataJournalTableConfiguration$).build(){},Yt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!0}),a.getThrow200ExceptionsPlugin(n)]}).s(`AmazonS3`,`UpdateObjectEncryption`,{}).n(`S3Client`,`UpdateObjectEncryptionCommand`).sc(M.UpdateObjectEncryption$).build(){},Xt=class extends s.Command.classBuilder().ep({...B,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),i.getFlexibleChecksumsPlugin(n,{requestAlgorithmMember:{httpHeader:`x-amz-sdk-checksum-algorithm`,name:`ChecksumAlgorithm`},requestChecksumRequired:!1}),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`UploadPart`,{}).n(`S3Client`,`UploadPartCommand`).sc(M.UploadPart$).build(){},Zt=class extends s.Command.classBuilder().ep({...B,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions()),a.getThrow200ExceptionsPlugin(n),P.getSsecPlugin(n)]}).s(`AmazonS3`,`UploadPartCopy`,{}).n(`S3Client`,`UploadPartCopyCommand`).sc(M.UploadPartCopy$).build(){},Qt=class extends s.Command.classBuilder().ep({...B,UseObjectLambdaEndpoint:{type:`staticContextParams`,value:!0}}).m(function(e,t,n,r){return[y.getEndpointPlugin(n,e.getEndpointParameterInstructions())]}).s(`AmazonS3`,`WriteGetObjectResponse`,{}).n(`S3Client`,`WriteGetObjectResponseCommand`).sc(M.WriteGetObjectResponse$).build(){};let $t=o.createPaginator(ie,dt,`ContinuationToken`,`ContinuationToken`,`MaxBuckets`),en=o.createPaginator(ie,ft,`ContinuationToken`,`ContinuationToken`,`MaxDirectoryBuckets`),tn=o.createPaginator(ie,ht,`ContinuationToken`,`NextContinuationToken`,`MaxKeys`),nn=o.createPaginator(ie,_t,`PartNumberMarker`,`NextPartNumberMarker`,`MaxParts`),rn=async(e,t)=>{let n;try{return n=await e.send(new at(t)),{state:s.WaiterState.SUCCESS,reason:n}}catch(e){if(n=e,e.name===`NotFound`)return{state:s.WaiterState.RETRY,reason:n}}return{state:s.WaiterState.RETRY,reason:n}},an=async(e,t)=>s.createWaiter({minDelay:5,maxDelay:120,...e},t,rn),on=async(e,t)=>{let n=await s.createWaiter({minDelay:5,maxDelay:120,...e},t,rn);return s.checkExceptions(n)},sn=async(e,t)=>{let n;try{n=await e.send(new at(t))}catch(e){if(n=e,e.name===`NotFound`)return{state:s.WaiterState.SUCCESS,reason:n}}return{state:s.WaiterState.RETRY,reason:n}},cn=async(e,t)=>s.createWaiter({minDelay:5,maxDelay:120,...e},t,sn),ln=async(e,t)=>{let n=await s.createWaiter({minDelay:5,maxDelay:120,...e},t,sn);return s.checkExceptions(n)},un=async(e,t)=>{let n;try{return n=await e.send(new ot(t)),{state:s.WaiterState.SUCCESS,reason:n}}catch(e){if(n=e,e.name===`NotFound`)return{state:s.WaiterState.RETRY,reason:n}}return{state:s.WaiterState.RETRY,reason:n}},dn=async(e,t)=>s.createWaiter({minDelay:5,maxDelay:120,...e},t,un),fn=async(e,t)=>{let n=await s.createWaiter({minDelay:5,maxDelay:120,...e},t,un);return s.checkExceptions(n)},pn=async(e,t)=>{let n;try{n=await e.send(new ot(t))}catch(e){if(n=e,e.name===`NotFound`)return{state:s.WaiterState.SUCCESS,reason:n}}return{state:s.WaiterState.RETRY,reason:n}},mn=async(e,t)=>s.createWaiter({minDelay:5,maxDelay:120,...e},t,pn),hn=async(e,t)=>{let n=await s.createWaiter({minDelay:5,maxDelay:120,...e},t,pn);return s.checkExceptions(n)},gn={AbortMultipartUploadCommand:ae,CompleteMultipartUploadCommand:oe,CopyObjectCommand:H,CreateBucketCommand:se,CreateBucketMetadataConfigurationCommand:U,CreateBucketMetadataTableConfigurationCommand:ce,CreateMultipartUploadCommand:le,CreateSessionCommand:te,DeleteBucketCommand:W,DeleteBucketAnalyticsConfigurationCommand:ue,DeleteBucketCorsCommand:de,DeleteBucketEncryptionCommand:fe,DeleteBucketIntelligentTieringConfigurationCommand:pe,DeleteBucketInventoryConfigurationCommand:me,DeleteBucketLifecycleCommand:he,DeleteBucketMetadataConfigurationCommand:ge,DeleteBucketMetadataTableConfigurationCommand:_e,DeleteBucketMetricsConfigurationCommand:ve,DeleteBucketOwnershipControlsCommand:ye,DeleteBucketPolicyCommand:be,DeleteBucketReplicationCommand:xe,DeleteBucketTaggingCommand:Se,DeleteBucketWebsiteCommand:Ce,DeleteObjectCommand:we,DeleteObjectsCommand:Te,DeleteObjectTaggingCommand:Ee,DeletePublicAccessBlockCommand:De,GetBucketAbacCommand:Oe,GetBucketAccelerateConfigurationCommand:ke,GetBucketAclCommand:Ae,GetBucketAnalyticsConfigurationCommand:je,GetBucketCorsCommand:Me,GetBucketEncryptionCommand:Ne,GetBucketIntelligentTieringConfigurationCommand:Pe,GetBucketInventoryConfigurationCommand:Fe,GetBucketLifecycleConfigurationCommand:Ie,GetBucketLocationCommand:Le,GetBucketLoggingCommand:Re,GetBucketMetadataConfigurationCommand:ze,GetBucketMetadataTableConfigurationCommand:Be,GetBucketMetricsConfigurationCommand:Ve,GetBucketNotificationConfigurationCommand:He,GetBucketOwnershipControlsCommand:Ue,GetBucketPolicyCommand:We,GetBucketPolicyStatusCommand:Ge,GetBucketReplicationCommand:Ke,GetBucketRequestPaymentCommand:qe,GetBucketTaggingCommand:Je,GetBucketVersioningCommand:Ye,GetBucketWebsiteCommand:Xe,GetObjectCommand:$e,GetObjectAclCommand:Ze,GetObjectAttributesCommand:Qe,GetObjectLegalHoldCommand:G,GetObjectLockConfigurationCommand:et,GetObjectRetentionCommand:tt,GetObjectTaggingCommand:nt,GetObjectTorrentCommand:rt,GetPublicAccessBlockCommand:it,HeadBucketCommand:at,HeadObjectCommand:ot,ListBucketAnalyticsConfigurationsCommand:st,ListBucketIntelligentTieringConfigurationsCommand:ct,ListBucketInventoryConfigurationsCommand:lt,ListBucketMetricsConfigurationsCommand:ut,ListBucketsCommand:dt,ListDirectoryBucketsCommand:ft,ListMultipartUploadsCommand:pt,ListObjectsCommand:mt,ListObjectsV2Command:ht,ListObjectVersionsCommand:gt,ListPartsCommand:_t,PutBucketAbacCommand:vt,PutBucketAccelerateConfigurationCommand:yt,PutBucketAclCommand:bt,PutBucketAnalyticsConfigurationCommand:xt,PutBucketCorsCommand:St,PutBucketEncryptionCommand:Ct,PutBucketIntelligentTieringConfigurationCommand:wt,PutBucketInventoryConfigurationCommand:Tt,PutBucketLifecycleConfigurationCommand:Et,PutBucketLoggingCommand:Dt,PutBucketMetricsConfigurationCommand:Ot,PutBucketNotificationConfigurationCommand:kt,PutBucketOwnershipControlsCommand:At,PutBucketPolicyCommand:jt,PutBucketReplicationCommand:Mt,PutBucketRequestPaymentCommand:Nt,PutBucketTaggingCommand:Pt,PutBucketVersioningCommand:Ft,PutBucketWebsiteCommand:It,PutObjectCommand:Rt,PutObjectAclCommand:Lt,PutObjectLegalHoldCommand:zt,PutObjectLockConfigurationCommand:Bt,PutObjectRetentionCommand:Vt,PutObjectTaggingCommand:Ht,PutPublicAccessBlockCommand:Ut,RenameObjectCommand:Wt,RestoreObjectCommand:Gt,SelectObjectContentCommand:Kt,UpdateBucketMetadataInventoryTableConfigurationCommand:qt,UpdateBucketMetadataJournalTableConfigurationCommand:Jt,UpdateObjectEncryptionCommand:Yt,UploadPartCommand:Xt,UploadPartCopyCommand:Zt,WriteGetObjectResponseCommand:Qt},_n={paginateListBuckets:$t,paginateListDirectoryBuckets:en,paginateListObjectsV2:tn,paginateListParts:nn},vn={waitUntilBucketExists:on,waitUntilBucketNotExists:ln,waitUntilObjectExists:fn,waitUntilObjectNotExists:hn};var yn=class extends ie{};s.createAggregatedClient(gn,yn,{paginators:_n,waiters:vn}),t.$Command=s.Command,t.__Client=s.Client,t.S3ServiceException=z.S3ServiceException,t.AbortMultipartUploadCommand=ae,t.AnalyticsS3ExportFileFormat={CSV:`CSV`},t.ArchiveStatus={ARCHIVE_ACCESS:`ARCHIVE_ACCESS`,DEEP_ARCHIVE_ACCESS:`DEEP_ARCHIVE_ACCESS`},t.BucketAbacStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.BucketAccelerateStatus={Enabled:`Enabled`,Suspended:`Suspended`},t.BucketCannedACL={authenticated_read:`authenticated-read`,private:`private`,public_read:`public-read`,public_read_write:`public-read-write`},t.BucketLocationConstraint={EU:`EU`,af_south_1:`af-south-1`,ap_east_1:`ap-east-1`,ap_east_2:`ap-east-2`,ap_northeast_1:`ap-northeast-1`,ap_northeast_2:`ap-northeast-2`,ap_northeast_3:`ap-northeast-3`,ap_south_1:`ap-south-1`,ap_south_2:`ap-south-2`,ap_southeast_1:`ap-southeast-1`,ap_southeast_2:`ap-southeast-2`,ap_southeast_3:`ap-southeast-3`,ap_southeast_4:`ap-southeast-4`,ap_southeast_5:`ap-southeast-5`,ap_southeast_6:`ap-southeast-6`,ap_southeast_7:`ap-southeast-7`,ca_central_1:`ca-central-1`,ca_west_1:`ca-west-1`,cn_north_1:`cn-north-1`,cn_northwest_1:`cn-northwest-1`,eu_central_1:`eu-central-1`,eu_central_2:`eu-central-2`,eu_north_1:`eu-north-1`,eu_south_1:`eu-south-1`,eu_south_2:`eu-south-2`,eu_west_1:`eu-west-1`,eu_west_2:`eu-west-2`,eu_west_3:`eu-west-3`,il_central_1:`il-central-1`,me_central_1:`me-central-1`,me_south_1:`me-south-1`,mx_central_1:`mx-central-1`,sa_east_1:`sa-east-1`,us_east_2:`us-east-2`,us_gov_east_1:`us-gov-east-1`,us_gov_west_1:`us-gov-west-1`,us_west_1:`us-west-1`,us_west_2:`us-west-2`},t.BucketLogsPermission={FULL_CONTROL:`FULL_CONTROL`,READ:`READ`,WRITE:`WRITE`},t.BucketNamespace={ACCOUNT_REGIONAL:`account-regional`,GLOBAL:`global`},t.BucketType={Directory:`Directory`},t.BucketVersioningStatus={Enabled:`Enabled`,Suspended:`Suspended`},t.ChecksumAlgorithm={CRC32:`CRC32`,CRC32C:`CRC32C`,CRC64NVME:`CRC64NVME`,MD5:`MD5`,SHA1:`SHA1`,SHA256:`SHA256`,SHA512:`SHA512`,XXHASH128:`XXHASH128`,XXHASH3:`XXHASH3`,XXHASH64:`XXHASH64`},t.ChecksumMode={ENABLED:`ENABLED`},t.ChecksumType={COMPOSITE:`COMPOSITE`,FULL_OBJECT:`FULL_OBJECT`},t.CompleteMultipartUploadCommand=oe,t.CompressionType={BZIP2:`BZIP2`,GZIP:`GZIP`,NONE:`NONE`},t.CopyObjectCommand=H,t.CreateBucketCommand=se,t.CreateBucketMetadataConfigurationCommand=U,t.CreateBucketMetadataTableConfigurationCommand=ce,t.CreateMultipartUploadCommand=le,t.CreateSessionCommand=te,t.DataRedundancy={SingleAvailabilityZone:`SingleAvailabilityZone`,SingleLocalZone:`SingleLocalZone`},t.DeleteBucketAnalyticsConfigurationCommand=ue,t.DeleteBucketCommand=W,t.DeleteBucketCorsCommand=de,t.DeleteBucketEncryptionCommand=fe,t.DeleteBucketIntelligentTieringConfigurationCommand=pe,t.DeleteBucketInventoryConfigurationCommand=me,t.DeleteBucketLifecycleCommand=he,t.DeleteBucketMetadataConfigurationCommand=ge,t.DeleteBucketMetadataTableConfigurationCommand=_e,t.DeleteBucketMetricsConfigurationCommand=ve,t.DeleteBucketOwnershipControlsCommand=ye,t.DeleteBucketPolicyCommand=be,t.DeleteBucketReplicationCommand=xe,t.DeleteBucketTaggingCommand=Se,t.DeleteBucketWebsiteCommand=Ce,t.DeleteMarkerReplicationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.DeleteObjectCommand=we,t.DeleteObjectTaggingCommand=Ee,t.DeleteObjectsCommand=Te,t.DeletePublicAccessBlockCommand=De,t.EncodingType={url:`url`},t.EncryptionType={NONE:`NONE`,SSE_C:`SSE-C`},t.Event={s3_IntelligentTiering:`s3:IntelligentTiering`,s3_LifecycleExpiration_:`s3:LifecycleExpiration:*`,s3_LifecycleExpiration_Delete:`s3:LifecycleExpiration:Delete`,s3_LifecycleExpiration_DeleteMarkerCreated:`s3:LifecycleExpiration:DeleteMarkerCreated`,s3_LifecycleTransition:`s3:LifecycleTransition`,s3_ObjectAcl_Put:`s3:ObjectAcl:Put`,s3_ObjectCreated_:`s3:ObjectCreated:*`,s3_ObjectCreated_CompleteMultipartUpload:`s3:ObjectCreated:CompleteMultipartUpload`,s3_ObjectCreated_Copy:`s3:ObjectCreated:Copy`,s3_ObjectCreated_Post:`s3:ObjectCreated:Post`,s3_ObjectCreated_Put:`s3:ObjectCreated:Put`,s3_ObjectRemoved_:`s3:ObjectRemoved:*`,s3_ObjectRemoved_Delete:`s3:ObjectRemoved:Delete`,s3_ObjectRemoved_DeleteMarkerCreated:`s3:ObjectRemoved:DeleteMarkerCreated`,s3_ObjectRestore_:`s3:ObjectRestore:*`,s3_ObjectRestore_Completed:`s3:ObjectRestore:Completed`,s3_ObjectRestore_Delete:`s3:ObjectRestore:Delete`,s3_ObjectRestore_Post:`s3:ObjectRestore:Post`,s3_ObjectTagging_:`s3:ObjectTagging:*`,s3_ObjectTagging_Delete:`s3:ObjectTagging:Delete`,s3_ObjectTagging_Put:`s3:ObjectTagging:Put`,s3_ReducedRedundancyLostObject:`s3:ReducedRedundancyLostObject`,s3_Replication_:`s3:Replication:*`,s3_Replication_OperationFailedReplication:`s3:Replication:OperationFailedReplication`,s3_Replication_OperationMissedThreshold:`s3:Replication:OperationMissedThreshold`,s3_Replication_OperationNotTracked:`s3:Replication:OperationNotTracked`,s3_Replication_OperationReplicatedAfterThreshold:`s3:Replication:OperationReplicatedAfterThreshold`},t.ExistingObjectReplicationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ExpirationState={DISABLED:`DISABLED`,ENABLED:`ENABLED`},t.ExpirationStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ExpressionType={SQL:`SQL`},t.FileHeaderInfo={IGNORE:`IGNORE`,NONE:`NONE`,USE:`USE`},t.FilterRuleName={prefix:`prefix`,suffix:`suffix`},t.GetBucketAbacCommand=Oe,t.GetBucketAccelerateConfigurationCommand=ke,t.GetBucketAclCommand=Ae,t.GetBucketAnalyticsConfigurationCommand=je,t.GetBucketCorsCommand=Me,t.GetBucketEncryptionCommand=Ne,t.GetBucketIntelligentTieringConfigurationCommand=Pe,t.GetBucketInventoryConfigurationCommand=Fe,t.GetBucketLifecycleConfigurationCommand=Ie,t.GetBucketLocationCommand=Le,t.GetBucketLoggingCommand=Re,t.GetBucketMetadataConfigurationCommand=ze,t.GetBucketMetadataTableConfigurationCommand=Be,t.GetBucketMetricsConfigurationCommand=Ve,t.GetBucketNotificationConfigurationCommand=He,t.GetBucketOwnershipControlsCommand=Ue,t.GetBucketPolicyCommand=We,t.GetBucketPolicyStatusCommand=Ge,t.GetBucketReplicationCommand=Ke,t.GetBucketRequestPaymentCommand=qe,t.GetBucketTaggingCommand=Je,t.GetBucketVersioningCommand=Ye,t.GetBucketWebsiteCommand=Xe,t.GetObjectAclCommand=Ze,t.GetObjectAttributesCommand=Qe,t.GetObjectCommand=$e,t.GetObjectLegalHoldCommand=G,t.GetObjectLockConfigurationCommand=et,t.GetObjectRetentionCommand=tt,t.GetObjectTaggingCommand=nt,t.GetObjectTorrentCommand=rt,t.GetPublicAccessBlockCommand=it,t.HeadBucketCommand=at,t.HeadObjectCommand=ot,t.IntelligentTieringAccessTier={ARCHIVE_ACCESS:`ARCHIVE_ACCESS`,DEEP_ARCHIVE_ACCESS:`DEEP_ARCHIVE_ACCESS`},t.IntelligentTieringStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.InventoryConfigurationState={DISABLED:`DISABLED`,ENABLED:`ENABLED`},t.InventoryFormat={CSV:`CSV`,ORC:`ORC`,Parquet:`Parquet`},t.InventoryFrequency={Daily:`Daily`,Weekly:`Weekly`},t.InventoryIncludedObjectVersions={All:`All`,Current:`Current`},t.InventoryOptionalField={BucketKeyStatus:`BucketKeyStatus`,ChecksumAlgorithm:`ChecksumAlgorithm`,ETag:`ETag`,EncryptionStatus:`EncryptionStatus`,IntelligentTieringAccessTier:`IntelligentTieringAccessTier`,IsMultipartUploaded:`IsMultipartUploaded`,LastModifiedDate:`LastModifiedDate`,LifecycleExpirationDate:`LifecycleExpirationDate`,ObjectAccessControlList:`ObjectAccessControlList`,ObjectLockLegalHoldStatus:`ObjectLockLegalHoldStatus`,ObjectLockMode:`ObjectLockMode`,ObjectLockRetainUntilDate:`ObjectLockRetainUntilDate`,ObjectOwner:`ObjectOwner`,ReplicationStatus:`ReplicationStatus`,Size:`Size`,StorageClass:`StorageClass`},t.JSONType={DOCUMENT:`DOCUMENT`,LINES:`LINES`},t.ListBucketAnalyticsConfigurationsCommand=st,t.ListBucketIntelligentTieringConfigurationsCommand=ct,t.ListBucketInventoryConfigurationsCommand=lt,t.ListBucketMetricsConfigurationsCommand=ut,t.ListBucketsCommand=dt,t.ListDirectoryBucketsCommand=ft,t.ListMultipartUploadsCommand=pt,t.ListObjectVersionsCommand=gt,t.ListObjectsCommand=mt,t.ListObjectsV2Command=ht,t.ListPartsCommand=_t,t.LocationType={AvailabilityZone:`AvailabilityZone`,LocalZone:`LocalZone`},t.MFADelete={Disabled:`Disabled`,Enabled:`Enabled`},t.MFADeleteStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.MetadataDirective={COPY:`COPY`,REPLACE:`REPLACE`},t.MetricsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ObjectAttributes={CHECKSUM:`Checksum`,ETAG:`ETag`,OBJECT_PARTS:`ObjectParts`,OBJECT_SIZE:`ObjectSize`,STORAGE_CLASS:`StorageClass`},t.ObjectCannedACL={authenticated_read:`authenticated-read`,aws_exec_read:`aws-exec-read`,bucket_owner_full_control:`bucket-owner-full-control`,bucket_owner_read:`bucket-owner-read`,private:`private`,public_read:`public-read`,public_read_write:`public-read-write`},t.ObjectLockEnabled={Enabled:`Enabled`},t.ObjectLockLegalHoldStatus={OFF:`OFF`,ON:`ON`},t.ObjectLockMode={COMPLIANCE:`COMPLIANCE`,GOVERNANCE:`GOVERNANCE`},t.ObjectLockRetentionMode={COMPLIANCE:`COMPLIANCE`,GOVERNANCE:`GOVERNANCE`},t.ObjectOwnership={BucketOwnerEnforced:`BucketOwnerEnforced`,BucketOwnerPreferred:`BucketOwnerPreferred`,ObjectWriter:`ObjectWriter`},t.ObjectStorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,EXPRESS_ONEZONE:`EXPRESS_ONEZONE`,FSX_ONTAP:`FSX_ONTAP`,FSX_OPENZFS:`FSX_OPENZFS`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,OUTPOSTS:`OUTPOSTS`,REDUCED_REDUNDANCY:`REDUCED_REDUNDANCY`,SNOW:`SNOW`,STANDARD:`STANDARD`,STANDARD_IA:`STANDARD_IA`},t.ObjectVersionStorageClass={STANDARD:`STANDARD`},t.OptionalObjectAttributes={RESTORE_STATUS:`RestoreStatus`},t.OwnerOverride={Destination:`Destination`},t.PartitionDateSource={DeliveryTime:`DeliveryTime`,EventTime:`EventTime`},t.Payer={BucketOwner:`BucketOwner`,Requester:`Requester`},t.Permission={FULL_CONTROL:`FULL_CONTROL`,READ:`READ`,READ_ACP:`READ_ACP`,WRITE:`WRITE`,WRITE_ACP:`WRITE_ACP`},t.Protocol={http:`http`,https:`https`},t.PutBucketAbacCommand=vt,t.PutBucketAccelerateConfigurationCommand=yt,t.PutBucketAclCommand=bt,t.PutBucketAnalyticsConfigurationCommand=xt,t.PutBucketCorsCommand=St,t.PutBucketEncryptionCommand=Ct,t.PutBucketIntelligentTieringConfigurationCommand=wt,t.PutBucketInventoryConfigurationCommand=Tt,t.PutBucketLifecycleConfigurationCommand=Et,t.PutBucketLoggingCommand=Dt,t.PutBucketMetricsConfigurationCommand=Ot,t.PutBucketNotificationConfigurationCommand=kt,t.PutBucketOwnershipControlsCommand=At,t.PutBucketPolicyCommand=jt,t.PutBucketReplicationCommand=Mt,t.PutBucketRequestPaymentCommand=Nt,t.PutBucketTaggingCommand=Pt,t.PutBucketVersioningCommand=Ft,t.PutBucketWebsiteCommand=It,t.PutObjectAclCommand=Lt,t.PutObjectCommand=Rt,t.PutObjectLegalHoldCommand=zt,t.PutObjectLockConfigurationCommand=Bt,t.PutObjectRetentionCommand=Vt,t.PutObjectTaggingCommand=Ht,t.PutPublicAccessBlockCommand=Ut,t.QuoteFields={ALWAYS:`ALWAYS`,ASNEEDED:`ASNEEDED`},t.RenameObjectCommand=Wt,t.ReplicaModificationsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ReplicationRuleStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.ReplicationStatus={COMPLETE:`COMPLETE`,COMPLETED:`COMPLETED`,FAILED:`FAILED`,PENDING:`PENDING`,REPLICA:`REPLICA`},t.ReplicationTimeStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.RequestCharged={requester:`requester`},t.RequestPayer={requester:`requester`},t.RestoreObjectCommand=Gt,t.RestoreRequestType={SELECT:`SELECT`},t.S3=yn,t.S3Client=ie,t.S3TablesBucketType={aws:`aws`,customer:`customer`},t.SelectObjectContentCommand=Kt,t.ServerSideEncryption={AES256:`AES256`,aws_fsx:`aws:fsx`,aws_kms:`aws:kms`,aws_kms_dsse:`aws:kms:dsse`},t.SessionMode={ReadOnly:`ReadOnly`,ReadWrite:`ReadWrite`},t.SseKmsEncryptedObjectsStatus={Disabled:`Disabled`,Enabled:`Enabled`},t.StorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,EXPRESS_ONEZONE:`EXPRESS_ONEZONE`,FSX_ONTAP:`FSX_ONTAP`,FSX_OPENZFS:`FSX_OPENZFS`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,OUTPOSTS:`OUTPOSTS`,REDUCED_REDUNDANCY:`REDUCED_REDUNDANCY`,SNOW:`SNOW`,STANDARD:`STANDARD`,STANDARD_IA:`STANDARD_IA`},t.StorageClassAnalysisSchemaVersion={V_1:`V_1`},t.TableSseAlgorithm={AES256:`AES256`,aws_kms:`aws:kms`},t.TaggingDirective={COPY:`COPY`,REPLACE:`REPLACE`},t.Tier={Bulk:`Bulk`,Expedited:`Expedited`,Standard:`Standard`},t.TransitionDefaultMinimumObjectSize={all_storage_classes_128K:`all_storage_classes_128K`,varies_by_storage_class:`varies_by_storage_class`},t.TransitionStorageClass={DEEP_ARCHIVE:`DEEP_ARCHIVE`,GLACIER:`GLACIER`,GLACIER_IR:`GLACIER_IR`,INTELLIGENT_TIERING:`INTELLIGENT_TIERING`,ONEZONE_IA:`ONEZONE_IA`,STANDARD_IA:`STANDARD_IA`},t.Type={AmazonCustomerByEmail:`AmazonCustomerByEmail`,CanonicalUser:`CanonicalUser`,Group:`Group`},t.UpdateBucketMetadataInventoryTableConfigurationCommand=qt,t.UpdateBucketMetadataJournalTableConfigurationCommand=Jt,t.UpdateObjectEncryptionCommand=Yt,t.UploadPartCommand=Xt,t.UploadPartCopyCommand=Zt,t.WriteGetObjectResponseCommand=Qt,t.paginateListBuckets=$t,t.paginateListDirectoryBuckets=en,t.paginateListObjectsV2=tn,t.paginateListParts=nn,t.waitForBucketExists=an,t.waitForBucketNotExists=cn,t.waitForObjectExists=dn,t.waitForObjectNotExists=mn,t.waitUntilBucketExists=on,t.waitUntilBucketNotExists=ln,t.waitUntilObjectExists=fn,t.waitUntilObjectNotExists=hn,Object.prototype.hasOwnProperty.call(M,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:M.__proto__}),Object.keys(M).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=M[e])}),Object.prototype.hasOwnProperty.call(R,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:R.__proto__}),Object.keys(R).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=R[e])})}))();function $s(e){return e.replaceAll(/X-Amz-[A-Za-z0-9-]+=[^&\s]+/g,`X-Amz-REDACTED=[REDACTED]`).replaceAll(/Authorization([:=]\s*)(Bearer\s+)?[^,\s]+/gi,`Authorization$1$2[REDACTED]`).slice(0,500)}function ec(e,t,n){let r=typeof n==`object`&&n&&`Code`in n?String(n.Code):void 0,i=n instanceof Error?n.name:`UnknownError`,a=typeof n==`object`&&n&&`$metadata`in n&&typeof n.$metadata==`object`&&n.$metadata!=null&&`httpStatusCode`in n.$metadata?Number(n.$metadata.httpStatusCode):void 0,o=$s(n instanceof Error?n.message:String(n));return e.warning(`Object store ${t} failed`,{errorCode:r,errorName:i,httpStatusCode:a,message:o}),ko(`Object store ${t} failed: ${o}`)}async function tc(e){if(e instanceof Se){let t=[];for await(let n of e){if(typeof n==`string`){t.push(Ee.from(n));continue}t.push(Ee.isBuffer(n)?n:Ee.from(n))}return Ee.concat(t).toString(`utf8`)}if(typeof e==`object`&&e&&`transformToString`in e){let t=e.transformToString;if(typeof t==`function`)return String(await t.call(e))}throw ko(`Object store getObject failed: response body was not readable`)}function nc(e,t){if(e==null||e.length===0)throw ko(`Object store ${t} failed: missing ETag in response`);return e}function rc(e){return e.region.length>0?e.region:void 0}function ic(e){let t=rc(e);return e.endpoint==null?new Qs.S3Client({maxAttempts:3,region:t,...e.credentials==null?{}:{credentials:e.credentials}}):new Qs.S3Client({endpoint:e.endpoint,forcePathStyle:!0,maxAttempts:3,region:t,...e.credentials==null?{}:{credentials:e.credentials}})}function ac(e){return e.sseEncryption==null?e.endpoint==null?`aws:kms`:`AES256`:e.sseEncryption}function oc(e,t){let n=ic(e),r=ac(e);return{upload:async(i,a)=>{t.debug(`Uploading object store file`,{key:i,localPath:a});try{let o={Body:Be.createReadStream(a),Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:i,ServerSideEncryption:r};r===`aws:kms`&&e.sseKmsKeyId!=null&&(o.SSEKMSKeyId=e.sseKmsKeyId);let s=new Qs.PutObjectCommand({...o});return await n.send(s),t.info(`Uploaded object store file`,{key:i}),bo(void 0)}catch(e){return xo(ec(t,`upload`,e))}},download:async(r,i)=>{t.debug(`Downloading object store file`,{key:r,localPath:i});try{await Fe.mkdir(Ie.dirname(i),{recursive:!0});let a=await n.send(new Qs.GetObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:r}));return a.Body instanceof Se?(await Ue(a.Body,Be.createWriteStream(i)),t.info(`Downloaded object store file`,{key:r,localPath:i}),bo(void 0)):xo(ko(`Object store download failed: response body was not readable`))}catch(e){return xo(ec(t,`download`,e))}},list:async r=>{t.debug(`Listing object store keys`,{prefix:r});try{let i=[],a,o=0;do{if(o>=100){t.warning(`Object store list hit iteration cap, truncating result`,{prefix:r,maxIterations:100,keysReturned:i.length});break}o++;let s=await n.send(new Qs.ListObjectsV2Command({Bucket:e.bucket,ContinuationToken:a,ExpectedBucketOwner:e.expectedBucketOwner,Prefix:r}));for(let e of s.Contents??[])e.Key!=null&&i.push(e.Key);a=s.IsTruncated===!0?s.NextContinuationToken:void 0}while(a!=null);return t.info(`Listed object store keys`,{count:i.length,prefix:r}),bo(i)}catch(e){return xo(ec(t,`list`,e))}},conditionalPut:async(i,a,o)=>{t.debug(`Conditionally uploading object store data`,{key:i,options:o});try{let s=nc((await n.send(new Qs.PutObjectCommand({Body:a,Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,IfMatch:o.ifMatch,IfNoneMatch:o.ifNoneMatch,Key:i,ServerSideEncryption:r,...r===`aws:kms`&&e.sseKmsKeyId!=null?{SSEKMSKeyId:e.sseKmsKeyId}:{}}))).ETag,`conditionalPut`);return t.info(`Conditionally uploaded object store data`,{key:i,etag:s}),bo({etag:s})}catch(e){return xo(ec(t,`conditionalPut`,e))}},conditionalDelete:async(r,i)=>{t.debug(`Conditionally deleting object store data`,{key:r});try{return await n.send(new Qs.DeleteObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,IfMatch:i.ifMatch,Key:r})),t.info(`Conditionally deleted object store data`,{key:r}),bo(void 0)}catch(e){return xo(ec(t,`conditionalDelete`,e))}},getObject:async r=>{t.debug(`Reading object store data`,{key:r});try{let i=await n.send(new Qs.GetObjectCommand({Bucket:e.bucket,ExpectedBucketOwner:e.expectedBucketOwner,Key:r})),a=await tc(i.Body),o=nc(i.ETag,`getObject`);return t.info(`Read object store data`,{key:r,etag:o}),bo({data:a,etag:o})}catch(e){return xo(ec(t,`getObject`,e))}}}}const sc=[`token`,`password`,`secret`,`key`,`auth`,`credential`,`bearer`,`apikey`,`api_key`,`access_token`,`refresh_token`,`private`];function cc(e,t){let n=e.toLowerCase();return t.some(e=>n.includes(e.toLowerCase()))}function lc(e,t=sc){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>lc(e,t));let n={};for(let[r,i]of Object.entries(e))cc(r,t)&&typeof i==`string`?n[r]=`[REDACTED]`:typeof i==`object`&&i?n[r]=lc(i,t):n[r]=i;return n}function uc(e,t,n,r){let i=lc({...n,...r},sc),a={timestamp:new Date().toISOString(),level:e,message:t,...i};if(r!=null&&`error`in r&&r.error instanceof Error){let e=r.error;a.error={message:e.message,name:e.name,stack:e.stack}}return JSON.stringify(a)}function dc(e){return{debug:(t,n)=>{K(uc(`debug`,t,e,n))},info:(t,n)=>{mi(uc(`info`,t,e,n))},warning:(t,n)=>{pi(uc(`warning`,t,e,n))},error:(t,n)=>{fi(uc(`error`,t,e,n))}}}const fc={SHOULD_SAVE_CACHE:`shouldSaveCache`,SESSION_ID:`sessionId`,CACHE_SAVED:`cacheSaved`,ARTIFACT_UPLOADED:`artifactUploaded`,OPENCODE_VERSION:`opencodeVersion`,S3_ENABLED:`storeConfig.enabled`,S3_BUCKET:`storeConfig.bucket`,S3_REGION:`storeConfig.region`,S3_PREFIX:`storeConfig.prefix`,S3_ENDPOINT:`storeConfig.endpoint`,S3_EXPECTED_BUCKET_OWNER:`storeConfig.expectedBucketOwner`,S3_ALLOW_INSECURE_ENDPOINT:`storeConfig.allowInsecureEndpoint`,S3_SSE_ENCRYPTION:`storeConfig.sseEncryption`,S3_SSE_KMS_KEY_ID:`storeConfig.sseKmsKeyId`};var pc=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(U(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(le(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${ae}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=process.env.GITHUB_API_URL??`https://api.github.com`,this.serverUrl=process.env.GITHUB_SERVER_URL??`https://github.com`,this.graphqlUrl=process.env.GITHUB_GRAPHQL_URL??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}},mc=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getProxyUrl=t,e.checkBypass=n;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function r(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var i=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}})),hc=r(a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;oa(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return a(this,void 0,void 0,function*(){return new Promise(e=>a(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}};e.HttpClientResponse=b;function x(e){return new URL(e).protocol===`https:`}e.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return a(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return a(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return a(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return a(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return a(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return a(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return a(this,arguments,void 0,function*(e,t={}){t[f.Accept]=this._getExistingOrDefaultHeader(t,f.Accept,p.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return a(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[f.Accept]=this._getExistingOrDefaultHeader(n,f.Accept,p.ApplicationJson),n[f.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,p.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return a(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&v.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw Error(`Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!g.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new b(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=c.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?s:o;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},S(this.requestOptions.headers),S(e||{})):S(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=S(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=S(this.requestOptions.headers)[f.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[f.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=c.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||o.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?l.httpsOverHttps:l.httpsOverHttp:o?l.httpOverHttps:l.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new s.Agent(e):new o.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return a(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return a(this,void 0,void 0,function*(){return new Promise((n,r)=>a(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===d.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new y(e,i);t.result=a.result,r(t)}else n(a)}))})}};let S=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{})}))(),1),gc=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function _c(e,t){if(!e&&!t.auth)throw Error(`Parameter token or opts.auth is required`);if(e&&t.auth)throw Error(`Parameters token and opts.auth may not both be specified`);return typeof t.auth==`string`?t.auth:`token ${e}`}function vc(e){return new hc.HttpClient().getAgent(e)}function yc(e){return new hc.HttpClient().getAgentDispatcher(e)}function bc(e){let t=yc(e);return(e,n)=>gc(this,void 0,void 0,function*(){return(0,tr.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))})}function xc(){return process.env.GITHUB_API_URL||`https://api.github.com`}function Sc(e){let t=process.env.ACTIONS_ORCHESTRATION_ID?.trim();if(t){let n=`actions_orchestration_id/${t.replace(/[^a-z0-9_.-]/gi,`_`)}`;return e?.includes(n)?e:`${e?`${e} `:``}${n}`}return e}function Cc(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:``}function wc(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>wc.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function Tc(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function Ec(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const Dc=Function.bind,Oc=Dc.bind(Dc);function kc(e,t,n){let r=Oc(Ec,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=Oc(Tc,null).apply(null,i)})}function Ac(){let e=Symbol(`Singular`),t={registry:{}},n=wc.bind(null,t,e);return kc(n,t,e),n}function jc(){let e={registry:{}},t=wc.bind(null,e);return kc(t,e),t}var Mc={Singular:Ac,Collection:jc},Nc={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":`octokit-endpoint.js/0.0.0-development ${Cc()}`},mediaType:{format:``}};function Pc(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function Fc(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function Ic(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{Fc(t[r])&&r in e?n[r]=Ic(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function Lc(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function Rc(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=Pc(n.headers),Lc(n),Lc(n.headers);let r=Ic(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function zc(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var Bc=/\{[^{}}]+\}/g;function Vc(e){return e.replace(/(?:^\W+)|(?:(?e.concat(t),[]):[]}function Uc(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function Wc(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function Gc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function Kc(e,t,n){return t=e===`+`||e===`#`?Wc(t):Gc(t),n?Gc(n)+`=`+t:t}function qc(e){return e!=null}function Jc(e){return e===`;`||e===`&`||e===`?`}function Yc(e,t,n,r){var i=e[n],a=[];if(qc(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(Kc(t,i,Jc(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(qc).forEach(function(e){a.push(Kc(t,e,Jc(t)?n:``))}):Object.keys(i).forEach(function(e){qc(i[e])&&a.push(Kc(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(qc).forEach(function(n){e.push(Kc(t,n))}):Object.keys(i).forEach(function(n){qc(i[n])&&(e.push(Gc(n)),e.push(Kc(t,i[n].toString())))}),Jc(t)?a.push(Gc(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?qc(i)&&a.push(Gc(n)):i===``&&(t===`&`||t===`?`)?a.push(Gc(n)+`=`):i===``&&a.push(``);return a}function Xc(e){return{expand:Zc.bind(null,e)}}function Zc(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(Yc(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return Wc(i)}),e===`/`?e:e.replace(/\/$/,``)}function Qc(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=Uc(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=Hc(n);n=Xc(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=Uc(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=zc(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function $c(e,t,n){return Qc(Rc(e,t,n))}function el(e,t){let n=Rc(e,t),r=$c.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:el.bind(null,n),merge:Rc.bind(null,n),parse:Qc})}var tl=el(null,Nc),nl=a(((e,t)=>{let n=function(){};n.prototype=Object.create(null);let r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}))();const rl=/^-?\d+$/,il=/^-?\d+n+$/,al=JSON.stringify,ol=JSON.parse,sl=/^-?\d+n$/,cl=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,ll=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,ul=(e,t,n)=>`rawJSON`in JSON?al(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?al(e,(e,n)=>typeof n==`string`&&n.match(il)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(cl,`$1$2$3`).replace(ll,`$1$2$3`):al(e,t,n),dl=()=>JSON.parse(`1`,(e,t,n)=>!!n&&n.source===`1`),fl=(e,t,n,r)=>typeof t==`string`&&t.match(sl)?BigInt(t.slice(0,-1)):typeof t==`string`&&t.match(il)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,pl=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&rl.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),ml=(2**53-1).toString(),hl=ml.length,gl=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,_l=/^"-?\d+n+"$/,vl=(e,t)=>e?dl()?pl(e,t):ol(e.replace(gl,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&e.match(_l))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.lengthfl(e,n,r,t)):ol(e,t);var yl=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?``;async function Cl(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=xl(e.body)||Array.isArray(e.body)?ul(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new yl(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new yl(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await wl(o),new yl(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await wl(o),new yl(El(u.data),s,{response:u,request:e});return u.data=r?await wl(o):o.body,u}async function wl(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(Sl);let n=(0,nl.safeParse)(t);if(Tl(n)){let t=``;try{return t=await e.text(),vl(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(Sl);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function Tl(e){return e.type===`application/json`||e.type===`application/scim+json`}function El(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function Dl(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return Cl(n.parse(r));let i=(e,t)=>Cl(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:Dl.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:Dl.bind(null,n)})}var Ol=Dl(tl,bl),kl=`0.0.0-development`;function Al(e){return`Request failed due to following response errors: +`+e.errors.map(e=>` - ${e.message}`).join(` +`)}var jl=class extends Error{constructor(e,t,n){super(Al(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},Ml=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],Nl=[`query`,`method`,`url`],Pl=/\/api\/v3\/?$/;function Fl(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(Nl.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>Ml.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Pl.test(a)&&(i.url=a.replace(Pl,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new jl(i,t,e.data)}return e.data.data})}function Il(e,t){let n=e.defaults(t);return Object.assign((e,t)=>Fl(n,e,t),{defaults:Il.bind(null,n),endpoint:n.endpoint})}Il(Ol,{headers:{"user-agent":`octokit-graphql.js/${kl} ${Cc()}`},method:`POST`,url:`/graphql`});function Ll(e){return Il(e,{method:`POST`,url:`/graphql`})}var Rl=`(?:[a-zA-Z0-9_-]+)`,zl=`\\.`,Bl=RegExp(`^${Rl}${zl}${Rl}${zl}${Rl}$`),Vl=Bl.test.bind(Bl);async function Hl(e){let t=Vl(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function Ul(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function Wl(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=Ul(e),t(i)}var Gl=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(Hl.bind(null,e),{hook:Wl.bind(null,e)})};const Kl=`7.0.6`,ql=()=>{},Jl=console.warn.bind(console),Yl=console.error.bind(console);function Xl(e={}){return typeof e.debug!=`function`&&(e.debug=ql),typeof e.info!=`function`&&(e.info=ql),typeof e.warn!=`function`&&(e.warn=Jl),typeof e.error!=`function`&&(e.error=Yl),e}const Zl=`octokit-core.js/${Kl} ${Cc()}`;var Ql=class{static VERSION=Kl;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new Mc.Collection,n={baseUrl:Ol.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${Zl}`:Zl,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=Ol.defaults(n),this.graphql=Ll(this.request).defaults(n),this.log=Xl(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=Gl(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t({async next(){if(!s)return{done:!0};try{let e=cu(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10){if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:du(e,t,n,r)})}Object.assign(uu,{iterator:lu});function fu(e){return{paginate:Object.assign(uu.bind(null,e),{iterator:lu.bind(null,e)})}}fu.VERSION=su,new pc;const pu=xc(),mu={baseUrl:pu,request:{agent:vc(pu),fetch:bc(pu)}},hu=Ql.plugin(au,fu).defaults(mu);function gu(e,t){let n=Object.assign({},t||{}),r=_c(e,n);r&&(n.auth=r);let i=Sc(n.userAgent);return i&&(n.userAgent=i),n}const _u=new pc;function vu(e,t,...n){return new(hu.plugin(...n))(gu(e,t))}var yu=a(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),bu=a(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),xu=a(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=yu(),a=bu();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Su=a(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Cu=a(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),wu=a(((e,t)=>{let n=bu(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=yu(),{safeRe:a,t:o}=xu(),s=Su(),{compareIdentifiers:c}=Cu();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Tu=a(((e,t)=>{let n=wu();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Eu=a(((e,t)=>{let n=Tu();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Du=a(((e,t)=>{let n=Tu();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Ou=a(((e,t)=>{let n=wu();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),ku=a(((e,t)=>{let n=Tu();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Au=a(((e,t)=>{let n=wu();t.exports=(e,t)=>new n(e,t).major})),ju=a(((e,t)=>{let n=wu();t.exports=(e,t)=>new n(e,t).minor})),Mu=a(((e,t)=>{let n=wu();t.exports=(e,t)=>new n(e,t).patch})),Nu=a(((e,t)=>{let n=Tu();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Pu=a(((e,t)=>{let n=wu();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Fu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(t,e,r)})),Iu=a(((e,t)=>{let n=Pu();t.exports=(e,t)=>n(e,t,!0)})),Lu=a(((e,t)=>{let n=wu();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Ru=a(((e,t)=>{let n=Lu();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),zu=a(((e,t)=>{let n=Lu();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Bu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)>0})),Vu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)<0})),Hu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)===0})),Uu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)!==0})),Wu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)>=0})),Gu=a(((e,t)=>{let n=Pu();t.exports=(e,t,r)=>n(e,t,r)<=0})),Ku=a(((e,t)=>{let n=Hu(),r=Uu(),i=Bu(),a=Wu(),o=Vu(),s=Gu();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),qu=a(((e,t)=>{let n=wu(),r=Tu(),{safeRe:i,t:a}=xu();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),Ju=a(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),Yu=a(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,k(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>y(e,this.options)).join(` `).split(/\s+/).map(e=>O(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let v=new Map,b=g.map(e=>new a(e,this.options));for(let e of b){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>v(e,n)&&t.set.some(t=>v(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,g=e=>e.value===``,v=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},y=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=C(e,t),o(`caret`,e),e=x(e,t),o(`tildes`,e),e=T(e,t),o(`xrange`,e),e=D(e,t),o(`stars`,e),e),b=e=>!e||e.toLowerCase()===`x`||e===`*`,x=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(` `),S=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return b(n)?s=``:b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return b(n)?c=``:b(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},T=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>E(e,t)).join(` `)),E=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=b(i),u=l||b(a),d=u||b(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},D=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),O=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),k=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=b(r)?``:b(i)?`>=${r}.0.0${e?`-0`:``}`:b(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=b(l)?``:b(u)?`<${+l+1}.0.0-0`:b(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),A=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),Xu=a(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Su(),{safeRe:i,t:a}=xu(),o=Ku(),s=bu(),c=wu(),l=Yu()})),Zu=a(((e,t)=>{let n=Yu();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Qu=a(((e,t)=>{let n=Yu();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),$u=a(((e,t)=>{let n=wu(),r=Yu();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),ed=a(((e,t)=>{let n=wu(),r=Yu();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),td=a(((e,t)=>{let n=wu(),r=Yu(),i=Bu();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),nd=a(((e,t)=>{let n=Yu();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),rd=a(((e,t)=>{let n=wu(),r=Xu(),{ANY:i}=r,a=Yu(),o=Zu(),s=Bu(),c=Vu(),l=Gu(),u=Wu();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,v;switch(d){case`>`:p=s,m=l,h=c,g=`>`,v=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,v=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===v||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===v&&h(e,s.semver))return!1}return!0}})),id=a(((e,t)=>{let n=rd();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ad=a(((e,t)=>{let n=rd();t.exports=(e,t,r)=>n(e,t,`<`,r)})),od=a(((e,t)=>{let n=Yu();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),sd=a(((e,t)=>{let n=Zu(),r=Pu();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=Yu(),r=Xu(),{ANY:i}=r,a=Zu(),o=Pu(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,v,y=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,b=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;y&&y.prerelease.length===1&&u.operator===`<`&&y.prerelease[0]===0&&(y=!1);for(let e of t){if(v=v||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&v&&!s&&p!==0||b||y)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),ld=a(((e,t)=>{let n=xu(),r=yu(),i=wu(),a=Cu();t.exports={parse:Tu(),valid:Eu(),clean:Du(),inc:Ou(),diff:ku(),major:Au(),minor:ju(),patch:Mu(),prerelease:Nu(),compare:Pu(),rcompare:Fu(),compareLoose:Iu(),compareBuild:Lu(),sort:Ru(),rsort:zu(),gt:Bu(),lt:Vu(),eq:Hu(),neq:Uu(),gte:Wu(),lte:Gu(),cmp:Ku(),coerce:qu(),Comparator:Xu(),Range:Yu(),satisfies:Zu(),toComparators:Qu(),maxSatisfying:$u(),minSatisfying:ed(),minVersion:td(),validRange:nd(),outside:rd(),gtr:id(),ltr:ad(),intersects:od(),simplifyRange:sd(),subset:cd(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));function ud(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,K(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,K(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,K(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,K(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,K(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const dd=process.platform===`win32`;function fd(e){if(e=_d(e),dd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=W.dirname(e);return dd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=_d(t)),t}function pd(e,t){if(_e(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),_e(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),md(t))return t;if(dd){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return _e(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(gd(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return _e(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return _e(md(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||dd&&e.endsWith(`\\`)||(e+=W.sep),e+t}function md(e){return _e(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=gd(e),dd?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function hd(e){return _e(e,`isRooted parameter 'itemPath' must not be empty`),e=gd(e),dd?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function gd(e){return e||=``,dd?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function _d(e){return e?(e=gd(e),!e.endsWith(W.sep)||e===W.sep||dd&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var vd;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(vd||={});const yd=process.platform===`win32`;function bd(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=yd?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=yd?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=fd(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=fd(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function xd(e,t){let n=vd.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function Sd(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var Cd=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};let t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}})),wd=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANSION_MAX=void 0,e.expand=S;let t=Cd(),n=`\0SLASH`+Math.random()+`\0`,r=`\0OPEN`+Math.random()+`\0`,i=`\0CLOSE`+Math.random()+`\0`,a=`\0COMMA`+Math.random()+`\0`,o=`\0PERIOD`+Math.random()+`\0`,s=new RegExp(n,`g`),c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=/\\\\/g,p=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\\./g;e.EXPANSION_MAX=1e5;function v(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function y(e){return e.replace(f,n).replace(p,r).replace(m,i).replace(h,a).replace(g,o)}function b(e){return e.replace(s,`\\`).replace(c,`{`).replace(l,`}`).replace(u,`,`).replace(d,`.`)}function x(e){if(!e)return[``];let n=[],r=(0,t.balanced)(`{`,`}`,e);if(!r)return e.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=x(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function S(t,n={}){if(!t)return[];let{max:r=e.EXPANSION_MAX}=n;return t.slice(0,2)===`{}`&&(t=`\\{\\}`+t.slice(2)),D(y(t),r,!0).map(b)}function C(e){return`{`+e+`}`}function w(e){return/^-?0\d/.test(e)}function T(e,t){return e<=t}function E(e,t){return e>=t}function D(e,n,r){let a=[],o=(0,t.balanced)(`{`,`}`,e);if(!o)return[e];let s=o.pre,c=o.post.length?D(o.post,n,!1):[``];if(/\$$/.test(o.pre))for(let e=0;e=0;if(!u&&!d)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+i+o.post,D(e,n,!0)):[e];let f;if(u)f=o.body.split(/\.\./);else if(f=x(o.body),f.length===1&&f[0]!==void 0&&(f=D(f[0],n,!1).map(C),f.length===1))return c.map(e=>o.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=v(f[0]),t=v(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.max(Math.abs(v(f[2])),1):1,i=T;t0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e{n.exports=g,g.Minimatch=v;var r=function(){try{return t(`path`)}catch{}}()||{sep:`/`};g.sep=r.sep;var i=g.GLOBSTAR=v.GLOBSTAR={},a=wd(),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=s+`*?`,l=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,u=`(?:(?!(?:\\/|^)\\.).)*?`,d=f(`().*{}+?[]^$\\!`);function f(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var p=/\/+/;g.filter=m;function m(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function h(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}g.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t(n,r,h(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,h(e,r))},n.Minimatch.defaults=function(n){return t.defaults(h(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,h(e,r))},n.defaults=function(n){return t.defaults(h(e,n))},n.makeRe=function(n,r){return t.makeRe(n,h(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,h(e,r))},n.match=function(n,r,i){return t.match(n,r,h(e,i))},n},v.defaults=function(e){return g.defaults(e).Minimatch};function g(e,t,n){return C(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new v(t,n).match(e)}function v(e,t){if(!(this instanceof v))return new v(e,t);C(e),t||={},e=e.trim(),!t.allowWindowsEscape&&r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}v.prototype.debug=function(){},v.prototype.make=y;function y(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(p)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}v.prototype.parseNegate=b;function b(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;iS)throw TypeError(`pattern is too long`)};v.prototype.parse=T;var w={};function T(e,t){C(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return i;if(e===``)return``;var r=``,a=!!n.nocase,l=!1,u=[],f=[],p,m=!1,h=-1,g=-1,v=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,y=this;function b(){if(p){switch(p){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+p;break}y.debug(`clearStateChar %j %j`,p,r),p=!1}}for(var x=0,S=e.length,T;x-1;N--){var P=f[N],F=r.slice(0,P.reStart),I=r.slice(P.reStart,P.reEnd-8),L=r.slice(P.reEnd-8,P.reEnd),R=r.slice(P.reEnd);L+=R;var z=F.split(`(`).length-1,ee=R;for(x=0;x=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===i){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(r,r+l.length);if(!this._matchOne(f,l,n,0,0))return!1;r+=l.length}var p=0;if(d.length){if(d.length+r>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||r+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=r;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new Dd(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),kd?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:kd,nocomment:!0,noext:!0,nonegate:!0};a=kd?a.replace(/\\/g,`/`):a,this.minimatch=new Od(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=gd(e),!e.endsWith(W.sep)&&this.isImplicitPattern===!1&&(e=`${e}${W.sep}`)):e=_d(e),this.minimatch.match(e)?this.trailingSeparator?vd.Directory:vd.All:vd.None}partialMatch(e){return e=_d(e),fd(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(kd?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(kd?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(t,n){_e(t,`pattern cannot be empty`);let r=new Dd(t).segments.map(t=>e.getLiteral(t));if(_e(r.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${t}'. Relative pathing '.' and '..' is not allowed.`),_e(!hd(t)||r[0],`Invalid pattern '${t}'. Root segment must not contain globs.`),t=gd(t),t===`.`||t.startsWith(`.${W.sep}`))t=e.globEscape(process.cwd())+t.substr(1);else if(t===`~`||t.startsWith(`~${W.sep}`))n||=re.homedir(),_e(n,`Unable to determine HOME directory`),_e(md(n),`Expected HOME directory to be a rooted path. Actual '${n}'`),t=e.globEscape(n)+t.substr(1);else if(kd&&(t.match(/^[A-Z]:$/i)||t.match(/^[A-Z]:[^\\]/i))){let n=pd(`C:\\dummy-root`,t.substr(0,2));t.length>2&&!n.endsWith(`\\`)&&(n+=`\\`),t=e.globEscape(n)+t.substr(2)}else if(kd&&(t===`\\`||t.match(/^\\[^\\]/))){let n=pd(`C:\\dummy-root`,`\\`);n.endsWith(`\\`)||(n+=`\\`),t=e.globEscape(n)+t.substr(1)}else t=pd(e.globEscape(process.cwd()),t);return gd(t)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},jd=class{constructor(e,t){this.path=e,this.level=t}},Md=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Nd=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},Pd=function(e){return this instanceof Pd?(this.v=e,this):new Pd(e)},Fd=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Pd?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const Id=process.platform===`win32`;var Ld=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=ud(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Md(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Nd(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return Fd(this,arguments,function*(){let t=ud(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new Ad(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of bd(n)){K(`Search path '${e}'`);try{yield Pd(H.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new jd(e,1))}let i=[];for(;r.length;){let a=r.pop(),o=xd(n,a.path),s=!!o||Sd(n,a.path);if(!o&&!s)continue;let c=yield Pd(e.stat(a,t,i));if(c&&!(t.excludeHiddenFiles&&W.basename(a.path).match(/^\./)))if(c.isDirectory()){if(o&vd.Directory&&t.matchDirectories)yield yield Pd(a.path);else if(!s)continue;let e=a.level+1,n=(yield Pd(H.promises.readdir(a.path))).map(t=>new jd(W.join(a.path,t),e));r.push(...n.reverse())}else o&vd.File&&(yield yield Pd(a.path))}})}static create(t,n){return Md(this,void 0,void 0,function*(){let r=new e(n);Id&&(t=t.replace(/\r\n/g,` +`),t=t.replace(/\r/g,` +`));let i=t.split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new Ad(e));return r.searchPaths.push(...bd(r.patterns)),r})}static stat(e,t,n){return Md(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield H.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){K(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield H.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield H.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){K(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Rd=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function zd(e,t){return Rd(this,void 0,void 0,function*(){return yield Ld.create(e,t)})}var Bd=r(ld(),1),Vd;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(Vd||={});var Hd;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(Hd||={});var Ud;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(Ud||={});const Wd=5e3,Gd=5e3,Kd=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,qd=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Jd=`cache.tar`,Yd=`manifest.txt`;var Xd=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Zd=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function Qd(){return Xd(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=W.join(n,`actions`,`temp`)}let n=W.join(t,oe.randomUUID());return yield Wr(n),n})}function $d(e){return H.statSync(e).size}function ef(e){return Xd(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield zd(e.join(` +`),{implicitDescendants:!1});try{for(var c=!0,l=Zd(s.globGenerator()),u;u=yield l.next(),t=u.done,!t;c=!0){i=u.value,c=!1;let e=i,t=W.relative(o,e).replace(RegExp(`\\${W.sep}`,`g`),`/`);K(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function tf(e){return Xd(this,void 0,void 0,function*(){return ye.promisify(H.unlink)(e)})}function nf(e){return Xd(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),K(`Checking ${e} ${t.join(` `)}`);try{yield ni(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){K(e.message)}return n=n.trim(),K(n),n})}function rf(){return Xd(this,void 0,void 0,function*(){let e=yield nf(`zstd`,[`--quiet`]);return K(`zstd version: ${Bd.clean(e)}`),e===``?Hd.Gzip:Hd.ZstdWithoutLong})}function af(e){return e===Hd.Gzip?Vd.Gzip:Vd.Zstd}function of(){return Xd(this,void 0,void 0,function*(){return H.existsSync(Kd)?Kd:(yield nf(`tar`)).toLowerCase().includes(`gnu tar`)?Gr(`tar`):``})}function sf(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function cf(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),oe.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function lf(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var uf=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function df(e,...t){V.stderr.write(`${De.format(e,...t)}${ze}`)}const ff=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let pf,mf=[],hf=[];const gf=[];ff&&vf(ff);const _f=Object.assign(e=>Sf(e),{enable:vf,enabled:yf,disable:xf,log:df});function vf(e){pf=e,mf=[],hf=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?hf.push(e.substring(1)):mf.push(e);for(let e of gf)e.enabled=yf(e.namespace)}function yf(e){if(e.endsWith(`*`))return!0;for(let t of hf)if(bf(e,t))return!1;for(let t of mf)if(bf(e,t))return!0;return!1}function bf(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function xf(){let e=pf||``;return vf(``),e}function Sf(e){let t=Object.assign(n,{enabled:yf(e),destroy:Cf,log:_f.log,namespace:e,extend:wf});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return gf.push(t),t}function Cf(){let e=gf.indexOf(this);return e>=0?(gf.splice(e,1),!0):!1}function wf(e){let t=Sf(`${this.namespace}:${e}`);return t.log=this.log,t}const Tf=[`verbose`,`info`,`warning`,`error`],Ef={verbose:400,info:300,warning:200,error:100};function Df(e,t){t.log=(...t)=>{e.log(...t)}}function Of(e){return Tf.includes(e)}function kf(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=_f(e.namespace);i.log=(...e)=>{_f.log(...e)};function a(e){if(e&&!Of(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${Tf.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);_f.enable(n.join(`,`))}n&&(Of(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${Tf.join(`, `)}.`));function o(e){return!!(r&&Ef[e.level]<=Ef[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(Df(e,r),o(r)){let e=_f.disable();_f.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return Df(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const Af=kf({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});Af.logger;function jf(e){return Af.createClientLogger(e)}function Mf(e){return e.toLowerCase()}function*Nf(e){for(let t of e.values())yield[t.name,t.value]}var Pf=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(Mf(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(Mf(e))?.value}has(e){return this._headersMap.has(Mf(e))}delete(e){this._headersMap.delete(Mf(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return Nf(this._headersMap)}};function Ff(e){return new Pf(e)}function If(){return crypto.randomUUID()}var Lf=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??Ff(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||If(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function Rf(e){return new Lf(e)}const zf=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var Bf=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!zf.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!zf.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function Vf(){return Bf.create()}function Hf(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Uf(e){if(Hf(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const Wf=Oe.custom,Gf=`REDACTED`,Kf=`x-ms-client-request-id.x-ms-return-client-request-id.x-ms-useragent.x-ms-correlation-request-id.x-ms-request-id.client-request-id.ms-cv.return-client-request-id.traceparent.Access-Control-Allow-Credentials.Access-Control-Allow-Headers.Access-Control-Allow-Methods.Access-Control-Allow-Origin.Access-Control-Expose-Headers.Access-Control-Max-Age.Access-Control-Request-Headers.Access-Control-Request-Method.Origin.Accept.Accept-Encoding.Cache-Control.Connection.Content-Length.Content-Type.Date.ETag.Expires.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.Last-Modified.Pragma.Request-Id.Retry-After.Server.Transfer-Encoding.User-Agent.WWW-Authenticate`.split(`.`),qf=[`api-version`];var Jf=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Kf.concat(e),t=qf.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`)return this.sanitizeHeaders(n);if(e===`url`)return this.sanitizeUrl(n);if(e===`query`)return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||Hf(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,Gf);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=Gf;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=Gf;return t}};const Yf=new Jf;var Xf=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,Wf,{value:()=>`RestError: ${this.message} \n ${Yf.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function Zf(e){return e instanceof Xf?!0:Uf(e)&&e.name===`RestError`}function Qf(e,t){return Buffer.from(e,t)}const $f=jf(`ts-http-runtime`),ep={};function tp(e){return e&&typeof e.pipe==`function`}function np(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function rp(e){return e&&typeof e.byteLength==`number`}var ip=class extends Ce{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},ap=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uf(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new Jf;$f.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=lp(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new ip(t);n.on(`error`,e=>{$f.error(`Error in upload progress`,e)}),tp(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=op(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?sp(n,i):n;let l=e.onDownloadProgress;if(l){let e=new ip(l);e.on(`error`,e=>{$f.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await cp(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();tp(o)&&(t=np(o));let r=Promise.resolve();tp(s)&&(r=np(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{$f.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?xe.request(a,r):Ke.request(a,r);s.once(`error`,t=>{o(new Xf(t.message,{code:t.code??Xf.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new uf(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&tp(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):rp(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):($f.error(`Unrecognized body type`,n),o(new Xf(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?xe.globalAgent:(this.cachedHttpAgent||=new xe.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Ke.globalAgent;let t=e.tlsSettings??ep,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:($f.info(`No cached TLS Agent exist, creating a new Agent`),r=new Ke.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function op(e){let t=Ff();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function sp(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=ke.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=ke.createInflate();return e.pipe(t),t}return e}function cp(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new Xf(`Error reading response as text: ${e.message}`,{code:Xf.PARSE_ERROR}))})})}function lp(e){return e?Buffer.isBuffer(e)?e.length:tp(e)?null:rp(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function up(){return new ap}function dp(){return up()}function fp(e={}){let t=e.logger??$f.info,n=new Jf({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const pp=[`GET`,`HEAD`];function mp(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return hp(r,await r(e),t,n)}}}async function hp(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&pp.includes(a.method)||o===302&&pp.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new uf(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function bp(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const xp=`Retry-After`,Sp=[`retry-after-ms`,`x-ms-retry-after-ms`,xp];function Cp(e){if(e&&[429,503].includes(e.status))try{for(let t of Sp){let n=bp(e,t);if(n===0||n)return n*(t===xp?1e3:1)}let t=e.headers.get(xp);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function wp(e){return Number.isFinite(Cp(e))}function Tp(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=Cp(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function Ep(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=Op(a),s=o&&e.ignoreSystemErrors,c=Dp(i),l=c&&e.ignoreHttpStatusCodes;return i&&(wp(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:vp(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function Dp(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function Op(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const kp=jf(`ts-http-runtime retryPolicy`);function Ap(e,t={maxRetries:3}){let n=t.logger||kp;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),o=e,!e||o.name!==`RestError`)throw e;a=o.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new uf;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await yp(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function jp(e={}){return{name:`defaultRetryPolicy`,sendRequest:Ap([Tp(),Ep(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const Mp=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function Np(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function Pp(){return{name:`formDataPolicy`,async sendRequest(e,t){if(Mp&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=Np(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=Fp(e.formData):await Ip(e.formData,e),e.formData=void 0}return t(e)}}}function Fp(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function Ip(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:Ff({"Content-Disposition":`form-data; name="${t}"`}),body:Qf(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=Ff();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var Lp=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Rp=a(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=Lp(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),zp=a(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.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`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Rp()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Bp=a(((e,t)=>{t.exports=(e,t)=>{t||=process.argv;let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1?!0:r{let r=t(`os`),i=Bp(),a=process.env,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)?o=!1:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=!0),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR.length===0||parseInt(a.FORCE_COLOR,10)!==0);function s(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e){if(o===!1)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!e.isTTY&&o!==!0)return 0;let t=+!!o;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(process.versions.node.split(`.`)[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`].some(e=>e in a)||a.CI_NAME===`codeship`?1:t;if(`TEAMCITY_VERSION`in a)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION);if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:(a.TERM,t)}function l(e){return s(c(e))}n.exports={supportsColor:l,stdout:l(process.stdout),stderr:l(process.stderr)}})),Hp=a(((e,n)=>{let r=t(`tty`),i=t(`util`);e.init=d,e.log=c,e.formatArgs=o,e.save=l,e.load=u,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=Vp();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(` +`).join(` +`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+` +`)}function l(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function u(){return process.env.DEBUG}function d(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},f.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),Up=a(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=zp():t.exports=Hp()})),Wp=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.json=e.toBuffer=void 0;let a=i(t(`http`)),o=i(t(`https`));async function s(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=s;async function c(e){let t=(await s(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=c;function l(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?o:a).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=l})),Gp=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;let o=i(t(`net`)),s=i(t(`http`)),c=t(`https`);a(Wp(),e);let l=Symbol(`AgentBaseInternalState`);e.Agent=class extends s.Agent{constructor(e){super(e),this[l]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` +`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new o.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?c.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(o=>{if(this.decrementSockets(i,a),o instanceof s.Agent)try{return o.addRequest(e,r)}catch(e){return n(e)}this[l].currentSocket=o,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[l].currentSocket;if(this[l].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[l].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[l]&&(this[l].defaultPort=e)}get protocol(){return this[l].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[l]&&(this[l].protocol=e)}}})),Kp=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(Up()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r +\r +`);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r +`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),qp=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;let o=i(t(`net`)),s=i(t(`tls`)),c=a(t(`assert`)),l=a(Up()),u=Gp(),d=t(`url`),f=Kp(),p=(0,l.default)(`https-proxy-agent`),m=e=>e.servername===void 0&&e.host&&!o.isIP(e.host)?{...e,servername:e.host}:e;var h=class extends u.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new d.URL(e):e,this.proxyHeaders=t?.headers??{},p(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?v(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(p("Creating `tls.Socket`: %o",this.connectOpts),r=s.connect(m(this.connectOpts))):(p("Creating `net.Socket`: %o",this.connectOpts),r=o.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},a=o.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${a}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${a}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,f.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:d,buffered:h}=await u;if(e.emit(`proxyConnect`,d),this.emit(`proxyConnect`,d,e),d.statusCode===200)return e.once(`socket`,g),t.secureEndpoint?(p(`Upgrading socket connection to TLS`),s.connect({...v(m(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let y=new o.Socket({writable:!1});return y.readable=!0,e.once(`socket`,e=>{p(`Replaying proxy buffer for failed request`),(0,c.default)(e.listenerCount(`data`)>0),e.push(h),e.push(null)}),y}};h.protocols=[`http`,`https`],e.HttpsProxyAgent=h;function g(e){e.resume()}function v(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Jp=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpProxyAgent=void 0;let o=i(t(`net`)),s=i(t(`tls`)),c=a(Up()),l=t(`events`),u=Gp(),d=t(`url`),f=(0,c.default)(`http-proxy-agent`);var p=class extends u.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new d.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?m(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new d.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;f(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(f(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r +\r +`)+4,e.outputData[0].data=e._header+n.substring(r),f(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),i=s.connect(this.connectOpts)):(f("Creating `net.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)),await(0,l.once)(i,`connect`),i}};p.protocols=[`http`,`https`],e.HttpProxyAgent=p;function m(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Yp=qp(),Xp=Jp();const Zp=[];let Qp=!1;const $p=new Map;function em(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function tm(){if(!process)return;let e=em(`HTTPS_PROXY`),t=em(`ALL_PROXY`),n=em(`HTTP_PROXY`);return e||t||n}function nm(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function rm(){let e=em(`NO_PROXY`);return Qp=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function im(e){if(!e&&(e=tm(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function am(){let e=tm();return e?new URL(e):void 0}function om(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function sm(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&$f.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`);let i=e.headers.toJSON();r?(t.httpProxyAgent||=new Xp.HttpProxyAgent(n,{headers:i}),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new Yp.HttpsProxyAgent(n,{headers:i}),e.agent=t.httpsProxyAgent)}function cm(e,t){Qp||Zp.push(...rm());let n=e?om(e):am(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!nm(e.url,t?.customNoProxyList??Zp,t?.customNoProxyList?void 0:$p)?sm(e,r,n):e.proxySettings&&sm(e,r,om(e.proxySettings)),i(e)}}}function lm(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function um(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function dm(e){return typeof e.stream==`function`}async function*fm(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function pm(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=fm.bind(e)),e.values||=fm.bind(e)}function mm(e){return e instanceof ReadableStream?(pm(e),Je.fromWeb(e)):e}function hm(e){return e instanceof Uint8Array?Je.from(Buffer.from(e)):dm(e)?mm(e.stream()):mm(e)}async function gm(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(hm);return Je.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function _m(){return`----AzSDKFormBoundary${If()}`}function vm(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function ym(e){if(e instanceof Uint8Array)return e.byteLength;if(dm(e))return e.size===-1?void 0:e.size}function bm(e){let t=0;for(let n of e){let e=ym(n);if(e===void 0)return;t+=e}return t}async function xm(e,t,n){let r=[Qf(`--${n}`,`utf-8`),...t.flatMap(e=>[Qf(`\r +`,`utf-8`),Qf(vm(e.headers),`utf-8`),Qf(`\r +`,`utf-8`),e.body,Qf(`\r\n--${n}`,`utf-8`)]),Qf(`--\r +\r +`,`utf-8`)],i=bm(r);i&&e.headers.set(`Content-Length`,i),e.body=await gm(r)}const Sm=`multipartPolicy`,Cm=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function wm(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!Cm.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function Tm(){return{name:Sm,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?wm(n):n=_m(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await xm(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function Em(){return Vf()}const Dm=kf({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});Dm.logger;function Om(e){return Dm.createClientLogger(e)}const km=Om(`core-rest-pipeline`);function Am(e={}){return fp({logger:km.info,...e})}function jm(e={}){return mp(e)}function Mm(){return`User-Agent`}async function Nm(e){if(V&&V.versions){let t=`${Re.type()} ${Re.release()}; ${Re.arch()}`,n=V.versions;n.bun?e.set(`Bun`,`${n.bun} (${t})`):n.deno?e.set(`Deno`,`${n.deno} (${t})`):n.node&&e.set(`Node`,`${n.node} (${t})`)}}const Pm=`1.22.3`;function Fm(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function Im(){return Mm()}async function Lm(e){let t=new Map;t.set(`core-rest-pipeline`,Pm),await Nm(t);let n=Fm(t);return e?`${e} ${n}`:n}const Rm=Im();function zm(e={}){let t=Lm(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(Rm)||e.headers.set(Rm,await t),n(e)}}}var Bm=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Vm(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new Bm(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function Hm(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return Vm(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function Um(e){if(Uf(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function Wm(e){return Uf(e)}function Gm(){return If()}const Km=Mp,qm=Symbol(`rawContent`);function Jm(e){return typeof e[qm]==`function`}function Ym(e){return Jm(e)?e[qm]():e}const Xm=Sm;function Zm(){let e=Tm();return{name:Xm,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)Jm(e.body)&&(e.body=Ym(e.body));return e.sendRequest(t,n)}}}function Qm(){return gp()}function $m(e={}){return jp(e)}function eh(){return Pp()}function th(e){return im(e)}function nh(e,t){return cm(e,t)}function rh(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function ih(e){return lm(e)}function ah(e){return um(e)}const oh={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function sh(e={}){let t=new ch(e.parentContext);return e.span&&(t=t.setValue(oh.span,e.span)),e.namespace&&(t=t.setValue(oh.namespace,e.namespace)),t}var ch=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const lh=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function uh(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function dh(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:uh(),tracingContext:sh({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function fh(){return lh.instrumenterImplementation||=dh(),lh.instrumenterImplementation}function ph(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=fh().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(oh.namespace)||(s=s.setValue(oh.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(oh.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return fh().withContext(e,t,...n)}function s(e){return fh().parseTraceparentHeader(e)}function c(e){return fh().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const mh=Xf;function hh(e){return Zf(e)}function gh(e={}){let t=Lm(e.userAgentPrefix),n=new Jf({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=_h();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=vh(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return bh(s,t),t}catch(e){throw yh(s,e),e}}}}function _h(){try{return ph({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:Pm})}catch(e){km.warning(`Error when creating the TracingClient: ${Um(e)}`);return}}function vh(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){km.warning(`Skipping creating a tracing span due to an error: ${Um(e)}`);return}}function yh(e,t){try{e.setStatus({status:`error`,error:Wm(t)?t:void 0}),hh(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){km.warning(`Skipping tracing span processing due to an error: ${Um(e)}`)}}function bh(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){km.warning(`Skipping tracing span processing due to an error: ${Um(e)}`)}}function xh(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function Sh(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=xh(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function Ch(e){let t=Em();return Km&&(e.agent&&t.addPolicy(ih(e.agent)),e.tlsOptions&&t.addPolicy(ah(e.tlsOptions)),t.addPolicy(nh(e.proxyOptions)),t.addPolicy(Qm())),t.addPolicy(Sh()),t.addPolicy(eh(),{beforePolicies:[Xm]}),t.addPolicy(zm(e.userAgentOptions)),t.addPolicy(rh(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(Zm(),{afterPhase:`Deserialize`}),t.addPolicy($m(e.retryOptions),{phase:`Retry`}),t.addPolicy(gh({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),Km&&t.addPolicy(jm(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(Am(e.loggingOptions),{afterPhase:`Sign`}),t}function wh(){let e=dp();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?xh(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function Th(e){return Ff(e)}function Eh(e){return Rf(e)}const Dh={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Oh(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function Ah(e,t){try{return[await t(e),void 0]}catch(e){if(hh(e)&&e.response)return[e.response,e];throw e}}async function jh(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function Mh(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function Nh(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function Ph(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||km,a={authorizeRequest:r?.authorizeRequest?.bind(r)??jh,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?kh(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await Ah(e,t),Mh(r)){let l=Ih(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Nh({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await Ah(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await Ah(e,t)),Mh(r)&&(l=Ih(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Nh({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await Ah(e,t))}}if(s)throw s;return r}}}function Fh(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function Ih(e){if(e)return Fh(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function Lh(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const Rh=`DisableKeepAlivePolicy`;function zh(){return{name:Rh,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function Bh(e){return e.getOrderedPolicies().some(e=>e.name===Rh)}function Vh(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function Hh(e){return Buffer.from(e,`base64`)}function Uh(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const Wh=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gh(e){return Wh.test(e)}const Kh=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function qh(e){return Kh.test(e)}function Jh(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function Yh(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return Jh({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:Uh(e.parsedBody,a)})}var Xh=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=mg(this,e,t,n,!!this.isXML,i)):a=ug(this,e,t,n,!!this.isXML,i):a=lg(this,e,t,n,!!this.isXML,i):a=sg(n,t):a=og(n,t):a=cg(o,t,n):a=ag(n,e.type.allowedValues,t):a=ig(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=_g(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=vg(this,e,t,n,i)):a=yg(this,e,t,n,i):a=eg(t):a=Hh(t):a=rg(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function Zh(e={},t=!1){return new Xh(e,t)}function Qh(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function $h(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return Qh(Vh(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function eg(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),Hh(e)}}function tg(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function ng(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function rg(e){if(e)return new Date(e*1e3)}function ig(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&qh(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function ag(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function og(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=Vh(t)}return t}function sg(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=$h(t)}return t}function cg(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=ng(t)}else if(e.match(/^TimeSpan$/i)!==null&&!Gh(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function lg(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function hg(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function gg(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function _g(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;Sg(e,t)&&(t=xg(e,t,n,`serializedName`));let o=pg(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=tg(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(tg(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!gg(e,i)&&(s[e]=n[e]);return s}function vg(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function yg(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function Eg(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=Dg(e,r);!t.propertyFound&&n&&(t=Dg(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=Eg(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function Dg(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function Lg(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]===`default`}function Rg(e,t,n,r){let i=200<=e.status&&e.status<300;if(Lg(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new mh(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===wg.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function zg(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new mh(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||mh.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function Bg(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===wg.Stream&&t.add(Number(n))}return t}function Vg(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function Hg(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=Ag(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(Ug(e,a,i),Wg(e,a,i,t)),n(e)}}}function Ug(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=Eg(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,Vg(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||Vg(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function Wg(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=Eg(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=Vg(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===wg.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=Gg(d,t,m,e.body,a);m===wg.Sequence?e.body=r(Kg(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===wg.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=Eg(t,r);if(i!=null){let t=r.mapper.serializedName||Vg(r);e.formData[t]=n.serializer.serialize(r.mapper,i,Vg(r),a)}}}}function Gg(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function Kg(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function qg(e={}){let t=Ch(e??{});return e.credentialOptions&&t.addPolicy(Ph({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(Hg(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(Ng(e.deserializationOptions),{phase:`Deserialize`}),t}let Jg;function Yg(){return Jg||=wh(),Jg}const Xg={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function Zg(e,t,n,r){let i=$g(t,n,r),a=!1,o=Qg(e,i);if(t.path){let e=Qg(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),e_(e)?(o=e,a=!0):o=t_(o,e)}let{queryParams:s,sequenceParams:c}=n_(t,n,r);return o=i_(o,s,c,a),o}function Qg(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function $g(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=Eg(t,i,n),o=Vg(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function e_(e){return e.includes(`://`)}function t_(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function n_(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=Eg(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,Vg(a));let t=a.collectionFormat?Xg[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||Vg(a),o)}}return{queryParams:r,sequenceParams:i}}function r_(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function i_(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=r_(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const a_=Om(`core-client`);var o_=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&a_.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Yg(),this.pipeline=e.pipeline||s_(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=Eh({url:Zg(n,t,e,this)});r.method=t.httpMethod;let i=Ag(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=Bg(t));try{let e=await this.sendRequest(r),n=Yh(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=Yh(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function s_(e){let t=c_(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return qg({...e,credentialOptions:n})}function c_(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const l_={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function u_(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const d_=async e=>{let t=g_(e.request),n=m_(e.response);if(n){let r=h_(n),i=p_(e,r),a=f_(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(l_.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function f_(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&u_(t))return t}function p_(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=l_.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function m_(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function h_(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function g_(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const __=Symbol(`Original PipelineRequest`),v_=Symbol.for(`@azure/core-client original request`);function y_(e,t={}){let n=e[__],r=Th(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=Eh({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[v_]=t.originalRequest),n}}function b_(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:x_(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===__?e:i===`clone`?()=>b_(y_(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function x_(e){return new C_(e.toJSON({preserveCase:!0}))}function S_(e){return e.toLowerCase()}var C_=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[S_(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[S_(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[S_(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[S_(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nE_(await e.sendRequest(b_(t,{createProxy:!0})))}}const M_=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function N_(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!X_(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,J_(`InvalidTag`,t,Z_(e,a))}let l=U_(e,a);if(l===!1)return J_(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,Z_(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=G_(u,t);if(i===!0)r=!0;else return J_(i.err.code,i.err.msg,Z_(e,n+i.err.line))}else if(s){if(!l.tagClosed)return J_(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,Z_(e,a));if(u.trim().length>0)return J_(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,Z_(e,o));if(n.length===0)return J_(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,Z_(e,o));{let t=n.pop();if(c!==t.tagName){let n=Z_(e,t.tagStartPos);return J_(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,Z_(e,o))}n.length==0&&(i=!0)}}else{let s=G_(u,t);if(s!==!0)return J_(s.err.code,s.err.msg,Z_(e,a-u.length+s.err.line));if(i===!0)return J_(`InvalidXml`,`Multiple possible root nodes found.`,Z_(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?J_(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:J_(`InvalidXml`,`Start tag expected.`,1)}function B_(e){return e===` `||e===` `||e===` +`||e===`\r`}function V_(e,t){let n=t;for(;t5&&r===`xml`)return J_(`InvalidXml`,`XML declaration allowed only at the start of the document.`,Z_(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function H_(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function U_(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const W_=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function G_(e,t){let n=N_(e,W_),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`\u00AD`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},ev={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},tv={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},nv={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},rv={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},iv={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},av={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},ov={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},sv={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},cv={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`\u00AD`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},lv={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},uv={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},dv={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...$_,...ev,...tv,...nv,...rv,...iv,...av,...ov,...sv,...cv,...lv,...uv,...dv});const fv={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},pv={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},mv=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function hv(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(mv.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function gv(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const _v=`external`,vv=`base`;function yv(e){return!e||e===_v?new Set([_v]):e===`all`?new Set([`all`]):e===vv?new Set([vv]):Array.isArray(e)?new Set(e):new Set([_v])}const bv=Object.freeze({allow:0,leave:1,remove:2,throw:3}),xv=new Set([9,10,13]);function Sv(e){if(!e)return{xmlVersion:1,onLevel:bv.allow,nullLevel:bv.remove};let t=e.xmlVersion===1.1?1.1:1,n=bv[e.onNCR]??bv.allow,r=bv[e.nullNCR]??bv.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,bv.remove)}}var Cv=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=yv(this._limit.applyLimitsTo??_v),this._numericAllowed=e.numericAllowed??!0,this._baseMap=gv(fv,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Sv(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))hv(t);this._externalMap=gv(e)}addExternalEntity(e,t){hv(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=gv(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=_v);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=vv}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!xv.has(e)?bv.remove:-1}_applyNCRAction(e,t,n){switch(e){case bv.allow:return String.fromCodePoint(n);case bv.remove:return``;case bv.leave:return;case bv.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&rI_.includes(e)?`__`+e:e,Tv={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:wv};function Ev(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(I_.some(e=>n===e.toLowerCase())||L_.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Dv(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Dv(!0)}const Ov=function(e){let t=Object.assign({},Tv,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Ev(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=wv),t.processEntities=Dv(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let kv;kv=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var Av=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][kv]={startIndex:t})}static getMetaDataSymbol(){return kv}},jv=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&Nv(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&Nv(e,`!ATTLIST`,t))t+=8;else if(a&&Nv(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(Nv(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=Mv(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=Mv(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const zv=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Bv(e,t,n){if(!n.eNotation)return e;let r=t.match(zv);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function Vv(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function Hv(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function Uv(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function Wv(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var Gv=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Jv=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new qv(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function Yv(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Xv(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Zv=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ny,this.parseTextData=Qv,this.resolveNameSpace=$v,this.buildAttributesMap=ty,this.isItStopNode=oy,this.replaceEntitiesValue=iy,this.readStopNodeData=dy,this.saveTextToParentTag=ay,this.addChild=ry,this.ignoreAttributesFn=Wv(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...fv};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...pv,...lv}),this.entityDecoder=new Cv({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Jv,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Kv;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?fy(e,s.parseTagValue,s.numberParseOptions):e}}function $v(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const ey=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function ty(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=N_(e,ey),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=py(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=uy(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new Av(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=a),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=cy(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=cy(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=uy(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=py(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Xv(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Yv(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let v=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new Av(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,v)}else{if(m){({tagName:c,tagExp:u}=py(i.transformTagName,c,u,i));let e=new Av(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new Av(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new Av(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,v),n=e}r=``,s=f}}}else r+=e[s];return t.child};function ry(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function iy(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function ay(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function oy(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function sy(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=sy(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function dy(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=cy(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=cy(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=cy(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=uy(e,n,`>`);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function fy(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:Rv(e,n)}else if(F_(e))return e;else return``}function py(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=my(t,r),{tagName:t,tagExp:n}}function my(e,t){if(L_.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return I_.includes(e)?t.onDangerousProperty(e):e}const hy=Av.getMetaDataSymbol();function gy(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function _y(e,t,n,r){return vy(e,t,n,r)}function vy(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function yy(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function Ty(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}const Ey=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Dy=Ey(`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),Oy=Ey(`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿\u200C-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),ky=(e=`1.0`)=>e===`1.1`?Oy:Dy,Ay=(e,{xmlVersion:t=`1.0`}={})=>ky(t).qName.test(e);function jy(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(Ry(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function My(e,t,n,r,i){return!n.sanitizeName||Ay(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function Ny(e,t){let n=``;t.format&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=Vy(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=Cy(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=zy(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${zy(l[`:@`],t,p,r,a)}`,g;g=p?Iy(l[u],t):Py(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function Fy(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=Ty(e[i]),r=!0}return r?n:null}function Iy(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function Ly(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${Ty(i)}"`}return n}function Ry(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const Uy={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Wy(e){if(this.options=Object.assign({},Uy,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,this.newLine=` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Gy(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function Ky(e,t,n,r,i){return!n.sanitizeName||Ay(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}Wy.prototype.build=function(e){if(this.options.preserveOrder)return Ny(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new Jv,n=Gy(e,this.options);return this.j2x(e,0,t,n).val}},Wy.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:Ky(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=Ky(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Wy.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Wy.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},Wy.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=Cy(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function nb(e,t={}){if(!e)throw Error(`Document is empty`);let n=Zy.validate(e);if(n!==!0)throw n;let r=new Sy(eb(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?Object.assign({},t):t}return r}const rb=Om(`storage-blob`);var ib=class extends Se{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const ab=Te.constants.MAX_LENGTH;var ob=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/ab);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new ib(this.buffers,this.size)}},sb=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new ge;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new ob(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let cb;function lb(){return cb||=wh(),cb}var ub=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const db={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},fb={AUTHORIZATION:`Authorization`,AUTHORIZATION_SCHEME:`Bearer`,CONTENT_ENCODING:`Content-Encoding`,CONTENT_ID:`Content-ID`,CONTENT_LANGUAGE:`Content-Language`,CONTENT_LENGTH:`Content-Length`,CONTENT_MD5:`Content-Md5`,CONTENT_TRANSFER_ENCODING:`Content-Transfer-Encoding`,CONTENT_TYPE:`Content-Type`,COOKIE:`Cookie`,DATE:`date`,IF_MATCH:`if-match`,IF_MODIFIED_SINCE:`if-modified-since`,IF_NONE_MATCH:`if-none-match`,IF_UNMODIFIED_SINCE:`if-unmodified-since`,PREFIX_FOR_STORAGE:`x-ms-`,RANGE:`Range`,USER_AGENT:`User-Agent`,X_MS_CLIENT_REQUEST_ID:`x-ms-client-request-id`,X_MS_COPY_SOURCE:`x-ms-copy-source`,X_MS_DATE:`x-ms-date`,X_MS_ERROR_CODE:`x-ms-error-code`,X_MS_VERSION:`x-ms-version`,X_MS_CopySourceErrorCode:`x-ms-copy-source-error-code`};function pb(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function mb(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function hb(e){try{return new URL(e).pathname}catch{return}}function gb(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var vb=class extends ub{constructor(e,t){super(e,t)}async sendRequest(e){return Km?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=pb(e.url,db.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(fb.COOKIE),e.headers.remove(fb.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},yb=class{create(e,t){return new vb(e,t)}},bb=class extends ub{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},xb=class extends bb{constructor(e,t){super(e,t)}},Sb=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},Cb=class extends Sb{create(e,t){return new xb(e,t)}};const wb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),Tb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Eb=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function Db(e,t){return Ob(e,t)?-1:1}function Ob(e,t){let n=[wb,Tb,Eb],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(fb.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,fb.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,fb.CONTENT_ENCODING),this.getHeaderValueToSign(e,fb.CONTENT_LENGTH),this.getHeaderValueToSign(e,fb.CONTENT_MD5),this.getHeaderValueToSign(e,fb.CONTENT_TYPE),this.getHeaderValueToSign(e,fb.DATE),this.getHeaderValueToSign(e,fb.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,fb.IF_MATCH),this.getHeaderValueToSign(e,fb.IF_NONE_MATCH),this.getHeaderValueToSign(e,fb.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,fb.RANGE)].join(` +`)+` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(fb.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===fb.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(fb.PREFIX_FOR_STORAGE));t.sort((e,t)=>Db(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=hb(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=gb(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},Ab=class extends Sb{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new kb(e,t,this)}computeHMACSHA256(e){return Ae(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const jb=Om(`storage-common`);var Mb;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(Mb||={});const Nb={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Mb.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},Pb=new Bm(`The operation was aborted.`);var Fb=class extends ub{retryOptions;constructor(e,t,n=Nb){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Nb.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Nb.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Nb.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Nb.maxRetryDelayInMs):Nb.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Nb.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Nb.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=mb(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=pb(r.url,db.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(jb.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(jb.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return jb.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return jb.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return jb.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return jb.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(fb.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(jb.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case Mb.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Mb.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return jb.info(`RetryPolicy: Delay for ${r}ms`),_b(r,n,Pb)}},Ib=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new Fb(e,t,this.retryOptions)}};function Lb(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return Km?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=pb(e.url,db.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(fb.COOKIE),e.headers.delete(fb.CONTENT_LENGTH),t(e))}}}function Rb(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(fb.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const zb={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Mb.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},Bb=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],Vb=new Bm(`The operation was aborted.`);function Hb(e={}){let t=e.retryPolicyType??zb.retryPolicyType,n=e.maxTries??zb.maxTries,r=e.retryDelayInMs??zb.retryDelayInMs,i=e.maxRetryDelayInMs??zb.maxRetryDelayInMs,a=e.secondaryHost??zb.secondaryHost,o=e.tryTimeoutInMs??zb.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return jb.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of Bb)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return jb.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return jb.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return jb.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return jb.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(fb.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case Mb.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case Mb.FIXED:a=r;break}else a=Math.random()*1e3;return jb.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=pb(e.url,db.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?mb(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{jb.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(hh(e))jb.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw jb.error(`RetryPolicy: Caught error, message: ${Um(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await _b(c(a,l),e.abortSignal,Vb),l++}if(d)return d;throw f??new mh(`RetryPolicy failed without known error.`)}}}function Ub(e){function t(t){t.headers.set(fb.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(fb.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,fb.CONTENT_LANGUAGE),n(t,fb.CONTENT_ENCODING),n(t,fb.CONTENT_LENGTH),n(t,fb.CONTENT_MD5),n(t,fb.CONTENT_TYPE),n(t,fb.DATE),n(t,fb.IF_MODIFIED_SINCE),n(t,fb.IF_MATCH),n(t,fb.IF_NONE_MATCH),n(t,fb.IF_UNMODIFIED_SINCE),n(t,fb.RANGE)].join(` +`)+` +`+r(t)+i(t),o=Ae(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(fb.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===fb.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(fb.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>Db(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=hb(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=gb(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function Wb(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),e}}}}var Gb=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return Ae(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const Kb=`12.31.0`,qb=`2026-02-06`,Jb=5e4,Yb=4*1024*1024,Xb={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},Zb=`Access-Control-Allow-Origin.Cache-Control.Content-Length.Content-Type.Date.Request-Id.traceparent.Transfer-Encoding.User-Agent.x-ms-client-request-id.x-ms-date.x-ms-error-code.x-ms-request-id.x-ms-return-client-request-id.x-ms-version.Accept-Ranges.Content-Disposition.Content-Encoding.Content-Language.Content-MD5.Content-Range.ETag.Last-Modified.Server.Vary.x-ms-content-crc64.x-ms-copy-action.x-ms-copy-completion-time.x-ms-copy-id.x-ms-copy-progress.x-ms-copy-status.x-ms-has-immutability-policy.x-ms-has-legal-hold.x-ms-lease-state.x-ms-lease-status.x-ms-range.x-ms-request-server-encrypted.x-ms-server-encrypted.x-ms-snapshot.x-ms-source-range.If-Match.If-Modified-Since.If-None-Match.If-Unmodified-Since.x-ms-access-tier.x-ms-access-tier-change-time.x-ms-access-tier-inferred.x-ms-account-kind.x-ms-archive-status.x-ms-blob-append-offset.x-ms-blob-cache-control.x-ms-blob-committed-block-count.x-ms-blob-condition-appendpos.x-ms-blob-condition-maxsize.x-ms-blob-content-disposition.x-ms-blob-content-encoding.x-ms-blob-content-language.x-ms-blob-content-length.x-ms-blob-content-md5.x-ms-blob-content-type.x-ms-blob-public-access.x-ms-blob-sequence-number.x-ms-blob-type.x-ms-copy-destination-snapshot.x-ms-creation-time.x-ms-default-encryption-scope.x-ms-delete-snapshots.x-ms-delete-type-permanent.x-ms-deny-encryption-scope-override.x-ms-encryption-algorithm.x-ms-if-sequence-number-eq.x-ms-if-sequence-number-le.x-ms-if-sequence-number-lt.x-ms-incremental-copy.x-ms-lease-action.x-ms-lease-break-period.x-ms-lease-duration.x-ms-lease-id.x-ms-lease-time.x-ms-page-write.x-ms-proposed-lease-id.x-ms-range-get-content-md5.x-ms-rehydrate-priority.x-ms-sequence-number-action.x-ms-sku-name.x-ms-source-content-md5.x-ms-source-if-match.x-ms-source-if-modified-since.x-ms-source-if-none-match.x-ms-source-if-unmodified-since.x-ms-tag-count.x-ms-encryption-key-sha256.x-ms-copy-source-error-code.x-ms-copy-source-status-code.x-ms-if-tags.x-ms-source-if-tags`.split(`.`),Qb=`comp.maxresults.rscc.rscd.rsce.rscl.rsct.se.si.sip.sp.spr.sr.srt.ss.st.sv.include.marker.prefix.copyid.restype.blockid.blocklisttype.delimiter.prevsnapshot.ske.skoid.sks.skt.sktid.skv.snapshot`.split(`.`),$b=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function ex(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var tx=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function nx(e,t={}){e||=new Cb;let n=new tx([],t);return n._credential=e,n}function rx(e){let t=[sx,ox,cx,lx,ux,dx,px];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>fx(e));return{wrappedPolicies:A_(n),afterRetry:e}}}}function ix(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?j_(t):lb(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${Kb}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=qg({...n,loggingOptions:{additionalAllowedHeaderNames:Zb,additionalAllowedQueryParameters:Qb,logger:rb.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:tb,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:nb,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(Rb()),i.addPolicy(Hb(n.retryOptions),{phase:`Retry`}),i.addPolicy(Wb()),i.addPolicy(Lb());let a=rx(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=ax(e);Lh(o)?i.addPolicy(Ph({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:d_}}),{phase:`Sign`}):o instanceof Ab&&i.addPolicy(Ub({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function ax(e){if(e._credential)return e._credential;let t=new Cb;for(let n of e.factories)if(Lh(n.credential))t=n.credential;else if(ox(n))return n;return t}function ox(e){return e instanceof Ab?!0:e.constructor.name===`StorageSharedKeyCredential`}function sx(e){return e instanceof Cb?!0:e.constructor.name===`AnonymousCredential`}function cx(e){return Lh(e.credential)}function lx(e){return e instanceof yb?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function ux(e){return e instanceof Ib?!0:e.constructor.name===`StorageRetryPolicyFactory`}function dx(e){return e.constructor.name===`TelemetryPolicyFactory`}function fx(e){return e.constructor.name===`InjectorPolicyFactory`}function px(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var mx=i({AccessPolicy:()=>Px,AppendBlobAppendBlockExceptionHeaders:()=>hw,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>_w,AppendBlobAppendBlockFromUrlHeaders:()=>gw,AppendBlobAppendBlockHeaders:()=>mw,AppendBlobCreateExceptionHeaders:()=>pw,AppendBlobCreateHeaders:()=>fw,AppendBlobSealExceptionHeaders:()=>yw,AppendBlobSealHeaders:()=>vw,ArrowConfiguration:()=>eS,ArrowField:()=>tS,BlobAbortCopyFromURLExceptionHeaders:()=>LC,BlobAbortCopyFromURLHeaders:()=>IC,BlobAcquireLeaseExceptionHeaders:()=>xC,BlobAcquireLeaseHeaders:()=>bC,BlobBreakLeaseExceptionHeaders:()=>kC,BlobBreakLeaseHeaders:()=>OC,BlobChangeLeaseExceptionHeaders:()=>DC,BlobChangeLeaseHeaders:()=>EC,BlobCopyFromURLExceptionHeaders:()=>FC,BlobCopyFromURLHeaders:()=>PC,BlobCreateSnapshotExceptionHeaders:()=>jC,BlobCreateSnapshotHeaders:()=>AC,BlobDeleteExceptionHeaders:()=>aC,BlobDeleteHeaders:()=>iC,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>hC,BlobDeleteImmutabilityPolicyHeaders:()=>mC,BlobDownloadExceptionHeaders:()=>tC,BlobDownloadHeaders:()=>eC,BlobFlatListSegment:()=>Ix,BlobGetAccountInfoExceptionHeaders:()=>VC,BlobGetAccountInfoHeaders:()=>BC,BlobGetPropertiesExceptionHeaders:()=>rC,BlobGetPropertiesHeaders:()=>nC,BlobGetTagsExceptionHeaders:()=>GC,BlobGetTagsHeaders:()=>WC,BlobHierarchyListSegment:()=>Vx,BlobItemInternal:()=>Lx,BlobName:()=>Rx,BlobPrefix:()=>Hx,BlobPropertiesInternal:()=>zx,BlobQueryExceptionHeaders:()=>UC,BlobQueryHeaders:()=>HC,BlobReleaseLeaseExceptionHeaders:()=>CC,BlobReleaseLeaseHeaders:()=>SC,BlobRenewLeaseExceptionHeaders:()=>TC,BlobRenewLeaseHeaders:()=>wC,BlobServiceProperties:()=>hx,BlobServiceStatistics:()=>Sx,BlobSetExpiryExceptionHeaders:()=>lC,BlobSetExpiryHeaders:()=>cC,BlobSetHttpHeadersExceptionHeaders:()=>dC,BlobSetHttpHeadersHeaders:()=>uC,BlobSetImmutabilityPolicyExceptionHeaders:()=>pC,BlobSetImmutabilityPolicyHeaders:()=>fC,BlobSetLegalHoldExceptionHeaders:()=>_C,BlobSetLegalHoldHeaders:()=>gC,BlobSetMetadataExceptionHeaders:()=>yC,BlobSetMetadataHeaders:()=>vC,BlobSetTagsExceptionHeaders:()=>qC,BlobSetTagsHeaders:()=>KC,BlobSetTierExceptionHeaders:()=>zC,BlobSetTierHeaders:()=>RC,BlobStartCopyFromURLExceptionHeaders:()=>NC,BlobStartCopyFromURLHeaders:()=>MC,BlobTag:()=>Mx,BlobTags:()=>jx,BlobUndeleteExceptionHeaders:()=>sC,BlobUndeleteHeaders:()=>oC,Block:()=>Gx,BlockBlobCommitBlockListExceptionHeaders:()=>kw,BlockBlobCommitBlockListHeaders:()=>Ow,BlockBlobGetBlockListExceptionHeaders:()=>jw,BlockBlobGetBlockListHeaders:()=>Aw,BlockBlobPutBlobFromUrlExceptionHeaders:()=>Cw,BlockBlobPutBlobFromUrlHeaders:()=>Sw,BlockBlobStageBlockExceptionHeaders:()=>Tw,BlockBlobStageBlockFromURLExceptionHeaders:()=>Dw,BlockBlobStageBlockFromURLHeaders:()=>Ew,BlockBlobStageBlockHeaders:()=>ww,BlockBlobUploadExceptionHeaders:()=>xw,BlockBlobUploadHeaders:()=>bw,BlockList:()=>Wx,BlockLookupList:()=>Ux,ClearRange:()=>Jx,ContainerAcquireLeaseExceptionHeaders:()=>zS,ContainerAcquireLeaseHeaders:()=>RS,ContainerBreakLeaseExceptionHeaders:()=>GS,ContainerBreakLeaseHeaders:()=>WS,ContainerChangeLeaseExceptionHeaders:()=>qS,ContainerChangeLeaseHeaders:()=>KS,ContainerCreateExceptionHeaders:()=>yS,ContainerCreateHeaders:()=>vS,ContainerDeleteExceptionHeaders:()=>CS,ContainerDeleteHeaders:()=>SS,ContainerFilterBlobsExceptionHeaders:()=>LS,ContainerFilterBlobsHeaders:()=>IS,ContainerGetAccessPolicyExceptionHeaders:()=>DS,ContainerGetAccessPolicyHeaders:()=>ES,ContainerGetAccountInfoExceptionHeaders:()=>$S,ContainerGetAccountInfoHeaders:()=>QS,ContainerGetPropertiesExceptionHeaders:()=>xS,ContainerGetPropertiesHeaders:()=>bS,ContainerItem:()=>Tx,ContainerListBlobFlatSegmentExceptionHeaders:()=>YS,ContainerListBlobFlatSegmentHeaders:()=>JS,ContainerListBlobHierarchySegmentExceptionHeaders:()=>ZS,ContainerListBlobHierarchySegmentHeaders:()=>XS,ContainerProperties:()=>Ex,ContainerReleaseLeaseExceptionHeaders:()=>VS,ContainerReleaseLeaseHeaders:()=>BS,ContainerRenameExceptionHeaders:()=>NS,ContainerRenameHeaders:()=>MS,ContainerRenewLeaseExceptionHeaders:()=>US,ContainerRenewLeaseHeaders:()=>HS,ContainerRestoreExceptionHeaders:()=>jS,ContainerRestoreHeaders:()=>AS,ContainerSetAccessPolicyExceptionHeaders:()=>kS,ContainerSetAccessPolicyHeaders:()=>OS,ContainerSetMetadataExceptionHeaders:()=>TS,ContainerSetMetadataHeaders:()=>wS,ContainerSubmitBatchExceptionHeaders:()=>FS,ContainerSubmitBatchHeaders:()=>PS,CorsRule:()=>yx,DelimitedTextConfiguration:()=>Qx,FilterBlobItem:()=>Ax,FilterBlobSegment:()=>kx,GeoReplication:()=>Cx,JsonTextConfiguration:()=>$x,KeyInfo:()=>Dx,ListBlobsFlatSegmentResponse:()=>Fx,ListBlobsHierarchySegmentResponse:()=>Bx,ListContainersSegmentResponse:()=>wx,Logging:()=>gx,Metrics:()=>vx,PageBlobClearPagesExceptionHeaders:()=>$C,PageBlobClearPagesHeaders:()=>QC,PageBlobCopyIncrementalExceptionHeaders:()=>dw,PageBlobCopyIncrementalHeaders:()=>uw,PageBlobCreateExceptionHeaders:()=>YC,PageBlobCreateHeaders:()=>JC,PageBlobGetPageRangesDiffExceptionHeaders:()=>aw,PageBlobGetPageRangesDiffHeaders:()=>iw,PageBlobGetPageRangesExceptionHeaders:()=>rw,PageBlobGetPageRangesHeaders:()=>nw,PageBlobResizeExceptionHeaders:()=>sw,PageBlobResizeHeaders:()=>ow,PageBlobUpdateSequenceNumberExceptionHeaders:()=>lw,PageBlobUpdateSequenceNumberHeaders:()=>cw,PageBlobUploadPagesExceptionHeaders:()=>ZC,PageBlobUploadPagesFromURLExceptionHeaders:()=>tw,PageBlobUploadPagesFromURLHeaders:()=>ew,PageBlobUploadPagesHeaders:()=>XC,PageList:()=>Kx,PageRange:()=>qx,QueryFormat:()=>Zx,QueryRequest:()=>Yx,QuerySerialization:()=>Xx,RetentionPolicy:()=>_x,ServiceFilterBlobsExceptionHeaders:()=>_S,ServiceFilterBlobsHeaders:()=>gS,ServiceGetAccountInfoExceptionHeaders:()=>pS,ServiceGetAccountInfoHeaders:()=>fS,ServiceGetPropertiesExceptionHeaders:()=>aS,ServiceGetPropertiesHeaders:()=>iS,ServiceGetStatisticsExceptionHeaders:()=>sS,ServiceGetStatisticsHeaders:()=>oS,ServiceGetUserDelegationKeyExceptionHeaders:()=>dS,ServiceGetUserDelegationKeyHeaders:()=>uS,ServiceListContainersSegmentExceptionHeaders:()=>lS,ServiceListContainersSegmentHeaders:()=>cS,ServiceSetPropertiesExceptionHeaders:()=>rS,ServiceSetPropertiesHeaders:()=>nS,ServiceSubmitBatchExceptionHeaders:()=>hS,ServiceSubmitBatchHeaders:()=>mS,SignedIdentifier:()=>Nx,StaticWebsite:()=>bx,StorageError:()=>xx,UserDelegationKey:()=>Ox});const hx={serializedName:`BlobServiceProperties`,xmlName:`StorageServiceProperties`,type:{name:`Composite`,className:`BlobServiceProperties`,modelProperties:{blobAnalyticsLogging:{serializedName:`Logging`,xmlName:`Logging`,type:{name:`Composite`,className:`Logging`}},hourMetrics:{serializedName:`HourMetrics`,xmlName:`HourMetrics`,type:{name:`Composite`,className:`Metrics`}},minuteMetrics:{serializedName:`MinuteMetrics`,xmlName:`MinuteMetrics`,type:{name:`Composite`,className:`Metrics`}},cors:{serializedName:`Cors`,xmlName:`Cors`,xmlIsWrapped:!0,xmlElementName:`CorsRule`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`CorsRule`}}}},defaultServiceVersion:{serializedName:`DefaultServiceVersion`,xmlName:`DefaultServiceVersion`,type:{name:`String`}},deleteRetentionPolicy:{serializedName:`DeleteRetentionPolicy`,xmlName:`DeleteRetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}},staticWebsite:{serializedName:`StaticWebsite`,xmlName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`}}}}},gx={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},_x={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},vx={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},yx={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},bx={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},indexDocument:{serializedName:`IndexDocument`,xmlName:`IndexDocument`,type:{name:`String`}},errorDocument404Path:{serializedName:`ErrorDocument404Path`,xmlName:`ErrorDocument404Path`,type:{name:`String`}},defaultIndexDocumentPath:{serializedName:`DefaultIndexDocumentPath`,xmlName:`DefaultIndexDocumentPath`,type:{name:`String`}}}}},xx={serializedName:`StorageError`,type:{name:`Composite`,className:`StorageError`,modelProperties:{message:{serializedName:`Message`,xmlName:`Message`,type:{name:`String`}},copySourceStatusCode:{serializedName:`CopySourceStatusCode`,xmlName:`CopySourceStatusCode`,type:{name:`Number`}},copySourceErrorCode:{serializedName:`CopySourceErrorCode`,xmlName:`CopySourceErrorCode`,type:{name:`String`}},copySourceErrorMessage:{serializedName:`CopySourceErrorMessage`,xmlName:`CopySourceErrorMessage`,type:{name:`String`}},code:{serializedName:`Code`,xmlName:`Code`,type:{name:`String`}},authenticationErrorDetail:{serializedName:`AuthenticationErrorDetail`,xmlName:`AuthenticationErrorDetail`,type:{name:`String`}}}}},Sx={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},Cx={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},wx={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},containerItems:{serializedName:`ContainerItems`,required:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Tx={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},deleted:{serializedName:`Deleted`,xmlName:`Deleted`,type:{name:`Boolean`}},version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`ContainerProperties`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}}}},Ex={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},publicAccess:{serializedName:`PublicAccess`,xmlName:`PublicAccess`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`HasImmutabilityPolicy`,xmlName:`HasImmutabilityPolicy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`HasLegalHold`,xmlName:`HasLegalHold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`DefaultEncryptionScope`,xmlName:`DefaultEncryptionScope`,type:{name:`String`}},preventEncryptionScopeOverride:{serializedName:`DenyEncryptionScopeOverride`,xmlName:`DenyEncryptionScopeOverride`,type:{name:`Boolean`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},isImmutableStorageWithVersioningEnabled:{serializedName:`ImmutableStorageWithVersioningEnabled`,xmlName:`ImmutableStorageWithVersioningEnabled`,type:{name:`Boolean`}}}}},Dx={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},Ox={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},kx={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Ax={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},jx={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},Mx={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},Nx={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},Px={serializedName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`,modelProperties:{startsOn:{serializedName:`Start`,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,xmlName:`Expiry`,type:{name:`String`}},permissions:{serializedName:`Permission`,xmlName:`Permission`,type:{name:`String`}}}}},Fx={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Ix={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},Lx={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,xmlName:`Snapshot`,type:{name:`String`}},versionId:{serializedName:`VersionId`,xmlName:`VersionId`,type:{name:`String`}},isCurrentVersion:{serializedName:`IsCurrentVersion`,xmlName:`IsCurrentVersion`,type:{name:`Boolean`}},properties:{serializedName:`Properties`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`}},metadata:{serializedName:`Metadata`,xmlName:`Metadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobTags:{serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}},objectReplicationMetadata:{serializedName:`ObjectReplicationMetadata`,xmlName:`OrMetadata`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},hasVersionsOnly:{serializedName:`HasVersionsOnly`,xmlName:`HasVersionsOnly`,type:{name:`Boolean`}}}}},Rx={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},zx={serializedName:`BlobPropertiesInternal`,xmlName:`Properties`,type:{name:`Composite`,className:`BlobPropertiesInternal`,modelProperties:{createdOn:{serializedName:`Creation-Time`,xmlName:`Creation-Time`,type:{name:`DateTimeRfc1123`}},lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,xmlName:`Etag`,type:{name:`String`}},contentLength:{serializedName:`Content-Length`,xmlName:`Content-Length`,type:{name:`Number`}},contentType:{serializedName:`Content-Type`,xmlName:`Content-Type`,type:{name:`String`}},contentEncoding:{serializedName:`Content-Encoding`,xmlName:`Content-Encoding`,type:{name:`String`}},contentLanguage:{serializedName:`Content-Language`,xmlName:`Content-Language`,type:{name:`String`}},contentMD5:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}},contentDisposition:{serializedName:`Content-Disposition`,xmlName:`Content-Disposition`,type:{name:`String`}},cacheControl:{serializedName:`Cache-Control`,xmlName:`Cache-Control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`BlobType`,xmlName:`BlobType`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},leaseStatus:{serializedName:`LeaseStatus`,xmlName:`LeaseStatus`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},leaseState:{serializedName:`LeaseState`,xmlName:`LeaseState`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseDuration:{serializedName:`LeaseDuration`,xmlName:`LeaseDuration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},copyId:{serializedName:`CopyId`,xmlName:`CopyId`,type:{name:`String`}},copyStatus:{serializedName:`CopyStatus`,xmlName:`CopyStatus`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},copySource:{serializedName:`CopySource`,xmlName:`CopySource`,type:{name:`String`}},copyProgress:{serializedName:`CopyProgress`,xmlName:`CopyProgress`,type:{name:`String`}},copyCompletedOn:{serializedName:`CopyCompletionTime`,xmlName:`CopyCompletionTime`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`CopyStatusDescription`,xmlName:`CopyStatusDescription`,type:{name:`String`}},serverEncrypted:{serializedName:`ServerEncrypted`,xmlName:`ServerEncrypted`,type:{name:`Boolean`}},incrementalCopy:{serializedName:`IncrementalCopy`,xmlName:`IncrementalCopy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`DestinationSnapshot`,xmlName:`DestinationSnapshot`,type:{name:`String`}},deletedOn:{serializedName:`DeletedTime`,xmlName:`DeletedTime`,type:{name:`DateTimeRfc1123`}},remainingRetentionDays:{serializedName:`RemainingRetentionDays`,xmlName:`RemainingRetentionDays`,type:{name:`Number`}},accessTier:{serializedName:`AccessTier`,xmlName:`AccessTier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}},accessTierInferred:{serializedName:`AccessTierInferred`,xmlName:`AccessTierInferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`ArchiveStatus`,xmlName:`ArchiveStatus`,type:{name:`Enum`,allowedValues:[`rehydrate-pending-to-hot`,`rehydrate-pending-to-cool`,`rehydrate-pending-to-cold`]}},customerProvidedKeySha256:{serializedName:`CustomerProvidedKeySha256`,xmlName:`CustomerProvidedKeySha256`,type:{name:`String`}},encryptionScope:{serializedName:`EncryptionScope`,xmlName:`EncryptionScope`,type:{name:`String`}},accessTierChangedOn:{serializedName:`AccessTierChangeTime`,xmlName:`AccessTierChangeTime`,type:{name:`DateTimeRfc1123`}},tagCount:{serializedName:`TagCount`,xmlName:`TagCount`,type:{name:`Number`}},expiresOn:{serializedName:`Expiry-Time`,xmlName:`Expiry-Time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`Sealed`,xmlName:`Sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`RehydratePriority`,xmlName:`RehydratePriority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessedOn:{serializedName:`LastAccessTime`,xmlName:`LastAccessTime`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`ImmutabilityPolicyUntilDate`,xmlName:`ImmutabilityPolicyUntilDate`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`ImmutabilityPolicyMode`,xmlName:`ImmutabilityPolicyMode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`LegalHold`,xmlName:`LegalHold`,type:{name:`Boolean`}}}}},Bx={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,type:{name:`String`}},prefix:{serializedName:`Prefix`,xmlName:`Prefix`,type:{name:`String`}},marker:{serializedName:`Marker`,xmlName:`Marker`,type:{name:`String`}},maxPageSize:{serializedName:`MaxResults`,xmlName:`MaxResults`,type:{name:`Number`}},delimiter:{serializedName:`Delimiter`,xmlName:`Delimiter`,type:{name:`String`}},segment:{serializedName:`Segment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Vx={serializedName:`BlobHierarchyListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobHierarchyListSegment`,modelProperties:{blobPrefixes:{serializedName:`BlobPrefixes`,xmlName:`BlobPrefixes`,xmlElementName:`BlobPrefix`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobPrefix`}}}},blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},Hx={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},Ux={serializedName:`BlockLookupList`,xmlName:`BlockList`,type:{name:`Composite`,className:`BlockLookupList`,modelProperties:{committed:{serializedName:`Committed`,xmlName:`Committed`,xmlElementName:`Committed`,type:{name:`Sequence`,element:{type:{name:`String`}}}},uncommitted:{serializedName:`Uncommitted`,xmlName:`Uncommitted`,xmlElementName:`Uncommitted`,type:{name:`Sequence`,element:{type:{name:`String`}}}},latest:{serializedName:`Latest`,xmlName:`Latest`,xmlElementName:`Latest`,type:{name:`Sequence`,element:{type:{name:`String`}}}}}}},Wx={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},Gx={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},Kx={serializedName:`PageList`,type:{name:`Composite`,className:`PageList`,modelProperties:{pageRange:{serializedName:`PageRange`,xmlName:`PageRange`,xmlElementName:`PageRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`PageRange`}}}},clearRange:{serializedName:`ClearRange`,xmlName:`ClearRange`,xmlElementName:`ClearRange`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ClearRange`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},qx={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},Jx={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},Yx={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,xmlName:`Expression`,type:{name:`String`}},inputSerialization:{serializedName:`InputSerialization`,xmlName:`InputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}},outputSerialization:{serializedName:`OutputSerialization`,xmlName:`OutputSerialization`,type:{name:`Composite`,className:`QuerySerialization`}}}}},Xx={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},Zx={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`Enum`,allowedValues:[`delimited`,`json`,`arrow`,`parquet`]}},delimitedTextConfiguration:{serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`}},jsonTextConfiguration:{serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`}},arrowConfiguration:{serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`}},parquetTextConfiguration:{serializedName:`ParquetTextConfiguration`,xmlName:`ParquetTextConfiguration`,type:{name:`Dictionary`,value:{type:{name:`any`}}}}}}},Qx={serializedName:`DelimitedTextConfiguration`,xmlName:`DelimitedTextConfiguration`,type:{name:`Composite`,className:`DelimitedTextConfiguration`,modelProperties:{columnSeparator:{serializedName:`ColumnSeparator`,xmlName:`ColumnSeparator`,type:{name:`String`}},fieldQuote:{serializedName:`FieldQuote`,xmlName:`FieldQuote`,type:{name:`String`}},recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}},escapeChar:{serializedName:`EscapeChar`,xmlName:`EscapeChar`,type:{name:`String`}},headersPresent:{serializedName:`HeadersPresent`,xmlName:`HasHeaders`,type:{name:`Boolean`}}}}},$x={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},eS={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},tS={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,xmlName:`Type`,type:{name:`String`}},name:{serializedName:`Name`,xmlName:`Name`,type:{name:`String`}},precision:{serializedName:`Precision`,xmlName:`Precision`,type:{name:`Number`}},scale:{serializedName:`Scale`,xmlName:`Scale`,type:{name:`Number`}}}}},nS={serializedName:`Service_setPropertiesHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rS={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iS={serializedName:`Service_getPropertiesHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aS={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oS={serializedName:`Service_getStatisticsHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sS={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cS={serializedName:`Service_listContainersSegmentHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lS={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uS={serializedName:`Service_getUserDelegationKeyHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dS={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fS={serializedName:`Service_getAccountInfoHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pS={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mS={serializedName:`Service_submitBatchHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hS={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gS={serializedName:`Service_filterBlobsHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_S={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vS={serializedName:`Container_createHeaders`,type:{name:`Composite`,className:`ContainerCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yS={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bS={serializedName:`Container_getPropertiesHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesHeaders`,modelProperties:{metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},hasImmutabilityPolicy:{serializedName:`x-ms-has-immutability-policy`,xmlName:`x-ms-has-immutability-policy`,type:{name:`Boolean`}},hasLegalHold:{serializedName:`x-ms-has-legal-hold`,xmlName:`x-ms-has-legal-hold`,type:{name:`Boolean`}},defaultEncryptionScope:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}},denyEncryptionScopeOverride:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}},isImmutableStorageWithVersioningEnabled:{serializedName:`x-ms-immutable-storage-with-versioning-enabled`,xmlName:`x-ms-immutable-storage-with-versioning-enabled`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xS={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},SS={serializedName:`Container_deleteHeaders`,type:{name:`Composite`,className:`ContainerDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},CS={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wS={serializedName:`Container_setMetadataHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},TS={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ES={serializedName:`Container_getAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyHeaders`,modelProperties:{blobPublicAccess:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},DS={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OS={serializedName:`Container_setAccessPolicyHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kS={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AS={serializedName:`Container_restoreHeaders`,type:{name:`Composite`,className:`ContainerRestoreHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jS={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MS={serializedName:`Container_renameHeaders`,type:{name:`Composite`,className:`ContainerRenameHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NS={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},PS={serializedName:`Container_submitBatchHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}}}}},FS={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},IS={serializedName:`Container_filterBlobsHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},LS={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RS={serializedName:`Container_acquireLeaseHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},zS={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BS={serializedName:`Container_releaseLeaseHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},VS={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HS={serializedName:`Container_renewLeaseHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},US={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WS={serializedName:`Container_breakLeaseHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},GS={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KS={serializedName:`Container_changeLeaseHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},qS={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JS={serializedName:`Container_listBlobFlatSegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YS={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XS={serializedName:`Container_listBlobHierarchySegmentHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentHeaders`,modelProperties:{contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZS={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QS={serializedName:`Container_getAccountInfoHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},$S={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eC={serializedName:`Blob_downloadHeaders`,type:{name:`Composite`,className:`BlobDownloadHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},tC={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},nC={serializedName:`Blob_getPropertiesHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},createdOn:{serializedName:`x-ms-creation-time`,xmlName:`x-ms-creation-time`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},objectReplicationPolicyId:{serializedName:`x-ms-or-policy-id`,xmlName:`x-ms-or-policy-id`,type:{name:`String`}},objectReplicationRules:{serializedName:`x-ms-or`,headerCollectionPrefix:`x-ms-or-`,xmlName:`x-ms-or`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletedOn:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},isIncrementalCopy:{serializedName:`x-ms-incremental-copy`,xmlName:`x-ms-incremental-copy`,type:{name:`Boolean`}},destinationSnapshot:{serializedName:`x-ms-copy-destination-snapshot`,xmlName:`x-ms-copy-destination-snapshot`,type:{name:`String`}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},accessTier:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`String`}},accessTierInferred:{serializedName:`x-ms-access-tier-inferred`,xmlName:`x-ms-access-tier-inferred`,type:{name:`Boolean`}},archiveStatus:{serializedName:`x-ms-archive-status`,xmlName:`x-ms-archive-status`,type:{name:`String`}},accessTierChangedOn:{serializedName:`x-ms-access-tier-change-time`,xmlName:`x-ms-access-tier-change-time`,type:{name:`DateTimeRfc1123`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},isCurrentVersion:{serializedName:`x-ms-is-current-version`,xmlName:`x-ms-is-current-version`,type:{name:`Boolean`}},tagCount:{serializedName:`x-ms-tag-count`,xmlName:`x-ms-tag-count`,type:{name:`Number`}},expiresOn:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}},rehydratePriority:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}},lastAccessed:{serializedName:`x-ms-last-access-time`,xmlName:`x-ms-last-access-time`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiresOn:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rC={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iC={serializedName:`Blob_deleteHeaders`,type:{name:`Composite`,className:`BlobDeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aC={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},oC={serializedName:`Blob_undeleteHeaders`,type:{name:`Composite`,className:`BlobUndeleteHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sC={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cC={serializedName:`Blob_setExpiryHeaders`,type:{name:`Composite`,className:`BlobSetExpiryHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},lC={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uC={serializedName:`Blob_setHttpHeadersHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dC={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fC={serializedName:`Blob_setImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyExpiry:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}},immutabilityPolicyMode:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}}}},pC={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mC={serializedName:`Blob_deleteImmutabilityPolicyHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},hC={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gC={serializedName:`Blob_setLegalHoldHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},legalHold:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}}}},_C={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vC={serializedName:`Blob_setMetadataHeaders`,type:{name:`Composite`,className:`BlobSetMetadataHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yC={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bC={serializedName:`Blob_acquireLeaseHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},xC={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},SC={serializedName:`Blob_releaseLeaseHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},CC={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wC={serializedName:`Blob_renewLeaseHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},TC={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},EC={serializedName:`Blob_changeLeaseHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},leaseId:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},DC={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},OC={serializedName:`Blob_breakLeaseHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},leaseTime:{serializedName:`x-ms-lease-time`,xmlName:`x-ms-lease-time`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}}}}},kC={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},AC={serializedName:`Blob_createSnapshotHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotHeaders`,modelProperties:{snapshot:{serializedName:`x-ms-snapshot`,xmlName:`x-ms-snapshot`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jC={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},MC={serializedName:`Blob_startCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},NC={serializedName:`Blob_startCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobStartCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},PC={serializedName:`Blob_copyFromURLHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{defaultValue:`success`,isConstant:!0,serializedName:`x-ms-copy-status`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},FC={serializedName:`Blob_copyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},IC={serializedName:`Blob_abortCopyFromURLHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},LC={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},RC={serializedName:`Blob_setTierHeaders`,type:{name:`Composite`,className:`BlobSetTierHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zC={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},BC={serializedName:`Blob_getAccountInfoHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},skuName:{serializedName:`x-ms-sku-name`,xmlName:`x-ms-sku-name`,type:{name:`Enum`,allowedValues:[`Standard_LRS`,`Standard_GRS`,`Standard_RAGRS`,`Standard_ZRS`,`Premium_LRS`]}},accountKind:{serializedName:`x-ms-account-kind`,xmlName:`x-ms-account-kind`,type:{name:`Enum`,allowedValues:[`Storage`,`BlobStorage`,`StorageV2`,`FileStorage`,`BlockBlobStorage`]}},isHierarchicalNamespaceEnabled:{serializedName:`x-ms-is-hns-enabled`,xmlName:`x-ms-is-hns-enabled`,type:{name:`Boolean`}}}}},VC={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},HC={serializedName:`Blob_queryHeaders`,type:{name:`Composite`,className:`BlobQueryHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},metadata:{serializedName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,xmlName:`x-ms-meta`,type:{name:`Dictionary`,value:{type:{name:`String`}}}},contentLength:{serializedName:`content-length`,xmlName:`content-length`,type:{name:`Number`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},contentRange:{serializedName:`content-range`,xmlName:`content-range`,type:{name:`String`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},contentEncoding:{serializedName:`content-encoding`,xmlName:`content-encoding`,type:{name:`String`}},cacheControl:{serializedName:`cache-control`,xmlName:`cache-control`,type:{name:`String`}},contentDisposition:{serializedName:`content-disposition`,xmlName:`content-disposition`,type:{name:`String`}},contentLanguage:{serializedName:`content-language`,xmlName:`content-language`,type:{name:`String`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},blobType:{serializedName:`x-ms-blob-type`,xmlName:`x-ms-blob-type`,type:{name:`Enum`,allowedValues:[`BlockBlob`,`PageBlob`,`AppendBlob`]}},copyCompletionTime:{serializedName:`x-ms-copy-completion-time`,xmlName:`x-ms-copy-completion-time`,type:{name:`DateTimeRfc1123`}},copyStatusDescription:{serializedName:`x-ms-copy-status-description`,xmlName:`x-ms-copy-status-description`,type:{name:`String`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyProgress:{serializedName:`x-ms-copy-progress`,xmlName:`x-ms-copy-progress`,type:{name:`String`}},copySource:{serializedName:`x-ms-copy-source`,xmlName:`x-ms-copy-source`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},leaseDuration:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Enum`,allowedValues:[`infinite`,`fixed`]}},leaseState:{serializedName:`x-ms-lease-state`,xmlName:`x-ms-lease-state`,type:{name:`Enum`,allowedValues:[`available`,`leased`,`expired`,`breaking`,`broken`]}},leaseStatus:{serializedName:`x-ms-lease-status`,xmlName:`x-ms-lease-status`,type:{name:`Enum`,allowedValues:[`locked`,`unlocked`]}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},acceptRanges:{serializedName:`accept-ranges`,xmlName:`accept-ranges`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-server-encrypted`,xmlName:`x-ms-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},blobContentMD5:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},contentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}}}},UC={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},WC={serializedName:`Blob_getTagsHeaders`,type:{name:`Composite`,className:`BlobGetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},GC={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},KC={serializedName:`Blob_setTagsHeaders`,type:{name:`Composite`,className:`BlobSetTagsHeaders`,modelProperties:{clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qC={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},JC={serializedName:`PageBlob_createHeaders`,type:{name:`Composite`,className:`PageBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},YC={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},XC={serializedName:`PageBlob_uploadPagesHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ZC={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},QC={serializedName:`PageBlob_clearPagesHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$C={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ew={serializedName:`PageBlob_uploadPagesFromURLHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tw={serializedName:`PageBlob_uploadPagesFromURLExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},nw={serializedName:`PageBlob_getPageRangesHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rw={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},iw={serializedName:`PageBlob_getPageRangesDiffHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},aw={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ow={serializedName:`PageBlob_resizeHeaders`,type:{name:`Composite`,className:`PageBlobResizeHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sw={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cw={serializedName:`PageBlob_updateSequenceNumberHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},blobSequenceNumber:{serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lw={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},uw={serializedName:`PageBlob_copyIncrementalHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},copyId:{serializedName:`x-ms-copy-id`,xmlName:`x-ms-copy-id`,type:{name:`String`}},copyStatus:{serializedName:`x-ms-copy-status`,xmlName:`x-ms-copy-status`,type:{name:`Enum`,allowedValues:[`pending`,`success`,`aborted`,`failed`]}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dw={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fw={serializedName:`AppendBlob_createHeaders`,type:{name:`Composite`,className:`AppendBlobCreateHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pw={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mw={serializedName:`AppendBlob_appendBlockHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hw={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gw={serializedName:`AppendBlob_appendBlockFromUrlHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},blobAppendOffset:{serializedName:`x-ms-blob-append-offset`,xmlName:`x-ms-blob-append-offset`,type:{name:`String`}},blobCommittedBlockCount:{serializedName:`x-ms-blob-committed-block-count`,xmlName:`x-ms-blob-committed-block-count`,type:{name:`Number`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_w={serializedName:`AppendBlob_appendBlockFromUrlExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},vw={serializedName:`AppendBlob_sealHeaders`,type:{name:`Composite`,className:`AppendBlobSealHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isSealed:{serializedName:`x-ms-blob-sealed`,xmlName:`x-ms-blob-sealed`,type:{name:`Boolean`}}}}},yw={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bw={serializedName:`BlockBlob_uploadHeaders`,type:{name:`Composite`,className:`BlockBlobUploadHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xw={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sw={serializedName:`BlockBlob_putBlobFromUrlHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cw={serializedName:`BlockBlob_putBlobFromUrlExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobPutBlobFromUrlExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},ww={serializedName:`BlockBlob_stageBlockHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tw={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ew={serializedName:`BlockBlob_stageBlockFromURLHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLHeaders`,modelProperties:{contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dw={serializedName:`BlockBlob_stageBlockFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}},copySourceErrorCode:{serializedName:`x-ms-copy-source-error-code`,xmlName:`x-ms-copy-source-error-code`,type:{name:`String`}},copySourceStatusCode:{serializedName:`x-ms-copy-source-status-code`,xmlName:`x-ms-copy-source-status-code`,type:{name:`Number`}}}}},Ow={serializedName:`BlockBlob_commitBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListHeaders`,modelProperties:{etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},contentMD5:{serializedName:`content-md5`,xmlName:`content-md5`,type:{name:`ByteArray`}},xMsContentCrc64:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},versionId:{serializedName:`x-ms-version-id`,xmlName:`x-ms-version-id`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},isServerEncrypted:{serializedName:`x-ms-request-server-encrypted`,xmlName:`x-ms-request-server-encrypted`,type:{name:`Boolean`}},encryptionKeySha256:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}},encryptionScope:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kw={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Aw={serializedName:`BlockBlob_getBlockListHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListHeaders`,modelProperties:{lastModified:{serializedName:`last-modified`,xmlName:`last-modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`etag`,xmlName:`etag`,type:{name:`String`}},contentType:{serializedName:`content-type`,xmlName:`content-type`,type:{name:`String`}},blobContentLength:{serializedName:`x-ms-blob-content-length`,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}},clientRequestId:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}},requestId:{serializedName:`x-ms-request-id`,xmlName:`x-ms-request-id`,type:{name:`String`}},version:{serializedName:`x-ms-version`,xmlName:`x-ms-version`,type:{name:`String`}},date:{serializedName:`date`,xmlName:`date`,type:{name:`DateTimeRfc1123`}},errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jw={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mw={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},Nw={parameterPath:`blobServiceProperties`,mapper:hx},Pw={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},Fw={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},Iw={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},Lw={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Rw={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},zw={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},Bw={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},Vw={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},Hw={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Uw={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ww={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},Gw={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},Kw={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},qw={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},Jw={parameterPath:`keyInfo`,mapper:Dx},Yw={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Xw={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},Zw={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},Qw={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},$w={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},eT={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},tT={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nT={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},rT={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},iT={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},aT={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},oT={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},sT={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},cT={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},lT={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},uT={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},dT={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},fT={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},pT={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},mT={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},hT={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},gT={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},_T={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},vT={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},yT={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},bT={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},xT={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},ST={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},CT={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},wT={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},TT={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},ET={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},DT={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},OT={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},kT={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},AT={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},jT={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListBlobsIncludeItem`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`copy`,`deleted`,`metadata`,`snapshots`,`uncommittedblobs`,`versions`,`tags`,`immutabilitypolicy`,`legalhold`,`deletedwithversions`]}}}},collectionFormat:`CSV`},MT={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},NT={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},PT={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},FT={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},IT={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},LT={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},RT={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},zT={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},BT={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},VT={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},HT={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},UT={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},WT={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},GT={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},KT={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},qT={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},JT={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},YT={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},XT={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},ZT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},QT={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},$T={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},eE={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},tE={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},nE={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rE={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},iE={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},aE={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},oE={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},sE={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},cE={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},lE={parameterPath:[`options`,`tier`],mapper:{serializedName:`x-ms-access-tier`,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},uE={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},dE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},fE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},pE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},mE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},hE={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},gE={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},_E={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},vE={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},yE={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},bE={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},xE={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},SE={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},CE={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},wE={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},TE={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},EE={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},DE={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},OE={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kE={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},AE={parameterPath:[`options`,`queryRequest`],mapper:Yx},jE={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ME={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},NE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},PE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},FE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},IE={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},LE={parameterPath:[`options`,`tags`],mapper:jx},RE={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},zE={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},BE={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},VE={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},HE={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},UE={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},WE={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},GE={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},KE={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},qE={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},JE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},YE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},XE={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},ZE={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},QE={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},$E={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},eD={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},tD={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},nD={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rD={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},iD={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},aD={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},oD={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sD={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},cD={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},lD={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},uD={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},dD={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},fD={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},pD={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},mD={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},hD={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gD={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},_D={parameterPath:`blocks`,mapper:Ux},vD={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yD={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var bD=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},SD)}getProperties(e){return this.client.sendOperationRequest({options:e},CD)}getStatistics(e){return this.client.sendOperationRequest({options:e},wD)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},TD)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},ED)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},DD)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},OD)}filterBlobs(e){return this.client.sendOperationRequest({options:e},kD)}};const xD=Zh(mx,!0),SD={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:nS},default:{bodyMapper:xx,headersMapper:rS}},requestBody:Nw,queryParameters:[Iw,Lw,Rw],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:xD},CD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:hx,headersMapper:iS},default:{bodyMapper:xx,headersMapper:aS}},queryParameters:[Iw,Lw,Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:xD},wD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Sx,headersMapper:oS},default:{bodyMapper:xx,headersMapper:sS}},queryParameters:[Iw,Rw,Hw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:xD},TD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:wx,headersMapper:cS},default:{bodyMapper:xx,headersMapper:lS}},queryParameters:[Rw,Uw,Ww,Gw,Kw,qw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:xD},ED={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:Ox,headersMapper:uS},default:{bodyMapper:xx,headersMapper:dS}},requestBody:Jw,queryParameters:[Iw,Rw,Yw],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:xD},DD={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:fS},default:{bodyMapper:xx,headersMapper:pS}},queryParameters:[Lw,Rw,Xw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:xD},OD={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:mS},default:{bodyMapper:xx,headersMapper:hS}},requestBody:Zw,queryParameters:[Rw,Qw],urlParameters:[Fw],headerParameters:[Pw,zw,Bw,$w,eT],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:xD},kD={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:kx,headersMapper:gS},default:{bodyMapper:xx,headersMapper:_S}},queryParameters:[Rw,Gw,Kw,tT,nT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:xD};var AD=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},MD)}getProperties(e){return this.client.sendOperationRequest({options:e},ND)}delete(e){return this.client.sendOperationRequest({options:e},PD)}setMetadata(e){return this.client.sendOperationRequest({options:e},FD)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},ID)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},LD)}restore(e){return this.client.sendOperationRequest({options:e},RD)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},zD)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},BD)}filterBlobs(e){return this.client.sendOperationRequest({options:e},VD)}acquireLease(e){return this.client.sendOperationRequest({options:e},HD)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},UD)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},WD)}breakLease(e){return this.client.sendOperationRequest({options:e},GD)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},KD)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},qD)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},JD)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},YD)}};const jD=Zh(mx,!0),MD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:vS},default:{bodyMapper:xx,headersMapper:yS}},queryParameters:[Rw,rT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,aT,oT,sT],isXML:!0,serializer:jD},ND={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:bS},default:{bodyMapper:xx,headersMapper:xS}},queryParameters:[Rw,rT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT],isXML:!0,serializer:jD},PD={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:SS},default:{bodyMapper:xx,headersMapper:CS}},queryParameters:[Rw,rT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT],isXML:!0,serializer:jD},FD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:wS},default:{bodyMapper:xx,headersMapper:TS}},queryParameters:[Rw,rT,dT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,cT,lT],isXML:!0,serializer:jD},ID={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:ES},default:{bodyMapper:xx,headersMapper:DS}},queryParameters:[Rw,rT,fT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT],isXML:!0,serializer:jD},LD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:OS},default:{bodyMapper:xx,headersMapper:kS}},requestBody:pT,queryParameters:[Rw,rT,fT],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw,aT,cT,lT,uT],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:jD},RD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:AS},default:{bodyMapper:xx,headersMapper:jS}},queryParameters:[Rw,rT,mT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,hT,gT],isXML:!0,serializer:jD},zD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:MS},default:{bodyMapper:xx,headersMapper:NS}},queryParameters:[Rw,rT,_T],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,vT,yT],isXML:!0,serializer:jD},BD={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:PS},default:{bodyMapper:xx,headersMapper:FS}},requestBody:Zw,queryParameters:[Rw,Qw,rT],urlParameters:[Fw],headerParameters:[Pw,zw,Bw,$w,eT],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:jD},VD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:kx,headersMapper:IS},default:{bodyMapper:xx,headersMapper:LS}},queryParameters:[Rw,Gw,Kw,tT,nT,rT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:jD},HD={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:RS},default:{bodyMapper:xx,headersMapper:zS}},queryParameters:[Rw,rT,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,xT,ST,CT],isXML:!0,serializer:jD},UD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:BS},default:{bodyMapper:xx,headersMapper:VS}},queryParameters:[Rw,rT,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,wT,TT],isXML:!0,serializer:jD},WD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:HS},default:{bodyMapper:xx,headersMapper:US}},queryParameters:[Rw,rT,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,TT,ET],isXML:!0,serializer:jD},GD={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:WS},default:{bodyMapper:xx,headersMapper:GS}},queryParameters:[Rw,rT,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,DT,OT],isXML:!0,serializer:jD},KD={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:KS},default:{bodyMapper:xx,headersMapper:qS}},queryParameters:[Rw,rT,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,TT,kT,AT],isXML:!0,serializer:jD},qD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:Fx,headersMapper:JS},default:{bodyMapper:xx,headersMapper:YS}},queryParameters:[Rw,Uw,Ww,Gw,Kw,rT,jT,MT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:jD},JD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:Bx,headersMapper:XS},default:{bodyMapper:xx,headersMapper:ZS}},queryParameters:[Rw,Uw,Ww,Gw,Kw,rT,jT,MT,NT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:jD},YD={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:QS},default:{bodyMapper:xx,headersMapper:$S}},queryParameters:[Lw,Rw,Xw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:jD};var XD=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},QD)}getProperties(e){return this.client.sendOperationRequest({options:e},$D)}delete(e){return this.client.sendOperationRequest({options:e},eO)}undelete(e){return this.client.sendOperationRequest({options:e},tO)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},nO)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},rO)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},iO)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},aO)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},oO)}setMetadata(e){return this.client.sendOperationRequest({options:e},sO)}acquireLease(e){return this.client.sendOperationRequest({options:e},cO)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},lO)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},uO)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},dO)}breakLease(e){return this.client.sendOperationRequest({options:e},fO)}createSnapshot(e){return this.client.sendOperationRequest({options:e},pO)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},mO)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},hO)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},gO)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},_O)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},vO)}query(e){return this.client.sendOperationRequest({options:e},yO)}getTags(e){return this.client.sendOperationRequest({options:e},bO)}setTags(e){return this.client.sendOperationRequest({options:e},xO)}};const ZD=Zh(mx,!0),QD={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:eC},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:eC},default:{bodyMapper:xx,headersMapper:tC}},queryParameters:[Rw,PT,FT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,IT,LT,RT,zT,BT,VT,HT,UT,WT],isXML:!0,serializer:ZD},$D={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:nC},default:{bodyMapper:xx,headersMapper:rC}},queryParameters:[Rw,PT,FT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,zT,BT,VT,HT,UT,WT],isXML:!0,serializer:ZD},eO={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:iC},default:{bodyMapper:xx,headersMapper:aC}},queryParameters:[Rw,PT,FT,KT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,HT,UT,WT,GT],isXML:!0,serializer:ZD},tO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:oC},default:{bodyMapper:xx,headersMapper:sC}},queryParameters:[Rw,mT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:ZD},nO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:cC},default:{bodyMapper:xx,headersMapper:lC}},queryParameters:[Rw,qT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,JT,YT],isXML:!0,serializer:ZD},rO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:uC},default:{bodyMapper:xx,headersMapper:dC}},queryParameters:[Lw,Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,HT,UT,WT,XT,ZT,QT,$T,eE,tE],isXML:!0,serializer:ZD},iO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:fC},default:{bodyMapper:xx,headersMapper:pC}},queryParameters:[Rw,PT,FT,nE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,uT,rE,iE],isXML:!0,serializer:ZD},aO={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:mC},default:{bodyMapper:xx,headersMapper:hC}},queryParameters:[Rw,PT,FT,nE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:ZD},oO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:gC},default:{bodyMapper:xx,headersMapper:_C}},queryParameters:[Rw,PT,FT,aE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,oE],isXML:!0,serializer:ZD},sO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:vC},default:{bodyMapper:xx,headersMapper:yC}},queryParameters:[Rw,dT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE],isXML:!0,serializer:ZD},cO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:bC},default:{bodyMapper:xx,headersMapper:xC}},queryParameters:[Rw,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,xT,ST,CT,HT,UT,WT],isXML:!0,serializer:ZD},lO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:SC},default:{bodyMapper:xx,headersMapper:CC}},queryParameters:[Rw,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,wT,TT,HT,UT,WT],isXML:!0,serializer:ZD},uO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:wC},default:{bodyMapper:xx,headersMapper:TC}},queryParameters:[Rw,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,TT,ET,HT,UT,WT],isXML:!0,serializer:ZD},dO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:EC},default:{bodyMapper:xx,headersMapper:DC}},queryParameters:[Rw,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,TT,kT,AT,HT,UT,WT],isXML:!0,serializer:ZD},fO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:OC},default:{bodyMapper:xx,headersMapper:kC}},queryParameters:[Rw,bT],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,DT,OT,HT,UT,WT],isXML:!0,serializer:ZD},pO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:AC},default:{bodyMapper:xx,headersMapper:jC}},queryParameters:[Rw,cE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE],isXML:!0,serializer:ZD},mO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:MC},default:{bodyMapper:xx,headersMapper:NC}},queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,cT,lT,uT,HT,UT,WT,rE,iE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE],isXML:!0,serializer:ZD},hO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:PC},default:{bodyMapper:xx,headersMapper:FC}},queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,iT,cT,lT,uT,HT,UT,WT,rE,iE,sE,lE,dE,fE,pE,mE,gE,_E,yE,bE,xE,SE,CE,wE],isXML:!0,serializer:ZD},gO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:IC},default:{bodyMapper:xx,headersMapper:LC}},queryParameters:[Rw,TE,DE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,EE],isXML:!0,serializer:ZD},_O={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:RC},202:{headersMapper:RC},default:{bodyMapper:xx,headersMapper:zC}},queryParameters:[Rw,PT,FT,OE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,WT,uE,kE],isXML:!0,serializer:ZD},vO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:BC},default:{bodyMapper:xx,headersMapper:VC}},queryParameters:[Lw,Rw,Xw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw],isXML:!0,serializer:ZD},yO={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:HC},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:HC},default:{bodyMapper:xx,headersMapper:UC}},requestBody:AE,queryParameters:[Rw,PT,jE],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw,cT,lT,uT,zT,BT,VT,HT,UT,WT],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ZD},bO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:jx,headersMapper:WC},default:{bodyMapper:xx,headersMapper:GC}},queryParameters:[Rw,PT,FT,ME],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,WT,NE,PE,FE,IE],isXML:!0,serializer:ZD},xO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:KC},default:{bodyMapper:xx,headersMapper:qC}},requestBody:LE,queryParameters:[Rw,FT,ME],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw,cT,WT,NE,PE,FE,IE,RE,zE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ZD};var SO=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},wO)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},TO)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},EO)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},DO)}getPageRanges(e){return this.client.sendOperationRequest({options:e},OO)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},kO)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},AO)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},jO)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},MO)}};const CO=Zh(mx,!0),wO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:JC},default:{bodyMapper:xx,headersMapper:YC}},queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,XT,ZT,QT,$T,eE,tE,rE,iE,sE,lE,_E,yE,BE,VE,HE],isXML:!0,serializer:CO},TO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:XC},default:{bodyMapper:xx,headersMapper:ZC}},requestBody:WE,queryParameters:[Rw,KE],urlParameters:[Fw],headerParameters:[zw,Bw,$w,cT,lT,uT,IT,zT,BT,VT,HT,UT,WT,sE,RE,zE,UE,GE,qE,JE,YE,XE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:CO},EO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:QC},default:{bodyMapper:xx,headersMapper:$C}},queryParameters:[Rw,KE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,cT,lT,uT,IT,zT,BT,VT,HT,UT,WT,sE,JE,YE,XE,ZE],isXML:!0,serializer:CO},DO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ew},default:{bodyMapper:xx,headersMapper:tw}},queryParameters:[Rw,KE],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE,dE,fE,pE,mE,xE,SE,wE,qE,JE,YE,XE,QE,$E,eD,tD],isXML:!0,serializer:CO},OO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Kx,headersMapper:nw},default:{bodyMapper:xx,headersMapper:rw}},queryParameters:[Rw,Gw,Kw,PT,nD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,IT,HT,UT,WT],isXML:!0,serializer:CO},kO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Kx,headersMapper:iw},default:{bodyMapper:xx,headersMapper:aw}},queryParameters:[Rw,Gw,Kw,PT,nD,rD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,IT,HT,UT,WT,iD],isXML:!0,serializer:CO},AO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:ow},default:{bodyMapper:xx,headersMapper:sw}},queryParameters:[Lw,Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE,VE],isXML:!0,serializer:CO},jO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:cw},default:{bodyMapper:xx,headersMapper:lw}},queryParameters:[Lw,Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,HT,UT,WT,HE,aD],isXML:!0,serializer:CO},MO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:uw},default:{bodyMapper:xx,headersMapper:dw}},queryParameters:[Rw,oD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,lT,uT,HT,UT,WT,gE],isXML:!0,serializer:CO};var NO=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},FO)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},IO)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},LO)}seal(e){return this.client.sendOperationRequest({options:e},RO)}};const PO=Zh(mx,!0),FO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:fw},default:{bodyMapper:xx,headersMapper:pw}},queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,XT,ZT,QT,$T,eE,tE,rE,iE,sE,_E,yE,sD],isXML:!0,serializer:PO},IO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:mw},default:{bodyMapper:xx,headersMapper:hw}},requestBody:WE,queryParameters:[Rw,cD],urlParameters:[Fw],headerParameters:[zw,Bw,$w,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE,RE,zE,UE,GE,lD,uD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:PO},LO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:gw},default:{bodyMapper:xx,headersMapper:_w}},queryParameters:[Rw,cD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,cT,lT,uT,zT,BT,VT,HT,UT,WT,sE,dE,fE,pE,mE,xE,SE,wE,RE,QE,eD,lD,uD,dD],isXML:!0,serializer:PO},RO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:vw},default:{bodyMapper:xx,headersMapper:yw}},queryParameters:[Rw,fD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,lT,uT,HT,UT,uD],isXML:!0,serializer:PO};var zO=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},VO)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},HO)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},UO)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},WO)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},GO)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},KO)}};const BO=Zh(mx,!0),VO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:bw},default:{bodyMapper:xx,headersMapper:xw}},requestBody:WE,queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,$w,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,XT,ZT,QT,$T,eE,tE,rE,iE,sE,lE,_E,yE,RE,zE,UE,GE,pD],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:BO},HO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Sw},default:{bodyMapper:xx,headersMapper:Cw}},queryParameters:[Rw],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,XT,ZT,QT,$T,eE,tE,sE,lE,dE,fE,pE,mE,hE,gE,_E,xE,SE,CE,wE,RE,pD,mD],isXML:!0,serializer:BO},UO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:ww},default:{bodyMapper:xx,headersMapper:Tw}},requestBody:WE,queryParameters:[Rw,hD,gD],urlParameters:[Fw],headerParameters:[zw,Bw,$w,cT,zT,BT,VT,sE,RE,zE,UE,GE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:BO},WO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Ew},default:{bodyMapper:xx,headersMapper:Dw}},queryParameters:[Rw,hD,gD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,$w,cT,zT,BT,VT,sE,dE,fE,pE,mE,xE,SE,wE,QE,eD,dD],isXML:!0,serializer:BO},GO={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Ow},default:{bodyMapper:xx,headersMapper:kw}},requestBody:_D,queryParameters:[Rw,vD],urlParameters:[Fw],headerParameters:[Mw,Pw,zw,Bw,iT,cT,lT,uT,zT,BT,VT,HT,UT,WT,XT,ZT,QT,$T,eE,tE,rE,iE,sE,lE,_E,yE,RE,zE],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:BO},KO={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Wx,headersMapper:Aw},default:{bodyMapper:xx,headersMapper:jw}},queryParameters:[Rw,PT,vD,yD],urlParameters:[Fw],headerParameters:[zw,Bw,Vw,cT,WT],isXML:!0,serializer:BO};var qO=class extends D_{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new bD(this),this.container=new AD(this),this.blob=new XD(this),this.pageBlob=new SO(this),this.appendBlob=new NO(this),this.blockBlob=new zO(this)}service;container;blob;pageBlob;appendBlob;blockBlob},JO=class extends qO{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function YO(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=$O(n),t.pathname=n,t.toString()}function XO(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function ZO(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function QO(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=XO(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=ZO(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=ZO(e,`AccountName`),a=Buffer.from(ZO(e,`AccountKey`),`base64`),!n){r=ZO(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=ZO(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=ZO(e,`SharedAccessSignature`),r=ZO(e,`AccountName`);if(r||=uk(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function $O(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function ek(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function tk(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function nk(e,t){return new URL(e).searchParams.get(t)??void 0}function rk(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function ik(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function ak(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function ok(e){return Km?Buffer.from(e).toString(`base64`):btoa(e)}function sk(e,t){return e.length>42&&(e=e.slice(0,42)),ok(e+ck(t.toString(),48-e.length,`0`))}function ck(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function lk(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function uk(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:dk(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function dk(e){let t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||!!e.port&&$b.includes(e.port)}function fk(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function pk(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function mk(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function hk(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function gk(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function _k(e){return e?e.scheme+` `+e.value:void 0}function*vk(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function Dk(e,t,n){return Ok(e,t,n).sasQueryParameters}function Ok(e,t,n){let r=e.version?e.version:qb,i=t instanceof Ab?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new Gb(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?Fk(e,a):Pk(e,a):jk(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?Nk(e,a):Mk(e,a):Ak(e,i);if(r>=`2015-04-05`){if(i!==void 0)return kk(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function kk(e,t){if(e=Lk(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),a=t.computeHMACSHA256(i);return{sasQueryParameters:new Ek(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function Ak(e,t){if(e=Lk(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function jk(e,t){if(e=Lk(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function Mk(e,t){if(e=Lk(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?ak(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?ak(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function Nk(e,t){if(e=Lk(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?ak(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?ak(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function Pk(e,t){if(e=Lk(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?ak(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?ak(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function Fk(e,t){if(e=Lk(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?Sk.parse(e.permissions.toString()).toString():Ck.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?ak(e.startsOn,!1):``,e.expiresOn?ak(e.expiresOn,!1):``,Ik(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?ak(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?ak(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?wk(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new Ek(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function Ik(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function Lk(e){let t=e.version?e.version:qb;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var Rk=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=Gm(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return xk.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>yk(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return xk.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=yk(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return xk.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>yk(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return xk.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw RangeError(`The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.`);return xk.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return yk(await this._containerOrBlobOperation.breakLease(r))})}},zk=class extends Se{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on(`data`,this.sourceDataHandler),this.source.on(`end`,this.sourceErrorOrEndHandler),this.source.on(`error`,this.sourceErrorOrEndHandler),this.source.on(`aborted`,this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener(`data`,this.sourceDataHandler),this.source.removeListener(`end`,this.sourceErrorOrEndHandler),this.source.removeListener(`error`,this.sourceErrorOrEndHandler),this.source.removeListener(`aborted`,this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new Bm(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},Bk=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Km?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new zk(this.originalResponse.readableStreamBody,t,n,r,i)}};const Vk=new Uint8Array([79,98,106,1]);var Hk=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},Uk;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(Uk||={});var Wk;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(Wk||={});var Gk=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case Wk.NULL:case Wk.BOOLEAN:case Wk.INT:case Wk.LONG:case Wk.FLOAT:case Wk.DOUBLE:case Wk.BYTES:case Wk.STRING:return new Kk(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new Jk(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case Uk.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new Xk(r,t.name);case Uk.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new qk(t.symbols);case Uk.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new Yk(e.fromSchema(t.values));case Uk.ARRAY:case Uk.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},Kk=class extends Gk{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case Wk.NULL:return Hk.readNull();case Wk.BOOLEAN:return Hk.readBoolean(e,t);case Wk.INT:return Hk.readInt(e,t);case Wk.LONG:return Hk.readLong(e,t);case Wk.FLOAT:return Hk.readFloat(e,t);case Wk.DOUBLE:return Hk.readDouble(e,t);case Wk.BYTES:return Hk.readBytes(e,t);case Wk.STRING:return Hk.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},qk=class extends Gk{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await Hk.readInt(e,t);return this._symbols[n]}},Jk=class extends Gk{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await Hk.readInt(e,t);return this._types[n].read(e,t)}},Yk=class extends Gk{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return Hk.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},Xk=class extends Gk{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function Zk(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await Hk.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!Zk(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await Hk.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await Hk.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},$k=class{};const eA=new Bm(`Reading from the avro stream was aborted.`);var tA=class extends $k{_position;_readable;toUint8Array(e){return typeof e==`string`?Ge.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw eA;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(eA)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},nA=class extends Se{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new Qk(new tA(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},rA=class{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return Km?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new nA(this.originalResponse.readableStreamBody,t)}},iA;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(iA||={});var aA;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(aA||={});function oA(e){if(e!==void 0)return e}function sA(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var cA;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(cA||={});function lA(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var uA=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},dA=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},fA=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new dA(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new uA(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},pA=class extends fA{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=_A({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return Hm(this.intervalInMs)}};const mA=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?_A(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,_A(t)):(t.isCancelled=!0,_A(t))},hA=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return _A(t)},gA=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function _A(e){return{state:{...e},cancel:mA,toString:gA,update:hA}}function vA(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var yA;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(yA||={});var bA=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=yA.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new ge}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=yA.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function SA(e,t){return new Promise((n,r)=>{let i=Ve.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const CA=De.promisify(Ve.stat),wA=Ve.createReadStream;var TA=class e extends bk{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(ex(t))a=e,i=t;else if(Km&&t instanceof Ab||t instanceof Cb||Lh(t))a=e,r=n,i=nx(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=nx(new Cb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=QO(e);if(c.kind===`AccountConnString`)if(Km){let e=new Ab(c.accountName,c.accountKey);a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=th(c.proxyUri),i=nx(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=nx(new Cb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=nk(this.url,Xb.Parameters.SNAPSHOT),this._versionId=nk(this.url,Xb.Parameters.VERSIONID)}withSnapshot(t){return new e(tk(this.url,Xb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(tk(this.url,Xb.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new EA(this.url,this.pipeline)}getBlockBlobClient(){return new DA(this.url,this.pipeline)}getPageBlobClient(){return new OA(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},sA(n.customerProvidedKey,this.isHttps),xk.withSpan(`BlobClient-download`,n,async r=>{let i=yk(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Km?void 0:n.onProgress},range:e===0&&!t?void 0:vA({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:gk(i.objectReplicationRules)};if(!Km)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new Bk(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:vA({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return xk.withSpan(`BlobClient-exists`,e,async t=>{try{return sA(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},sA(e.customerProvidedKey,this.isHttps),xk.withSpan(`BlobClient-getProperties`,e,async t=>{let n=yk(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:gk(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},xk.withSpan(`BlobClient-delete`,e,async t=>yk(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return xk.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=yk(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return xk.withSpan(`BlobClient-undelete`,e,async t=>yk(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},sA(t.customerProvidedKey,this.isHttps),xk.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>yk(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},sA(t.customerProvidedKey,this.isHttps),xk.withSpan(`BlobClient-setMetadata`,t,async n=>yk(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return xk.withSpan(`BlobClient-setTags`,t,async n=>yk(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:pk(e)})))}async getTags(e={}){return xk.withSpan(`BlobClient-getTags`,e,async t=>{let n=yk(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:mk({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new Rk(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},sA(e.customerProvidedKey,this.isHttps),xk.withSpan(`BlobClient-createSnapshot`,e,async t=>yk(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new pA({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return xk.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>yk(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},xk.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>yk(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:_k(t.sourceAuthorization),tier:oA(t.tier),blobTagsString:fk(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return xk.withSpan(`BlobClient-setAccessTier`,t,async n=>yk(await this.blobContext.setTier(oA(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=Yb),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},xk.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await SA(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(dk(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return xk.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},yk(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:oA(t.tier),blobTagsString:fk(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof Ab))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=Dk({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(ik(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof Ab))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return Ok({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=Dk({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(ik(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return Ok({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return xk.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>yk(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return xk.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>yk(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return xk.withSpan(`BlobClient-setLegalHold`,t,async t=>yk(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return xk.withSpan(`BlobClient-getAccountInfo`,e,async t=>yk(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},EA=class e extends TA{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ex(t))a=e,i=t;else if(Km&&t instanceof Ab||t instanceof Cb||Lh(t))a=e,r=n,i=nx(t,r);else if(!t&&typeof t!=`string`)a=e,i=nx(new Cb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=QO(e);if(c.kind===`AccountConnString`)if(Km){let e=new Ab(c.accountName,c.accountKey);a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=th(c.proxyUri),i=nx(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=nx(new Cb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(tk(this.url,Xb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},sA(e.customerProvidedKey,this.isHttps),xk.withSpan(`AppendBlobClient-create`,e,async t=>yk(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:fk(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return xk.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=yk(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},xk.withSpan(`AppendBlobClient-seal`,e,async t=>yk(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},sA(n.customerProvidedKey,this.isHttps),xk.withSpan(`AppendBlobClient-appendBlock`,n,async r=>yk(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},sA(r.customerProvidedKey,this.isHttps),xk.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>yk(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:vA({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:_k(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},DA=class e extends TA{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ex(t))a=e,i=t;else if(Km&&t instanceof Ab||t instanceof Cb||Lh(t))a=e,r=n,i=nx(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=nx(new Cb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=QO(e);if(c.kind===`AccountConnString`)if(Km){let e=new Ab(c.accountName,c.accountKey);a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=th(c.proxyUri),i=nx(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=nx(new Cb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(tk(this.url,Xb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(sA(t.customerProvidedKey,this.isHttps),!Km)throw Error(`This operation currently is only supported in Node.js.`);return xk.withSpan(`BlockBlobClient-query`,t,async n=>new rA(yk(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:hk(t.inputTextConfiguration),outputSerialization:hk(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},sA(n.customerProvidedKey,this.isHttps),xk.withSpan(`BlockBlobClient-upload`,n,async r=>yk(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:oA(n.tier),blobTagsString:fk(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},sA(t.customerProvidedKey,this.isHttps),xk.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>yk(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:_k(t.sourceAuthorization),tier:oA(t.tier),blobTagsString:fk(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return sA(r.customerProvidedKey,this.isHttps),xk.withSpan(`BlockBlobClient-stageBlock`,r,async i=>yk(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return sA(i.customerProvidedKey,this.isHttps),xk.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>yk(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:vA({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:_k(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},sA(t.customerProvidedKey,this.isHttps),xk.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>yk(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:oA(t.tier),blobTagsString:fk(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return xk.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=yk(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return xk.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(Km){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return xk.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/Jb),r<4194304&&(r=Yb))}return n.blobHTTPHeaders||={},n.conditions||={},xk.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return yk(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${Jb}`);let s=[],c=Gm(),l=0,u=new bA(n.concurrency);for(let i=0;i{let u=sk(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return xk.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await CA(e)).size;return this.uploadSeekableInternal((t,n)=>()=>wA(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},xk.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=Gm(),s=0,c=[];return await new sb(e,t,n,async(e,t)=>{let n=sk(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),yk(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},OA=class e extends TA{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ex(t))a=e,i=t;else if(Km&&t instanceof Ab||t instanceof Cb||Lh(t))a=e,r=n,i=nx(t,r);else if(!t&&typeof t!=`string`)a=e,i=nx(new Cb,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=QO(e);if(c.kind===`AccountConnString`)if(Km){let e=new Ab(c.accountName,c.accountKey);a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=th(c.proxyUri),i=nx(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=ek(ek(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=nx(new Cb,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(tk(this.url,Xb.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},sA(t.customerProvidedKey,this.isHttps),xk.withSpan(`PageBlobClient-create`,t,async n=>yk(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:oA(t.tier),blobTagsString:fk(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return xk.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=yk(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},sA(r.customerProvidedKey,this.isHttps),xk.withSpan(`PageBlobClient-uploadPages`,r,async i=>yk(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:vA({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},sA(i.customerProvidedKey,this.isHttps),xk.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>yk(await this.pageBlobContext.uploadPagesFromURL(e,vA({offset:t,count:r}),0,vA({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:_k(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},xk.withSpan(`PageBlobClient-clearPages`,n,async r=>yk(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:vA({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},xk.withSpan(`PageBlobClient-getPageRanges`,n,async r=>lA(yk(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:vA({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return xk.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>yk(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:vA({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*vk(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},xk.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>lA(yk(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:vA({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return xk.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>yk(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:vA({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*vk(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},xk.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>lA(yk(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:vA({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},xk.withSpan(`PageBlobClient-resize`,t,async n=>yk(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},xk.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>yk(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return xk.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>yk(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},kA=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},AA=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};AA.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var jA=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};jA.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var MA=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},NA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},PA=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);mi(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function FA(e,t,n){return NA(this,void 0,void 0,function*(){let r=new TA(e),i=r.getBlockBlobClient(),a=new PA(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),K(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new kA(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw pi(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function LA(e){return e?e>=200&&e<300:!1}function RA(e){return e?e>=500:!0}function zA(e){return e?[rr.BadGateway,rr.ServiceUnavailable,rr.GatewayTimeout].includes(e):!1}function BA(e){return IA(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function VA(e,t,n){return IA(this,arguments,void 0,function*(e,t,n,r=2,i=Wd,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!RA(l)))return c;if(l&&(u=zA(l),o=`Cache service responded with ${l}`),K(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){K(`${e} - Error is not retryable`);break}yield BA(i),s++}throw Error(`${e} failed: ${o}`)})}function HA(e,t){return IA(this,arguments,void 0,function*(e,t,n=2,r=Wd){return yield VA(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof lr)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function UA(e,t){return IA(this,arguments,void 0,function*(e,t,n=2,r=Wd){return yield VA(e,t,e=>e.message.statusCode,n,r)})}var WA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function GA(e,t){return WA(this,void 0,void 0,function*(){yield ye.promisify(qe.pipeline)(e.message,t)})}var KA=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,K(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);mi(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function qA(e,t){return WA(this,void 0,void 0,function*(){let n=H.createWriteStream(t),r=new dr(`actions/cache`),i=yield UA(`downloadCache`,()=>WA(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(Gd,()=>{i.message.destroy(),K(`Aborting download, socket timed out after ${Gd} ms`)}),yield GA(i,n);let a=i.message.headers[`content-length`];if(a){let e=parseInt(a),n=$d(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else K(`Unable to validate download, no Content-Length header`)})}function JA(e,t,n){return WA(this,void 0,void 0,function*(){let r=yield H.promises.open(t,`w`),i=new dr(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield UA(`downloadCacheMetadata`,()=>WA(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;tWA(this,void 0,void 0,function*(){return yield YA(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new KA(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>WA(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function YA(e,t,n,r){return WA(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield QA(3e4,XA(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function XA(e,t,n,r){return WA(this,void 0,void 0,function*(){let i=yield UA(`downloadCachePart`,()=>WA(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function ZA(e,t,n){return WA(this,void 0,void 0,function*(){let r=new DA(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)K(`Unable to determine content length, downloading file with http-client...`),yield qA(e,t);else{let e=Math.min(134217728,We.constants.MAX_LENGTH),a=new KA(i),o=H.openSync(t,`w`);try{a.startDisplayTimer();let t=new AbortController,s=t.signal;for(;!a.isDone();){let c=a.segmentOffset+a.segmentSize,l=Math.min(e,i-c);a.nextSegment(l);let u=yield QA(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(c,l,{abortSignal:s,concurrency:n.downloadConcurrency,onProgress:a.onProgress()}));if(u===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(u)&&H.writeFileSync(o,u)}}finally{a.stopDisplayTimer(),H.closeSync(o)}}})}const QA=(e,t)=>WA(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function $A(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),K(`Use Azure SDK: ${t.useAzureSdk}`),K(`Upload concurrency: ${t.uploadConcurrency}`),K(`Upload chunk size: ${t.uploadChunkSize}`),t}function ej(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),K(`Use Azure SDK: ${t.useAzureSdk}`),K(`Download concurrency: ${t.downloadConcurrency}`),K(`Request timeout (ms): ${t.timeoutInMs}`),K(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),K(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),K(`Lookup only: ${t.lookupOnly}`),t}function tj(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function nj(){return tj()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function rj(){let e=nj();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var ij=a(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),aj=a(((e,t)=>{t.exports={version:ij().version}}))();function oj(){return`@actions/cache-${aj.version}`}var sj=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function cj(e){let t=rj();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return K(`Resource Url: ${n}`),n}function lj(e,t){return`${e};api-version=${t}`}function uj(){return{headers:{Accept:lj(`application/json`,`6.0-preview.1`)}}}function dj(){let e=new mr(process.env.ACTIONS_RUNTIME_TOKEN||``);return new dr(oj(),[e],uj())}function fj(e,t,n){return sj(this,void 0,void 0,function*(){let r=dj(),i=cf(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield HA(`getCacheEntry`,()=>sj(this,void 0,void 0,function*(){return r.getJson(cj(a))}));if(o.statusCode===204)return di()&&(yield pj(e[0],r,i)),null;if(!LA(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return oi(c),K(`Cache Result:`),K(JSON.stringify(s)),s})}function pj(e,t,n){return sj(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield HA(`listCache`,()=>sj(this,void 0,void 0,function*(){return t.getJson(cj(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){K(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])K(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function mj(e,t,n){return sj(this,void 0,void 0,function*(){let r=new Ye(e),i=ej(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield ZA(e,t,i):i.concurrentBlobDownloads?yield JA(e,t,i):yield qA(e,t):yield qA(e,t)})}function hj(e,t,n){return sj(this,void 0,void 0,function*(){let r=dj(),i={key:e,version:cf(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield HA(`reserveCache`,()=>sj(this,void 0,void 0,function*(){return r.postJson(cj(`caches`),i)}))})}function gj(e,t){return`bytes ${e}-${t}/*`}function _j(e,t,n,r,i){return sj(this,void 0,void 0,function*(){K(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${gj(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":gj(r,i)},o=yield UA(`uploadChunk (start: ${r}, end: ${i})`,()=>sj(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!LA(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function vj(e,t,n,r){return sj(this,void 0,void 0,function*(){let i=$d(n),a=cj(`caches/${t.toString()}`),o=H.openSync(n,`r`),s=$A(r),c=sf(`uploadConcurrency`,s.uploadConcurrency),l=sf(`uploadChunkSize`,s.uploadChunkSize),u=[...Array(c).keys()];K(`Awaiting all uploads`);let d=0;try{yield Promise.all(u.map(()=>sj(this,void 0,void 0,function*(){for(;dH.createReadStream(n,{fd:o,start:r,end:s,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,s)}})))}finally{H.closeSync(o)}})}function yj(e,t,n){return sj(this,void 0,void 0,function*(){let r={size:n};return yield HA(`commitCache`,()=>sj(this,void 0,void 0,function*(){return e.postJson(cj(`caches/${t.toString()}`),r)}))})}function bj(e,t,n,r){return sj(this,void 0,void 0,function*(){if($A(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield FA(n,t,r)}else{let n=dj();K(`Upload cache`),yield vj(n,e,t,r),K(`Commiting cache`);let i=$d(t);mi(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield yj(n,e,i);if(!LA(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);mi(`Cache saved successfully`)}})}var xj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),Sj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),Cj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),wj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),Tj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),Ej=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=Tj(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!=0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),Dj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=wj(),n=Ej(),r=Tj(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),Oj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),kj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=Ej(),n=Tj(),r=Oj(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),Aj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),jj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),Mj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=Mj();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),Pj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),Fj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionTypeCheck=void 0;let t=Nj(),n=Pj();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),Ij=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionLongConvert=void 0;let t=Nj();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),Lj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonReader=void 0;let t=xj(),n=Sj(),r=Nj(),i=Ej(),a=Oj(),o=Ij();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),Rj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonWriter=void 0;let t=Sj(),n=Ej(),r=Nj(),i=Oj();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),zj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionScalarDefault=void 0;let t=Nj(),n=Ij(),r=Ej();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),Bj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryReader=void 0;let t=wj(),n=Nj(),r=Ij(),i=zj();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryWriter=void 0;let t=wj(),n=Nj(),r=Oj(),i=Ej();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionCreate=void 0;let t=zj(),n=jj();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),Uj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionEquals=void 0;let t=Nj();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MessageType=void 0;let t=jj(),n=Nj(),r=Fj(),i=Lj(),a=Rj(),o=Bj(),s=Vj(),c=Hj(),l=Uj(),u=xj(),d=Aj(),f=Wj(),p=kj(),m=Dj(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),Kj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.containsMessageType=void 0;let t=jj();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),qj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),Jj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=xj();Object.defineProperty(e,"typeofJsonValue",{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return t.isJsonObject}});var n=Sj();Object.defineProperty(e,"base64decode",{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,"base64encode",{enumerable:!0,get:function(){return n.base64encode}});var r=Cj();Object.defineProperty(e,"utf8read",{enumerable:!0,get:function(){return r.utf8read}});var i=wj();Object.defineProperty(e,"WireType",{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,"mergeBinaryOptions",{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,"UnknownFieldHandler",{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=Dj();Object.defineProperty(e,"BinaryReader",{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,"binaryReadOptions",{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=kj();Object.defineProperty(e,"BinaryWriter",{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,"binaryWriteOptions",{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=Ej();Object.defineProperty(e,"PbLong",{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,"PbULong",{enumerable:!0,get:function(){return s.PbULong}});var c=Aj();Object.defineProperty(e,"jsonReadOptions",{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,"jsonWriteOptions",{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,"mergeJsonOptions",{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=jj();Object.defineProperty(e,"MESSAGE_TYPE",{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=Gj();Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return u.MessageType}});var d=Nj();Object.defineProperty(e,"ScalarType",{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,"LongType",{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,"RepeatType",{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,"normalizeFieldInfo",{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,"readFieldOptions",{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,"readFieldOption",{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,"readMessageOption",{enumerable:!0,get:function(){return d.readMessageOption}});var f=Fj();Object.defineProperty(e,"ReflectionTypeCheck",{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=Hj();Object.defineProperty(e,"reflectionCreate",{enumerable:!0,get:function(){return p.reflectionCreate}});var m=zj();Object.defineProperty(e,"reflectionScalarDefault",{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=Uj();Object.defineProperty(e,"reflectionMergePartial",{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=Wj();Object.defineProperty(e,"reflectionEquals",{enumerable:!0,get:function(){return g.reflectionEquals}});var v=Bj();Object.defineProperty(e,"ReflectionBinaryReader",{enumerable:!0,get:function(){return v.ReflectionBinaryReader}});var y=Vj();Object.defineProperty(e,"ReflectionBinaryWriter",{enumerable:!0,get:function(){return y.ReflectionBinaryWriter}});var b=Lj();Object.defineProperty(e,"ReflectionJsonReader",{enumerable:!0,get:function(){return b.ReflectionJsonReader}});var x=Rj();Object.defineProperty(e,"ReflectionJsonWriter",{enumerable:!0,get:function(){return x.ReflectionJsonWriter}});var S=Kj();Object.defineProperty(e,"containsMessageType",{enumerable:!0,get:function(){return S.containsMessageType}});var C=Pj();Object.defineProperty(e,"isOneofGroup",{enumerable:!0,get:function(){return C.isOneofGroup}}),Object.defineProperty(e,"setOneofValue",{enumerable:!0,get:function(){return C.setOneofValue}}),Object.defineProperty(e,"getOneofValue",{enumerable:!0,get:function(){return C.getOneofValue}}),Object.defineProperty(e,"clearOneofValue",{enumerable:!0,get:function(){return C.clearOneofValue}}),Object.defineProperty(e,"getSelectedOneofValue",{enumerable:!0,get:function(){return C.getSelectedOneofValue}});var w=qj();Object.defineProperty(e,"listEnumValues",{enumerable:!0,get:function(){return w.listEnumValues}}),Object.defineProperty(e,"listEnumNames",{enumerable:!0,get:function(){return w.listEnumNames}}),Object.defineProperty(e,"listEnumNumbers",{enumerable:!0,get:function(){return w.listEnumNumbers}}),Object.defineProperty(e,"isEnumObject",{enumerable:!0,get:function(){return w.isEnumObject}});var T=Mj();Object.defineProperty(e,"lowerCamelCase",{enumerable:!0,get:function(){return T.lowerCamelCase}});var E=Oj();Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return E.assert}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return E.assertNever}}),Object.defineProperty(e,"assertInt32",{enumerable:!0,get:function(){return E.assertInt32}}),Object.defineProperty(e,"assertUInt32",{enumerable:!0,get:function(){return E.assertUInt32}}),Object.defineProperty(e,"assertFloat32",{enumerable:!0,get:function(){return E.assertFloat32}})})),Yj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=Jj();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),Xj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;let t=Yj();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),Zj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` +`)}}})),Qj=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeRpcOptions=void 0;let t=Jj();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),$j=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),eM=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcOutputStreamController=void 0;let t=$j(),n=Jj();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),tM=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),nM=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),rM=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),iM=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),aM=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.TestTransport=void 0;let n=Zj(),r=Jj(),i=eM(),a=Qj(),o=tM(),s=nM(),c=rM(),l=iM();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),oM=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=Jj();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),sM=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),cM=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Xj();Object.defineProperty(e,"ServiceType",{enumerable:!0,get:function(){return t.ServiceType}});var n=Yj();Object.defineProperty(e,"readMethodOptions",{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,"readMethodOption",{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,"readServiceOption",{enumerable:!0,get:function(){return n.readServiceOption}});var r=Zj();Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return r.RpcError}});var i=Qj();Object.defineProperty(e,"mergeRpcOptions",{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=eM();Object.defineProperty(e,"RpcOutputStreamController",{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=aM();Object.defineProperty(e,"TestTransport",{enumerable:!0,get:function(){return o.TestTransport}});var s=$j();Object.defineProperty(e,"Deferred",{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,"DeferredState",{enumerable:!0,get:function(){return s.DeferredState}});var c=iM();Object.defineProperty(e,"DuplexStreamingCall",{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=rM();Object.defineProperty(e,"ClientStreamingCall",{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=nM();Object.defineProperty(e,"ServerStreamingCall",{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=tM();Object.defineProperty(e,"UnaryCall",{enumerable:!0,get:function(){return d.UnaryCall}});var f=oM();Object.defineProperty(e,"stackIntercept",{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,"stackDuplexStreamingInterceptors",{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,"stackClientStreamingInterceptors",{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,"stackServerStreamingInterceptors",{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,"stackUnaryInterceptors",{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=sM();Object.defineProperty(e,"ServerCallContextController",{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=Jj();const lM=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.poslM}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posuM},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posuM},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posuM},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posfM.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=pM.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>mM.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=hM.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>gM.fromJson(e,{ignoreUnknownFields:!0}))}};function vM(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(oi(t),oi(encodeURIComponent(t)))}catch(t){K(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function yM(e){if(typeof e!=`object`||!e){K(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&vM(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&vM(e.signed_download_url)}var bM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},xM=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=lf();this.baseUrl=rj(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new dr(e,[new mr(i)])}request(e,t,n,r){return bM(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;K(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>bM(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return bM(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&pi(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new MA(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&K(`Raw Body: ${r}`),e instanceof jA||e instanceof MA)throw e;if(AA.isNetworkErrorCode(e?.code))throw new AA(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);mi(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[rr.BadGateway,rr.GatewayTimeout,rr.InternalServerError,rr.ServiceUnavailable].includes(e):!1}sleep(e){return bM(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function SM(e){return new _M(new xM(oj(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var CM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const wM=process.platform===`win32`;function TM(){return CM(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield of(),t=qd;if(e)return{path:e,type:Ud.GNU};if(U(t))return{path:t,type:Ud.BSD};break}case`darwin`:{let e=yield Gr(`gtar`,!1);return e?{path:e,type:Ud.GNU}:{path:yield Gr(`tar`,!0),type:Ud.BSD}}default:break}return{path:yield Gr(`tar`,!0),type:Ud.GNU}})}function EM(e,t,n){return CM(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=af(t),o=`cache.tar`,s=OM(),c=e.type===Ud.BSD&&t!==Hd.Gzip&&wM;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${W.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${W.sep}`,`g`),`/`),`--files-from`,Yd);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${W.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${W.sep}`,`g`),`/`),`-P`);break}if(e.type===Ud.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function DM(e,t){return CM(this,arguments,void 0,function*(e,t,n=``){let r,i=yield TM(),a=yield EM(i,e,t,n),o=t===`create`?yield AM(i,e):yield kM(i,e,n),s=i.type===Ud.BSD&&e!==Hd.Gzip&&wM;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function OM(){return process.env.GITHUB_WORKSPACE??process.cwd()}function kM(e,t,n){return CM(this,void 0,void 0,function*(){let r=e.type===Ud.BSD&&t!==Hd.Gzip&&wM;switch(t){case Hd.Zstd:return r?[`zstd -d --long=30 --force -o`,Jd,n.replace(RegExp(`\\${W.sep}`,`g`),`/`)]:[`--use-compress-program`,wM?`"zstd -d --long=30"`:`unzstd --long=30`];case Hd.ZstdWithoutLong:return r?[`zstd -d --force -o`,Jd,n.replace(RegExp(`\\${W.sep}`,`g`),`/`)]:[`--use-compress-program`,wM?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function AM(e,t){return CM(this,void 0,void 0,function*(){let n=af(t),r=e.type===Ud.BSD&&t!==Hd.Gzip&&wM;switch(t){case Hd.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${W.sep}`,`g`),`/`),Jd]:[`--use-compress-program`,wM?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case Hd.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${W.sep}`,`g`),`/`),Jd]:[`--use-compress-program`,wM?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function jM(e,t){return CM(this,void 0,void 0,function*(){for(let n of e)try{yield ni(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function MM(e,t){return CM(this,void 0,void 0,function*(){yield jM(yield DM(t,`list`,e))})}function NM(e,t){return CM(this,void 0,void 0,function*(){yield Wr(OM()),yield jM(yield DM(t,`extract`,e))})}function PM(e,t,n){return CM(this,void 0,void 0,function*(){ue(W.join(e,Yd),t.join(` +`)),yield jM(yield DM(n,`create`),e)})}var FM=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},IM=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},LM=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},RM=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function zM(e){if(!e||e.length===0)throw new IM(`Path Validation Error: At least one directory or file path is required`)}function BM(e){if(e.length>512)throw new IM(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new IM(`Key Validation Error: ${e} cannot contain commas.`)}function VM(e,t,n,r){return FM(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=nj();switch(K(`Cache service version: ${a}`),zM(e),a){case`v2`:return yield UM(e,t,n,r,i);default:return yield HM(e,t,n,r,i)}})}function HM(e,t,n,r){return FM(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(K(`Resolved Keys:`),K(JSON.stringify(a)),a.length>10)throw new IM(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)BM(e);let o=yield rf(),s=``;try{let t=yield fj(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return mi(`Lookup only - skipping download`),t.cacheKey;s=W.join(yield Qd(),af(o)),K(`Archive Path: ${s}`),yield mj(t.archiveLocation,s,r),di()&&(yield MM(s,o));let n=$d(s);return mi(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield NM(s,o),mi(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===IM.name)throw e;t instanceof lr&&typeof t.statusCode==`number`&&t.statusCode>=500?fi(`Failed to restore: ${e.message}`):pi(`Failed to restore: ${e.message}`)}finally{try{yield tf(s)}catch(e){K(`Failed to delete archive: ${e}`)}}})}function UM(e,t,n,r){return FM(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(K(`Resolved Keys:`),K(JSON.stringify(a)),a.length>10)throw new IM(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)BM(e);let o=``;try{let s=SM(),c=yield rf(),l={key:t,restoreKeys:n,version:cf(e,c,i)},u=yield s.GetCacheEntryDownloadURL(l);if(!u.ok){K(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===u.matchedKey?mi(`Cache hit for: ${u.matchedKey}`):mi(`Cache hit for restore-key: ${u.matchedKey}`),r?.lookupOnly)return mi(`Lookup only - skipping download`),u.matchedKey;o=W.join(yield Qd(),af(c)),K(`Archive path: ${o}`),K(`Starting download of archive to: ${o}`),yield mj(u.signedDownloadUrl,o,r);let d=$d(o);return mi(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),di()&&(yield MM(o,c)),yield NM(o,c),mi(`Cache restored successfully`),u.matchedKey}catch(e){let t=e;if(t.name===IM.name)throw e;t instanceof lr&&typeof t.statusCode==`number`&&t.statusCode>=500?fi(`Failed to restore: ${e.message}`):pi(`Failed to restore: ${e.message}`)}finally{try{o&&(yield tf(o))}catch(e){K(`Failed to delete archive: ${e}`)}}})}function WM(e,t,n){return FM(this,arguments,void 0,function*(e,t,n,r=!1){let i=nj();switch(K(`Cache service version: ${i}`),zM(e),BM(t),i){case`v2`:return yield KM(e,t,n,r);default:return yield GM(e,t,n,r)}})}function GM(e,t,n){return FM(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield rf(),a=-1,o=yield ef(e);if(K(`Cache Paths:`),K(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield Qd(),c=W.join(s,af(i));K(`Archive Path: ${c}`);try{yield PM(s,o,i),di()&&(yield MM(c,i));let l=$d(c);if(K(`File Size: ${l}`),l>10737418240&&!tj())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);K(`Reserving Cache`);let u=yield hj(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new LM(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);K(`Saving Cache (ID: ${a})`),yield bj(a,c,``,n)}catch(e){let t=e;if(t.name===IM.name)throw e;t.name===LM.name?mi(`Failed to save: ${t.message}`):t instanceof lr&&typeof t.statusCode==`number`&&t.statusCode>=500?fi(`Failed to save: ${t.message}`):pi(`Failed to save: ${t.message}`)}finally{try{yield tf(c)}catch(e){K(`Failed to delete archive: ${e}`)}}return a})}function KM(e,t,n){return FM(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield rf(),a=SM(),o=-1,s=yield ef(e);if(K(`Cache Paths:`),K(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield Qd(),l=W.join(c,af(i));K(`Archive Path: ${l}`);try{yield PM(c,s,i),di()&&(yield MM(l,i));let u=$d(l);K(`File Size: ${u}`),n.archiveSizeBytes=u,K(`Reserving Cache`);let d=cf(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&pi(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw K(`Failed to reserve cache: ${e}`),new LM(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}K(`Attempting to upload cache located at: ${l}`),yield bj(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(K(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new RM(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===IM.name)throw e;t.name===LM.name?mi(`Failed to save: ${t.message}`):t.name===RM.name?pi(t.message):t instanceof lr&&typeof t.statusCode==`number`&&t.statusCode>=500?fi(`Failed to save: ${t.message}`):pi(`Failed to save: ${t.message}`)}finally{try{yield tf(l)}catch(e){K(`Failed to delete archive: ${e}`)}}return o})}function qM(e){return e.replaceAll(`/`,`-`)}function JM(e){let{agentIdentity:t,repo:n,ref:r,os:i}=e;return`${Ma}-${t}-${qM(n)}-${r}-${i}`}function YM(e){let{agentIdentity:t,repo:n,ref:r}=e,i=qM(n);return[`${Ma}-${t}-${i}-${r}-`,`${Ma}-${t}-${i}-`]}function XM(e,t){return`${JM(e)}-${t}`}function ZM(){return{agentIdentity:`github`,repo:Ua(),ref:Wa(),os:Ha()}}function QM(e,t){let n=Ie.resolve(e),r=Ie.resolve(t);return n.startsWith(r+Ie.sep)}async function $M(e,t,n){if(!QM(e,t)){n.debug(`auth.json is outside storage path - skipping deletion`,{authPath:e,storagePath:t});return}try{await Fe.unlink(e),n.debug(`Deleted auth.json from cache storage`)}catch(e){e.code!==`ENOENT`&&n.warning(`Failed to delete auth.json`,{error:ba(e)})}}async function eN(e,t,n){let r=[e];if(t!=null&&r.push(t),await Sa(n??null)){let t=Ie.join(Ie.dirname(e),`opencode.db`);r.push(t,`${t}-wal`,`${t}-shm`)}return r}async function tN(e,t,n){let r=[e];if(t!=null&&r.push(t),await Sa(n??null)){let t=Ie.join(Ie.dirname(e),`opencode.db`);r.push(t);for(let e of[`-wal`,`-shm`])try{await Fe.access(`${t}${e}`),r.push(`${t}${e}`)}catch{}}return r}function nN(){return{restoreCache:async(e,t,n)=>VM(e,t,n),saveCache:async(e,t)=>WM(e,t)}}const rN=nN();async function iN(e,t){try{return(await Fe.stat(e)).isDirectory()===!1?!0:(await Fe.readdir(e),!1)}catch{return t.debug(`Storage path not accessible - treating as corrupted`),!0}}async function aN(e,t){let n=Ie.join(e,`.version`);try{let e=await Fe.readFile(n,`utf8`),r=Number.parseInt(e.trim(),10);return r===1?!0:(t.info(`Storage version mismatch`,{expected:1,found:r}),!1)}catch{return t.debug(`No version file found - treating as compatible`),!0}}async function oN(e){try{await Fe.rm(e,{recursive:!0,force:!0}),await Fe.mkdir(e,{recursive:!0})}catch{}}async function sN(e){let{storeConfig:t,storeAdapter:n,logger:r,storagePath:i,components:a}=e;if(t?.enabled!==!0)return{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null};let o=await Xo(n??oc(t,r),t,a.agentIdentity,a.repo,i,r);return o.mainDbRestored===!0?(await Fe.mkdir(i,{recursive:!0}),{hit:!0,key:null,restoredPath:i,corrupted:!1,source:`storage`}):(o.downloaded>0&&r.warning(`Object store returned session sidecar files without main DB - treating as miss`,{downloaded:o.downloaded,failed:o.failed}),{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null})}async function cN(e,t){let n=await sN(e);return n.hit===!0?n:{hit:!1,key:t,restoredPath:null,corrupted:!0,source:null}}async function lN(e){let{components:t,logger:n,storagePath:r,authPath:i,projectIdPath:a,opencodeVersion:o,cacheAdapter:s=rN}=e;if(V.env.SKIP_CACHE===`true`)return n.debug(`Skipping cache restore (SKIP_CACHE=true)`),await Fe.mkdir(r,{recursive:!0}),{hit:!1,key:null,restoredPath:null,corrupted:!1,source:null};let c=JM(t),l=YM(t),u=await eN(r,a,o);n.info(`Restoring cache`,{primaryKey:c,restoreKeys:[...l],paths:u});try{let t=await s.restoreCache(u,c,[...l]);return t==null?(n.info(`Cache miss - starting with fresh state`),await Fe.mkdir(r,{recursive:!0}),await sN(e)):(n.info(`Cache restored`,{restoredKey:t}),await iN(r,n)===!0?(n.warning(`Cache corruption detected - proceeding with clean state`),await oN(r),await cN(e,t)):await aN(r,n)===!1?(n.warning(`Storage version mismatch - proceeding with clean state`),await oN(r),await cN(e,t)):(await $M(i,r,n),{hit:!0,key:t,restoredPath:r,corrupted:!1,source:`cache`}))}catch(t){return n.warning(`Cache restore failed`,{error:ba(t)}),sN(e)}}async function uN(e){let t=Ie.join(e,`.version`);await Fe.mkdir(e,{recursive:!0}),await Fe.writeFile(t,`1`,`utf8`)}async function dN(e){try{return(await Fe.readdir(e)).length>0}catch{return!1}}async function fN(e){let{components:t,runId:n,logger:r,storagePath:i,authPath:a,projectIdPath:o,opencodeVersion:s,cacheAdapter:c=rN}=e;if(V.env.SKIP_CACHE===`true`)return r.debug(`Skipping cache save (SKIP_CACHE=true)`),!0;let l=XM(t,n),u=await tN(i,o,s);r.info(`Saving cache`,{saveKey:l,paths:u});try{if(await $M(a,i,r),await dN(i)===!1)return r.info(`No storage content to cache`),!1;if(await uN(i),e.storeConfig?.enabled===!0)try{let n=await Yo(e.storeAdapter??oc(e.storeConfig,r),e.storeConfig,t.agentIdentity,t.repo,i,r);r.info(`Object store session sync completed`,n)}catch(e){r.warning(`Object store session sync failed (non-fatal)`,{error:ba(e)})}return await c.saveCache(u,l),r.info(`Cache saved`,{saveKey:l}),!0}catch(e){return e instanceof Error&&e.message.includes(`already exists`)?(r.info(`Cache key already exists, skipping save`),!0):(r.warning(`Cache save failed`,{error:ba(e)}),!1)}}function pN(){return 8*1024*1024}function mN(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}function hN(){let e=process.env.ACTIONS_RESULTS_URL;if(!e)throw Error(`Unable to get the ACTIONS_RESULTS_URL env variable`);return new URL(e).origin}function gN(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function _N(){let e=process.env.GITHUB_WORKSPACE;if(!e)throw Error(`Unable to get the GITHUB_WORKSPACE env variable`);return e}function vN(){let e=ie.cpus().length,t=32;if(e>4){let n=16*e;t=n>300?300:n}let n=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(n){let e=parseInt(n);if(isNaN(e)||e<1)throw Error(`Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable`);return eDate.parse(`9999-12-31T23:59:59Z`))throw Error(`Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.`);if(e.nanos<0)throw Error(`Unable to encode invalid Timestamp to JSON. Nanos must not be negative.`);let r=`Z`;if(e.nanos>0){let t=(e.nanos+1e9).toString().substring(1);r=t.substring(3)===`000000`?`.`+t.substring(0,3)+`Z`:t.substring(6)===`000`?`.`+t.substring(0,6)+`Z`:`.`+t+`Z`}return new Date(n).toISOString().replace(`.000Z`,r)}internalJsonRead(e,t,n){if(typeof e!=`string`)throw Error(`Unable to parse Timestamp from JSON `+(0,$.typeofJsonValue)(e)+`.`);let r=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw Error(`Unable to parse Timestamp from JSON. Invalid format.`);let i=Date.parse(r[1]+`-`+r[2]+`-`+r[3]+`T`+r[4]+`:`+r[5]+`:`+r[6]+(r[8]?r[8]:`Z`));if(Number.isNaN(i))throw Error(`Unable to parse Timestamp from JSON. Invalid value.`);if(iDate.parse(`9999-12-31T23:59:59Z`))throw new globalThis.Error(`Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.`);return n||=this.create(),n.seconds=$.PbLong.from(i/1e3).toString(),n.nanos=0,r[7]&&(n.nanos=parseInt(`1`+r[7]+`0`.repeat(9-r[7].length))-1e9),n}create(e){let t={seconds:`0`,nanos:0};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxN},{no:5,name:`version`,kind:`scalar`,T:5},{no:6,name:`mime_type`,kind:`message`,T:()=>CN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,name:``,version:0};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posCN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,name:``,size:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posCN},{no:4,name:`id_filter`,kind:`message`,T:()=>SN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posAN}])}create(e){let t={artifacts:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxN},{no:7,name:`digest`,kind:`message`,T:()=>CN}])}create(e){let t={workflowRunBackendId:``,workflowJobRunBackendId:``,databaseId:`0`,name:``,size:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posTN.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeArtifact(e){let t=EN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`FinalizeArtifact`,`application/json`,t).then(e=>DN.fromJson(e,{ignoreUnknownFields:!0}))}ListArtifacts(e){let t=ON.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`ListArtifacts`,`application/json`,t).then(e=>kN.fromJson(e,{ignoreUnknownFields:!0}))}GetSignedArtifactURL(e){let t=jN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`GetSignedArtifactURL`,`application/json`,t).then(e=>MN.fromJson(e,{ignoreUnknownFields:!0}))}DeleteArtifact(e){let t=NN.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.ArtifactService`,`DeleteArtifact`,`application/json`,t).then(e=>PN.fromJson(e,{ignoreUnknownFields:!0}))}};function IN(e){if(!e)return;let t=LN();t&&t`,` Greater than >`],[`|`,` Vertical bar |`],[`*`,` Asterisk *`],[`?`,` Question mark ?`],[`\r`,` Carriage return \\r`],[` +`,` Line feed \\n`]]),zN=new Map([...RN,[`\\`,` Backslash \\`],[`/`,` Forward slash /`]]);function BN(e){if(!e)throw Error(`Provided artifact name input during validation is empty`);for(let[t,n]of zN)if(e.includes(t))throw Error(`The artifact name is not valid: ${e}. Contains the following character: ${n} + +Invalid characters include: ${Array.from(zN.values()).toString()} + +These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);mi(`Artifact name is valid!`)}function VN(e){if(!e)throw Error(`Provided file path input during validation is empty`);for(let[t,n]of RN)if(e.includes(t))throw Error(`The path for one of the files in artifact is not valid: ${e}. Contains the following character: ${n} + +Invalid characters include: ${Array.from(RN.values()).toString()} + +The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems. + `)}var HN=a(((e,t)=>{t.exports={name:`@actions/artifact`,version:`6.2.1`,preview:!0,description:`Actions artifact lib`,keywords:[`github`,`actions`,`artifact`],homepage:`https://github.com/actions/toolkit/tree/main/packages/artifact`,license:`MIT`,type:`module`,main:`lib/artifact.js`,types:`lib/artifact.d.ts`,exports:{".":{types:`./lib/artifact.d.ts`,import:`./lib/artifact.js`}},directories:{lib:`lib`,test:`__tests__`},files:[`lib`,`!.DS_Store`],publishConfig:{access:`public`},repository:{type:`git`,url:`git+https://github.com/actions/toolkit.git`,directory:`packages/artifact`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`cd ../../ && npm run test ./packages/artifact`,bootstrap:`cd ../../ && npm run bootstrap`,"tsc-run":`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`,tsc:`npm run bootstrap && npm run tsc-run`,"gen:docs":`typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.0`,"@actions/github":`^9.0.0`,"@actions/http-client":`^4.0.0`,"@azure/storage-blob":`^12.30.0`,"@octokit/core":`^7.0.6`,"@octokit/plugin-request-log":`^6.0.0`,"@octokit/plugin-retry":`^8.0.0`,"@octokit/request":`^10.0.7`,"@octokit/request-error":`^7.1.0`,"@protobuf-ts/plugin":`^2.2.3-alpha.1`,"@protobuf-ts/runtime":`^2.9.4`,archiver:`^7.0.1`,"jwt-decode":`^4.0.0`,"unzip-stream":`^0.3.1`},devDependencies:{"@types/archiver":`^7.0.0`,"@types/unzip-stream":`^0.3.4`,typedoc:`^0.28.16`,"typedoc-plugin-markdown":`^4.9.0`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),UN=a(((e,t)=>{t.exports={version:HN().version}}))();function WN(){return`@actions/artifact-${UN.version}`}var GN=class extends Error{constructor(e=[]){let t=`No files were found to upload`;e.length>0&&(t+=`: ${e.join(`, `)}`),super(t),this.files=e,this.name=`FilesNotFoundError`}},KN=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},qN=class extends Error{constructor(e=`Artifact not found`){super(e),this.name=`ArtifactNotFoundError`}},JN=class extends Error{constructor(e=`@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.`){super(e),this.name=`GHESNotSupportedError`}},YN=class extends Error{constructor(e){let t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t),this.code=e,this.name=`NetworkError`}};YN.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var XN=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. +More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name=`UsageError`}};XN.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var ZN=class extends Error{};ZN.prototype.name=`InvalidTokenError`;function QN(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n=`0`+n),`%`+n}))}function $N(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);switch(t.length%4){case 0:break;case 2:t+=`==`;break;case 3:t+=`=`;break;default:throw Error(`base64 string is not of the correct length`)}try{return QN(t)}catch{return atob(t)}}function eP(e,t){if(typeof e!=`string`)throw new ZN(`Invalid token specified: must be a string`);t||={};let n=t.header===!0?0:1,r=e.split(`.`)[n];if(typeof r!=`string`)throw new ZN(`Invalid token specified: missing part #${n+1}`);let i;try{i=$N(r)}catch(e){throw new ZN(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new ZN(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}const tP=Error(`Failed to get backend IDs: The provided JWT token is invalid and/or missing claims`);function nP(){let e=eP(mN());if(!e.scp)throw tP;let t=e.scp.split(` `);if(t.length===0)throw tP;for(let e of t){let t=e.split(`:`);if(t?.[0]!==`Actions.Results`)continue;if(t.length!==3)throw tP;let n={workflowRunBackendId:t[1],workflowJobRunBackendId:t[2]};return K(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),K(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw tP}function rP(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(oi(t),oi(encodeURIComponent(t)))}catch(t){K(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function iP(e){if(typeof e!=`object`||!e){K(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&rP(e.signed_upload_url),`signed_url`in e&&typeof e.signed_url==`string`&&rP(e.signed_url)}var aP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},oP=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=mN();this.baseUrl=hN(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new dr(e,[new mr(i)])}request(e,t,n,r){return aP(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;K(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>aP(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return aP(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[rr.BadGateway,rr.GatewayTimeout,rr.InternalServerError,rr.ServiceUnavailable,rr.TooManyRequests].includes(e):!1}sleep(e){return aP(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function sP(e){return new FN(new oP(WN(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}function cP(e){if(!H.existsSync(e))throw Error(`The provided rootDirectory ${e} does not exist`);if(!H.statSync(e).isDirectory())throw Error(`The provided rootDirectory ${e} is not a valid directory`);mi(`Root directory input is valid!`)}function lP(e,t){let n=[];t=de(t),t=fe(t);for(let r of e){let e=H.lstatSync(r,{throwIfNoEntry:!1});if(!e)throw Error(`File ${r} does not exist`);if(e.isDirectory()){let i=r.replace(t,``);VN(i),n.push({sourcePath:null,destinationPath:i,stats:e})}else{if(r=de(r),r=fe(r),!r.startsWith(t))throw Error(`The rootDirectory: ${t} is not a parent directory of the file: ${r}`);let i=r.replace(t,``);VN(i),n.push({sourcePath:r,destinationPath:i,stats:e})}}return n}var uP=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function dP(e,t,n){return uP(this,void 0,void 0,function*(){let r=0,i=Date.now(),a=new AbortController,o=e=>uP(this,void 0,void 0,function*(){return new Promise((t,n)=>{let r=setInterval(()=>{Date.now()-i>e&&n(Error(`Upload progress stalled.`))},e);a.signal.addEventListener(`abort`,()=>{clearInterval(r),t()})})}),s=vN(),c=pN(),l=new TA(e).getBlockBlobClient();K(`Uploading artifact to blob storage with maxConcurrency: ${s}, bufferSize: ${c}, contentType: ${n}`);let u={blobHTTPHeaders:{blobContentType:n},onProgress:e=>{mi(`Uploaded bytes ${e.loadedBytes}`),r=e.loadedBytes,i=Date.now()},abortSignal:a.signal},d,f=new qe.PassThrough,p=oe.createHash(`sha256`);t.pipe(f),t.pipe(p).setEncoding(`hex`),mi(`Beginning upload of artifact content to blob storage`);try{yield Promise.race([l.uploadStream(f,c,s,u),o(yN())])}catch(e){throw YN.isNetworkErrorCode(e?.code)?new YN(e?.code):e}finally{a.abort()}return mi(`Finished uploading artifact content to blob storage!`),p.end(),d=p.read(),mi(`SHA256 digest of uploaded artifact is ${d}`),r===0&&pi(`No data was uploaded to blob storage. Reported upload byte count is 0.`),{uploadSize:r,sha256Hash:d}})}var fP=a(((e,t)=>{t.exports=typeof process==`object`&&process&&process.platform===`win32`?{sep:`\\`}:{sep:`/`}})),pP=a(((e,t)=>{let n=t.exports=(e,t,n={})=>(h(t),!n.nocomment&&t.charAt(0)===`#`?!1:new S(t,n).match(e));t.exports=n;let r=fP();n.sep=r.sep;let i=Symbol(`globstar **`);n.GLOBSTAR=i;let a=wd(),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=`[^/]*?`,l=e=>e.split(``).reduce((e,t)=>(e[t]=!0,e),{}),u=l(`().*{}+?[]^$\\!`),d=l(`[.(`),f=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);let p=(e,t={})=>{let n={};return Object.keys(e).forEach(t=>n[t]=e[t]),Object.keys(t).forEach(e=>n[e]=t[e]),n};n.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return n;let t=n,r=(n,r,i)=>t(n,r,p(e,i));return r.Minimatch=class extends t.Minimatch{constructor(t,n){super(t,p(e,n))}},r.Minimatch.defaults=n=>t.defaults(p(e,n)).Minimatch,r.filter=(n,r)=>t.filter(n,p(e,r)),r.defaults=n=>t.defaults(p(e,n)),r.makeRe=(n,r)=>t.makeRe(n,p(e,r)),r.braceExpand=(n,r)=>t.braceExpand(n,p(e,r)),r.match=(n,r,i)=>t.match(n,r,p(e,i)),r},n.braceExpand=(e,t)=>m(e,t);let m=(e,t={})=>(h(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)),h=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},g=Symbol(`subparse`);n.makeRe=(e,t)=>new S(e,t||{}).makeRe(),n.match=(e,t,n={})=>{let r=new S(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};let v=e=>e.replace(/\\(.)/g,`$1`),y=e=>e.replace(/\\([^-\]])/g,`$1`),b=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),x=e=>e.replace(/[[\]\\]/g,`\\$&`);var S=class{constructor(e,t){h(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map(e=>e.split(f)),this.debug(this.pattern,n),n=n.map((e,t,n)=>e.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(e=>e.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r=0;e--)if(t[e]===i){s=e;break}let c=t.slice(a,o),l=n?t.slice(o+1):t.slice(o+1,s),u=n?[]:t.slice(s+1);if(c.length){let t=e.slice(r,r+c.length);if(!this._matchOne(t,c,n,0,0))return!1;r+=c.length}let d=0;if(u.length){if(u.length+r>e.length)return!1;let t=e.length-u.length;if(this._matchOne(e,u,n,t,0))d=u.length;else{if(e[e.length-1]!==``||r+u.length===e.length||!this._matchOne(e,u,n,t-1,0))return!1;d=u.length+1}}if(!l.length){let t=!!d;for(let n=r;nD?``:O?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,A=e=>e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,j=()=>{if(m){switch(m){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+m;break}this.debug(`clearStateChar %j %j`,m,r),m=!1}};for(let t=0,i;t(n||=`\\`,t+t+n+`|`)),this.debug(`tail=%j + %s`,e,e,T,r);let t=T.type===`*`?c:T.type===`?`?s:`\\`+T.type;a=!0,r=r.slice(0,T.reStart)+t+`\\(`+e}j(),l&&(r+=`\\\\`);let M=d[r.charAt(0)];for(let e=p.length-1;e>-1;e--){let n=p[e],i=r.slice(0,n.reStart),a=r.slice(n.reStart,n.reEnd-8),o=r.slice(n.reEnd),s=r.slice(n.reEnd-8,n.reEnd)+o,c=i.split(`)`).length,l=i.split(`(`).length-c,u=o;for(let e=0;e(e=e.map(e=>typeof e==`string`?b(e):e===i?i:e._src).reduce((e,t)=>(e[e.length-1]===i&&t===i||e.push(t),e),[]),e.forEach((t,r)=>{t!==i||e[r-1]===i||(r===0?e.length>1?e[r+1]=`(?:\\/|`+n+`\\/)?`+e[r+1]:e[r]=n:r===e.length-1?e[r-1]+=`(?:\\/|`+n+`)?`:(e[r-1]+=`(?:\\/|\\/`+n+`\\/)`+e[r+1],e[r+1]=i))}),e.filter(e=>e!==i).join(`/`))).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,r)}catch{this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),e=e.split(f),this.debug(this.pattern,`split`,e);let i=this.set;this.debug(this.pattern,`set`,i);let a;for(let t=e.length-1;t>=0&&(a=e[t],!a);t--);for(let r=0;r{n.exports=p;let r=t(`fs`),{EventEmitter:i}=t(`events`),{Minimatch:a}=pP(),{resolve:o}=t(`path`);function s(e,t){return new Promise((n,i)=>{r.readdir(e,{withFileTypes:!0},(e,r)=>{if(e)switch(e.code){case`ENOTDIR`:t?i(e):n([]);break;case`ENOTSUP`:case`ENOENT`:case`ENAMETOOLONG`:case`UNKNOWN`:n([]);break;default:i(e);break}else n(r)})})}function c(e,t){return new Promise((n,i)=>{(t?r.stat:r.lstat)(e,(r,i)=>{if(r)switch(r.code){case`ENOENT`:n(t?c(e,!1):null);break;default:n(null);break}else n(i)})})}async function*l(e,t,n,r,i,a){let o=await s(t+e,a);for(let a of o){let o=a.name;o===void 0&&(o=a,r=!0);let s=e+`/`+o,u=s.slice(1),d=t+`/`+u,f=null;(r||n)&&(f=await c(d,n)),!f&&a.name!==void 0&&(f=a),f===null&&(f={isDirectory:()=>!1}),f.isDirectory()?i(u)||(yield{relative:u,absolute:d,stats:f},yield*l(s,t,n,r,i,!1)):yield{relative:u,absolute:d,stats:f}}}async function*u(e,t,n,r){yield*l(``,e,t,n,r,!0)}function d(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var f=class extends i{constructor(e,t,n){if(super(),typeof t==`function`&&(n=t,t=null),this.options=d(t||{}),this.matchers=[],this.options.pattern){let e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map(e=>new a(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map(e=>new a(e,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map(e=>new a(e,{dot:!0}))}this.iterator=u(o(e||`.`),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on(`match`,e=>this._matches.push(this.options.absolute?e.absolute:e.relative)),this.on(`error`,e=>n(e)),this.on(`end`,()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(t=>t.match(e))}_fileMatches(e,t){let n=e+(t?`/`:``);return(this.matchers.length===0||this.matchers.some(e=>e.match(n)))&&!this.ignoreMatchers.some(e=>e.match(n))&&(!this.options.nodir||!t)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit(`end`);else{let t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let n=e.value.relative,r=e.value.absolute;this.options.mark&&t&&(n+=`/`,r+=`/`),this.options.stat?this.emit(`match`,{relative:n,absolute:r,stat:e.value.stats}):this.emit(`match`,{relative:n,absolute:r})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit(`error`,e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function p(e,t,n){return new f(e,t,n)}p.ReaddirGlob=f})),hP=a(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.async={}))})(e,(function(e){function t(e,...t){return(...n)=>e(...t,...n)}function n(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}var r=typeof queueMicrotask==`function`&&queueMicrotask,i=typeof setImmediate==`function`&&setImmediate,a=typeof process==`object`&&typeof process.nextTick==`function`;function o(e){setTimeout(e,0)}function s(e){return(t,...n)=>e(()=>t(...n))}var c=s(r?queueMicrotask:i?setImmediate:a?process.nextTick:o);function l(e){return f(e)?function(...t){let n=t.pop();return u(e.apply(this,t),n)}:n(function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&typeof r.then==`function`)return u(r,n);n(null,r)})}function u(e,t){return e.then(e=>{d(t,null,e)},e=>{d(t,e&&(e instanceof Error||e.message)?e:Error(e))})}function d(e,t,n){try{e(t,n)}catch(e){c(e=>{throw e},e)}}function f(e){return e[Symbol.toStringTag]===`AsyncFunction`}function p(e){return e[Symbol.toStringTag]===`AsyncGenerator`}function m(e){return typeof e[Symbol.asyncIterator]==`function`}function h(e){if(typeof e!=`function`)throw Error(`expected a function`);return f(e)?l(e):e}function g(e,t){if(t||=e.length,!t)throw Error(`arity is undefined`);function n(...n){return typeof n[t-1]==`function`?e.apply(this,n):new Promise((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}return n}function v(e){return function(t,...n){return g(function(r){var i=this;return e(t,(e,t)=>{h(e).apply(i,n.concat(t))},r)})}}function y(e,t,n,r){t||=[];var i=[],a=0,o=h(n);return e(t,(e,t,n)=>{var r=a++;o(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function b(e){return e&&typeof e.length==`number`&&e.length>=0&&e.length%1==0}let x={};function S(e){function t(...t){if(e!==null){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function C(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function w(e){var t=-1,n=e.length;return function(){return++t=t||o||i||(o=!0,e.next().then(({value:e,done:t})=>{if(!(a||i)){if(o=!1,t){i=!0,s<=0&&r(null);return}s++,n(e,c,u),c++,l()}}).catch(d))}function u(e,t){if(--s,!a){if(e)return d(e);if(e===!1){i=!0,a=!0;return}if(t===x||i&&s<=0)return i=!0,r(null);l()}}function d(e){a||(o=!1,i=!0,r(e))}l()}var A=e=>(t,n,r)=>{if(r=S(r),e<=0)throw RangeError(`concurrency limit cannot be less than 1`);if(!t)return r(null);if(p(t))return k(t,e,n,r);if(m(t))return k(t[Symbol.asyncIterator](),e,n,r);var i=D(t),a=!1,o=!1,s=0,c=!1;function l(e,t){if(!o)if(--s,e)a=!0,r(e);else if(e===!1)a=!0,o=!0;else if(t===x||a&&s<=0)return a=!0,r(null);else c||u()}function u(){for(c=!0;s1?r:r[0])}return n[re]=new Promise((n,r)=>{e=n,t=r}),n}function ae(e,t,n){typeof t!=`number`&&(n=t,t=null),n=S(n||ie());var r=Object.keys(e).length;if(!r)return n(null);t||=r;var i={},a=0,o=!1,s=!1,c=Object.create(null),l=[],u=[],d={};Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n)){f(t,[n]),u.push(t);return}var r=n.slice(0,n.length-1),i=r.length;if(i===0){f(t,n),u.push(t);return}d[t]=i,r.forEach(a=>{if(!e[a])throw Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+r.join(`, `));m(a,()=>{i--,i===0&&f(t,n)})})}),y(),p();function f(e,t){l.push(()=>v(e,t))}function p(){if(!o){if(l.length===0&&a===0)return n(null,i);for(;l.length&&ae()),p()}function v(e,t){if(!s){var r=O((t,...r)=>{if(a--,t===!1){o=!0;return}if(r.length<2&&([r]=r),t){var l={};if(Object.keys(i).forEach(e=>{l[e]=i[e]}),l[e]=r,s=!0,c=Object.create(null),o)return;n(t,l)}else i[e]=r,g(e)});a++;var l=h(t[t.length-1]);t.length>1?l(i,r):l(r)}}function y(){for(var e,t=0;u.length;)e=u.pop(),t++,b(e).forEach(e=>{--d[e]===0&&u.push(e)});if(t!==r)throw Error(`async.auto cannot execute tasks due to a recursive dependency`)}function b(t){var n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return n[re]}var oe=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,H=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,se=/,/,U=/(=.+)?(\s*)$/;function ce(e){let t=``,n=0,r=e.indexOf(`*/`);for(;ne.replace(U,``).trim())}function ue(e,t){var n={};return Object.keys(e).forEach(t=>{var r=e[t],i,a=f(r),o=!a&&r.length===1||a&&r.length===0;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?s:r);else if(o)n[t]=r;else{if(i=le(r),r.length===0&&!a&&i.length===0)throw Error(`autoInject task functions require explicit parameters.`);a||i.pop(),n[t]=i.concat(s)}function s(e,t){var n=i.map(t=>e[t]);n.push(t),h(r)(...n)}}),ae(n,t)}class W{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,--this.length,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):de(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):de(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function de(e,t){e.length=1,e.head=e.tail=t}function fe(e,t,n){if(t==null)t=1;else if(t===0)throw RangeError(`Concurrency must not be zero`);var r=h(e),i=0,a=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){o[e].push(t)}function l(e,t){let n=(...r)=>{u(e,n),t(...r)};o[e].push(n)}function u(e,t){if(!e)return Object.keys(o).forEach(e=>o[e]=[]);if(!t)return o[e]=[];o[e]=o[e].filter(e=>e!==t)}function d(e,...t){o[e].forEach(e=>e(...t))}var f=!1;function p(e,t,n,r){if(r!=null&&typeof r!=`function`)throw Error(`task callback must be a function`);b.started=!0;var i,a;function o(e,...t){if(e)return n?a(e):i();if(t.length<=1)return i(t[0]);i(t)}var s=b._createTaskItem(e,n?o:r||o);if(t?b._tasks.unshift(s):b._tasks.push(s),f||(f=!0,c(()=>{f=!1,b.process()})),n||!r)return new Promise((e,t)=>{i=e,a=t})}function m(e){return function(t,...n){--i;for(var r=0,o=e.length;r0&&a.splice(c,1),s.callback(t,...n),t!=null&&d(`error`,t,s.data)}i<=b.concurrency-b.buffer&&d(`unsaturated`),b.idle()&&d(`drain`),b.process()}}function g(e){return e.length===0&&b.idle()?(c(()=>d(`drain`)),!0):!1}let v=e=>t=>{if(!t)return new Promise((t,n)=>{l(e,(e,r)=>{if(e)return n(e);t(r)})});u(e),s(e,t)};var y=!1,b={_tasks:new W,_createTaskItem(e,t){return{data:e,callback:t}},*[Symbol.iterator](){yield*b._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!1,t)):p(e,!1,!1,t)},pushAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!1,!0,t)):p(e,!1,!0,t)},kill(){u(),b._tasks.empty()},unshift(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!1,t)):p(e,!0,!1,t)},unshiftAsync(e,t){return Array.isArray(e)?g(e)?void 0:e.map(e=>p(e,!0,!0,t)):p(e,!0,!0,t)},remove(e){b._tasks.remove(e)},process(){if(!y){for(y=!0;!b.paused&&i{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}var ge=g(he,4);function _e(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return typeof r==`function`?e.pop():r=ie(),ge(t,e,(e,t,r)=>{t.apply(n,e.concat((e,...t)=>{r(e,t)}))},(e,t)=>r(e,...t)),r[re]}}function ve(...e){return _e(...e.reverse())}function ye(e,t,n,r){return y(A(t),e,n,r)}var be=g(ye,4);function xe(e,t,n,r){var i=h(n);return be(e,t,(e,t)=>{i(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],i=0;i{var o=!1,s;let c=h(i);n(r,(n,r,i)=>{c(n,(r,a)=>{if(r||r===!1)return i(r);if(e(a)&&!s)return o=!0,s=t(!0,n),i(null,x);i()})},e=>{if(e)return a(e);a(null,o?s:t(!1))})}}function ke(e,t,n){return Oe(e=>e,(e,t)=>t)(I,e,t,n)}var Ae=g(ke,3);function je(e,t,n,r){return Oe(e=>e,(e,t)=>t)(A(t),e,n,r)}var Me=g(je,4);function Ne(e,t,n){return Oe(e=>e,(e,t)=>t)(A(1),e,t,n)}var Pe=g(Ne,3);function Fe(e){return(t,...n)=>h(t)(...n,(t,...n)=>{typeof console==`object`&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var Ie=Fe(`dir`);function Le(e,t,n){n=O(n);var r=h(e),i=h(t),a;function o(e,...t){if(e)return n(e);e!==!1&&(a=t,i(...t,s))}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return s(null,!0)}var Re=g(Le,3);function ze(e,t,n){let r=h(t);return Re(e,(...e)=>{let t=e.pop();r(...e,(e,n)=>t(e,!n))},n)}function Be(e){return(t,n,r)=>e(t,r)}function Ve(e,t,n){return I(e,Be(h(t)),n)}var He=g(Ve,3);function Ue(e,t,n,r){return A(t)(e,Be(h(n)),r)}var We=g(Ue,4);function Ge(e,t,n){return We(e,1,t,n)}var Ke=g(Ge,3);function qe(e){return f(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...e)=>{r?c(()=>n(...e)):n(...e)}),e.apply(this,t),r=!1}}function Je(e,t,n){return Oe(e=>!e,e=>!e)(I,e,t,n)}var Ye=g(Je,3);function Xe(e,t,n,r){return Oe(e=>!e,e=>!e)(A(t),e,n,r)}var Ze=g(Xe,4);function Qe(e,t,n){return Oe(e=>!e,e=>!e)(B,e,t,n)}var $e=g(Qe,3);function G(e,t,n,r){var i=Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],a=0;a{n(e,(n,a)=>{if(n)return r(n);a&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function tt(e,t,n,r){return(b(t)?G:et)(e,t,h(n),r)}function nt(e,t,n){return tt(I,e,t,n)}var rt=g(nt,3);function it(e,t,n,r){return tt(A(t),e,n,r)}var at=g(it,4);function ot(e,t,n){return tt(B,e,t,n)}var st=g(ot,3);function ct(e,t){var n=O(t),r=h(qe(e));function i(e){if(e)return n(e);e!==!1&&r(i)}return i()}var lt=g(ct,2);function ut(e,t,n,r){var i=h(n);return be(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,a=0;a{a(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}var gt=g(ht,4);function _t(e,t,n){return gt(e,1/0,t,n)}function vt(e,t,n){return gt(e,1,t,n)}function yt(e,t=e=>e){var r=Object.create(null),i=Object.create(null),a=h(e),o=n((e,n)=>{var o=t(...e);o in r?c(()=>n(null,...r[o])):o in i?i[o].push(n):(i[o]=[n],a(...e,(e,...t)=>{e||(r[o]=t);var n=i[o];delete i[o];for(var a=0,s=n.length;a{var r=b(t)?[]:{};e(t,(e,t,n)=>{h(e)((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)})},e=>n(e,r))},3);function St(e,t){return xt(I,e,t)}function Ct(e,t,n){return xt(A(t),e,n)}function wt(e,t){var n=h(e);return fe((e,t)=>{n(e[0],t)},t,1)}class Tt{constructor(){this.heap=[],this.pushCount=-(2**53-1)}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Ot(this.heap[e],this.heap[t=Dt(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=Et(e))=0;e--)this.percDown(e);return this}}function Et(e){return(e<<1)+1}function Dt(e){return(e+1>>1)-1}function Ot(e,t){return e.priority===t.priority?e.pushCount({data:e,priority:t,callback:n});function a(e,t){return Array.isArray(e)?e.map(e=>({data:e,priority:t})):{data:e,priority:t}}return n.push=function(e,t=0,n){return r(a(e,t),n)},n.pushAsync=function(e,t=0,n){return i(a(e,t),n)},delete n.unshift,delete n.unshiftAsync,n}function At(e,t){if(t=S(t),!Array.isArray(e))return t(TypeError(`First argument to race must be an array of functions`));if(!e.length)return t();for(var n=0,r=e.length;n{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)}),t.apply(this,e)})}function Pt(e){var t;return Array.isArray(e)?t=e.map(Nt):(t={},Object.keys(e).forEach(n=>{t[n]=Nt.call(this,e[n])})),t}function Ft(e,t,n,r){let i=h(n);return tt(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}function It(e,t,n){return Ft(I,e,t,n)}var Lt=g(It,3);function Rt(e,t,n,r){return Ft(A(t),e,n,r)}var zt=g(Rt,4);function Bt(e,t,n){return Ft(B,e,t,n)}var Vt=g(Bt,3);function Ht(e){return function(){return e}}function Ut(e,t,n){var r={times:5,intervalFunc:Ht(0)};if(arguments.length<3&&typeof e==`function`?(n=t||ie(),t=e):(Wt(r,e),n||=ie()),typeof t!=`function`)throw Error(`Invalid arguments for async.retry`);var i=h(t),a=1;function o(){i((e,...t)=>{e!==!1&&(e&&a++{(t.lengthe)(I,e,t,n)}var Jt=g(qt,3);function Yt(e,t,n,r){return Oe(Boolean,e=>e)(A(t),e,n,r)}var Xt=g(Yt,4);function Zt(e,t,n){return Oe(Boolean,e=>e)(B,e,t,n)}var Qt=g(Zt,3);function $t(e,t,n){var r=h(t);return R(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return nr)}}var en=g($t,3);function tn(e,t,r){var i=h(e);return n((n,a)=>{var o=!1,s;function c(){var t=e.name||`anonymous`,n=Error(`Callback function "`+t+`" timed out.`);n.code=`ETIMEDOUT`,r&&(n.info=r),o=!0,a(n)}n.push((...e)=>{o||(a(...e),clearTimeout(s))}),s=setTimeout(c,t),i(...n)})}function nn(e){for(var t=Array(e);e--;)t[e]=e;return t}function rn(e,t,n,r){var i=h(n);return be(nn(e),t,i,r)}function an(e,t,n){return rn(e,1/0,t,n)}function on(e,t,n){return rn(e,1,t,n)}function sn(e,t,n,r){arguments.length<=3&&typeof t==`function`&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=S(r||ie());var i=h(n);return I(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[re]}function cn(e,t){var n=null,r;return Ke(e,(e,t)=>{h(e)((e,...i)=>{if(e===!1)return t(e);i.length<2?[r]=i:r=i,n=e,t(e?null:{})})},()=>t(n,r))}var ln=g(cn);function un(e){return(...t)=>(e.unmemoized||e)(...t)}function dn(e,t,n){n=O(n);var r=h(t),i=h(e),a=[];function o(e,...t){if(e)return n(e);a=t,e!==!1&&i(s)}function s(e,t){if(e)return n(e);if(e!==!1){if(!t)return n(null,...a);r(o)}}return i(s)}var fn=g(dn,3);function pn(e,t,n){let r=h(e);return fn(e=>r((t,n)=>e(t,!n)),t,n)}function mn(e,t){if(t=S(t),!Array.isArray(e))return t(Error(`First argument to waterfall must be an array of functions`));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,O(i))}function i(i,...a){if(i!==!1){if(i||n===e.length)return t(i,...a);r(a)}}r([])}var hn=g(mn),gn={apply:t,applyEach:z,applyEachSeries:V,asyncify:l,auto:ae,autoInject:ue,cargo:pe,cargoQueue:me,compose:ve,concat:we,concatLimit:Se,concatSeries:Ee,constant:De,detect:Ae,detectLimit:Me,detectSeries:Pe,dir:Ie,doUntil:ze,doWhilst:Re,each:He,eachLimit:We,eachOf:I,eachOfLimit:M,eachOfSeries:B,eachSeries:Ke,ensureAsync:qe,every:Ye,everyLimit:Ze,everySeries:$e,filter:rt,filterLimit:at,filterSeries:st,forever:lt,groupBy:ft,groupByLimit:dt,groupBySeries:pt,log:mt,map:R,mapLimit:be,mapSeries:ne,mapValues:_t,mapValuesLimit:gt,mapValuesSeries:vt,memoize:yt,nextTick:bt,parallel:St,parallelLimit:Ct,priorityQueue:kt,queue:wt,race:jt,reduce:ge,reduceRight:Mt,reflect:Nt,reflectAll:Pt,reject:Lt,rejectLimit:zt,rejectSeries:Vt,retry:Ut,retryable:Gt,seq:_e,series:Kt,setImmediate:c,some:Jt,someLimit:Xt,someSeries:Qt,sortBy:en,timeout:tn,times:an,timesLimit:rn,timesSeries:on,transform:sn,tryEach:ln,unmemoize:un,until:pn,waterfall:hn,whilst:fn,all:Ye,allLimit:Ze,allSeries:$e,any:Jt,anyLimit:Xt,anySeries:Qt,find:Ae,findLimit:Me,findSeries:Pe,flatMap:we,flatMapLimit:Se,flatMapSeries:Ee,forEach:He,forEachSeries:Ke,forEachLimit:We,forEachOf:I,forEachOfSeries:B,forEachOfLimit:M,inject:ge,foldl:ge,foldr:Mt,select:rt,selectLimit:at,selectSeries:st,wrapSync:l,during:fn,doDuring:Re};e.all=Ye,e.allLimit=Ze,e.allSeries=$e,e.any=Jt,e.anyLimit=Xt,e.anySeries=Qt,e.apply=t,e.applyEach=z,e.applyEachSeries=V,e.asyncify=l,e.auto=ae,e.autoInject=ue,e.cargo=pe,e.cargoQueue=me,e.compose=ve,e.concat=we,e.concatLimit=Se,e.concatSeries=Ee,e.constant=De,e.default=gn,e.detect=Ae,e.detectLimit=Me,e.detectSeries=Pe,e.dir=Ie,e.doDuring=Re,e.doUntil=ze,e.doWhilst=Re,e.during=fn,e.each=He,e.eachLimit=We,e.eachOf=I,e.eachOfLimit=M,e.eachOfSeries=B,e.eachSeries=Ke,e.ensureAsync=qe,e.every=Ye,e.everyLimit=Ze,e.everySeries=$e,e.filter=rt,e.filterLimit=at,e.filterSeries=st,e.find=Ae,e.findLimit=Me,e.findSeries=Pe,e.flatMap=we,e.flatMapLimit=Se,e.flatMapSeries=Ee,e.foldl=ge,e.foldr=Mt,e.forEach=He,e.forEachLimit=We,e.forEachOf=I,e.forEachOfLimit=M,e.forEachOfSeries=B,e.forEachSeries=Ke,e.forever=lt,e.groupBy=ft,e.groupByLimit=dt,e.groupBySeries=pt,e.inject=ge,e.log=mt,e.map=R,e.mapLimit=be,e.mapSeries=ne,e.mapValues=_t,e.mapValuesLimit=gt,e.mapValuesSeries=vt,e.memoize=yt,e.nextTick=bt,e.parallel=St,e.parallelLimit=Ct,e.priorityQueue=kt,e.queue=wt,e.race=jt,e.reduce=ge,e.reduceRight=Mt,e.reflect=Nt,e.reflectAll=Pt,e.reject=Lt,e.rejectLimit=zt,e.rejectSeries=Vt,e.retry=Ut,e.retryable=Gt,e.select=rt,e.selectLimit=at,e.selectSeries=st,e.seq=_e,e.series=Kt,e.setImmediate=c,e.some=Jt,e.someLimit=Xt,e.someSeries=Qt,e.sortBy=en,e.timeout=tn,e.times=an,e.timesLimit=rn,e.timesSeries=on,e.transform=sn,e.tryEach=ln,e.unmemoize=un,e.until=pn,e.waterfall=hn,e.whilst=fn,e.wrapSync=l,Object.defineProperty(e,"__esModule",{value:!0})}))})),gP=a(((e,n)=>{var r=t(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}n.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),_P=a(((e,n)=>{var r=t(`stream`).Stream;n.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;sthis.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),vP=a(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),yP=a(((e,n)=>{var r=t(`fs`),i=gP(),a=_P(),o=vP(),s=t(`util`),c,l;typeof Symbol==`function`&&typeof Symbol.for==`function`?(c=Symbol.for(`graceful-fs.queue`),l=Symbol.for(`graceful-fs.previous`)):(c=`___graceful-fs.queue`,l=`___graceful-fs.previous`);function u(){}function d(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var f=u;s.debuglog?f=s.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(f=function(){var e=s.format.apply(s,arguments);e=`GFS4: `+e.split(/\n/).join(` +GFS4: `),console.error(e)}),r[c]||(d(r,global[c]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||g(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,l,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),g()}return Object.defineProperty(t,l,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){f(r[c]),t(`assert`).equal(r[c].length,0)})),global[c]||d(global,r[c]),n.exports=p(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(n.exports=p(r),r.__patched=!0);function p(e){i(e),e.gracefulify=p,e.createReadStream=E,e.createWriteStream=D;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?m([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=o;function o(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?m([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=a(e);S=g.ReadStream,w=g.WriteStream}var v=e.ReadStream;v&&(S.prototype=Object.create(v.prototype),S.prototype.open=C);var y=e.WriteStream;y&&(w.prototype=Object.create(y.prototype),w.prototype.open=T),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(e){S=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var b=S;Object.defineProperty(e,"FileReadStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});var x=w;Object.defineProperty(e,"FileWriteStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0});function S(e,t){return this instanceof S?(v.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function C(){var e=this;k(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function w(e,t){return this instanceof w?(y.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function T(){var e=this;k(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function E(t,n){return new e.ReadStream(t,n)}function D(t,n){return new e.WriteStream(t,n)}var O=e.open;e.open=k;function k(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return O(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function m(e){f(`ENQUEUE`,e[0].name,e[1]),r[c].push(e),v()}var h;function g(){for(var e=Date.now(),t=0;t2&&(r[c][t][3]=e,r[c][t][4]=e);v()}function v(){if(clearTimeout(h),h=void 0,r[c].length!==0){var e=r[c].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)f(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){f(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(f(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[c].push(e)}h===void 0&&(h=setTimeout(v,0))}}})),bP=a(((e,t)=>{let n=e=>typeof e==`object`&&!!e&&typeof e.pipe==`function`;n.writable=e=>n(e)&&e.writable!==!1&&typeof e._write==`function`&&typeof e._writableState==`object`,n.readable=e=>n(e)&&e.readable!==!1&&typeof e._read==`function`&&typeof e._readableState==`object`,n.duplex=e=>n.writable(e)&&n.readable(e),n.transform=e=>n.duplex(e)&&typeof e._transform==`function`,t.exports=n})),xP=a(((e,t)=>{typeof process>`u`||!process.version||process.version.indexOf(`v0.`)===0||process.version.indexOf(`v1.`)===0&&process.version.indexOf(`v1.8.`)!==0?t.exports={nextTick:n}:t.exports=process;function n(e,t,n,r){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var i=arguments.length,a,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:for(a=Array(i-1),o=0;o{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),CP=a(((e,n)=>{n.exports=t(`stream`)})),wP=a(((e,n)=>{var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),TP=a((e=>{function n(e){return Array.isArray?Array.isArray(e):g(e)===`[object Array]`}e.isArray=n;function r(e){return typeof e==`boolean`}e.isBoolean=r;function i(e){return e===null}e.isNull=i;function a(e){return e==null}e.isNullOrUndefined=a;function o(e){return typeof e==`number`}e.isNumber=o;function s(e){return typeof e==`string`}e.isString=s;function c(e){return typeof e==`symbol`}e.isSymbol=c;function l(e){return e===void 0}e.isUndefined=l;function u(e){return g(e)===`[object RegExp]`}e.isRegExp=u;function d(e){return typeof e==`object`&&!!e}e.isObject=d;function f(e){return g(e)===`[object Date]`}e.isDate=f;function p(e){return g(e)===`[object Error]`||e instanceof Error}e.isError=p;function m(e){return typeof e==`function`}e.isFunction=m;function h(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=h,e.isBuffer=t(`buffer`).Buffer.isBuffer;function g(e){return Object.prototype.toString.call(e)}})),EP=a(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),DP=a(((e,n)=>{try{var r=t(`util`);if(typeof r.inherits!=`function`)throw``;n.exports=r.inherits}catch{n.exports=EP()}})),OP=a(((e,n)=>{function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var i=wP().Buffer,a=t(`util`);function o(e,t,n){e.copy(t,n)}n.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)o(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(n.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+` `+e})})),kP=a(((e,t)=>{var n=xP();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),AP=a(((e,n)=>{n.exports=t(`util`).deprecate})),jP=a(((e,t)=>{var n=xP();t.exports=v;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}var i=!process.browser&&[`v0.10`,`v0.9.`].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick,a;v.WritableState=h;var o=Object.create(TP());o.inherits=DP();var s={deprecate:AP()},c=CP(),l=wP().Buffer,u=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function d(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}var p=kP();o.inherits(v,c);function m(){}function h(e,t){a||=MP(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var g;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return g.call(this,e)?!0:this===v?e&&e._writableState instanceof h:!1}})):g=function(e){return e instanceof this};function v(e){if(a||=MP(),!g.call(v,this)&&!(this instanceof a))return new v(e);this._writableState=new h(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),c.call(this)}v.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function y(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function b(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}v.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&f(e);return a&&!l.isBuffer(e)&&(e=d(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=m),r.ended?y(this,n):(a||b(this,r,e,n))&&(r.pendingcb++,i=S(this,r,a,e,t,n)),i},v.prototype.cork=function(){var e=this._writableState;e.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&k(this,e))},v.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function x(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=l.from(t,n)),t}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(e,t,n,r,i,a){if(!n){var o=x(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length{var n=xP(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(TP());i.inherits=DP();var a=PP(),o=jP();i.inherits(u,a);for(var s=r(o.prototype),c=0;c{var t=wP().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),PP=a(((e,n)=>{var r=xP();n.exports=S;var i=SP(),a;S.ReadableState=x,t(`events`).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=CP(),c=wP().Buffer,l=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function u(e){return c.from(e)}function d(e){return c.isBuffer(e)||e instanceof l}var f=Object.create(TP());f.inherits=DP();var p=t(`util`),m=void 0;m=p&&p.debuglog?p.debuglog(`stream`):function(){};var h=OP(),g=kP(),v;f.inherits(S,s);var y=[`error`,`close`,`destroy`,`pause`,`resume`];function b(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function x(e,t){a||=MP(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||=NP().StringDecoder,this.decoder=new v(e.encoding),this.encoding=e.encoding)}function S(e){if(a||=MP(),!(this instanceof S))return new S(e);this._readableState=new x(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),s.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(e,t){this.push(null),t(e)},S.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=c.from(e,t),t=``),r=!0),C(this,e,t,!1,r)},S.prototype.unshift=function(e){return C(this,e,null,!0,!1)};function C(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,A(e,a);else{var o;i||(o=T(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==c.prototype&&(t=u(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):w(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?w(e,a,t,!1):N(e,a)):w(e,a,t,!1))):r||(a.reading=!1)}return E(a)}function w(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&j(e)),N(e,t)}function T(e,t){var n;return!d(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function E(e){return!e.ended&&(e.needReadable||e.length=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function k(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}S.prototype.read=function(e){m(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return m(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?V(this):j(this),null;if(e=k(e,t),e===0&&t.ended)return t.length===0&&V(this),null;var r=t.needReadable;m(`need readable`,r),(t.length===0||t.length-e0?ee(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&V(this)),i!==null&&this.emit(`data`,i),i};function A(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,j(e)}}function j(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(M,e):M(e))}function M(e){m(`emit readable`),e.emit(`readable`),z(e)}function N(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length1&&ie(i.pipes,e)!==-1)&&!u&&(m(`false write response, pause`,i.awaitDrain),i.awaitDrain++,f=!0),n.pause())}function h(t){m(`onerror`,t),y(),e.removeListener(`error`,h),o(e,`error`)===0&&e.emit(`error`,t)}b(e,`error`,h);function g(){e.removeListener(`finish`,v),y()}e.once(`close`,g);function v(){m(`onfinish`),e.removeListener(`close`,g),y()}e.once(`finish`,v);function y(){m(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(m(`pipe resume`),n.resume()),e};function F(e){return function(){var t=e._readableState;m(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&o(e,`data`)&&(t.flowing=!0,z(e))}}S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=B(e,t.buffer,t.decoder),n}function B(e,t,n){var r;return ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function ne(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function V(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,r.nextTick(re,t,e))}function re(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function ie(e,t){for(var n=0,r=e.length;n{t.exports=a;var n=MP(),r=Object.create(TP());r.inherits=DP(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{t.exports=i;var n=FP(),r=Object.create(TP());r.inherits=DP(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),LP=a(((e,n)=>{var r=t(`stream`);process.env.READABLE_STREAM===`disable`&&r?(n.exports=r,e=n.exports=r.Readable,e.Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):(e=n.exports=PP(),e.Stream=r||e,e.Readable=e,e.Writable=jP(),e.Duplex=MP(),e.Transform=FP(),e.PassThrough=IP())})),RP=a(((e,t)=>{t.exports=LP().PassThrough})),zP=a(((e,n)=>{var r=t(`util`),i=RP();n.exports={Readable:o,Writable:s},r.inherits(o,i),r.inherits(s,i);function a(e,t,n){e[t]=function(){return delete e[t],n.apply(this,arguments),this[t].apply(this,arguments)}}function o(e,t){if(!(this instanceof o))return new o(e,t);i.call(this,t),a(this,`_read`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),n.pipe(this)}),this.emit(`readable`)}function s(e,t){if(!(this instanceof s))return new s(e,t);i.call(this,t),a(this,`_write`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),this.pipe(n)}),this.emit(`writable`)}})),BP=a(((e,t)=>{ +/*! +* normalize-path +* +* Copyright (c) 2014-2018, Jon Schlinkert. +* Released under the MIT License. +*/ +t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`expected path to be a string`);if(e===`\\`||e===`/`)return`/`;var n=e.length;if(n<=1)return e;var r=``;if(n>4&&e[3]===`\\`){var i=e[2];(i===`?`||i===`.`)&&e.slice(0,2)===`\\\\`&&(e=e.slice(2),r=`//`)}var a=e.split(/[/\\]+/);return t!==!1&&a[a.length-1]===``&&a.pop(),r+a.join(`/`)}})),VP=a(((e,t)=>{function n(e){return e}t.exports=n})),HP=a(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),UP=a(((e,t)=>{var n=HP(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o{function n(e){return function(){return e}}t.exports=n})),GP=a(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),KP=a(((e,t)=>{var n=GP(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),qP=a(((e,t)=>{t.exports=KP().Symbol})),JP=a(((e,t)=>{var n=qP(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),YP=a(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),XP=a(((e,t)=>{var n=qP(),r=JP(),i=YP(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),ZP=a(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),QP=a(((e,t)=>{var n=XP(),r=ZP(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),$P=a(((e,t)=>{t.exports=KP()[`__core-js_shared__`]})),eF=a(((e,t)=>{var n=$P(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),tF=a(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),nF=a(((e,t)=>{var n=QP(),r=eF(),i=ZP(),a=tF(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),rF=a(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),iF=a(((e,t)=>{var n=nF(),r=rF();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),aF=a(((e,t)=>{var n=iF();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),oF=a(((e,t)=>{var n=WP(),r=aF(),i=VP();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),sF=a(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),cF=a(((e,t)=>{var n=oF();t.exports=sF()(n)})),lF=a(((e,t)=>{var n=VP(),r=UP(),i=cF();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),uF=a(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),dF=a(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),fF=a(((e,t)=>{var n=QP(),r=dF();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),pF=a(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e{var n=uF(),r=fF(),i=pF(),a=ZP();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),hF=a(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n{function n(e){return typeof e==`object`&&!!e}t.exports=n})),_F=a(((e,t)=>{var n=XP(),r=gF(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),vF=a(((e,t)=>{var n=_F(),r=gF(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),yF=a(((e,t)=>{t.exports=Array.isArray})),bF=a(((e,t)=>{function n(){return!1}t.exports=n})),xF=a(((e,t)=>{var n=KP(),r=bF(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),SF=a(((e,t)=>{var n=XP(),r=dF(),i=gF(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A={};A[x]=A[S]=A[C]=A[w]=A[T]=A[E]=A[D]=A[O]=A[k]=!0,A[a]=A[o]=A[y]=A[s]=A[b]=A[c]=A[l]=A[u]=A[d]=A[f]=A[p]=A[m]=A[h]=A[g]=A[v]=!1;function j(e){return i(e)&&r(e.length)&&!!A[n(e)]}t.exports=j})),CF=a(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),wF=a(((e,t)=>{var n=GP(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),TF=a(((e,t)=>{var n=SF(),r=CF(),i=wF(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),EF=a(((e,t)=>{var n=hF(),r=vF(),i=yF(),a=xF(),o=pF(),s=TF(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),DF=a(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),OF=a(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),kF=a(((e,t)=>{var n=ZP(),r=DF(),i=OF(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),AF=a(((e,t)=>{var n=EF(),r=kF(),i=fF();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),jF=a(((e,t)=>{var n=lF(),r=uF(),i=mF(),a=AF(),o=Object.prototype,s=o.hasOwnProperty;t.exports=n(function(e,t){e=Object(e);var n=-1,c=t.length,l=c>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(c=1);++n{t.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t=``;for(let n=0;n{t.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,n]){let r=t.shift();return n===`f`?r.toFixed(6):n===`j`?JSON.stringify(r):n===`s`&&typeof r==`object`?`${r.constructor===Object?``:r.constructor.name} {}`.trim():r.toString()})},inspect(e){switch(typeof e){case`string`:if(e.includes(`'`)){if(!e.includes(`"`))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case`number`:return isNaN(e)?`NaN`:Object.is(e,-0)?String(e):e;case`bigint`:return`${String(e)}n`;case`boolean`:case`undefined`:return String(e);case`object`:return`{}`}}}})),PF=a(((e,t)=>{let{format:n,inspect:r}=NF(),{AggregateError:i}=MF(),a=globalThis.AggregateError||i,o=Symbol(`kIsNodeError`),s=[`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`],c=/^([A-Z][a-z0-9]*)+$/,l={};function u(e,t){if(!e)throw new l.ERR_INTERNAL_ASSERTION(t)}function d(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function f(e,t,r){if(typeof t==`function`)return u(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return u(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:n(t,...r)}function p(e,t,n){n||=Error;class r extends n{constructor(...n){super(f(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[o]=!0,l[e]=r}function m(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,"name",{value:t}),e}function h(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new a([t,e],t.message);return n.code=t.code,n}return e||t}var g=class extends Error{constructor(e=`The operation was aborted`,t=void 0){if(t!==void 0&&typeof t!=`object`)throw new l.ERR_INVALID_ARG_TYPE(`options`,`Object`,t);super(e,t),this.code=`ABORT_ERR`,this.name=`AbortError`}};p(`ERR_ASSERTION`,`%s`,Error),p(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{u(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let i=`The `;e.endsWith(` argument`)?i+=`${e} `:i+=`"${e}" ${e.includes(`.`)?`property`:`argument`} `,i+=`must be `;let a=[],o=[],l=[];for(let e of t)u(typeof e==`string`,`All expected entries have to be of type string`),s.includes(e)?a.push(e.toLowerCase()):c.test(e)?o.push(e):(u(e!==`object`,`The value "object" should be written as "Object"`),l.push(e));if(o.length>0){let e=a.indexOf(`object`);e!==-1&&(a.splice(a,e,1),o.push(`Object`))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`one of type ${a.join(`, `)}, or ${e}`}}(o.length>0||l.length>0)&&(i+=` or `)}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`an instance of ${o.join(`, `)}, or ${e}`}}l.length>0&&(i+=` or `)}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+=`an `),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{let e=l.pop();i+=`one of ${l.join(`, `)}, or ${e}`}}if(n==null)i+=`. Received ${n}`;else if(typeof n==`function`&&n.name)i+=`. Received function ${n.name}`;else if(typeof n==`object`){var d;if((d=n.constructor)!=null&&d.name)i+=`. Received an instance of ${n.constructor.name}`;else{let e=r(n,{depth:-1});i+=`. Received ${e}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof n} (${e})`}return i},TypeError),p(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let i=r(t);return i.length>128&&(i=i.slice(0,128)+`...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${i}`},TypeError),p(`ERR_INVALID_RETURN_VALUE`,(e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${n!=null&&(r=n.constructor)!=null&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`}.`},TypeError),p(`ERR_MISSING_ARGS`,(...e)=>{u(e.length>0,`At least one arg needs to be specified`);let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(` or `),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(`, `)}, and ${n} arguments`}break}return`${t} must be specified`},TypeError),p(`ERR_OUT_OF_RANGE`,(e,t,n)=>{u(t,`Missing "range" argument`);let i;if(Number.isInteger(n)&&Math.abs(n)>2**32)i=d(String(n));else if(typeof n==`bigint`){i=String(n);let e=BigInt(2)**BigInt(32);(n>e||n<-e)&&(i=d(i)),i+=`n`}else i=r(n);return`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError),p(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`,Error),p(`ERR_METHOD_NOT_IMPLEMENTED`,`The %s method is not implemented`,Error),p(`ERR_STREAM_ALREADY_FINISHED`,`Cannot call %s after a stream was finished`,Error),p(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`,Error),p(`ERR_STREAM_DESTROYED`,`Cannot call %s after a stream was destroyed`,Error),p(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),p(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`,Error),p(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`,Error),p(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`,Error),p(`ERR_STREAM_WRITE_AFTER_END`,`write after end`,Error),p(`ERR_UNKNOWN_ENCODING`,`Unknown encoding: %s`,TypeError),t.exports={AbortError:g,aggregateTwoErrors:m(h),hideStackFrames:m,codes:l}})),FF=a(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let n=new WeakMap,r=new WeakMap;function i(e){let t=n.get(e);return console.assert(t!=null,`'this' is expected an Event object, but got`,e),t}function a(e){if(e.passiveListener!=null){typeof console<`u`&&typeof console.error==`function`&&console.error(`Unable to preventDefault inside passive event listener invocation.`,e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,typeof e.event.preventDefault==`function`&&e.event.preventDefault())}function o(e,t){n.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(t);for(let e=0;e0){let e=Array(arguments.length);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0});var n=FF(),r=class extends n.EventTarget{constructor(){throw super(),TypeError(`AbortSignal cannot be constructed directly`)}get aborted(){let e=o.get(this);if(typeof e!=`boolean`)throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?`null`:typeof this}`);return e}};n.defineEventAttribute(r.prototype,`abort`);function i(){let e=Object.create(r.prototype);return n.EventTarget.call(e),o.set(e,!1),e}function a(e){o.get(e)===!1&&(o.set(e,!0),e.dispatchEvent({type:`abort`}))}let o=new WeakMap;Object.defineProperties(r.prototype,{aborted:{enumerable:!0}}),typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`&&Object.defineProperty(r.prototype,Symbol.toStringTag,{configurable:!0,value:`AbortSignal`});var s=class{constructor(){c.set(this,i())}get signal(){return l(this)}abort(){a(l(this))}};let c=new WeakMap;function l(e){let t=c.get(e);if(t==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?`null`:typeof e}`);return t}Object.defineProperties(s.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`&&Object.defineProperty(s.prototype,Symbol.toStringTag,{configurable:!0,value:`AbortController`}),e.AbortController=s,e.AbortSignal=r,e.default=s,t.exports=s,t.exports.AbortController=t.exports.default=s,t.exports.AbortSignal=r})),LF=a(((e,n)=>{let r=t(`buffer`),{format:i,inspect:a}=NF(),{codes:{ERR_INVALID_ARG_TYPE:o}}=PF(),{kResistStopPropagation:s,AggregateError:c,SymbolDispose:l}=MF(),u=globalThis.AbortSignal||IF().AbortSignal,d=globalThis.AbortController||IF().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,p=globalThis.Blob||r.Blob,m=p===void 0?function(e){return!1}:function(e){return e instanceof p},h=(e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new o(t,`AbortSignal`,e)},g=(e,t)=>{if(typeof e!=`function`)throw new o(t,`Function`,e)};n.exports={AggregateError:c,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}},promisify(e){return new Promise((t,n)=>{e((e,...r)=>e?n(e):t(...r))})},debuglog(){return function(){}},format:i,inspect:a,types:{isAsyncFunction(e){return e instanceof f},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:m,deprecate(e,t){return e},addAbortListener:t(`events`).addAbortListener||function(e,t){if(e===void 0)throw new o(`signal`,`AbortSignal`,e);h(e,`signal`),g(t,`listener`);let n;return e.aborted?queueMicrotask(()=>t()):(e.addEventListener(`abort`,t,{__proto__:null,once:!0,[s]:!0}),n=()=>{e.removeEventListener(`abort`,t)}),{__proto__:null,[l](){var e;(e=n)==null||e()}}},AbortSignalAny:u.any||function(e){if(e.length===1)return e[0];let t=new d,n=()=>t.abort();return e.forEach(e=>{h(e,`signals`),e.addEventListener(`abort`,n,{once:!0})}),t.signal.addEventListener(`abort`,()=>{e.forEach(e=>e.removeEventListener(`abort`,n))},{once:!0}),t.signal}},n.exports.promisify.custom=Symbol.for(`nodejs.util.promisify.custom`)})),RF=a(((e,t)=>{let{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:h}=MF(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:x,ERR_UNKNOWN_SIGNAL:S}}=PF(),{normalizeEncoding:C}=LF(),{isAsyncFunction:w,isArrayBufferView:T}=LF().types,E={};function D(e){return e===(e|0)}function O(e){return e===e>>>0}let k=/^[0-7]+$/;function A(e,t,n){if(e===void 0&&(e=n),typeof e==`string`){if(f(k,e)===null)throw new b(t,e,`must be a 32-bit unsigned integer or an octal string`);e=u(e,8)}return N(e,t),e}let j=g((e,t,n=l,r=c)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);if(er)throw new x(t,`>= ${n} && <= ${r}`,e)}),M=g((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);if(er)throw new x(t,`>= ${n} && <= ${r}`,e)}),N=g((e,t,n=!1)=>{if(typeof e!=`number`)throw new y(t,`number`,e);if(!o(e))throw new x(t,`an integer`,e);let r=+!!n,i=4294967295;if(ei)throw new x(t,`>= ${r} && <= ${i}`,e)});function P(e,t){if(typeof e!=`string`)throw new y(t,`string`,e)}function F(e,t,n=void 0,r){if(typeof e!=`number`)throw new y(t,`number`,e);if(n!=null&&er||(n!=null||r!=null)&&s(e))throw new x(t,`${n==null?``:`>= ${n}`}${n!=null&&r!=null?` && `:``}${r==null?``:`<= ${r}`}`,e)}let I=g((e,t,n)=>{if(!r(n,e))throw new b(t,e,`must be one of: `+i(a(n,e=>typeof e==`string`?`'${e}'`:p(e)),`, `))});function L(e,t){if(typeof e!=`boolean`)throw new y(t,`boolean`,e)}function R(e,t,n){return e==null||!d(e,t)?n:e[t]}let z=g((e,t,r=null)=>{let i=R(r,`allowArray`,!1),a=R(r,`allowFunction`,!1);if(!R(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new y(t,`Object`,e)}),ee=g((e,t)=>{if(e!=null&&typeof e!=`object`&&typeof e!=`function`)throw new y(t,`a dictionary`,e)}),B=g((e,t,r=0)=>{if(!n(e))throw new y(t,`Array`,e);if(e.length{if(!T(e))throw new y(t,[`Buffer`,`TypedArray`,`DataView`],e)});function ae(e,t){let n=C(t),r=e.length;if(n===`hex`&&r%2!=0)throw new b(`encoding`,t,`is invalid for data of length ${r}`)}function oe(e,t=`Port`,n=!0){if(typeof e!=`number`&&typeof e!=`string`||typeof e==`string`&&h(e).length===0||+e!=e>>>0||e>65535||e===0&&!n)throw new v(t,e,n);return e|0}let H=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new y(t,`AbortSignal`,e)}),se=g((e,t)=>{if(typeof e!=`function`)throw new y(t,`Function`,e)}),U=g((e,t)=>{if(typeof e!=`function`||w(e))throw new y(t,`Function`,e)}),ce=g((e,t)=>{if(e!==void 0)throw new y(t,`undefined`,e)});function le(e,t,n){if(!r(n,e))throw new y(t,`('${i(n,`|`)}')`,e)}let ue=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function W(e,t){if(e===void 0||!f(ue,e))throw new b(t,e,`must be an array or string of format "; rel=preload; as=style"`)}function de(e){if(typeof e==`string`)return W(e,`hints`),e;if(n(e)){let t=e.length,n=``;if(t===0)return n;for(let r=0;r; rel=preload; as=style"`)}t.exports={isInt32:D,isUint32:O,parseFileMode:A,validateArray:B,validateStringArray:te,validateBooleanArray:ne,validateAbortSignalArray:V,validateBoolean:L,validateBuffer:ie,validateDictionary:ee,validateEncoding:ae,validateFunction:se,validateInt32:M,validateInteger:j,validateNumber:F,validateObject:z,validateOneOf:I,validatePlainFunction:U,validatePort:oe,validateSignalName:re,validateString:P,validateUint32:N,validateUndefined:ce,validateUnion:le,validateAbortSignal:H,validateLinkHeaderValue:de}})),zF=a(((e,t)=>{t.exports=global.process})),BF=a(((e,t)=>{let{SymbolAsyncIterator:n,SymbolIterator:r,SymbolFor:i}=MF(),a=i(`nodejs.stream.destroyed`),o=i(`nodejs.stream.errored`),s=i(`nodejs.stream.readable`),c=i(`nodejs.stream.writable`),l=i(`nodejs.stream.disturbed`),u=i(`nodejs.webstream.isClosedPromise`),d=i(`nodejs.webstream.controllerErrorFunction`);function f(e,t=!1){return!!(e&&typeof e.pipe==`function`&&typeof e.on==`function`&&(!t||typeof e.pause==`function`&&typeof e.resume==`function`)&&(!e._writableState||e._readableState?.readable!==!1)&&(!e._writableState||e._readableState))}function p(e){return!!(e&&typeof e.write==`function`&&typeof e.on==`function`&&(!e._readableState||e._writableState?.writable!==!1))}function m(e){return!!(e&&typeof e.pipe==`function`&&e._readableState&&typeof e.on==`function`&&typeof e.write==`function`)}function h(e){return e&&(e._readableState||e._writableState||typeof e.write==`function`&&typeof e.on==`function`||typeof e.pipe==`function`&&typeof e.on==`function`)}function g(e){return!!(e&&!h(e)&&typeof e.pipeThrough==`function`&&typeof e.getReader==`function`&&typeof e.cancel==`function`)}function v(e){return!!(e&&!h(e)&&typeof e.getWriter==`function`&&typeof e.abort==`function`)}function y(e){return!!(e&&!h(e)&&typeof e.readable==`object`&&typeof e.writable==`object`)}function b(e){return g(e)||v(e)||y(e)}function x(e,t){return e==null?!1:t===!0?typeof e[n]==`function`:t===!1?typeof e[r]==`function`:typeof e[n]==`function`||typeof e[r]==`function`}function S(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||r!=null&&r.destroyed)}function C(e){if(!p(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function w(e,t){if(!p(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished==`boolean`?!!(n.finished||t===!1&&n.ended===!0&&n.length===0):null}function T(e){if(!f(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function E(e,t){if(!f(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted==`boolean`?!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0):null}function D(e){return e&&e[s]!=null?e[s]:typeof e?.readable==`boolean`?S(e)?!1:f(e)&&e.readable&&!E(e):null}function O(e){return e&&e[c]!=null?e[c]:typeof e?.writable==`boolean`?S(e)?!1:p(e)&&e.writable&&!C(e):null}function k(e,t){return h(e)?S(e)?!0:!(t?.readable!==!1&&D(e)||t?.writable!==!1&&O(e)):null}function A(e){return h(e)?e.writableErrored?e.writableErrored:e._writableState?.errored??null:null}function j(e){return h(e)?e.readableErrored?e.readableErrored:e._readableState?.errored??null:null}function M(e){if(!h(e))return null;if(typeof e.closed==`boolean`)return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==`boolean`||typeof n?.closed==`boolean`?t?.closed||n?.closed:typeof e._closed==`boolean`&&N(e)?e._closed:null}function N(e){return typeof e._closed==`boolean`&&typeof e._defaultKeepAlive==`boolean`&&typeof e._removedConnection==`boolean`&&typeof e._removedContLen==`boolean`}function P(e){return typeof e._sent100==`boolean`&&N(e)}function F(e){return typeof e._consuming==`boolean`&&typeof e._dumped==`boolean`&&e.req?.upgradeOrConnect===void 0}function I(e){if(!h(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&P(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function L(e){return!!(e&&(e[l]??(e.readableDidRead||e.readableAborted)))}function R(e){return!!(e&&(e[o]??e.readableErrored??e.writableErrored??e._readableState?.errorEmitted??e._writableState?.errorEmitted??e._readableState?.errored??e._writableState?.errored))}t.exports={isDestroyed:S,kIsDestroyed:a,isDisturbed:L,kIsDisturbed:l,isErrored:R,kIsErrored:o,isReadable:D,kIsReadable:s,kIsClosedPromise:u,kControllerErrorFunction:d,kIsWritable:c,isClosed:M,isDuplexNodeStream:m,isFinished:k,isIterable:x,isReadableNodeStream:f,isReadableStream:g,isReadableEnded:T,isReadableFinished:E,isReadableErrored:j,isNodeStream:h,isWebStream:b,isWritable:O,isWritableNodeStream:p,isWritableStream:v,isWritableEnded:C,isWritableFinished:w,isWritableErrored:A,isServerRequest:F,isServerResponse:P,willEmitClose:I,isTransformStream:y}})),VF=a(((e,t)=>{let n=zF(),{AbortError:r,codes:i}=PF(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=LF(),{validateAbortSignal:l,validateFunction:u,validateObject:d,validateBoolean:f}=RF(),{Promise:p,PromisePrototypeThen:m,SymbolDispose:h}=MF(),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:x,isReadableErrored:S,isWritable:C,isWritableNodeStream:w,isWritableStream:T,isWritableFinished:E,isWritableErrored:D,isNodeStream:O,willEmitClose:k,kIsClosedPromise:A}=BF(),j;function M(e){return e.setHeader&&typeof e.abort==`function`}let N=()=>{};function P(e,t,i){if(arguments.length===2?(i=t,t=s):t==null?t=s:d(t,`options`),u(i,`callback`),l(t.signal,`options.signal`),i=c(i),b(e)||T(e))return F(e,t,i);if(!O(e))throw new a(`stream`,[`ReadableStream`,`WritableStream`,`Stream`],e);let f=t.readable??y(e),p=t.writable??w(e),m=e._writableState,A=e._readableState,P=()=>{e.writable||R()},I=k(e)&&y(e)===f&&w(e)===p,L=E(e,!1),R=()=>{L=!0,e.destroyed&&(I=!1),!(I&&(!e.readable||f))&&(!f||z)&&i.call(e)},z=x(e,!1),ee=()=>{z=!0,e.destroyed&&(I=!1),!(I&&(!e.writable||p))&&(!p||L)&&i.call(e)},B=t=>{i.call(e,t)},te=g(e),ne=()=>{te=!0;let t=D(e)||S(e);if(t&&typeof t!=`boolean`)return i.call(e,t);if(f&&!z&&y(e,!0)&&!x(e,!1)||p&&!L&&!E(e,!1))return i.call(e,new o);i.call(e)},V=()=>{te=!0;let t=D(e)||S(e);if(t&&typeof t!=`boolean`)return i.call(e,t);i.call(e)},re=()=>{e.req.on(`finish`,R)};M(e)?(e.on(`complete`,R),I||e.on(`abort`,ne),e.req?re():e.on(`request`,re)):p&&!m&&(e.on(`end`,P),e.on(`close`,P)),!I&&typeof e.aborted==`boolean`&&e.on(`aborted`,ne),e.on(`end`,ee),e.on(`finish`,R),t.error!==!1&&e.on(`error`,B),e.on(`close`,ne),te?n.nextTick(ne):m!=null&&m.errorEmitted||A!=null&&A.errorEmitted?I||n.nextTick(V):(!f&&(!I||v(e))&&(L||C(e)===!1)||!p&&(!I||C(e))&&(z||v(e)===!1)||A&&e.req&&e.aborted)&&n.nextTick(V);let ie=()=>{i=N,e.removeListener(`aborted`,ne),e.removeListener(`complete`,R),e.removeListener(`abort`,ne),e.removeListener(`request`,re),e.req&&e.req.removeListener(`finish`,R),e.removeListener(`end`,P),e.removeListener(`close`,P),e.removeListener(`finish`,R),e.removeListener(`end`,ee),e.removeListener(`error`,B),e.removeListener(`close`,ne)};if(t.signal&&!te){let a=()=>{let n=i;ie(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(a);else{j||=LF().addAbortListener;let n=j(t.signal,a),r=i;i=c((...t)=>{n[h](),r.apply(e,t)})}}return ie}function F(e,t,i){let a=!1,o=N;if(t.signal)if(o=()=>{a=!0,i.call(e,new r(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(o);else{j||=LF().addAbortListener;let n=j(t.signal,o),r=i;i=c((...t)=>{n[h](),r.apply(e,t)})}let s=(...t)=>{a||n.nextTick(()=>i.apply(e,t))};return m(e[A].promise,s,s),N}function I(e,t){var n;let r=!1;return t===null&&(t=s),(n=t)!=null&&n.cleanup&&(f(t.cleanup,`cleanup`),r=t.cleanup),new p((n,i)=>{let a=P(e,t,e=>{r&&a(),e?i(e):n()})})}t.exports=P,t.exports.finished=I})),HF=a(((e,t)=>{let n=zF(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=PF(),{Symbol:o}=MF(),{kIsDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=BF(),d=o(`kDestroy`),f=o(`kConstruct`);function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function m(e,t){let n=this._readableState,i=this._writableState,a=i||n;return i!=null&&i.destroyed||n!=null&&n.destroyed?(typeof t==`function`&&t(),this):(p(e,i,n),i&&(i.destroyed=!0),n&&(n.destroyed=!0),a.constructed?h(this,e,t):this.once(d,function(n){h(this,r(n,e),t)}),this)}function h(e,t,r){let i=!1;function a(t){if(i)return;i=!0;let a=e._readableState,o=e._writableState;p(t,o,a),o&&(o.closed=!0),a&&(a.closed=!0),typeof r==`function`&&r(t),t?n.nextTick(g,e,t):n.nextTick(v,e)}try{e._destroy(t||null,a)}catch(e){a(e)}}function g(e,t){y(e,t),v(e)}function v(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit(`close`)}function y(e,t){let n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(`error`,t))}function b(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function x(e,t,r){let i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(y,e,t):y(e,t))}function S(e,t){if(typeof e._construct!=`function`)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),!(e.listenerCount(f)>1)&&n.nextTick(C,e)}function C(e){let t=!1;function r(r){if(t){x(e,r??new i);return}t=!0;let a=e._readableState,o=e._writableState,s=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(d,r):r?x(e,r,!0):n.nextTick(w,e)}try{e._construct(e=>{n.nextTick(r,e)})}catch(e){n.nextTick(r,e)}}function w(e){e.emit(f)}function T(e){return e?.setHeader&&typeof e.abort==`function`}function E(e){e.emit(`close`)}function D(e,t){e.emit(`error`,t),n.nextTick(E,e)}function O(e,t){!e||c(e)||(!t&&!l(e)&&(t=new a),u(e)?(e.socket=null,e.destroy(t)):T(e)?e.abort():T(e.req)?e.req.abort():typeof e.destroy==`function`?e.destroy(t):typeof e.close==`function`?e.close():t?n.nextTick(D,e,t):n.nextTick(E,e),e.destroyed||(e[s]=!0))}t.exports={construct:S,destroyer:O,destroy:m,undestroy:b,errorOrDestroy:x}})),UF=a(((e,n)=>{let{ArrayIsArray:r,ObjectSetPrototypeOf:i}=MF(),{EventEmitter:a}=t(`events`);function o(e){a.call(this,e)}i(o.prototype,a.prototype),i(o,a),o.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&e.write(t)===!1&&n.pause&&n.pause()}n.on(`data`,r);function i(){n.readable&&n.resume&&n.resume()}e.on(`drain`,i),!e._isStdio&&(!t||t.end!==!1)&&(n.on(`end`,c),n.on(`close`,l));let o=!1;function c(){o||(o=!0,e.end())}function l(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function u(e){d(),a.listenerCount(this,`error`)===0&&this.emit(`error`,e)}s(n,`error`,u),s(e,`error`,u);function d(){n.removeListener(`data`,r),e.removeListener(`drain`,i),n.removeListener(`end`,c),n.removeListener(`close`,l),n.removeListener(`error`,u),e.removeListener(`error`,u),n.removeListener(`end`,d),n.removeListener(`close`,d),e.removeListener(`close`,d)}return n.on(`end`,d),n.on(`close`,d),e.on(`close`,d),e.emit(`pipe`,n),e};function s(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}n.exports={Stream:o,prependListener:s}})),WF=a(((e,t)=>{let{SymbolDispose:n}=MF(),{AbortError:r,codes:i}=PF(),{isNodeStream:a,isWebStream:o,kControllerErrorFunction:s}=BF(),c=VF(),{ERR_INVALID_ARG_TYPE:l}=i,u,d=(e,t)=>{if(typeof e!=`object`||!(`aborted`in e))throw new l(t,`AbortSignal`,e)};t.exports.addAbortSignal=function(e,n){if(d(e,`signal`),!a(n)&&!o(n))throw new l(`stream`,[`ReadableStream`,`WritableStream`,`Stream`],n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=`object`||!(`aborted`in e))return t;let i=a(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[s](new r(void 0,{cause:e.reason}))};return e.aborted?i():(u||=LF().addAbortListener,c(t,u(e,i)[n])),t}})),GF=a(((e,n)=>{let{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:a,Uint8Array:o}=MF(),{Buffer:s}=t(`buffer`),{inspect:c}=LF();n.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return``;let t=this.head,n=``+t.data;for(;(t=t.next)!==null;)n+=e+t.data;return n}concat(e){if(this.length===0)return s.alloc(0);let t=s.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)a(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(ea.length)t+=a,e-=a.length;else{e===a.length?(t+=a,++i,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(a,0,e),this.head=n,n.data=r(a,e));break}++i}while((n=n.next)!==null);return this.length-=i,t}_getBuffer(e){let t=s.allocUnsafe(e),n=e,r=this.head,i=0;do{let s=r.data;if(e>s.length)a(t,s,n-e),e-=s.length;else{e===s.length?(a(t,s,n-e),++i,r.next?this.head=r.next:this.head=this.tail=null):(a(t,new o(s.buffer,s.byteOffset,e),n-e),this.head=r,r.data=s.slice(e));break}++i}while((r=r.next)!==null);return this.length-=i,t}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){return c(this,{...t,depth:0,customInspect:!1})}}})),KF=a(((e,t)=>{let{MathFloor:n,NumberIsInteger:r}=MF(),{validateInteger:i}=RF(),{ERR_INVALID_ARG_VALUE:a}=PF().codes,o=16*1024,s=16;function c(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function l(e){return e?s:o}function u(e,t){i(t,`value`,0),e?s=t:o=t}function d(e,t,i,o){let s=c(t,o,i);if(s!=null){if(!r(s)||s<0)throw new a(o?`options.${i}`:`options.highWaterMark`,s);return n(s)}return l(e.objectMode)}t.exports={getHighWaterMark:d,getDefaultHighWaterMark:l,setDefaultHighWaterMark:u}})),qF=a(((e,n)=>{ +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),JF=a((e=>{var t=qF().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),YF=a(((e,n)=>{let r=zF(),{PromisePrototypeThen:i,SymbolAsyncIterator:a,SymbolIterator:o}=MF(),{Buffer:s}=t(`buffer`),{ERR_INVALID_ARG_TYPE:c,ERR_STREAM_NULL_VALUES:l}=PF().codes;function u(e,t,n){let u;if(typeof t==`string`||t instanceof s)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let d;if(t&&t[a])d=!0,u=t[a]();else if(t&&t[o])d=!1,u=t[o]();else throw new c(`iterable`,[`Iterable`],t);let f=new e({objectMode:!0,highWaterMark:1,...n}),p=!1;f._read=function(){p||(p=!0,h())},f._destroy=function(e,t){i(m(e),()=>r.nextTick(t,e),n=>r.nextTick(t,n||e))};async function m(e){let t=e!=null,n=typeof u.throw==`function`;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if(typeof u.return==`function`){let{value:e}=await u.return();await e}}async function h(){for(;;){try{let{value:e,done:t}=d?await u.next():u.next();if(t)f.push(null);else{let t=e&&typeof e.then==`function`?await e:e;if(t===null)throw p=!1,new l;if(f.push(t))continue;p=!1}}catch(e){f.destroy(e)}break}}return f}n.exports=u})),XF=a(((e,n)=>{let r=zF(),{ArrayPrototypeIndexOf:i,NumberIsInteger:a,NumberIsNaN:o,NumberParseInt:s,ObjectDefineProperties:c,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:d,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:m,Symbol:h}=MF();n.exports=V,V.ReadableState=ne;let{EventEmitter:g}=t(`events`),{Stream:v,prependListener:y}=UF(),{Buffer:b}=t(`buffer`),{addAbortSignal:x}=WF(),S=VF(),C=LF().debuglog(`stream`,e=>{C=e}),w=GF(),T=HF(),{getHighWaterMark:E,getDefaultHighWaterMark:D}=KF(),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:A,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N},AbortError:P}=PF(),{validateObject:F}=RF(),I=h(`kPaused`),{StringDecoder:L}=JF(),R=YF();u(V.prototype,v.prototype),u(V,v);let z=()=>{},{errorOrDestroy:ee}=T,B=65536;function te(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}c(ne.prototype,{objectMode:te(1),ended:te(2),endEmitted:te(4),reading:te(8),constructed:te(16),sync:te(32),needReadable:te(64),emittedReadable:te(128),readableListening:te(256),resumeScheduled:te(512),errorEmitted:te(1024),emitClose:te(2048),autoDestroy:te(4096),destroyed:te(8192),closed:te(16384),closeEmitted:te(32768),multiAwaitDrain:te(B),readingMore:te(131072),dataEmitted:te(262144)});function ne(e,t,n){typeof n!=`boolean`&&(n=t instanceof $F()),this.state=6192,e&&e.objectMode&&(this.state|=1),n&&e&&e.readableObjectMode&&(this.state|=1),this.highWaterMark=e?E(this,e,`readableHighWaterMark`,n):D(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[I]=null,e&&e.emitClose===!1&&(this.state&=-2049),e&&e.autoDestroy===!1&&(this.state&=-4097),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new L(e.encoding),this.encoding=e.encoding)}function V(e){if(!(this instanceof V))return new V(e);let t=this instanceof $F();this._readableState=new ne(e,this,t),e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&!t&&x(e.signal,this)),v.call(this,e),T.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}V.prototype.destroy=T.destroy,V.prototype._undestroy=T.undestroy,V.prototype._destroy=function(e,t){t(e)},V.prototype[g.captureRejectionSymbol]=function(e){this.destroy(e)},V.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new P,this.destroy(e)),new d((t,n)=>S(this,r=>r&&r!==e?n(r):t(null)))},V.prototype.push=function(e,t){return re(this,e,t,!1)},V.prototype.unshift=function(e,t){return re(this,e,t,!0)};function re(e,t,n,r){C(`readableAddChunk`,t);let i=e._readableState,a;if(i.state&1||(typeof t==`string`?(n||=i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=b.from(t,n).toString(i.encoding):(t=b.from(t,n),n=``))):t instanceof b?n=``:v._isUint8Array(t)?(t=v._uint8ArrayToBuffer(t),n=``):t!=null&&(a=new k(`chunk`,[`string`,`Buffer`,`Uint8Array`],t))),a)ee(e,a);else if(t===null)i.state&=-9,H(e,i);else if(i.state&1||t&&t.length>0)if(r)if(i.state&4)ee(e,new N);else if(i.destroyed||i.errored)return!1;else ie(e,i,t,!0);else if(i.ended)ee(e,new M);else if(i.destroyed||i.errored)return!1;else i.state&=-9,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?ie(e,i,t,!1):ce(e,i)):ie(e,i,t,!1);else r||(i.state&=-9,ce(e,i));return!i.ended&&(i.length0?(t.state&B?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.state&64&&se(e)),ce(e,t)}V.prototype.isPaused=function(){let e=this._readableState;return e[I]===!0||e.flowing===!1},V.prototype.setEncoding=function(e){let t=new L(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=``;for(let e of n)r+=t.write(e);return n.clear(),r!==``&&n.push(r),this._readableState.length=r.length,this};function ae(e){if(e>1073741824)throw new j(`size`,`<= 1GiB`,e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function oe(e,t){return e<=0||t.length===0&&t.ended?0:t.state&1?1:o(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}V.prototype.read=function(e){C(`read`,e),e===void 0?e=NaN:a(e)||(e=s(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=ae(e)),e!==0&&(t.state&=-129),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return C(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?ve(this):se(this),null;if(e=oe(e,t),e===0&&t.ended)return t.length===0&&ve(this),null;let r=(t.state&64)!=0;if(C(`need readable`,r),(t.length===0||t.length-e0?_e(e,t):null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ve(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,i)),i};function H(e,t){if(C(`onEofChunk`),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?se(e):(t.needReadable=!1,t.emittedReadable=!0,U(e))}}function se(e){let t=e._readableState;C(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(C(`emitReadable`,t.flowing),t.emittedReadable=!0,r.nextTick(U,e))}function U(e){let t=e._readableState;C(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,me(e)}function ce(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(le,e,t))}function le(e,t){for(;!t.reading&&!t.ended&&(t.length1&&i.pipes.includes(e)&&(C(`false write response, pause`,i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),n.pause()),c||(c=ue(n,e),e.on(`drain`,c))}n.on(`data`,p);function p(t){C(`ondata`);let n=e.write(t);C(`dest.write`,n),n===!1&&d()}function m(t){if(C(`onerror`,t),v(),e.removeListener(`error`,m),e.listenerCount(`error`)===0){let n=e._writableState||e._readableState;n&&!n.errorEmitted?ee(e,t):e.emit(`error`,t)}}y(e,`error`,m);function h(){e.removeListener(`finish`,g),v()}e.once(`close`,h);function g(){C(`onfinish`),e.removeListener(`close`,h),v()}e.once(`finish`,g);function v(){C(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),e.writableNeedDrain===!0?d():i.flowing||(C(`pipe resume`),n.resume()),e};function ue(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(C(`pipeOnDrain`,1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(C(`pipeOnDrain`,n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount(`data`)&&e.resume()}}V.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t0,i.flowing!==!1&&this.resume()):e===`readable`&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,C(`on readable`,i.length,i.reading),i.length?se(this):i.reading||r.nextTick(de,this)),n},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(e,t){let n=v.prototype.removeListener.call(this,e,t);return e===`readable`&&r.nextTick(W,this),n},V.prototype.off=V.prototype.removeListener,V.prototype.removeAllListeners=function(e){let t=v.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&r.nextTick(W,this),t};function W(e){let t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&t[I]===!1?t.flowing=!0:e.listenerCount(`data`)>0?e.resume():t.readableListening||(t.flowing=null)}function de(e){C(`readable nexttick read 0`),e.read(0)}V.prototype.resume=function(){let e=this._readableState;return e.flowing||(C(`resume`),e.flowing=!e.readableListening,fe(this,e)),e[I]=!1,this};function fe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(pe,e,t))}function pe(e,t){C(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),me(e),t.flowing&&!t.reading&&e.read(0)}V.prototype.pause=function(){return C(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(C(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState[I]=!0,this};function me(e){let t=e._readableState;for(C(`flow`,t.flowing);t.flowing&&e.read()!==null;);}V.prototype.wrap=function(e){let t=!1;e.on(`data`,n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on(`end`,()=>{this.push(null)}),e.on(`error`,e=>{ee(this,e)}),e.on(`close`,()=>{this.destroy()}),e.on(`destroy`,()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=l(e);for(let t=1;t{i=e?O(i,e):null,n(),n=z});try{for(;;){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(i)throw i;else if(i===null)return;else await new d(r)}}catch(e){throw i=O(i,e),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?T.destroyer(e,null):(e.off(`readable`,r),a())}}c(V.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),c(ne.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[I]!==!1},set(e){this[I]=!!e}}}),V._fromList=_e;function _e(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function ve(e){let t=e._readableState;C(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ye,t,e))}function ye(e,t){if(C(`endReadableNT`,e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(`end`),t.writable&&t.allowHalfOpen===!1)r.nextTick(be,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function be(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}V.from=function(e,t){return R(V,e,t)};let xe;function Se(){return xe===void 0&&(xe={}),xe}V.fromWeb=function(e,t){return Se().newStreamReadableFromReadableStream(e,t)},V.toWeb=function(e,t){return Se().newReadableStreamFromStreamReadable(e,t)},V.wrap=function(e,t){return new V({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){T.destroyer(e,t),n(t)}}).wrap(e)}})),ZF=a(((e,n)=>{let r=zF(),{ArrayPrototypeSlice:i,Error:a,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:s,ObjectDefineProperties:c,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:d,SymbolHasInstance:f}=MF();n.exports=F,F.WritableState=N;let{EventEmitter:p}=t(`events`),m=UF().Stream,{Buffer:h}=t(`buffer`),g=HF(),{addAbortSignal:v}=WF(),{getHighWaterMark:y,getDefaultHighWaterMark:b}=KF(),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:C,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:k}=PF().codes,{errorOrDestroy:A}=g;l(F.prototype,m.prototype),l(F,m);function j(){}let M=d(`kOnFinished`);function N(e,t,n){typeof n!=`boolean`&&(n=t instanceof $F()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?y(this,e,`writableHighWaterMark`,n):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=ee.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,P(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function P(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}N.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},s(N.prototype,`bufferedRequestCount`,{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function F(e){let t=this instanceof $F();if(!t&&!o(F,this))return new F(e);this._writableState=new N(e,this,t),e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&v(e.signal,this)),m.call(this,e),g.construct(this,()=>{let e=this._writableState;e.writing||V(this,e),oe(this,e)})}s(F,f,{__proto__:null,value:function(e){return o(this,e)?!0:this===F?e&&e._writableState instanceof N:!1}}),F.prototype.pipe=function(){A(this,new w)};function I(e,t,n,i){let a=e._writableState;if(typeof n==`function`)i=n,n=a.defaultEncoding;else{if(!n)n=a.defaultEncoding;else if(n!==`buffer`&&!h.isEncoding(n))throw new k(n);typeof i!=`function`&&(i=j)}if(t===null)throw new D;if(!a.objectMode)if(typeof t==`string`)a.decodeStrings!==!1&&(t=h.from(t,n),n=`buffer`);else if(t instanceof h)n=`buffer`;else if(m._isUint8Array(t))t=m._uint8ArrayToBuffer(t),n=`buffer`;else throw new x(`chunk`,[`string`,`Buffer`,`Uint8Array`],t);let o;return a.ending?o=new O:a.destroyed&&(o=new T(`write`)),o?(r.nextTick(i,o),A(e,o,!0),o):(a.pendingcb++,L(e,a,t,n,i))}F.prototype.write=function(e,t,n){return I(this,e,t,n)===!0},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||V(this,e))},F.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=u(e)),!h.isEncoding(e))throw new k(e);return this._writableState.defaultEncoding=e,this};function L(e,t,n,r,i){let a=t.objectMode?1:n.length;t.length+=a;let o=t.lengthn.bufferedIndex&&V(e,n),i?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===a?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:a,stream:e,state:n},r.nextTick(B,n.afterWriteTickInfo)):te(e,n,1,a))}function B({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,te(e,t,n,r)}function te(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`));n-- >0;)t.pendingcb--,r();t.destroyed&&ne(t),oe(e,t)}function ne(e){if(e.writing)return;for(let t=e.bufferedIndex;t1&&e._writev){t.pendingcb-=o-1;let r=t.allNoop?j:e=>{for(let t=s;t256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}F.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new S(`_write()`)},F.prototype._writev=null,F.prototype.end=function(e,t,n){let i=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null);let o;if(e!=null){let n=I(this,e,t);n instanceof a&&(o=n)}return i.corked&&(i.corked=1,this.uncork()),o||(!i.errored&&!i.ending?(i.ending=!0,oe(this,i,!0),i.ended=!0):i.finished?o=new E(`end`):i.destroyed&&(o=new T(`end`))),typeof n==`function`&&(o||i.finished?r.nextTick(n,o):i[M].push(n)),this};function re(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function ie(e,t){let n=!1;function i(i){if(n){A(e,i??C());return}if(n=!0,t.pendingcb--,i){let n=t[M].splice(0);for(let e=0;e{re(t)?H(e,t):t.pendingcb--},e,t)):re(t)&&(t.pendingcb++,H(e,t))))}function H(e,t){t.pendingcb--,t.finished=!0;let n=t[M].splice(0);for(let e=0;e{let r=zF(),i=t(`buffer`),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d,isReadableStream:f,isWritableStream:p}=BF(),m=VF(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:v}}=PF(),{destroyer:y}=HF(),b=$F(),x=XF(),S=ZF(),{createDeferredPromise:C}=LF(),w=YF(),T=globalThis.Blob||i.Blob,E=T===void 0?function(e){return!1}:function(e){return e instanceof T},D=globalThis.AbortController||IF().AbortController,{FunctionPrototypeCall:O}=MF();var k=class extends b{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function e(t,n){if(d(t))return t;if(l(t))return j({readable:t});if(u(t))return j({writable:t});if(c(t))return j({writable:!1,readable:!1});if(f(t))return j({readable:x.fromWeb(t)});if(p(t))return j({writable:S.fromWeb(t)});if(typeof t==`function`){let{value:e,write:i,final:a,destroy:o}=A(t);if(s(e))return w(k,e,{objectMode:!0,write:i,final:a,destroy:o});let c=e?.then;if(typeof c==`function`){let t,n=O(c,e,e=>{if(e!=null)throw new v(`nully`,`body`,e)},e=>{y(t,e)});return t=new k({objectMode:!0,readable:!1,write:i,final(e){a(async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}})},destroy:o})}throw new v(`Iterable, AsyncIterable or AsyncFunction`,n,e)}if(E(t))return e(t.arrayBuffer());if(s(t))return w(k,t,{objectMode:!0,writable:!1});if(f(t?.readable)&&p(t?.writable))return k.fromWeb(t);if(typeof t?.writable==`object`||typeof t?.readable==`object`)return j({readable:t!=null&&t.readable?l(t?.readable)?t?.readable:e(t.readable):void 0,writable:t!=null&&t.writable?u(t?.writable)?t?.writable:e(t.writable):void 0});let i=t?.then;if(typeof i==`function`){let e;return O(i,t,t=>{t!=null&&e.push(t),e.push(null)},t=>{y(e,t)}),e=new k({objectMode:!0,writable:!1,read(){}})}throw new g(n,[`Blob`,`ReadableStream`,`WritableStream`,`Stream`,`Iterable`,`AsyncIterable`,`Function`,`{ readable, writable } pair`,`Promise`],t)};function A(e){let{promise:t,resolve:n}=C(),i=new D,a=i.signal;return{value:e((async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:s}=await e;if(r.nextTick(s),o)return;if(a.aborted)throw new h(void 0,{cause:a.reason});({promise:t,resolve:n}=C()),yield i}})(),{signal:a}),write(e,t,r){let i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){let t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function j(e){let t=e.readable&&typeof e.readable.read!=`function`?x.wrap(e.readable):e.readable,n=e.writable,r=!!a(t),i=!!o(n),s,c,l,u,d;function f(e){let t=u;u=null,t?t(e):e&&d.destroy(e)}return d=new k({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(m(n,e=>{i=!1,e&&y(t,e),f(e)}),d._write=function(e,t,r){n.write(e,t)?r():s=r},d._final=function(e){n.end(),c=e},n.on(`drain`,function(){if(s){let e=s;s=null,e()}}),n.on(`finish`,function(){if(c){let e=c;c=null,e()}})),r&&(m(t,e=>{r=!1,e&&y(t,e),f(e)}),t.on(`readable`,function(){if(l){let e=l;l=null,e()}}),t.on(`end`,function(){d.push(null)}),d._read=function(){for(;;){let e=t.read();if(e===null){l=d._read;return}if(!d.push(e))return}}),d._destroy=function(e,r){!e&&u!==null&&(e=new h),l=null,s=null,c=null,u===null?r(e):(u=r,y(n,e),y(t,e))},d}})),$F=a(((e,t)=>{let{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=MF();t.exports=c;let o=XF(),s=ZF();a(c.prototype,o.prototype),a(c,o);{let e=i(s.prototype);for(let t=0;t{let{ObjectSetPrototypeOf:n,Symbol:r}=MF();t.exports=c;let{ERR_METHOD_NOT_IMPLEMENTED:i}=PF().codes,a=$F(),{getHighWaterMark:o}=KF();n(c.prototype,a.prototype),n(c,a);let s=r(`kCallback`);function c(e){if(!(this instanceof c))return new c(e);let t=e?o(this,e,`readableHighWaterMark`,!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function l(e){typeof this._flush==`function`&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function u(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new i(`_transform()`)},c.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,a=r.length;this._transform(e,t,(e,t)=>{if(e){n(e);return}t!=null&&this.push(t),i.ended||a===r.length||r.length{let{ObjectSetPrototypeOf:n}=MF();t.exports=i;let r=eI();n(i.prototype,r.prototype),n(i,r);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),nI=a(((e,t)=>{let n=zF(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:a,SymbolDispose:o}=MF(),s=VF(),{once:c}=LF(),l=HF(),u=$F(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:h,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=PF(),{validateFunction:y,validateAbortSignal:b}=RF(),{isIterable:x,isReadable:S,isReadableNodeStream:C,isNodeStream:w,isTransformStream:T,isWebStream:E,isReadableStream:D,isReadableFinished:O}=BF(),k=globalThis.AbortController||IF().AbortController,A,j,M;function N(e,t,n){let r=!1;return e.on(`close`,()=>{r=!0}),{destroy:t=>{r||(r=!0,l.destroyer(e,t||new h(`pipe`)))},cleanup:s(e,{readable:t,writable:n},e=>{r=!e})}}function P(e){return y(e[e.length-1],`streams[stream.length - 1]`),e.pop()}function F(e){if(x(e))return e;if(C(e))return I(e);throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],e)}async function*I(e){j||=XF(),yield*j.prototype[a].call(e)}async function L(e,t,n,{end:r}){let a,o=null,c=e=>{if(e&&(a=e),o){let e=o;o=null,e()}},l=()=>new i((e,t)=>{a?t(a):o=()=>{a?t(a):e()}});t.on(`drain`,c);let u=s(t,{readable:!1},c);try{t.writableNeedDrain&&await l();for await(let n of e)t.write(n)||await l();r&&(t.end(),await l()),n()}catch(e){n(a===e?e:d(a,e))}finally{u(),t.off(`drain`,c)}}async function R(e,t,n,{end:r}){T(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(e){try{await i.abort(e),n(e)}catch(e){n(e)}}}function z(...e){return ee(e,c(P(e)))}function ee(e,t,i){if(e.length===1&&r(e[0])&&(e=e[0]),e.length<2)throw new m(`streams`);let a=new k,s=a.signal,c=i?.signal,l=[];b(c,`options.signal`);function d(){I(new v)}M||=LF().addAbortListener;let h;c&&(h=M(c,d));let g,y,O=[],j=0;function P(e){I(e,--j===0)}function I(e,r){var i;if(e&&(!g||g.code===`ERR_STREAM_PREMATURE_CLOSE`)&&(g=e),!(!g&&!r)){for(;O.length;)O.shift()(g);(i=h)==null||i[o](),a.abort(),r&&(g||l.forEach(e=>e()),n.nextTick(t,g,y))}}let z;for(let t=0;t0,c=a||i?.end!==!1,d=t===e.length-1;if(w(r)){if(c){let{destroy:e,cleanup:t}=N(r,a,o);O.push(e),S(r)&&d&&l.push(t)}function e(e){e&&e.name!==`AbortError`&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`&&P(e)}r.on(`error`,e),S(r)&&d&&l.push(()=>{r.removeListener(`error`,e)})}if(t===0)if(typeof r==`function`){if(z=r({signal:s}),!x(z))throw new p(`Iterable, AsyncIterable or Stream`,`source`,z)}else z=x(r)||C(r)||T(r)?r:u.from(r);else if(typeof r==`function`)if(z=T(z)?F(z?.readable):F(z),z=r(z,{signal:s}),a){if(!x(z,!0))throw new p(`AsyncIterable`,`transform[${t-1}]`,z)}else{A||=tI();let e=new A({objectMode:!0}),t=z?.then;if(typeof t==`function`)j++,t.call(z,t=>{y=t,t!=null&&e.write(t),c&&e.end(),n.nextTick(P)},t=>{e.destroy(t),n.nextTick(P,t)});else if(x(z,!0))j++,L(z,e,P,{end:c});else if(D(z)||T(z)){let t=z.readable||z;j++,L(t,e,P,{end:c})}else throw new p(`AsyncIterable or Promise`,`destination`,z);z=e;let{destroy:r,cleanup:i}=N(z,!1,!0);O.push(r),d&&l.push(i)}else if(w(r)){if(C(z)){j+=2;let e=B(z,r,P,{end:c});S(r)&&d&&l.push(e)}else if(T(z)||D(z)){let e=z.readable||z;j++,L(e,r,P,{end:c})}else if(x(z))j++,L(z,r,P,{end:c});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`,`ReadableStream`,`TransformStream`],z);z=r}else if(E(r)){if(C(z))j++,R(F(z),r,P,{end:c});else if(D(z)||x(z))j++,R(z,r,P,{end:c});else if(T(z))j++,R(z.readable,r,P,{end:c});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`,`ReadableStream`,`TransformStream`],z);z=r}else z=u.from(r)}return(s!=null&&s.aborted||c!=null&&c.aborted)&&n.nextTick(d),z}function B(e,t,r,{end:i}){let a=!1;if(t.on(`close`,()=>{a||r(new g)}),e.pipe(t,{end:!1}),i){function r(){a=!0,t.end()}O(e)?n.nextTick(r):e.once(`end`,r)}else r();return s(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&t.code===`ERR_STREAM_PREMATURE_CLOSE`&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once(`end`,r).once(`error`,r):r(t)}),s(t,{readable:!1,writable:!0},r)}t.exports={pipelineImpl:ee,pipeline:z}})),rI=a(((e,t)=>{let{pipeline:n}=nI(),r=$F(),{destroyer:i}=HF(),{isNodeStream:a,isReadable:o,isWritable:s,isWebStream:c,isTransformStream:l,isWritableStream:u,isReadableStream:d}=BF(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=PF(),h=VF();t.exports=function(...e){if(e.length===0)throw new m(`streams`);if(e.length===1)return r.from(e[0]);let t=[...e];if(typeof e[0]==`function`&&(e[0]=r.from(e[0])),typeof e[e.length-1]==`function`){let t=e.length-1;e[t]=r.from(e[t])}for(let n=0;n0&&!(s(e[n])||u(e[n])||l(e[n])))throw new p(`streams[${n}]`,t[n],`must be writable`)}let g,v,y,b,x;function S(e){let t=b;b=null,t?t(e):e?x.destroy(e):!E&&!T&&x.destroy()}let C=e[0],w=n(e,S),T=!!(s(C)||u(C)||l(C)),E=!!(o(w)||d(w)||l(w));if(x=new r({writableObjectMode:!!(C!=null&&C.writableObjectMode),readableObjectMode:!!(w!=null&&w.readableObjectMode),writable:T,readable:E}),T){if(a(C))x._write=function(e,t,n){C.write(e,t)?n():g=n},x._final=function(e){C.end(),v=e},C.on(`drain`,function(){if(g){let e=g;g=null,e()}});else if(c(C)){let e=(l(C)?C.writable:C).getWriter();x._write=async function(t,n,r){try{await e.ready,e.write(t).catch(()=>{}),r()}catch(e){r(e)}},x._final=async function(t){try{await e.ready,e.close().catch(()=>{}),v=t}catch(e){t(e)}}}h(l(w)?w.readable:w,()=>{if(v){let e=v;v=null,e()}})}if(E){if(a(w))w.on(`readable`,function(){if(y){let e=y;y=null,e()}}),w.on(`end`,function(){x.push(null)}),x._read=function(){for(;;){let e=w.read();if(e===null){y=x._read;return}if(!x.push(e))return}};else if(c(w)){let e=(l(w)?w.readable:w).getReader();x._read=async function(){for(;;)try{let{value:t,done:n}=await e.read();if(!x.push(t))return;if(n){x.push(null);return}}catch{return}}}}return x._destroy=function(e,t){!e&&b!==null&&(e=new f),y=null,g=null,v=null,b===null?t(e):(b=t,a(w)&&i(w,e))},x}})),iI=a(((e,t)=>{let n=globalThis.AbortController||IF().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=PF(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=RF(),d=MF().Symbol(`kWeak`),f=MF().Symbol(`kResistStopPropagation`),{finished:p}=VF(),m=rI(),{addAbortSignalNoValidate:h}=WF(),{isWritable:g,isNodeStream:v}=BF(),{deprecate:y}=LF(),{ArrayPrototypePush:b,Boolean:x,MathFloor:S,Number:C,NumberIsNaN:w,Promise:T,PromiseReject:E,PromiseResolve:D,PromisePrototypeThen:O,Symbol:k}=MF(),A=k(`kEmpty`),j=k(`kEof`);function M(e,t){if(t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),v(e)&&!g(e))throw new r(`stream`,e,`must be writable`);let n=m(this,e);return t!=null&&t.signal&&h(t.signal,n),n}function N(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`);let n=1;t?.concurrency!=null&&(n=S(t.concurrency));let r=n-1;return t?.highWaterMark!=null&&(r=S(t.highWaterMark)),l(n,`options.concurrency`,1),l(r,`options.highWaterMark`,0),r+=n,async function*(){let i=LF().AbortSignalAny([t?.signal].filter(x)),a=this,o=[],c={signal:i},l,u,d=!1,f=0;function p(){d=!0,m()}function m(){--f,h()}function h(){u&&!d&&f=r||f>=n)&&await new T(e=>{u=e})}o.push(j)}catch(e){let t=E(e);O(t,m,p),o.push(t)}finally{d=!0,l&&=(l(),null)}}g();try{for(;;){for(;o.length>0;){let e=await o[0];if(e===j)return;if(i.aborted)throw new s;e!==A&&(yield e),o.shift(),h()}await new T(e=>{l=e})}}finally{d=!0,u&&=(u(),null)}}.call(this)}function P(e=void 0){return e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`),async function*(){let t=0;for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)}async function F(e,t=void 0){for await(let n of z.call(this,e,t))return!0;return!1}async function I(e,t=void 0){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);return!await F.call(this,async(...t)=>!await e(...t),t)}async function L(e,t){for await(let n of z.call(this,e,t))return n}async function R(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n),A}for await(let e of N.call(this,n,t));}function z(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n)?t:A}return N.call(this,n,t)}var ee=class extends a{constructor(){super(`reduce`),this.message=`Reduce of an empty stream requires an initial value`}};async function B(e,t,r){var a;if(typeof e!=`function`)throw new i(`reducer`,[`Function`,`AsyncFunction`],e);r!=null&&u(r,`options`),r?.signal!=null&&c(r.signal,`options.signal`);let o=arguments.length>1;if(r!=null&&(a=r.signal)!=null&&a.aborted){let e=new s(void 0,{cause:r.signal.reason});throw this.once(`error`,()=>{}),await p(this.destroy(e)),e}let l=new n,m=l.signal;if(r!=null&&r.signal){let e={once:!0,[d]:this,[f]:!0};r.signal.addEventListener(`abort`,()=>l.abort(),e)}let h=!1;try{for await(let n of this){var g;if(h=!0,r!=null&&(g=r.signal)!=null&&g.aborted)throw new s;o?t=await e(t,n,{signal:m}):(t=n,o=!0)}if(!h&&!o)throw new ee}finally{l.abort()}return t}async function te(e){e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`);let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s(void 0,{cause:e.signal.reason});b(t,r)}return t}function ne(e,t){let n=N.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)}function V(e){if(e=C(e),w(e))return 0;if(e<0)throw new o(`number`,`>= 0`,e);return e}function re(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=V(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)}function ie(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=V(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;if(e-- >0&&(yield n),e<=0)return}}.call(this)}t.exports.streamReturningOperators={asIndexedPairs:y(P,`readable.asIndexedPairs will be removed in a future version.`),drop:re,filter:z,flatMap:ne,map:N,take:ie,compose:M},t.exports.promiseReturningOperators={every:I,forEach:R,reduce:B,toArray:te,some:F,find:L}})),aI=a(((e,t)=>{let{ArrayPrototypePop:n,Promise:r}=MF(),{isIterable:i,isNodeStream:a,isWebStream:o}=BF(),{pipelineImpl:s}=nI(),{finished:c}=VF();oI();function l(...e){return new r((t,r)=>{let c,l,u=e[e.length-1];if(u&&typeof u==`object`&&!a(u)&&!i(u)&&!o(u)){let t=n(e);c=t.signal,l=t.end}s(e,(e,n)=>{e?r(e):t(n)},{signal:c,end:l})})}t.exports={finished:c,pipeline:l}})),oI=a(((e,n)=>{let{Buffer:r}=t(`buffer`),{ObjectDefineProperty:i,ObjectKeys:a,ReflectApply:o}=MF(),{promisify:{custom:s}}=LF(),{streamReturningOperators:c,promiseReturningOperators:l}=iI(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=PF(),d=rI(),{setDefaultHighWaterMark:f,getDefaultHighWaterMark:p}=KF(),{pipeline:m}=nI(),{destroyer:h}=HF(),g=VF(),v=aI(),y=BF(),b=n.exports=UF().Stream;b.isDestroyed=y.isDestroyed,b.isDisturbed=y.isDisturbed,b.isErrored=y.isErrored,b.isReadable=y.isReadable,b.isWritable=y.isWritable,b.Readable=XF();for(let e of a(c)){let t=c[e];function n(...e){if(new.target)throw u();return b.Readable.from(o(t,this,e))}i(n,`name`,{__proto__:null,value:t.name}),i(n,`length`,{__proto__:null,value:t.length}),i(b.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of a(l)){let t=l[e];function n(...e){if(new.target)throw u();return o(t,this,e)}i(n,`name`,{__proto__:null,value:t.name}),i(n,`length`,{__proto__:null,value:t.length}),i(b.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}b.Writable=ZF(),b.Duplex=$F(),b.Transform=eI(),b.PassThrough=tI(),b.pipeline=m;let{addAbortSignal:x}=WF();b.addAbortSignal=x,b.finished=g,b.destroy=h,b.compose=d,b.setDefaultHighWaterMark=f,b.getDefaultHighWaterMark=p,i(b,`promises`,{__proto__:null,configurable:!0,enumerable:!0,get(){return v}}),i(m,s,{__proto__:null,enumerable:!0,get(){return v.pipeline}}),i(g,s,{__proto__:null,enumerable:!0,get(){return v.finished}}),b.Stream=b,b._isUint8Array=function(e){return e instanceof Uint8Array},b._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}})),sI=a(((e,n)=>{let r=t(`stream`);if(r&&process.env.READABLE_STREAM===`disable`){let e=r.promises;n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return e}}),n.exports.Stream=r.Stream}else{let e=oI(),t=aI(),r=e.Readable.destroy;n.exports=e.Readable,n.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,n.exports._isUint8Array=e._isUint8Array,n.exports.isDisturbed=e.isDisturbed,n.exports.isErrored=e.isErrored,n.exports.isReadable=e.isReadable,n.exports.Readable=e.Readable,n.exports.Writable=e.Writable,n.exports.Duplex=e.Duplex,n.exports.Transform=e.Transform,n.exports.PassThrough=e.PassThrough,n.exports.addAbortSignal=e.addAbortSignal,n.exports.finished=e.finished,n.exports.destroy=e.destroy,n.exports.destroy=r,n.exports.pipeline=e.pipeline,n.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),n.exports.Stream=e.Stream}n.exports.default=n.exports})),cI=a(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n{var n=qP(),r=vF(),i=yF(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),uI=a(((e,t)=>{var n=cI(),r=lI();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),dI=a(((e,t)=>{var n=uI();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),fI=a(((e,t)=>{t.exports=iF()(Object,`create`)})),pI=a(((e,t)=>{var n=fI();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),mI=a(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),hI=a(((e,t)=>{var n=fI(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),gI=a(((e,t)=>{var n=fI(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),_I=a(((e,t)=>{var n=fI(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),vI=a(((e,t)=>{var n=pI(),r=mI(),i=hI(),a=gI(),o=_I();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{function n(){this.__data__=[],this.size=0}t.exports=n})),bI=a(((e,t)=>{var n=uF();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),xI=a(((e,t)=>{var n=bI(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),SI=a(((e,t)=>{var n=bI();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),CI=a(((e,t)=>{var n=bI();function r(e){return n(this.__data__,e)>-1}t.exports=r})),wI=a(((e,t)=>{var n=bI();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),TI=a(((e,t)=>{var n=yI(),r=xI(),i=SI(),a=CI(),o=wI();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{t.exports=iF()(KP(),`Map`)})),DI=a(((e,t)=>{var n=vI(),r=TI(),i=EI();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),OI=a(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),kI=a(((e,t)=>{var n=OI();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),AI=a(((e,t)=>{var n=kI();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),jI=a(((e,t)=>{var n=kI();function r(e){return n(this,e).get(e)}t.exports=r})),MI=a(((e,t)=>{var n=kI();function r(e){return n(this,e).has(e)}t.exports=r})),NI=a(((e,t)=>{var n=kI();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),PI=a(((e,t)=>{var n=DI(),r=AI(),i=jI(),a=MI(),o=NI();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),II=a(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),LI=a(((e,t)=>{var n=PI(),r=FI(),i=II();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{function n(e){return e!==e}t.exports=n})),BI=a(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r{var n=RI(),r=zI(),i=BI();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),HI=a(((e,t)=>{var n=VI();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),UI=a(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{function n(e,t){return e.has(t)}t.exports=n})),KI=a(((e,t)=>{var n=LI(),r=HI(),i=UI(),a=WI(),o=CF(),s=GI(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++d{var n=fF(),r=gF();function i(e){return r(e)&&n(e)}t.exports=i})),JI=a(((e,t)=>{var n=KI(),r=uI(),i=lF(),a=qI();t.exports=i(function(e,t){return a(e)?n(e,r(t,1,a,!0)):[]})})),YI=a(((e,t)=>{t.exports=iF()(KP(),`Set`)})),XI=a(((e,t)=>{function n(){}t.exports=n})),ZI=a(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),QI=a(((e,t)=>{var n=YI(),r=XI(),i=ZI();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),$I=a(((e,t)=>{var n=LI(),r=HI(),i=UI(),a=GI(),o=QI(),s=ZI(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u{var n=uI(),r=lF(),i=$I(),a=qI();t.exports=r(function(e){return i(n(e,1,a,!0))})})),tL=a(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),nL=a(((e,t)=>{t.exports=tL()(Object.getPrototypeOf,Object)})),rL=a(((e,t)=>{var n=XP(),r=nL(),i=gF(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),iL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0,e.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)}})),aL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;let t={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},n=e=>e.replace(/[[\]\\-]/g,`\\$&`),r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),i=e=>e.join(``);e.parseClass=(e,a)=>{let o=a;if(e.charAt(o)!==`[`)throw Error(`not in a brace expression`);let s=[],c=[],l=o+1,u=!1,d=!1,f=!1,p=!1,m=o,h=``;WHILE:for(;lh?s.push(n(h)+`-`+n(r)):r===h&&s.push(n(r)),h=``,l++;continue}if(e.startsWith(`-]`,l+1)){s.push(n(r+`-`)),l+=2;continue}if(e.startsWith(`-`,l+1)){h=r,l+=2;continue}s.push(n(r)),l++}if(m{Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0,e.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`)})),sL=a((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;let n=aL(),r=oL(),i=new Set([`!`,`?`,`+`,`*`,`@`]),a=e=>i.has(e),o=e=>a(e.type),s=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),c=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),l=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),u=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),d=`(?!\\.)`,f=new Set([`[`,`.`]),p=new Set([`..`,`.`]),m=new Set(`().*{}+?[]^$\\!`),h=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),g=`[^/]+?`;var v=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let n=0;n{let[r,a,o,s]=typeof n==`string`?t.#C(n,this.#t,i):n.toRegExpSource(e);return this.#t=this.#t||o,this.#n=this.#n||s,r}).join(``),o=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&p.has(this.#r[0]))){let t=f,r=n&&t.has(a.charAt(0))||a.startsWith(`\\.`)&&t.has(a.charAt(2))||a.startsWith(`\\.\\.`)&&t.has(a.charAt(4)),i=!n&&!e&&t.has(a.charAt(0));o=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:i?d:``}let s=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(s=`(?:$|\\/)`),[o+a+s,(0,r.unescape)(a),this.#t=!!this.#t,this.#n]}let i=this.type===`*`||this.type===`+`,a=this.type===`!`?`(?:(?!(?:`:`(?:`,s=this.#S(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,(0,r.unescape)(this.toString()),!1,!1]}let c=!i||e||n?``:this.#S(!0);c===s&&(c=``),c&&(s=`(?:${s})(?:${c})*?`);let l=``;if(this.type===`!`&&this.#u)l=(this.isStart()&&!n?d:``)+g;else{let t=this.type===`!`?`))`+(this.isStart()&&!n&&!e?d:``)+`[^/]*?)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&c?`)`:this.type===`*`&&c?`)?`:`)${this.type}`;l=a+s+t}return[l,(0,r.unescape)(s),this.#t=!!this.#t,this.#n]}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,i=!1){let a=!1,o=``,s=!1,c=!1;for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0,e.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`)})),lL=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;let n=t(wd()),r=iL(),i=sL(),a=cL(),o=oL();e.minimatch=(e,t,n={})=>((0,r.assertValidPattern)(t),!n.nocomment&&t.charAt(0)===`#`?!1:new N(t,n).match(e));let s=/^\*+([^+@!?\*\[\(]*)$/,c=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),l=e=>t=>t.endsWith(e),u=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),d=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),f=/^\*+\.\*+$/,p=e=>!e.startsWith(`.`)&&e.includes(`.`),m=e=>e!==`.`&&e!==`..`&&e.includes(`.`),h=/^\.\*+$/,g=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),v=/^\*+$/,y=e=>e.length!==0&&!e.startsWith(`.`),b=e=>e.length!==0&&e!==`.`&&e!==`..`,x=/^\?+([^+@!?\*\[\(]*)?$/,S=([e,t=``])=>{let n=E([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},C=([e,t=``])=>{let n=D([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},w=([e,t=``])=>{let n=D([e]);return t?e=>n(e)&&e.endsWith(t):n},T=([e,t=``])=>{let n=E([e]);return t?e=>n(e)&&e.endsWith(t):n},E=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},D=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},O=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,k={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=O===`win32`?k.win32.sep:k.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR,e.filter=(t,n={})=>r=>(0,e.minimatch)(r,t,n),e.minimatch.filter=e.filter;let A=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,A(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,A(t,n))}static defaults(e){return n.defaults(A(t,e)).Minimatch}},AST:class extends n.AST{constructor(e,n,r={}){super(e,n,A(t,r))}static fromGlob(e,r={}){return n.AST.fromGlob(e,A(t,r))}},unescape:(e,r={})=>n.unescape(e,A(t,r)),escape:(e,r={})=>n.escape(e,A(t,r)),filter:(e,r={})=>n.filter(e,A(t,r)),defaults:e=>n.defaults(A(t,e)),makeRe:(e,r={})=>n.makeRe(e,A(t,r)),braceExpand:(e,r={})=>n.braceExpand(e,A(t,r)),match:(e,r,i={})=>n.match(e,r,A(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,t={})=>((0,r.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,n.default)(e)),e.minimatch.braceExpand=e.braceExpand,e.makeRe=(e,t={})=>new N(e,t).makeRe(),e.minimatch.makeRe=e.makeRe,e.match=(e,t,n={})=>{let r=new N(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;let j=/[?*]|[+@!]\(.*?\)|\[|\]/,M=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var N=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){(0,r.assertValidPattern)(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||O,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!j.test(e[2]))&&!j.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(t=this.levelTwoFileOptimize(t)),n.includes(e.GLOBSTAR)?this.#e(t,n,r,i,a):this.#n(t,n,r,i,a)}#e(t,n,r,i,a){let o=n.indexOf(e.GLOBSTAR,a),s=n.lastIndexOf(e.GLOBSTAR),[c,l,u]=r?[n.slice(a,o),n.slice(o+1),[]]:[n.slice(a,o),n.slice(o+1,s),n.slice(s+1)];if(c.length){let e=t.slice(i,i+c.length);if(!this.#n(e,c,r,0,0))return!1;i+=c.length}let d=0;if(u.length){if(u.length+i>t.length)return!1;let e=t.length-u.length;if(this.#n(t,u,r,e,0))d=u.length;else{if(t[t.length-1]!==``||i+u.length===t.length||(e--,!this.#n(t,u,r,e,0)))return!1;d=u.length+1}}if(!l.length){let e=!!d;for(let n=i;n{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?M(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});return n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))}),n.filter(t=>t!==e.GLOBSTAR).join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;let t=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,n=new Set,r=typeof process==`object`&&process?process:{},i=(e,t,n,i)=>{typeof r.emitWarning==`function`?r.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)},a=globalThis.AbortController,o=globalThis.AbortSignal;if(a===void 0){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},a=class{constructor(){t()}signal=new o;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e=r.env?.LRU_CACHE_IGNORE_AC_WARNING!==`1`,t=()=>{e&&(e=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.",`NO_ABORT_CONTROLLER`,`ENOTSUP`,t))}}let s=e=>!n.has(e),c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>c(e)?e<=2**8?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?u:null:null;var u=class extends Array{constructor(e){super(e),this.fill(0)}},d=class e{heap;length;static#e=!1;static create(t){let n=l(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};e.LRUCache=class e{#e;#t;#n;#r;#i;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#y,sizes:e.#_,keyMap:e.#c,keyList:e.#l,valList:e.#u,next:e.#d,prev:e.#f,get head(){return e.#p},get tail(){return e.#m},free:e.#h,isBackgroundFetch:t=>e.#L(t),backgroundFetch:(t,n,r,i)=>e.#I(t,n,r,i),moveToTail:t=>e.#z(t),indexes:t=>e.#M(t),rindexes:t=>e.#N(t),isStale:t=>e.#D(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#s}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#a}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(t){let{max:r=0,ttl:a,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:f,updateAgeOnHas:p,allowStale:m,dispose:h,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:y,maxSize:b=0,maxEntrySize:x=0,sizeCalculation:S,fetchMethod:C,memoMethod:w,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:O,ignoreFetchAbort:k}=t;if(r!==0&&!c(r))throw TypeError(`max option must be a nonnegative integer`);let A=r?l(r):Array;if(!A)throw Error(`invalid max value: `+r);if(this.#e=r,this.#t=b,this.maxEntrySize=x||this.#t,this.sizeCalculation=S,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(w!==void 0&&typeof w!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#a=w,C!==void 0&&typeof C!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#i=C,this.#x=!!C,this.#c=new Map,this.#l=Array(r).fill(void 0),this.#u=Array(r).fill(void 0),this.#d=new A(r),this.#f=new A(r),this.#p=0,this.#m=0,this.#h=d.create(r),this.#o=0,this.#s=0,typeof h==`function`&&(this.#n=h),typeof g==`function`?(this.#r=g,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#b=!!this.#n,this.#S=!!this.#r,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!T,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.#t!==0&&!c(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!c(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#O()}if(this.allowStale=!!m,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!f,this.updateAgeOnHas=!!p,this.ttlResolution=c(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=a||0,this.ttl){if(!c(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#C()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t=`LRU_CACHE_UNBOUNDED`;s(t)&&(n.add(t),i(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#C(){let e=new u(this.#e),n=new u(this.#e);this.#y=e,this.#v=n,this.#E=(r,i,a=t.now())=>{if(n[r]=i===0?0:a,e[r]=i,i!==0&&this.ttlAutopurge){let e=setTimeout(()=>{this.#D(r)&&this.#B(this.#l[r],`expire`)},i+1);e.unref&&e.unref()}},this.#w=r=>{n[r]=e[r]===0?0:t.now()},this.#T=(t,a)=>{if(e[a]){let o=e[a],s=n[a];if(!o||!s)return;t.ttl=o,t.start=s,t.now=r||i(),t.remainingTTL=o-(t.now-s)}};let r=0,i=()=>{let e=t.now();if(this.ttlResolution>0){r=e;let t=setTimeout(()=>r=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=t=>{let a=this.#c.get(t);if(a===void 0)return 0;let o=e[a],s=n[a];return!o||!s?1/0:o-((r||i())-s)},this.#D=t=>{let a=n[t],o=e[t];return!!o&&!!a&&(r||i())-a>o}}#w=()=>{};#T=()=>{};#E=()=>{};#D=()=>!1;#O(){let e=new u(this.#e);this.#s=0,this.#_=e,this.#k=t=>{this.#s-=e[t],e[t]=0},this.#j=(e,t,n,r)=>{if(this.#L(t))return 0;if(!c(n))if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!c(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`);return n},this.#A=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#s>n;)this.#F(!0)}this.#s+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#s)}}#k=e=>{};#A=(e,t,n)=>{};#j=(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#M({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#m;!(!this.#P(t)||((e||!this.#D(t))&&(yield t),t===this.#p));)t=this.#f[t]}*#N({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#p;!(!this.#P(t)||((e||!this.#D(t))&&(yield t),t===this.#m));)t=this.#d[t]}#P(e){return e!==void 0&&this.#c.get(this.#l[e])===e}*entries(){for(let e of this.#M())this.#u[e]!==void 0&&this.#l[e]!==void 0&&!this.#L(this.#u[e])&&(yield[this.#l[e],this.#u[e]])}*rentries(){for(let e of this.#N())this.#u[e]!==void 0&&this.#l[e]!==void 0&&!this.#L(this.#u[e])&&(yield[this.#l[e],this.#u[e]])}*keys(){for(let e of this.#M()){let t=this.#l[e];t!==void 0&&!this.#L(this.#u[e])&&(yield t)}}*rkeys(){for(let e of this.#N()){let t=this.#l[e];t!==void 0&&!this.#L(this.#u[e])&&(yield t)}}*values(){for(let e of this.#M())this.#u[e]!==void 0&&!this.#L(this.#u[e])&&(yield this.#u[e])}*rvalues(){for(let e of this.#N())this.#u[e]!==void 0&&!this.#L(this.#u[e])&&(yield this.#u[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(e,t={}){for(let n of this.#M()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,this.#l[n],this))return this.get(this.#l[n],t)}}forEach(e,t=this){for(let n of this.#M()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#l[n],this)}}rforEach(e,t=this){for(let n of this.#N()){let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,this.#l[n],this)}}purgeStale(){let e=!1;for(let t of this.#N({allowStale:!0}))this.#D(t)&&(this.#B(this.#l[t],`expire`),e=!0);return e}info(e){let n=this.#c.get(e);if(n===void 0)return;let r=this.#u[n],i=this.#L(r)?r.__staleWhileFetching:r;if(i===void 0)return;let a={value:i};if(this.#y&&this.#v){let e=this.#y[n],r=this.#v[n];e&&r&&(a.ttl=e-(t.now()-r),a.start=Date.now())}return this.#_&&(a.size=this.#_[n]),a}dump(){let e=[];for(let n of this.#M({allowStale:!0})){let r=this.#l[n],i=this.#u[n],a=this.#L(i)?i.__staleWhileFetching:i;if(a===void 0||r===void 0)continue;let o={value:a};if(this.#y&&this.#v){o.ttl=this.#y[n];let e=t.now()-this.#v[n];o.start=Math.floor(Date.now()-e)}this.#_&&(o.size=this.#_[n]),e.unshift([r,o])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let e=Date.now()-r.start;r.start=t.now()-e}this.set(n,r.value,r)}}set(e,t,n={}){if(t===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:s}=n,{noUpdateTTL:c=this.noUpdateTTL}=n,l=this.#j(e,t,n.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set=`miss`,s.maxEntrySizeExceeded=!0),this.#B(e,`set`),this;let u=this.#o===0?void 0:this.#c.get(e);if(u===void 0)u=this.#o===0?this.#m:this.#h.length===0?this.#o===this.#e?this.#F(!1):this.#o:this.#h.pop(),this.#l[u]=e,this.#u[u]=t,this.#c.set(e,u),this.#d[this.#m]=u,this.#f[u]=this.#m,this.#m=u,this.#o++,this.#A(u,l,s),s&&(s.set=`add`),c=!1;else{this.#z(u);let n=this.#u[u];if(t!==n){if(this.#x&&this.#L(n)){n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:t}=n;t!==void 0&&!a&&(this.#b&&this.#n?.(t,e,`set`),this.#S&&this.#g?.push([t,e,`set`]))}else a||(this.#b&&this.#n?.(n,e,`set`),this.#S&&this.#g?.push([n,e,`set`]));if(this.#k(u),this.#A(u,l,s),this.#u[u]=t,s){s.set=`replace`;let e=n&&this.#L(n)?n.__staleWhileFetching:n;e!==void 0&&(s.oldValue=e)}}else s&&(s.set=`update`)}if(r!==0&&!this.#y&&this.#C(),this.#y&&(c||this.#E(u,r,i),s&&this.#T(s,u)),!a&&this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#o;){let e=this.#u[this.#p];if(this.#F(!0),this.#L(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}#F(e){let t=this.#p,n=this.#l[t],r=this.#u[t];return this.#x&&this.#L(r)?r.__abortController.abort(Error(`evicted`)):(this.#b||this.#S)&&(this.#b&&this.#n?.(r,n,`evict`),this.#S&&this.#g?.push([r,n,`evict`])),this.#k(t),e&&(this.#l[t]=void 0,this.#u[t]=void 0,this.#h.push(t)),this.#o===1?(this.#p=this.#m=0,this.#h.length=0):this.#p=this.#d[t],this.#c.delete(n),this.#o--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#c.get(e);if(i!==void 0){let e=this.#u[i];if(this.#L(e)&&e.__staleWhileFetching===void 0)return!1;if(this.#D(i))r&&(r.has=`stale`,this.#T(r,i));else return n&&this.#w(i),r&&(r.has=`hit`,this.#T(r,i)),!0}else r&&(r.has=`miss`);return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#c.get(e);if(r===void 0||!n&&this.#D(r))return;let i=this.#u[r];return this.#L(i)?i.__staleWhileFetching:i}#I(e,t,n,r){let i=t===void 0?void 0:this.#u[t];if(this.#L(i))return i;let o=new a,{signal:s}=n;s?.addEventListener(`abort`,()=>o.abort(s.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:a}=o.signal,s=n.ignoreFetchAbort&&r!==void 0;if(n.status&&(a&&!i?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,s&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),a&&!s&&!i)return d(o.signal.reason);let l=p;return this.#u[t]===p&&(r===void 0?l.__staleWhileFetching?this.#u[t]=l.__staleWhileFetching:this.#B(e,`fetch`):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,c.options))),r},u=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),d(e)),d=r=>{let{aborted:i}=o.signal,a=i&&n.allowStaleOnFetchAbort,s=a||n.allowStaleOnFetchRejection,c=s||n.noDeleteOnFetchRejection,l=p;if(this.#u[t]===p&&(!c||l.__staleWhileFetching===void 0?this.#B(e,`fetch`):a||(this.#u[t]=l.__staleWhileFetching)),s)return n.status&&l.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw r},f=(t,r)=>{let a=this.#i?.(e,i,c);a&&a instanceof Promise&&a.then(e=>t(e===void 0?void 0:e),r),o.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(f).then(l,u),m=Object.assign(p,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.set(e,m,{...c.options,status:void 0}),t=this.#c.get(e)):this.#u[t]=m,m}#L(e){if(!this.#x)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof a}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:h=!1,status:g,signal:v}=t;if(!this.#x)return g&&(g.fetch=`get`),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:g});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:g,signal:v},b=this.#c.get(e);if(b===void 0){g&&(g.fetch=`miss`);let t=this.#I(e,b,y,m);return t.__returned=t}else{let t=this.#u[b];if(this.#L(t)){let e=n&&t.__staleWhileFetching!==void 0;return g&&(g.fetch=`inflight`,e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=this.#D(b);if(!h&&!i)return g&&(g.fetch=`hit`),this.#z(b),r&&this.#w(b),g&&this.#T(g,b),t;let a=this.#I(e,b,y,m),o=a.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=i?`stale`:`refresh`,o&&i&&(g.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}memo(e,t={}){let n=this.#a;if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,forceRefresh:i,...a}=t,o=this.get(e,a);if(!i&&o!==void 0)return o;let s=n(e,o,{options:a,context:r});return this.set(e,s,a),s}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#c.get(e);if(o!==void 0){let t=this.#u[o],s=this.#L(t);return a&&this.#T(a,o),this.#D(o)?(a&&(a.get=`stale`),s?(a&&n&&t.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||this.#B(e,`expire`),a&&n&&(a.returnedStale=!0),n?t:void 0)):(a&&(a.get=`hit`),s?t.__staleWhileFetching:(this.#z(o),r&&this.#w(o),t))}else a&&(a.get=`miss`)}#R(e,t){this.#f[t]=e,this.#d[e]=t}#z(e){e!==this.#m&&(e===this.#p?this.#p=this.#d[e]:this.#R(this.#f[e],this.#d[e]),this.#R(this.#m,e),this.#m=e)}delete(e){return this.#B(e,`delete`)}#B(e,t){let n=!1;if(this.#o!==0){let r=this.#c.get(e);if(r!==void 0)if(n=!0,this.#o===1)this.#V(t);else{this.#k(r);let n=this.#u[r];if(this.#L(n)?n.__abortController.abort(Error(`deleted`)):(this.#b||this.#S)&&(this.#b&&this.#n?.(n,e,t),this.#S&&this.#g?.push([n,e,t])),this.#c.delete(e),this.#l[r]=void 0,this.#u[r]=void 0,r===this.#m)this.#m=this.#f[r];else if(r===this.#p)this.#p=this.#d[r];else{let e=this.#f[r];this.#d[e]=this.#d[r];let t=this.#d[r];this.#f[t]=this.#f[r]}this.#o--,this.#h.push(r)}}if(this.#S&&this.#g?.length){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}return n}clear(){return this.#V(`delete`)}#V(e){for(let t of this.#N({allowStale:!0})){let n=this.#u[t];if(this.#L(n))n.__abortController.abort(Error(`deleted`));else{let r=this.#l[t];this.#b&&this.#n?.(n,r,e),this.#S&&this.#g?.push([n,r,e])}}if(this.#c.clear(),this.#u.fill(void 0),this.#l.fill(void 0),this.#y&&this.#v&&(this.#y.fill(0),this.#v.fill(0)),this.#_&&this.#_.fill(0),this.#p=0,this.#m=0,this.#h.length=0,this.#s=0,this.#o=0,this.#S&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}})),dL=a((e=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;let r=typeof process==`object`&&process?process:{stdout:null,stderr:null},i=t(`node:events`),a=n(t(`node:stream`)),o=t(`node:string_decoder`);e.isStream=t=>!!t&&typeof t==`object`&&(t instanceof oe||t instanceof a.default||(0,e.isReadable)(t)||(0,e.isWritable)(t)),e.isReadable=e=>!!e&&typeof e==`object`&&e instanceof i.EventEmitter&&typeof e.pipe==`function`&&e.pipe!==a.default.Writable.prototype.pipe,e.isWritable=e=>!!e&&typeof e==`object`&&e instanceof i.EventEmitter&&typeof e.write==`function`&&typeof e.end==`function`;let s=Symbol(`EOF`),c=Symbol(`maybeEmitEnd`),l=Symbol(`emittedEnd`),u=Symbol(`emittingEnd`),d=Symbol(`emittedError`),f=Symbol(`closed`),p=Symbol(`read`),m=Symbol(`flush`),h=Symbol(`flushChunk`),g=Symbol(`encoding`),v=Symbol(`decoder`),y=Symbol(`flowing`),b=Symbol(`paused`),x=Symbol(`resume`),S=Symbol(`buffer`),C=Symbol(`pipes`),w=Symbol(`bufferLength`),T=Symbol(`bufferPush`),E=Symbol(`bufferShift`),D=Symbol(`objectMode`),O=Symbol(`destroyed`),k=Symbol(`error`),A=Symbol(`emitData`),j=Symbol(`emitEnd`),M=Symbol(`emitEnd2`),N=Symbol(`async`),P=Symbol(`abort`),F=Symbol(`aborted`),I=Symbol(`signal`),L=Symbol(`dataListeners`),R=Symbol(`discarded`),z=e=>Promise.resolve().then(e),ee=e=>e(),B=e=>e===`end`||e===`finish`||e===`prefinish`,te=e=>e instanceof ArrayBuffer||!!e&&typeof e==`object`&&e.constructor&&e.constructor.name===`ArrayBuffer`&&e.byteLength>=0,ne=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);var V=class{src;dest;opts;ondrain;constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[x](),this.dest.on(`drain`,this.ondrain)}unpipe(){this.dest.removeListener(`drain`,this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},re=class extends V{unpipe(){this.src.removeListener(`error`,this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit(`error`,e),e.on(`error`,this.proxyErrors)}};let ie=e=>!!e.objectMode,ae=e=>!e.objectMode&&!!e.encoding&&e.encoding!==`buffer`;var oe=class extends i.EventEmitter{[y]=!1;[b]=!1;[C]=[];[S]=[];[D];[g];[N];[v];[s]=!1;[l]=!1;[u]=!1;[f]=!1;[d]=null;[w]=0;[O]=!1;[I];[F]=!1;[L]=0;[R]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding==`string`)throw TypeError(`Encoding and objectMode may not be used together`);ie(t)?(this[D]=!0,this[g]=null):ae(t)?(this[g]=t.encoding,this[D]=!1):(this[D]=!1,this[g]=null),this[N]=!!t.async,this[v]=this[g]?new o.StringDecoder(this[g]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[S]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[C]});let{signal:n}=t;n&&(this[I]=n,n.aborted?this[P]():n.addEventListener(`abort`,()=>this[P]()))}get bufferLength(){return this[w]}get encoding(){return this[g]}set encoding(e){throw Error(`Encoding must be set at instantiation time`)}setEncoding(e){throw Error(`Encoding must be set at instantiation time`)}get objectMode(){return this[D]}set objectMode(e){throw Error(`objectMode must be set at instantiation time`)}get async(){return this[N]}set async(e){this[N]=this[N]||!!e}[P](){this[F]=!0,this.emit(`abort`,this[I]?.reason),this.destroy(this[I]?.reason)}get aborted(){return this[F]}set aborted(e){}write(e,t,n){if(this[F])return!1;if(this[s])throw Error(`write after end`);if(this[O])return this.emit(`error`,Object.assign(Error(`Cannot call write after a stream was destroyed`),{code:`ERR_STREAM_DESTROYED`})),!0;typeof t==`function`&&(n=t,t=`utf8`),t||=`utf8`;let r=this[N]?z:ee;if(!this[D]&&!Buffer.isBuffer(e)){if(ne(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(te(e))e=Buffer.from(e);else if(typeof e!=`string`)throw Error(`Non-contiguous data written to non-objectMode stream`)}return this[D]?(this[y]&&this[w]!==0&&this[m](!0),this[y]?this.emit(`data`,e):this[T](e),this[w]!==0&&this.emit(`readable`),n&&r(n),this[y]):e.length?(typeof e==`string`&&!(t===this[g]&&!this[v]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[g]&&(e=this[v].write(e)),this[y]&&this[w]!==0&&this[m](!0),this[y]?this.emit(`data`,e):this[T](e),this[w]!==0&&this.emit(`readable`),n&&r(n),this[y]):(this[w]!==0&&this.emit(`readable`),n&&r(n),this[y])}read(e){if(this[O])return null;if(this[R]=!1,this[w]===0||e===0||e&&e>this[w])return this[c](),null;this[D]&&(e=null),this[S].length>1&&!this[D]&&(this[S]=[this[g]?this[S].join(``):Buffer.concat(this[S],this[w])]);let t=this[p](e||null,this[S][0]);return this[c](),t}[p](e,t){if(this[D])this[E]();else{let n=t;e===n.length||e===null?this[E]():typeof n==`string`?(this[S][0]=n.slice(e),t=n.slice(0,e),this[w]-=e):(this[S][0]=n.subarray(e),t=n.subarray(0,e),this[w]-=e)}return this.emit(`data`,t),!this[S].length&&!this[s]&&this.emit(`drain`),t}end(e,t,n){return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=`utf8`),e!==void 0&&this.write(e,t),n&&this.once(`end`,n),this[s]=!0,this.writable=!1,(this[y]||!this[b])&&this[c](),this}[x](){this[O]||(!this[L]&&!this[C].length&&(this[R]=!0),this[b]=!1,this[y]=!0,this.emit(`resume`),this[S].length?this[m]():this[s]?this[c]():this.emit(`drain`))}resume(){return this[x]()}pause(){this[y]=!1,this[b]=!0,this[R]=!1}get destroyed(){return this[O]}get flowing(){return this[y]}get paused(){return this[b]}[T](e){this[D]?this[w]+=1:this[w]+=e.length,this[S].push(e)}[E](){return this[D]?--this[w]:this[w]-=this[S][0].length,this[S].shift()}[m](e=!1){do;while(this[h](this[E]())&&this[S].length);!e&&!this[S].length&&!this[s]&&this.emit(`drain`)}[h](e){return this.emit(`data`,e),this[y]}pipe(e,t){if(this[O])return e;this[R]=!1;let n=this[l];return t||={},e===r.stdout||e===r.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[C].push(t.proxyErrors?new re(this,e,t):new V(this,e,t)),this[N]?z(()=>this[x]()):this[x]()),e}unpipe(e){let t=this[C].find(t=>t.dest===e);t&&(this[C].length===1?(this[y]&&this[L]===0&&(this[y]=!1),this[C]=[]):this[C].splice(this[C].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if(e===`data`)this[R]=!1,this[L]++,!this[C].length&&!this[y]&&this[x]();else if(e===`readable`&&this[w]!==0)super.emit(`readable`);else if(B(e)&&this[l])super.emit(e),this.removeAllListeners(e);else if(e===`error`&&this[d]){let e=t;this[N]?z(()=>e.call(this,this[d])):e.call(this,this[d])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return e===`data`&&(this[L]=this.listeners(`data`).length,this[L]===0&&!this[R]&&!this[C].length&&(this[y]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return(e===`data`||e===void 0)&&(this[L]=0,!this[R]&&!this[C].length&&(this[y]=!1)),t}get emittedEnd(){return this[l]}[c](){!this[u]&&!this[l]&&!this[O]&&this[S].length===0&&this[s]&&(this[u]=!0,this.emit(`end`),this.emit(`prefinish`),this.emit(`finish`),this[f]&&this.emit(`close`),this[u]=!1)}emit(e,...t){let n=t[0];if(e!==`error`&&e!==`close`&&e!==O&&this[O])return!1;if(e===`data`)return!this[D]&&!n?!1:this[N]?(z(()=>this[A](n)),!0):this[A](n);if(e===`end`)return this[j]();if(e===`close`){if(this[f]=!0,!this[l]&&!this[O])return!1;let e=super.emit(`close`);return this.removeAllListeners(`close`),e}else if(e===`error`){this[d]=n,super.emit(k,n);let e=!this[I]||this.listeners(`error`).length?super.emit(`error`,n):!1;return this[c](),e}else if(e===`resume`){let e=super.emit(`resume`);return this[c](),e}else if(e===`finish`||e===`prefinish`){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[c](),r}[A](e){for(let t of this[C])t.dest.write(e)===!1&&this.pause();let t=this[R]?!1:super.emit(`data`,e);return this[c](),t}[j](){return this[l]?!1:(this[l]=!0,this.readable=!1,this[N]?(z(()=>this[M]()),!0):this[M]())}[M](){if(this[v]){let e=this[v].end();if(e){for(let t of this[C])t.dest.write(e);this[R]||super.emit(`data`,e)}}for(let e of this[C])e.end();let e=super.emit(`end`);return this.removeAllListeners(`end`),e}async collect(){let e=Object.assign([],{dataLength:0});this[D]||(e.dataLength=0);let t=this.promise();return this.on(`data`,t=>{e.push(t),this[D]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[D])throw Error(`cannot concat in objectMode`);let e=await this.collect();return this[g]?e.join(``):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(O,()=>t(Error(`stream destroyed`))),this.on(`error`,e=>t(e)),this.on(`end`,()=>e())})}[Symbol.asyncIterator](){this[R]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[s])return t();let r,i,a=e=>{this.off(`data`,o),this.off(`end`,c),this.off(O,l),t(),i(e)},o=e=>{this.off(`error`,a),this.off(`end`,c),this.off(O,l),this.pause(),r({value:e,done:!!this[s]})},c=()=>{this.off(`error`,a),this.off(`data`,o),this.off(O,l),t(),r({done:!0,value:void 0})},l=()=>a(Error(`stream destroyed`));return new Promise((e,t)=>{i=t,r=e,this.once(O,l),this.once(`error`,a),this.once(`end`,c),this.once(`data`,o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[R]=!1;let e=!1,t=()=>(this.pause(),this.off(k,t),this.off(O,t),this.off(`end`,t),e=!0,{done:!0,value:void 0});return this.once(`end`,t),this.once(k,t),this.once(O,t),{next:()=>{if(e)return t();let n=this.read();return n===null?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[O])return e?this.emit(`error`,e):this.emit(O),this;this[O]=!0,this[R]=!0,this[S].length=0,this[w]=0;let t=this;return typeof t.close==`function`&&!this[f]&&t.close(),e?this.emit(`error`,e):this.emit(O),this}static get isStream(){return e.isStream}};e.Minipass=oe})),fL=a((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.PathScurry=e.Path=e.PathScurryDarwin=e.PathScurryPosix=e.PathScurryWin32=e.PathScurryBase=e.PathPosix=e.PathWin32=e.PathBase=e.ChildrenCache=e.ResolveCache=void 0;let a=uL(),o=t(`node:path`),s=t(`node:url`),c=t(`fs`),l=i(t(`node:fs`)),u=c.realpathSync.native,d=t(`node:fs/promises`),f=dL(),p={lstatSync:c.lstatSync,readdir:c.readdir,readdirSync:c.readdirSync,readlinkSync:c.readlinkSync,realpathSync:u,promises:{lstat:d.lstat,readdir:d.readdir,readlink:d.readlink,realpath:d.realpath}},m=e=>!e||e===p||e===l?p:{...p,...e,promises:{...p.promises,...e.promises||{}}},h=/^\\\\\?\\([a-z]:)\\?$/i,g=e=>e.replace(/\//g,`\\`).replace(h,`$1\\`),v=/[\\\/]/,y=e=>e.isFile()?8:e.isDirectory()?4:e.isSymbolicLink()?10:e.isCharacterDevice()?2:e.isBlockDevice()?6:e.isSocket()?12:+!!e.isFIFO(),b=new Map,x=e=>{let t=b.get(e);if(t)return t;let n=e.normalize(`NFKD`);return b.set(e,n),n},S=new Map,C=e=>{let t=S.get(e);if(t)return t;let n=x(e.toLowerCase());return S.set(e,n),n};var w=class extends a.LRUCache{constructor(){super({max:256})}};e.ResolveCache=w;var T=class extends a.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:e=>e.length+1})}};e.ChildrenCache=T;let E=Symbol(`PathScurry setAsCwd`);var D=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#r;get nlink(){return this.#r}#i;get uid(){return this.#i}#a;get gid(){return this.#a}#o;get rdev(){return this.#o}#s;get blksize(){return this.#s}#c;get ino(){return this.#c}#l;get size(){return this.#l}#u;get blocks(){return this.#u}#d;get atimeMs(){return this.#d}#f;get mtimeMs(){return this.#f}#p;get ctimeMs(){return this.#p}#m;get birthtimeMs(){return this.#m}#h;get atime(){return this.#h}#g;get mtime(){return this.#g}#_;get ctime(){return this.#_}#v;get birthtime(){return this.#v}#y;#b;#x;#S;#C;#w;#T;#E;#D;#O;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=0,n,r,i,a,o){this.name=e,this.#y=i?C(e):x(e),this.#T=t&1023,this.nocase=i,this.roots=r,this.root=n||this,this.#E=a,this.#x=o.fullpath,this.#C=o.relative,this.#w=o.relativePosix,this.parent=o.parent,this.parent?this.#e=this.parent.#e:this.#e=m(o.fs)}depth(){return this.#b===void 0?this.parent?this.#b=this.parent.depth()+1:this.#b=0:this.#b}childrenCache(){return this.#E}resolve(e){if(!e)return this;let t=this.getRootString(e),n=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#k(n):this.#k(n)}#k(e){let t=this;for(let n of e)t=t.child(n);return t}children(){let e=this.#E.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#E.set(this,t),this.#T&=-17,t}child(e,t){if(e===``||e===`.`)return this;if(e===`..`)return this.parent||this;let n=this.children(),r=this.nocase?C(e):x(e);for(let e of n)if(e.#y===r)return e;let i=this.parent?this.sep:``,a=this.#x?this.#x+i+e:void 0,o=this.newChild(e,0,{...t,parent:this,fullpath:a});return this.canReaddir()||(o.#T|=128),n.push(o),o}relative(){if(this.isCWD)return``;if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.name;let n=t.relative();return n+(!n||!t.parent?``:this.sep)+e}relativePosix(){if(this.sep===`/`)return this.relative();if(this.isCWD)return``;if(this.#w!==void 0)return this.#w;let e=this.name,t=this.parent;if(!t)return this.#w=this.fullpathPosix();let n=t.relativePosix();return n+(!n||!t.parent?``:`/`)+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let n=t.fullpath()+(t.parent?this.sep:``)+e;return this.#x=n}fullpathPosix(){if(this.#S!==void 0)return this.#S;if(this.sep===`/`)return this.#S=this.fullpath();if(!this.parent){let e=this.fullpath().replace(/\\/g,`/`);return/^[a-z]:\//i.test(e)?this.#S=`//?/${e}`:this.#S=e}let e=this.parent,t=e.fullpathPosix(),n=t+(!t||!e.parent?``:`/`)+this.name;return this.#S=n}isUnknown(){return(this.#T&15)==0}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?`Unknown`:this.isDirectory()?`Directory`:this.isFile()?`File`:this.isSymbolicLink()?`SymbolicLink`:this.isFIFO()?`FIFO`:this.isCharacterDevice()?`CharacterDevice`:this.isBlockDevice()?`BlockDevice`:this.isSocket()?`Socket`:`Unknown`}isFile(){return(this.#T&15)==8}isDirectory(){return(this.#T&15)==4}isCharacterDevice(){return(this.#T&15)==2}isBlockDevice(){return(this.#T&15)==6}isFIFO(){return(this.#T&15)==1}isSocket(){return(this.#T&15)==12}isSymbolicLink(){return(this.#T&10)==10}lstatCached(){return this.#T&32?this:void 0}readlinkCached(){return this.#D}realpathCached(){return this.#O}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#D)return!0;if(!this.parent)return!1;let e=this.#T&15;return!(e!==0&&e!==10||this.#T&256||this.#T&128)}calledReaddir(){return!!(this.#T&16)}isENOENT(){return!!(this.#T&128)}isNamed(e){return this.nocase?this.#y===C(e):this.#y===x(e)}async readlink(){let e=this.#D;if(e)return e;if(this.canReadlink()&&this.parent)try{let e=await this.#e.promises.readlink(this.fullpath()),t=(await this.parent.realpath())?.resolve(e);if(t)return this.#D=t}catch(e){this.#L(e.code);return}}readlinkSync(){let e=this.#D;if(e)return e;if(this.canReadlink()&&this.parent)try{let e=this.#e.readlinkSync(this.fullpath()),t=this.parent.realpathSync()?.resolve(e);if(t)return this.#D=t}catch(e){this.#L(e.code);return}}#A(e){this.#T|=16;for(let t=e.provisional;tt(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let n=this.children();if(this.calledReaddir()){let r=n.slice(0,n.provisional);t?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#U.push(e),this.#W)return;this.#W=!0;let r=this.fullpath();this.#e.readdir(r,{withFileTypes:!0},(e,t)=>{if(e)this.#F(e.code),n.provisional=0;else{for(let e of t)this.#R(e,n);this.#A(n)}this.#G(n.slice(0,n.provisional))})}#K;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#K)await this.#K;else{let n=()=>{};this.#K=new Promise(e=>n=e);try{for(let n of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#R(n,e);this.#A(e)}catch(t){this.#F(t.code),e.provisional=0}this.#K=void 0,n()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let n of this.#e.readdirSync(t,{withFileTypes:!0}))this.#R(n,e);this.#A(e)}catch(t){this.#F(t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#T&704)return!1;let e=15&this.#T;return e===0||e===4||e===10}shouldWalk(e,t){return(this.#T&4)==4&&!(this.#T&704)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#O)return this.#O;if(!(896&this.#T))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#O=this.resolve(e)}catch{this.#N()}}realpathSync(){if(this.#O)return this.#O;if(!(896&this.#T))try{let e=this.#e.realpathSync(this.fullpath());return this.#O=this.resolve(e)}catch{this.#N()}}[E](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),n=[],r=this;for(;r&&r.parent;)t.add(r),r.#C=n.join(this.sep),r.#w=n.join(`/`),r=r.parent,n.push(`..`);for(r=e;r&&r.parent&&!t.has(r);)r.#C=void 0,r.#w=void 0,r=r.parent}};e.PathBase=D;var O=class e extends D{sep=`\\`;splitSep=v;constructor(e,t=0,n,r,i,a,o){super(e,t,n,r,i,a,o)}newChild(t,n=0,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return o.win32.parse(e).root}getRoot(e){if(e=g(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,n]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=n;return this.roots[e]=new j(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,`\\`).replace(h,`$1\\`),e===t}};e.PathWin32=O;var k=class e extends D{splitSep=`/`;sep=`/`;constructor(e,t=0,n,r,i,a,o){super(e,t,n,r,i,a,o)}getRootString(e){return e.startsWith(`/`)?`/`:``}getRoot(e){return this.root}newChild(t,n=0,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};e.PathPosix=k;var A=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#r;constructor(e=process.cwd(),t,n,{nocase:r,childrenCacheSize:i=16*1024,fs:a=p}={}){this.#r=m(a),(e instanceof URL||e.startsWith(`file://`))&&(e=(0,s.fileURLToPath)(e));let o=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#e=new w,this.#t=new w,this.#n=new T(i);let c=o.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),r===void 0)throw TypeError(`must provide nocase setting to PathScurryBase ctor`);this.nocase=r,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let l=this.root,u=c.length-1,d=t.sep,f=this.rootPath,h=!1;for(let e of c){let t=u--;l=l.child(e,{relative:Array(t).fill(`..`).join(d),relativePosix:Array(t).fill(`..`).join(`/`),fullpath:f+=(h?``:d)+e}),h=!0}this.cwd=l}depth(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=this.#e.get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpath();return this.#e.set(t,r),r}resolvePosix(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=this.#t.get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,r),r}relative(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n}=t;if(e.canReaddir()){let t=await e.readdir();return n?t:t.map(e=>e.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0}=t;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(e=>e.name):[]}async lstat(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=await e.readlink();return t?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return t?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=await e.realpath();return t?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return t?n:n?.fullpath()}async walk(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set,c=(e,t)=>{s.add(e),e.readdirCB((e,l)=>{if(e)return t(e);let u=l.length;if(!u)return t();let d=()=>{--u===0&&t()};for(let e of l)(!i||i(e))&&o.push(n?e:e.fullpath()),r&&e.isSymbolicLink()?e.realpath().then(e=>e?.isUnknown()?e.lstat():e).then(e=>e?.shouldWalk(s,a)?c(e,d):d()):e.shouldWalk(s,a)?c(e,d):d()},!0)},l=e;return new Promise((e,t)=>{c(l,n=>{if(n)return t(n);e(o)})})}walkSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set([e]);for(let e of s){let t=e.readdirSync();for(let e of t){(!i||i(e))&&o.push(n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&s.add(t)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t;(!i||i(e))&&(yield n?e:e.fullpath());let o=new Set([e]);for(let e of o){let t=e.readdirSync();for(let e of t){(!i||i(e))&&(yield n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,a)&&o.add(t)}}}stream(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new f.Minipass({objectMode:!0});(!i||i(e))&&o.write(n?e:e.fullpath());let s=new Set,c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let d=(t,p,m=!1)=>{if(t)return o.emit(`error`,t);if(r&&!m){let e=[];for(let t of p)t.isSymbolicLink()&&e.push(t.realpath().then(e=>e?.isUnknown()?e.lstat():e));if(e.length){Promise.all(e).then(()=>d(null,p,!0));return}}for(let t of p)t&&(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of p){let t=e.realpathCached()||e;t.shouldWalk(s,a)&&c.push(t)}e&&!o.flowing?o.once(`drain`,u):f||u()},f=!0;t.readdirCB(d,!0),f=!1}};return u(),o}streamSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new f.Minipass({objectMode:!0}),s=new Set;(!i||i(e))&&o.write(n?e:e.fullpath());let c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let u=t.readdirSync();for(let t of u)(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of u){let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&c.push(t)}}e&&!o.flowing&&o.once(`drain`,u)};return u(),o}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e==`string`?this.cwd.resolve(e):e,this.cwd[E](t)}};e.PathScurryBase=A;var j=class extends A{sep=`\\`;constructor(e=process.cwd(),t={}){let{nocase:n=!0}=t;super(e,o.win32,`\\`,{...t,nocase:n}),this.nocase=n;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return o.win32.parse(e).root.toUpperCase()}newRoot(e){return new O(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)||e.startsWith(`\\`)||/^[a-z]:(\/|\\)/i.test(e)}};e.PathScurryWin32=j;var M=class extends A{sep=`/`;constructor(e=process.cwd(),t={}){let{nocase:n=!1}=t;super(e,o.posix,`/`,{...t,nocase:n}),this.nocase=n}parseRootPath(e){return`/`}newRoot(e){return new k(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)}};e.PathScurryPosix=M;var N=class extends M{constructor(e=process.cwd(),t={}){let{nocase:n=!0}=t;super(e,{...t,nocase:n})}};e.PathScurryDarwin=N,e.Path=process.platform===`win32`?O:k,e.PathScurry=process.platform===`win32`?j:process.platform===`darwin`?N:M})),pL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;let t=lL(),n=e=>e.length>=1,r=e=>e.length>=1;e.Pattern=class e{#e;#t;#n;length;#r;#i;#a;#o;#s;#c;#l=!0;constructor(e,t,i,a){if(!n(e))throw TypeError(`empty pattern list`);if(!r(t))throw TypeError(`empty glob list`);if(t.length!==e.length)throw TypeError(`mismatched pattern list and glob list lengths`);if(this.length=e.length,i<0||i>=this.length)throw TypeError(`index out of range`);if(this.#e=e,this.#t=t,this.#n=i,this.#r=a,this.#n===0){if(this.isUNC()){let[e,t,n,r,...i]=this.#e,[a,o,s,c,...l]=this.#t;i[0]===``&&(i.shift(),l.shift());let u=[e,t,n,r,``].join(`/`),d=[a,o,s,c,``].join(`/`);this.#e=[u,...i],this.#t=[d,...l],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[e,...t]=this.#e,[n,...r]=this.#t;t[0]===``&&(t.shift(),r.shift());let i=e+`/`,a=n+`/`;this.#e=[i,...t],this.#t=[a,...r],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]==`string`}isGlobstar(){return this.#e[this.#n]===t.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#a=this.#a||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join(`/`):this.#t.join(`/`):this.#t.slice(this.#n).join(`/`))}hasMore(){return this.length>this.#n+1}rest(){return this.#i===void 0?this.hasMore()?(this.#i=new e(this.#e,this.#t,this.#n+1,this.#r),this.#i.#c=this.#c,this.#i.#s=this.#s,this.#i.#o=this.#o,this.#i):this.#i=null:this.#i}isUNC(){let e=this.#e;return this.#s===void 0?this.#s=this.#r===`win32`&&this.#n===0&&e[0]===``&&e[1]===``&&typeof e[2]==`string`&&!!e[2]&&typeof e[3]==`string`&&!!e[3]:this.#s}isDrive(){let e=this.#e;return this.#o===void 0?this.#o=this.#r===`win32`&&this.#n===0&&this.length>1&&typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]):this.#o}isAbsolute(){let e=this.#e;return this.#c===void 0?this.#c=e[0]===``&&e.length>1||this.isDrive()||this.isUNC():this.#c}root(){let e=this.#e[0];return typeof e==`string`&&this.isAbsolute()&&this.#n===0?e:``}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}}})),mL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;let t=lL(),n=pL(),r=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:n,noext:i,noglobstar:a,platform:o=r}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:n,noext:i,noglobstar:a,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let t of e)this.add(t)}add(e){let r=new t.Minimatch(e,this.mmopts);for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;let t=lL();var n=class e{store;constructor(e=new Map){this.store=e}copy(){return new e(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let n=e.fullpath(),r=this.store.get(n);r?r.add(t.globString()):this.store.set(n,new Set([t.globString()]))}};e.HasWalkedCache=n;var r=class{store=new Map;add(e,t,n){let r=(t?2:0)|!!n,i=this.store.get(e);this.store.set(e,i===void 0?r:r&i)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}};e.MatchRecord=r;var i=class{store=new Map;add(e,t){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(e=>e.globString()===t.globString())||n.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw Error(`attempting to walk unknown path`);return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};e.SubWalks=i,e.Processor=class e{hasWalkedCache;matches=new r;subwalks=new i;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new n}processPatterns(e,n){this.patterns=n;let r=n.map(t=>[e,t]);for(let[e,n]of r){this.hasWalkedCache.storeWalked(e,n);let r=n.root(),i=n.isAbsolute()&&this.opts.absolute!==!1;if(r){e=e.resolve(r===`/`&&this.opts.root!==void 0?this.opts.root:r);let t=n.rest();if(t)n=t;else{this.matches.add(e,!0,!1);continue}}if(e.isENOENT())continue;let a,o,s=!1;for(;typeof(a=n.pattern())==`string`&&(o=n.rest());)e=e.resolve(a),n=o,s=!0;if(a=n.pattern(),o=n.rest(),s){if(this.hasWalkedCache.hasWalked(e,n))continue;this.hasWalkedCache.storeWalked(e,n)}if(typeof a==`string`){let t=a===`..`||a===``||a===`.`;this.matches.add(e.resolve(a),i,t);continue}else if(a===t.GLOBSTAR){(!e.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(e,n);let t=o?.pattern(),r=o?.rest();if(!o||(t===``||t===`.`)&&!r)this.matches.add(e,i,t===``||t===`.`);else if(t===`..`){let t=e.parent||e;r?this.hasWalkedCache.hasWalked(t,r)||this.subwalks.add(t,r):this.matches.add(t,i,!0)}}else a instanceof RegExp&&this.subwalks.add(e,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let e of n)for(let n of r){let r=n.isAbsolute(),a=n.pattern(),o=n.rest();a===t.GLOBSTAR?i.testGlobstar(e,n,o,r):a instanceof RegExp?i.testRegExp(e,a,o,r):i.testString(e,a,o,r)}return i}testGlobstar(e,t,n,r){if((this.dot||!e.name.startsWith(`.`))&&(t.hasMore()||this.matches.add(e,r,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(n&&t.checkFollowGlobstar()?this.subwalks.add(e,n):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),n){let t=n.pattern();if(typeof t==`string`&&t!==`..`&&t!==``&&t!==`.`)this.testString(e,t,n.rest(),r);else if(t===`..`){let t=e.parent||e;this.subwalks.add(t,n)}else t instanceof RegExp&&this.testRegExp(e,t,n.rest(),r)}}testRegExp(e,t,n,r){t.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}testString(e,t,n,r){e.isNamed(t)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}}})),gL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;let t=dL(),n=mL(),r=hL(),i=(e,t)=>typeof e==`string`?new n.Ignore([e],t):Array.isArray(e)?new n.Ignore(e,t):e;var a=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,t,n){if(this.patterns=e,this.path=t,this.opts=n,this.#n=!n.posix&&n.platform===`win32`?`\\`:`/`,this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#t=i(n.ignore??[],n),!this.includeChildMatches&&typeof this.#t.add!=`function`))throw Error(`cannot ignore child matches, ignore lacks add() method.`);this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener(`abort`,()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#i(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=await r.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=r.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let t=`${e.relativePosix()}/**`;this.#t.add(t)}let n=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let r=this.opts.mark&&e.isDirectory()?this.#n:``;if(this.opts.withFileTypes)this.matchEmit(e);else if(n){let t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+r)}else{let t=this.opts.posix?e.relativePosix():e.relative(),n=this.opts.dotRelative&&!t.startsWith(`..`+this.#n)?`.`+this.#n:``;this.matchEmit(t?n+t+r:`.`+r)}}async match(e,t,n){let r=await this.matchCheck(e,n);r&&this.matchFinish(r,t)}matchSync(e,t,n){let r=this.matchCheckSync(e,n);r&&this.matchFinish(r,t)}walkCB(e,t,n){this.signal?.aborted&&n(),this.walkCB2(e,t,new r.Processor(this.opts),n)}walkCB2(e,t,n,r){if(this.#i(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2(e,t,n,r));return}n.processPatterns(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||(i++,this.match(e,t,r).then(()=>a()));for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,n,a):e.readdirCB((t,r)=>this.walkCB3(e,r,n,a),!0)}a()}walkCB3(e,t,n,r){n=n.filterEntries(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||(i++,this.match(e,t,r).then(()=>a()));for(let[e,t]of n.subwalks.entries())i++,this.walkCB2(e,t,n.child(),a);a()}walkCBSync(e,t,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,t,new r.Processor(this.opts),n)}walkCB2Sync(e,t,n,r){if(this.#i(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,n,r));return}n.processPatterns(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||this.matchSync(e,t,r);for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;let t=e.readdirSync();this.walkCB3Sync(e,t,n,a)}a()}walkCB3Sync(e,t,n,r){n=n.filterEntries(e,t);let i=1,a=()=>{--i===0&&r()};for(let[e,t,r]of n.matches.entries())this.#r(e)||this.matchSync(e,t,r);for(let[e,t]of n.subwalks.entries())i++,this.walkCB2Sync(e,t,n.child(),a);a()}};e.GlobUtil=a,e.GlobWalker=class extends a{matches=new Set;constructor(e,t,n){super(e,t,n)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},e.GlobStream=class extends a{results;constructor(e,n,r){super(e,n,r),this.results=new t.Minipass({signal:this.signal,objectMode:!0}),this.results.on(`drain`,()=>this.resume()),this.results.on(`resume`,()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}})),_L=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;let n=lL(),r=t(`node:url`),i=fL(),a=pL(),o=gL(),s=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Glob=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw TypeError(`glob options required`);if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith(`file://`))&&(t.cwd=(0,r.fileURLToPath)(t.cwd)):this.cwd=``,this.cwd=t.cwd||``,this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw Error(`cannot set absolute and withFileTypes:true`);if(typeof e==`string`&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(e=>e.replace(/\\/g,`/`))),this.matchBase){if(t.noglobstar)throw TypeError(`base matching requires globstar`);e=e.map(e=>e.includes(`/`)?e:`./**/${e}`)}if(this.pattern=e,this.platform=t.platform||s,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw Error(`nocase option contradicts provided scurry option`)}else{let e=t.platform===`win32`?i.PathScurryWin32:t.platform===`darwin`?i.PathScurryDarwin:t.platform?i.PathScurryPosix:i.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let o=this.platform===`darwin`||this.platform===`win32`,c={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:o,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[l,u]=this.pattern.map(e=>new n.Minimatch(e,c)).reduce((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e),[[],[]]);this.patterns=l.map((e,t)=>{let n=u[t];if(!n)throw Error(`invalid pattern object`);return new a.Pattern(e,n,0,this.platform)})}async walk(){return[...await new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new o.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new o.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}})),vL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;let t=lL();e.hasMagic=(e,n={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new t.Minimatch(r,n).hasMagic())return!0;return!1}})),yL=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.glob=e.sync=e.iterate=e.iterateSync=e.stream=e.streamSync=e.Ignore=e.hasMagic=e.Glob=e.unescape=e.escape=void 0,e.globStreamSync=c,e.globStream=l,e.globSync=u,e.globIterateSync=f,e.globIterate=p;let t=lL(),n=_L(),r=vL();var i=lL();Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return i.unescape}});var a=_L();Object.defineProperty(e,"Glob",{enumerable:!0,get:function(){return a.Glob}});var o=vL();Object.defineProperty(e,"hasMagic",{enumerable:!0,get:function(){return o.hasMagic}});var s=mL();Object.defineProperty(e,"Ignore",{enumerable:!0,get:function(){return s.Ignore}});function c(e,t={}){return new n.Glob(e,t).streamSync()}function l(e,t={}){return new n.Glob(e,t).stream()}function u(e,t={}){return new n.Glob(e,t).walkSync()}async function d(e,t={}){return new n.Glob(e,t).walk()}function f(e,t={}){return new n.Glob(e,t).iterateSync()}function p(e,t={}){return new n.Glob(e,t).iterate()}e.streamSync=c,e.stream=Object.assign(l,{sync:c}),e.iterateSync=f,e.iterate=Object.assign(p,{sync:f}),e.sync=Object.assign(u,{stream:c,iterate:f}),e.glob=Object.assign(d,{glob:d,globSync:u,sync:e.sync,globStream:l,stream:e.stream,globStreamSync:c,streamSync:e.streamSync,globIterate:p,iterate:e.iterate,globIterateSync:f,iterateSync:e.iterateSync,Glob:n.Glob,hasMagic:r.hasMagic,escape:t.escape,unescape:t.unescape}),e.glob.glob=e.glob})),bL=a(((e,n)=>{var r=yP(),i=t(`path`),a=dI(),o=JI(),s=eL(),c=rL(),l=yL(),u=n.exports={},d=/[\/\\]/g,f=function(e,t){var n=[];return a(e).forEach(function(e){var r=e.indexOf(`!`)===0;r&&(e=e.slice(1));var i=t(e);n=r?o(n,i):s(n,i)}),n};u.exists=function(){var e=i.join.apply(i,arguments);return r.existsSync(e)},u.expand=function(...e){var t=c(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var a=f(n,function(e){return l.sync(e,t)});return t.filter&&(a=a.filter(function(e){e=i.join(t.cwd||``,e);try{return typeof t.filter==`function`?t.filter(e):r.statSync(e)[t.filter]()}catch{return!1}})),a},u.expandMapping=function(e,t,n){n=Object.assign({rename:function(e,t){return i.join(e||``,t)}},n);var r=[],a={};return u.expand(n,e).forEach(function(e){var o=e;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(t,o,n);n.cwd&&(e=i.join(n.cwd,e)),s=s.replace(d,`/`),e=e.replace(d,`/`),a[s]?a[s].src.push(e):(r.push({src:[e],dest:s}),a[s]=r[r.length-1])}),r},u.normalizeFilesArray=function(e){var t=[];return e.forEach(function(e){(`src`in e||`dest`in e)&&t.push(e)}),t.length===0?[]:(t=_(t).chain().forEach(function(e){!(`src`in e)||!e.src||(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])}).map(function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map(function(t){var n=Object.assign({},e);return n.orig=Object.assign({},e),n.src=t.src,n.dest=t.dest,[`expand`,`cwd`,`flatten`,`rename`,`ext`].forEach(function(e){delete n[e]}),n});var n=Object.assign({},e);return n.orig=Object.assign({},e),`src`in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function n(){var r;return`result`in n||(r=e.src,r=Array.isArray(r)?a(r):[r],n.result=u.expand(t,r)),n.result}}),`dest`in n&&(n.dest=e.dest),n}).flatten().value(),t)}})),xL=a(((e,n)=>{var r=yP(),i=t(`path`),a=bP(),o=zP(),s=BP(),c=jF();t(`stream`).Stream;var l=sI().PassThrough,u=n.exports={};u.file=bL(),u.collectStream=function(e,t){var n=[],r=0;e.on(`error`,t),e.on(`data`,function(e){n.push(e),r+=e.length}),e.on(`end`,function(){var e=Buffer.alloc(r),i=0;n.forEach(function(t){t.copy(e,i),i+=t.length}),t(null,e)})},u.dateify=function(e){return e||=new Date,e=e instanceof Date?e:typeof e==`string`?new Date(e):new Date,e},u.defaults=function(e,t,n){var r=arguments;return r[0]=r[0]||{},c(...r)},u.isStream=function(e){return a(e)},u.lazyReadStream=function(e){return new o.Readable(function(){return r.createReadStream(e)})},u.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e==`string`?Buffer.from(e):u.isStream(e)?e.pipe(new l):e},u.sanitizePath=function(e){return s(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``)},u.trailingSlashIt=function(e){return e.slice(-1)===`/`?e:e+`/`},u.unixifyPath=function(e){return s(e,!1).replace(/^\w+:/,``)},u.walkdir=function(e,t,n){var a=[];typeof t==`function`&&(n=t,t=e),r.readdir(e,function(o,s){var c=0,l,d;if(o)return n(o);(function o(){if(l=s[c++],!l)return n(null,a);d=i.join(e,l),r.stat(d,function(e,r){a.push({path:d,relative:i.relative(t,d).replace(/\\/g,`/`),stats:r}),r&&r.isDirectory()?u.walkdir(d,t,function(e,t){if(e)return n(e);t.forEach(function(e){a.push(e)}),o()}):o()})})()})}})),SL=a(((e,n)=>{ +/** +* Archiver Core +* +* @ignore +* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} +* @copyright (c) 2012-2014 Chris Talkington, contributors. +*/ +var r=t(`util`);let i={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 a(e,t){Error.captureStackTrace(this,this.constructor),this.message=i[e]||e,this.code=e,this.data=t}r.inherits(a,Error),e=n.exports=a})),CL=a(((e,n)=>{ +/** +* Archiver Core +* +* @ignore +* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} +* @copyright (c) 2012-2014 Chris Talkington, contributors. +*/ +var r=t(`fs`),i=mP(),a=hP(),o=t(`path`),s=xL(),c=t(`util`).inherits,l=SL(),u=sI().Transform,d=process.platform===`win32`,f=function(e,t){if(!(this instanceof f))return new f(e,t);typeof e!=`string`&&(t=e,e=`zip`),t=this.options=s.defaults(t,{highWaterMark:1024*1024,statConcurrency:4}),u.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=a.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=a.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,u),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(e,t){t||={};var n={source:null,filepath:e};t.name||=e,t.sourcePath=e,n.data=t,this._entriesCount++,t.stats&&t.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,t.stats),n&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(n))):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1},f.prototype._moduleAppend=function(e,t,n){if(this._state.aborted){n();return}this._module.append(e,t,function(e){if(this._task=null,this._state.aborted){this._shutdown();return}if(e){this.emit(`error`,e),setImmediate(n);return}this.emit(`entry`,t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit(`progress`,{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))},f.prototype._moduleFinalize=function(){typeof this._module.finalize==`function`?this._module.finalize():typeof this._module.end==`function`?this._module.end():this.emit(`error`,new l(`NOENDMETHOD`))},f.prototype._modulePipe=function(){this._module.on(`error`,this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(e){return!this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(e,t){e=s.defaults(e,{type:`file`,name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&e.stats===!1&&(e.stats=t);var n=e.type===`directory`;return e.name&&(typeof e.prefix==`string`&&e.prefix!==``&&(e.name=e.prefix+`/`+e.name,e.prefix=null),e.name=s.sanitizePath(e.name),e.type!==`symlink`&&e.name.slice(-1)===`/`?(n=!0,e.type=`directory`):n&&(e.name+=`/`)),typeof e.mode==`number`?d?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(d?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,d&&n&&(e.mode=493)):e.mode===null&&(e.mode=n?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=s.dateify(e.date),e},f.prototype._onModuleError=function(e){this.emit(`error`,e)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(e,t){var n=()=>{e.data.callback&&e.data.callback(),t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=e,this._moduleAppend(e.source,e.data,n)},f.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}r.lstat(e.filepath,function(n,r){if(this._state.aborted){setImmediate(t);return}if(n){this._entriesCount--,this.emit(`warning`,n),setImmediate(t);return}e=this._updateQueueTaskWithStats(e,r),e&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(e)),setImmediate(t)}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(e,t,n){e&&(this._pointer+=e.length),n(null,e)},f.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type=`file`,e.data.sourceType=`stream`,e.source=s.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports(`directory`))e.data.name=s.trailingSlashIt(e.data.name),e.data.type=`directory`,e.data.sourcePath=s.trailingSlashIt(e.filepath),e.data.sourceType=`buffer`,e.source=Buffer.concat([]);else if(t.isSymbolicLink()&&this._moduleSupports(`symlink`)){var n=r.readlinkSync(e.filepath),i=o.dirname(e.filepath);e.data.type=`symlink`,e.data.linkname=o.relative(i,o.resolve(i,n)),e.data.sourceType=`buffer`,e.source=Buffer.concat([])}else return t.isDirectory()?this.emit(`warning`,new l(`DIRECTORYNOTSUPPORTED`,e.data)):t.isSymbolicLink()?this.emit(`warning`,new l(`SYMLINKNOTSUPPORTED`,e.data)):this.emit(`warning`,new l(`ENTRYNOTSUPPORTED`,e.data)),null;return e.data=this._normalizeEntryData(e.data,t),e},f.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},f.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(t=this._normalizeEntryData(t),typeof t.name!=`string`||t.name.length===0)return this.emit(`error`,new l(`ENTRYNAMEREQUIRED`)),this;if(t.type===`directory`&&!this._moduleSupports(`directory`))return this.emit(`error`,new l(`DIRECTORYNOTSUPPORTED`,{name:t.name})),this;if(e=s.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType=`buffer`;else if(s.isStream(e))t.sourceType=`stream`;else return this.emit(`error`,new l(`INPUTSTEAMBUFFERREQUIRED`,{name:t.name})),this;return this._entriesCount++,this._queue.push({data:t,source:e}),this},f.prototype.directory=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`DIRECTORYDIRPATHREQUIRED`)),this;this._pending++,t===!1?t=``:typeof t!=`string`&&(t=e);var r=!1;typeof n==`function`?(r=n,n={}):typeof n!=`object`&&(n={});var a={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function s(e){this.emit(`error`,e)}function c(i){u.pause();var a=!1,o=Object.assign({},n);o.name=i.relative,o.prefix=t,o.stats=i.stat,o.callback=u.resume.bind(u);try{if(r){if(o=r(o),o===!1)a=!0;else if(typeof o!=`object`)throw new l(`DIRECTORYFUNCTIONINVALIDDATA`,{dirpath:e})}}catch(e){this.emit(`error`,e);return}if(a){u.resume();return}this._append(i.absolute,o)}var u=i(e,a);return u.on(`error`,s.bind(this)),u.on(`match`,c.bind(this)),u.on(`end`,o.bind(this)),this},f.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit(`error`,new l(`QUEUECLOSED`)),this):typeof e!=`string`||e.length===0?(this.emit(`error`,new l(`FILEFILEPATHREQUIRED`)),this):(this._append(e,t),this)},f.prototype.glob=function(e,t,n){this._pending++,t=s.defaults(t,{stat:!0,pattern:e});function r(){this._pending--,this._maybeFinalize()}function a(e){this.emit(`error`,e)}function o(e){c.pause();var t=Object.assign({},n);t.callback=c.resume.bind(c),t.stats=e.stat,t.name=e.relative,this._append(e.absolute,t)}var c=i(t.cwd||`.`,t);return c.on(`error`,a.bind(this)),c.on(`match`,o.bind(this)),c.on(`end`,r.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted){var e=new l(`ABORTED`);return this.emit(`error`,e),Promise.reject(e)}if(this._state.finalize){var t=new l(`FINALIZING`);return this.emit(`error`,t),Promise.reject(t)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(e,t){var r;n._module.on(`end`,function(){r||e()}),n._module.on(`error`,function(e){r=!0,t(e)})})},f.prototype.setFormat=function(e){return this._format?(this.emit(`error`,new l(`FORMATSET`)),this):(this._format=e,this)},f.prototype.setModule=function(e){return this._state.aborted?(this.emit(`error`,new l(`ABORTED`)),this):this._state.module?(this.emit(`error`,new l(`MODULESET`)),this):(this._module=e,this._modulePipe(),this)},f.prototype.symlink=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`SYMLINKFILEPATHREQUIRED`)),this;if(typeof t!=`string`||t.length===0)return this.emit(`error`,new l(`SYMLINKTARGETREQUIRED`,{filepath:e})),this;if(!this._moduleSupports(`symlink`))return this.emit(`error`,new l(`SYMLINKNOTSUPPORTED`,{filepath:e})),this;var r={};return r.type=`symlink`,r.name=e.replace(/\\/g,`/`),r.linkname=t.replace(/\\/g,`/`),r.sourceType=`buffer`,typeof n==`number`&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(e){return this._streams.push(e),this},n.exports=f})),wL=a(((e,t)=>{var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}})),TL=a(((e,t)=>{var n=t.exports={};n.dateToDos=function(e,t){t||=!1;var n=t?e.getFullYear():e.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2},n.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)},n.fromDosTime=function(e){return n.dosToDate(e.readUInt32LE(0))},n.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},n.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((e&65535)>>>0,0),t},n.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},n.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((e&4294967295)>>>0,0),t},n.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},n.toDosTime=function(e){return n.getLongBytes(n.dateToDos(e))}})),EL=a(((e,t)=>{var n=TL(),r=8,i=1,a=4,o=2,s=64,c=2048,l=t.exports=function(){return this instanceof l?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new l};l.prototype.encode=function(){return n.getShortBytes((this.descriptor?r:0)|(this.utf8?c:0)|(this.encryption?i:0)|(this.strongEncryption?s:0))},l.prototype.parse=function(e,t){var u=n.getShortBytesValue(e,t),d=new l;return d.useDataDescriptor((u&r)!==0),d.useUTF8ForNames((u&c)!==0),d.useStrongEncryption((u&s)!==0),d.useEncryption((u&i)!==0),d.setSlidingDictionarySize((u&o)===0?4096:8192),d.setNumberOfShannonFanoTrees((u&a)===0?2:3),d},l.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},l.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},l.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},l.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},l.prototype.useDataDescriptor=function(e){this.descriptor=e},l.prototype.usesDataDescriptor=function(){return this.descriptor},l.prototype.useEncryption=function(e){this.encryption=e},l.prototype.usesEncryption=function(){return this.encryption},l.prototype.useStrongEncryption=function(e){this.strongEncryption=e},l.prototype.usesStrongEncryption=function(){return this.strongEncryption},l.prototype.useUTF8ForNames=function(e){this.utf8=e},l.prototype.usesUTF8ForNames=function(){return this.utf8}})),DL=a(((e,t)=>{t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}})),OL=a(((e,t)=>{t.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from([,,]),LONG:4,LONG_ZERO:Buffer.from([,,,,]),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}})),kL=a(((e,n)=>{var r=t(`util`).inherits,i=BP(),a=wL(),o=EL(),s=DL(),c=OL(),l=TL(),u=n.exports=function(e){if(!(this instanceof u))return new u(e);a.call(this),this.platform=c.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new o,this.crc=0,this.time=-1,this.minver=c.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};r(u,a),u.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},u.prototype.getComment=function(){return this.comment===null?``:this.comment},u.prototype.getCompressedSize=function(){return this.csize},u.prototype.getCrc=function(){return this.crc},u.prototype.getExternalAttributes=function(){return this.exattr},u.prototype.getExtra=function(){return this.extra===null?c.EMPTY:this.extra},u.prototype.getGeneralPurposeBit=function(){return this.gpb},u.prototype.getInternalAttributes=function(){return this.inattr},u.prototype.getLastModifiedDate=function(){return this.getTime()},u.prototype.getLocalFileDataExtra=function(){return this.getExtra()},u.prototype.getMethod=function(){return this.method},u.prototype.getName=function(){return this.name},u.prototype.getPlatform=function(){return this.platform},u.prototype.getSize=function(){return this.size},u.prototype.getTime=function(){return this.time===-1?-1:l.dosToDate(this.time)},u.prototype.getTimeDos=function(){return this.time===-1?0:this.time},u.prototype.getUnixMode=function(){return this.platform===c.PLATFORM_UNIX?this.getExternalAttributes()>>c.SHORT_SHIFT&c.SHORT_MASK:0},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},u.prototype.setCompressedSize=function(e){if(e<0)throw Error(`invalid entry compressed size`);this.csize=e},u.prototype.setCrc=function(e){if(e<0)throw Error(`invalid entry crc32`);this.crc=e},u.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},u.prototype.setExtra=function(e){this.extra=e},u.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof o))throw Error(`invalid entry GeneralPurposeBit`);this.gpb=e},u.prototype.setInternalAttributes=function(e){this.inattr=e},u.prototype.setMethod=function(e){if(e<0)throw Error(`invalid entry compression method`);this.method=e},u.prototype.setName=function(e,t=!1){e=i(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},u.prototype.setPlatform=function(e){this.platform=e},u.prototype.setSize=function(e){if(e<0)throw Error(`invalid entry size`);this.size=e},u.prototype.setTime=function(e,t){if(!(e instanceof Date))throw Error(`invalid entry time`);this.time=l.dateToDos(e,t)},u.prototype.setUnixMode=function(e){e|=this.isDirectory()?c.S_IFDIR:c.S_IFREG;var t=0;t|=e<c.ZIP64_MAGIC||this.size>c.ZIP64_MAGIC}})),AL=a(((e,n)=>{t(`stream`).Stream;var r=sI().PassThrough,i=bP(),a=n.exports={};a.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e==`string`)return Buffer.from(e);if(i(e)&&!e._readableState){var t=new r;return e.pipe(t),t}return e}})),jL=a(((e,n)=>{var r=t(`util`).inherits,i=bP(),a=sI().Transform,o=wL(),s=AL(),c=n.exports=function(e){if(!(this instanceof c))return new c(e);a.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};r(c,a),c.prototype._appendBuffer=function(e,t,n){},c.prototype._appendStream=function(e,t,n){},c.prototype._emitErrorCallback=function(e){e&&this.emit(`error`,e)},c.prototype._finish=function(e){},c.prototype._normalizeEntry=function(e){},c.prototype._transform=function(e,t,n){n(null,e)},c.prototype.entry=function(e,t,n){if(t||=null,typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),!(e instanceof o)){n(Error(`not a valid instance of ArchiveEntry`));return}if(this._archive.finish||this._archive.finished){n(Error(`unacceptable entry after finish`));return}if(this._archive.processing){n(Error(`already processing an entry`));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=s.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,n);else if(i(t))this._appendStream(e,t,n);else{this._archive.processing=!1,n(Error(`input source must be valid Stream or Buffer instance`));return}return this},c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()},c.prototype.getBytesWritten=function(){return this.offset},c.prototype.write=function(e,t){return e&&(this.offset+=e.length),a.prototype.write.call(this,e,t)}})),ML=a((e=>{ +/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ +(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`1.2.2`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t();function r(e){var t=0,n=0,r=0,i=typeof Int32Array<`u`?new Int32Array(4096):Array(4096);for(r=0;r!=256;++r)i[r]=e[r];for(r=0;r!=256;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[n&255];var a=[];for(r=1;r!=16;++r)a[r-1]=typeof Int32Array<`u`?i.subarray(r*256,r*256+256):i.slice(r*256,r*256+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],v=i[12],y=i[13],b=i[14];function x(e,t){for(var r=t^-1,i=0,a=e.length;i>>8^n[(r^e.charCodeAt(i++))&255];return~r}function S(e,t){for(var r=t^-1,i=e.length-15,x=0;x>8&255]^v[e[x++]^r>>16&255]^g[e[x++]^r>>>24]^h[e[x++]]^m[e[x++]]^p[e[x++]]^f[e[x++]]^d[e[x++]]^u[e[x++]]^l[e[x++]]^c[e[x++]]^s[e[x++]]^o[e[x++]]^a[e[x++]]^n[e[x++]];for(i+=15;x>>8^n[(r^e[x++])&255];return~r}function C(e,t){for(var r=t^-1,i=0,a=e.length,o=0,s=0;i>>8^n[(r^o)&255]:o<2048?(r=r>>>8^n[(r^(192|o>>6&31))&255],r=r>>>8^n[(r^(128|o&63))&255]):o>=55296&&o<57344?(o=(o&1023)+64,s=e.charCodeAt(i++)&1023,r=r>>>8^n[(r^(240|o>>8&7))&255],r=r>>>8^n[(r^(128|o>>2&63))&255],r=r>>>8^n[(r^(128|s>>6&15|(o&3)<<4))&255],r=r>>>8^n[(r^(128|s&63))&255]):(r=r>>>8^n[(r^(224|o>>12&15))&255],r=r>>>8^n[(r^(128|o>>6&63))&255],r=r>>>8^n[(r^(128|o&63))&255]);return~r}e.table=n,e.bstr=x,e.buf=S,e.str=C})})),NL=a(((e,t)=>{let{Transform:n}=sI(),r=ML();t.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,n){e&&(this.checksum=r.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(){return this.rawSize}}})),PL=a(((e,n)=>{let{DeflateRaw:r}=t(`zlib`),i=ML();n.exports=class extends r{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,n){e&&(this.checksum=i.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,n)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}})),FL=a(((e,t)=>{t.exports={CRC32Stream:NL(),DeflateCRC32Stream:PL()}})),IL=a(((e,n)=>{var r=t(`util`).inherits,i=ML(),{CRC32Stream:a}=FL(),{DeflateCRC32Stream:o}=FL(),s=jL();kL(),EL();var c=OL();AL();var l=TL(),u=n.exports=function(e){if(!(this instanceof u))return new u(e);e=this.options=this._defaults(e),s.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:``,finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};r(u,s),u.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(e,t,n){t.length===0&&e.setMethod(c.METHOD_STORED);var r=e.getMethod();if(r===c.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(i.buf(t)>>>0)),this._writeLocalFileHeader(e),r===c.METHOD_STORED){this.write(t),this._afterAppend(e),n(null,e);return}else if(r===c.METHOD_DEFLATED){this._smartStream(e,n).end(t);return}else{n(Error(`compression method `+r+` not implemented`));return}},u.prototype._appendStream=function(e,t,n){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var r=this._smartStream(e,n);t.once(`error`,function(e){r.emit(`error`,e),r.end()}),t.pipe(r)},u.prototype._defaults=function(e){return typeof e!=`object`&&(e={}),typeof e.zlib!=`object`&&(e.zlib={}),typeof e.zlib.level!=`number`&&(e.zlib.level=c.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(c.METHOD_DEFLATED),e.getMethod()===c.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(e,t){var n=e.getMethod()===c.METHOD_DEFLATED?new o(this.options.zlib):new a,r=null;function i(){var i=n.digest().readUInt32BE(0);e.setCrc(i),e.setSize(n.size()),e.setCompressedSize(n.size(!0)),this._afterAppend(e),t(r,e)}return n.once(`end`,i.bind(this)),n.once(`error`,function(e){r=e}),n.pipe(this,{end:!1}),n},u.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(e=c.ZIP64_MAGIC_SHORT,t=c.ZIP64_MAGIC,n=c.ZIP64_MAGIC),this.write(l.getLongBytes(c.SIG_EOCD)),this.write(c.SHORT_ZERO),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e)),this.write(l.getShortBytes(e)),this.write(l.getLongBytes(t)),this.write(l.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(l.getShortBytes(i)),this.write(r)},u.prototype._writeCentralDirectoryZip64=function(){this.write(l.getLongBytes(c.SIG_ZIP64_EOCD)),this.write(l.getEightBytes(44)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(l.getShortBytes(c.MIN_VERSION_ZIP64)),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._entries.length)),this.write(l.getEightBytes(this._archive.centralLength)),this.write(l.getEightBytes(this._archive.centralOffset)),this.write(l.getLongBytes(c.SIG_ZIP64_EOCD_LOC)),this.write(c.LONG_ZERO),this.write(l.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(l.getLongBytes(1))},u.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e._offsets.file,i=e.getSize(),a=e.getCompressedSize();if(e.isZip64()||r>c.ZIP64_MAGIC){i=c.ZIP64_MAGIC,a=c.ZIP64_MAGIC,r=c.ZIP64_MAGIC,e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64);var o=Buffer.concat([l.getShortBytes(c.ZIP64_EXTRA_ID),l.getShortBytes(24),l.getEightBytes(e.getSize()),l.getEightBytes(e.getCompressedSize()),l.getEightBytes(e._offsets.file)],28);e.setExtra(o)}this.write(l.getLongBytes(c.SIG_CFH)),this.write(l.getShortBytes(e.getPlatform()<<8|c.VERSION_MADEBY)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(n)),this.write(l.getLongBytes(e.getTimeDos())),this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(a)),this.write(l.getLongBytes(i));var s=e.getName(),u=e.getComment(),d=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(s=Buffer.from(s),u=Buffer.from(u)),this.write(l.getShortBytes(s.length)),this.write(l.getShortBytes(d.length)),this.write(l.getShortBytes(u.length)),this.write(c.SHORT_ZERO),this.write(l.getShortBytes(e.getInternalAttributes())),this.write(l.getLongBytes(e.getExternalAttributes())),this.write(l.getLongBytes(r)),this.write(s),this.write(d),this.write(u)},u.prototype._writeDataDescriptor=function(e){this.write(l.getLongBytes(c.SIG_DD)),this.write(l.getLongBytes(e.getCrc())),e.isZip64()?(this.write(l.getEightBytes(e.getCompressedSize())),this.write(l.getEightBytes(e.getSize()))):(this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize())))},u.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(c.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(r=Buffer.from(r)),e._offsets.file=this.offset,this.write(l.getLongBytes(c.SIG_LFH)),this.write(l.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(l.getShortBytes(n)),this.write(l.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(c.LONG_ZERO),this.write(c.LONG_ZERO),this.write(c.LONG_ZERO)):(this.write(l.getLongBytes(e.getCrc())),this.write(l.getLongBytes(e.getCompressedSize())),this.write(l.getLongBytes(e.getSize()))),this.write(l.getShortBytes(r.length)),this.write(l.getShortBytes(i.length)),this.write(r),this.write(i),e._offsets.contents=this.offset},u.prototype.getComment=function(e){return this._archive.comment===null?``:this._archive.comment},u.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>c.ZIP64_MAGIC_SHORT||this._archive.centralLength>c.ZIP64_MAGIC||this._archive.centralOffset>c.ZIP64_MAGIC},u.prototype.setComment=function(e){this._archive.comment=e}})),LL=a(((e,t)=>{t.exports={ArchiveEntry:wL(),ZipArchiveEntry:kL(),ArchiveOutputStream:jL(),ZipArchiveOutputStream:IL()}})),RL=a(((e,n)=>{ +/** +* ZipStream +* +* @ignore +* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} +* @copyright (c) 2014 Chris Talkington, contributors. +*/ +var r=t(`util`).inherits,i=LL().ZipArchiveOutputStream,a=LL().ZipArchiveEntry,o=xL(),s=n.exports=function(e){if(!(this instanceof s))return new s(e);e=this.options=e||{},e.zlib=e.zlib||{},i.call(this,e),typeof e.level==`number`&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level==`number`&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};r(s,i),s.prototype._normalizeFileData=function(e){e=o.defaults(e,{type:`file`,name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:``});var t=e.type===`directory`,n=e.type===`symlink`;return e.name&&(e.name=o.sanitizePath(e.name),!n&&e.name.slice(-1)===`/`?(t=!0,e.type=`directory`):t&&(e.name+=`/`)),(t||n)&&(e.store=!0),e.date=o.dateify(e.date),e},s.prototype.entry=function(e,t,n){if(typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),t=this._normalizeFileData(t),t.type!==`file`&&t.type!==`directory`&&t.type!==`symlink`){n(Error(t.type+` entries not currently supported`));return}if(typeof t.name!=`string`||t.name.length===0){n(Error(`entry name must be a non-empty string value`));return}if(t.type===`symlink`&&typeof t.linkname!=`string`){n(Error(`entry linkname must be a non-empty string value when type equals symlink`));return}var r=new a(t.name);return r.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&r.setName(t.name,!0),t.store&&r.setMethod(0),t.comment.length>0&&r.setComment(t.comment),t.type===`symlink`&&typeof t.mode!=`number`&&(t.mode=40960),typeof t.mode==`number`&&(t.type===`symlink`&&(t.mode|=40960),r.setUnixMode(t.mode)),t.type===`symlink`&&typeof t.linkname==`string`&&(e=Buffer.from(t.linkname)),i.prototype.entry.call(this,r,e,n)},s.prototype.finalize=function(){this.finish()}})),zL=a(((e,t)=>{ +/** +* 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 n=RL(),r=xL(),i=function(e){if(!(this instanceof i))return new i(e);e=this.options=r.defaults(e,{comment:``,forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};i.prototype.append=function(e,t,n){this.engine.entry(e,t,n)},i.prototype.finalize=function(){this.engine.finalize()},i.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},i.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},i.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},t.exports=i})),BL=a(((e,n)=>{n.exports=t(`events`)})),VL=a(((e,t)=>{t.exports=class{constructor(e){if(!(e>0)||e-1&e)throw Error(`Max size for a FixedFIFO should be a power of two`);this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]===void 0?(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0):!1}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}})),HL=a(((e,t)=>{let n=VL();t.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}})),UL=a(((e,t)=>{function n(e){return Buffer.isBuffer(e)||e instanceof Uint8Array}function r(e){return Buffer.isEncoding(e)}function i(e,t,n){return Buffer.alloc(e,t,n)}function a(e){return Buffer.allocUnsafe(e)}function o(e){return Buffer.allocUnsafeSlow(e)}function s(e,t){return Buffer.byteLength(e,t)}function c(e,t){return Buffer.compare(e,t)}function l(e,t){return Buffer.concat(e,t)}function u(e,t,n,r,i){return x(e).copy(t,n,r,i)}function d(e,t){return x(e).equals(t)}function f(e,t,n,r,i){return x(e).fill(t,n,r,i)}function p(e,t,n){return Buffer.from(e,t,n)}function m(e,t,n,r){return x(e).includes(t,n,r)}function h(e,t,n,r){return x(e).indexOf(t,n,r)}function g(e,t,n,r){return x(e).lastIndexOf(t,n,r)}function v(e){return x(e).swap16()}function y(e){return x(e).swap32()}function b(e){return x(e).swap64()}function x(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function S(e,t,n,r){return x(e).toString(t,n,r)}function C(e,t,n,r,i){return x(e).write(t,n,r,i)}function w(e,t){return x(e).readDoubleBE(t)}function T(e,t){return x(e).readDoubleLE(t)}function E(e,t){return x(e).readFloatBE(t)}function D(e,t){return x(e).readFloatLE(t)}function O(e,t){return x(e).readInt32BE(t)}function k(e,t){return x(e).readInt32LE(t)}function A(e,t){return x(e).readUInt32BE(t)}function j(e,t){return x(e).readUInt32LE(t)}function M(e,t,n){return x(e).writeDoubleBE(t,n)}function N(e,t,n){return x(e).writeDoubleLE(t,n)}function P(e,t,n){return x(e).writeFloatBE(t,n)}function F(e,t,n){return x(e).writeFloatLE(t,n)}function I(e,t,n){return x(e).writeInt32BE(t,n)}function L(e,t,n){return x(e).writeInt32LE(t,n)}function R(e,t,n){return x(e).writeUInt32BE(t,n)}function z(e,t,n){return x(e).writeUInt32LE(t,n)}t.exports={isBuffer:n,isEncoding:r,alloc:i,allocUnsafe:a,allocUnsafeSlow:o,byteLength:s,compare:c,concat:l,copy:u,equals:d,fill:f,from:p,includes:m,indexOf:h,lastIndexOf:g,swap16:v,swap32:y,swap64:b,toBuffer:x,toString:S,write:C,readDoubleBE:w,readDoubleLE:T,readFloatBE:E,readFloatLE:D,readInt32BE:O,readInt32LE:k,readUInt32BE:A,readUInt32LE:j,writeDoubleBE:M,writeDoubleLE:N,writeFloatBE:P,writeFloatLE:F,writeInt32BE:I,writeInt32LE:L,writeUInt32BE:R,writeUInt32LE:z}})),WL=a(((e,t)=>{let n=UL();t.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return n.toString(e,this.encoding)}flush(){return``}}})),GL=a(((e,t)=>{let n=UL();t.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return``;if(this.bytesNeeded===0&&r(e,0)===0)return this.bytesSeen=i(e),n.toString(e,`utf8`);let t=``,a=0;if(this.bytesNeeded>0){for(;athis.upperBoundary){t+=`�`,this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|n&63,this.bytesSeen++,a++,this.bytesSeen===this.bytesNeeded){t+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return t}let o=r(e,a),s=e.byteLength-o;s>a&&(t+=n.toString(e,`utf8`,a,s));for(let n=s;n=194&&r<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=r&31):r>=224&&r<=239?(r===224?this.lowerBoundary=160:r===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=r&15):r>=240&&r<=244?(r===240?this.lowerBoundary=144:r===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=r&7):(this.bytesSeen=1,t+=`�`);continue}if(rthis.upperBoundary){t+=`�`,n--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|r&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(t+=String.fromCodePoint(this.codePoint),this._reset())}return t}flush(){let e=this.bytesNeeded>0?`�`:``;return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function r(e,t){let n=e.byteLength;if(n<=t)return 0;let r=Math.max(t,n-4),i=n-1;for(;i>r&&(e[i]&192)==128;)i--;if(i=194&&a<=223)o=2;else if(a>=224&&a<=239)o=3;else if(a>=240&&a<=244)o=4;else return 0;let s=n-i;return s=r&&(e[i]&192)==128;)i--;if(i<0)return 1;let a=e[i],o;if(a>=194&&a<=223)o=2;else if(a>=224&&a<=239)o=3;else if(a>=240&&a<=244)o=4;else return 1;if(t-i!==o)return 1;if(o>=3){let t=e[i+1];if(a===224&&t<160||a===237&&t>159||a===240&&t<144||a===244&&t>143)return 1}return 0}})),KL=a(((e,t)=>{let n=WL(),r=GL();t.exports=class{constructor(e=`utf8`){switch(this.encoding=i(e),this.encoding){case`utf8`:this.decoder=new r;break;case`utf16le`:case`base64`:throw Error(`Unsupported encoding: `+this.encoding);default:this.decoder=new n(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e==`string`?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let t=``;return e&&(t=this.push(e)),t+=this.decoder.flush(),t}};function i(e){switch(e=e.toLowerCase(),e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:throw Error(`Unknown encoding: `+e)}}})),qL=a(((e,t)=>{let{EventEmitter:n}=BL(),r=Error(`Stream was destroyed`),i=Error(`Premature close`),a=HL(),o=KL(),s=typeof queueMicrotask>`u`?e=>global.process.nextTick(e):queueMicrotask,c=536870910,l=1024,u=2048,d=16384,f=32768,p=131072,m=536805375,h=536870143,g=536838143,v=536739839,y=2<<18,b=4<<18,x=8<<18,S=32<<18,C=64<<18,w=128<<18,T=512<<18,E=1024<<18,D=503316479,O=268435455,k=262160,A=8404992,j=8405006,M=33587200,N=33587215,P=16527,F=270794767,I=Symbol.asyncIterator||Symbol(`asyncIterator`);var L=class{constructor(e,{highWaterMark:t=16384,map:n=null,mapWritable:r,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||De,this.map=r||n,this.afterWrite=V.bind(this),this.afterUpdateNextTick=ae.bind(this)}get ending(){return(this.stream._duplexState&T)!=0}get ended(){return(this.stream._duplexState&S)!=0}push(e){return this.stream._duplexState&142606350?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered0,this.error=null,this.pipeline=null,this.byteLength=o||i||De,this.map=r||n,this.pipeTo=null,this.afterRead=re.bind(this),this.afterUpdateNextTick=ie.bind(this)}get ending(){return(this.stream._duplexState&l)!=0}get ended(){return(this.stream._duplexState&d)!=0}pipe(e,t){if(this.pipeTo!==null)throw Error(`Can only pipe to one destination`);if(typeof t!=`function`&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new ee(this.stream,e,t),t&&this.stream.on(`error`,Oe),ve(e))e._writableState.pipeline=this.pipeline,t&&e.on(`error`,Oe),e.on(`finish`,this.pipeline.finished.bind(this.pipeline));else{let t=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on(`error`,t),e.on(`close`,n),e.on(`finish`,this.pipeline.finished.bind(this.pipeline))}e.on(`drain`,B.bind(this)),this.stream.emit(`piping`,e),e.emit(`pipe`,this.stream)}push(e){let t=this.stream;return e===null?(this.highWaterMark=0,t._duplexState=(t._duplexState|l)&536805311,!1):this.map!==null&&(e=this.map(e),e===null)?(t._duplexState&=m,this.buffered0;)t.push(this.shift());for(let e=0;e0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(t,e)}}function V(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=469499903,this.drains!==null&&oe(this.drains),(t._duplexState&6553615)==4194304&&(t._duplexState&=532676607,(t._duplexState&C)==C&&t.emit(`drain`)),this.updateCallback()}function re(e){e&&this.stream.destroy(e),this.stream._duplexState&=536870895,this.readAhead===!1&&!(this.stream._duplexState&256)&&(this.stream._duplexState&=v),this.updateCallback()}function ie(){this.stream._duplexState&32||(this.stream._duplexState&=g,this.update())}function ae(){this.stream._duplexState&y||(this.stream._duplexState&=D,this.update())}function oe(e){for(let t=0;t0)?null:n(r)}}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=131328,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?536739583:536870655,this}static _fromAsyncIterator(t,n){let r,i=new e({...n,read(e){t.next().then(a).then(e.bind(null,null)).catch(e)},predestroy(){r=t.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return i;function a(e){e.done?i.push(null):i.push(e.value)}}static from(t,n){if(we(t))return t;if(t[I])return this._fromAsyncIterator(t[I](),n);Array.isArray(t)||(t=t===void 0?[]:[t]);let r=0;return new e({...n,read(e){this.push(r===t.length?null:t[r++]),e(null)}})}static isBackpressured(e){return(e._duplexState&17422)!=0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&256)==0}[I](){let e=this,t=null,n=null,i=null;return this.on(`error`,e=>{t=e}),this.on(`readable`,a),this.on(`close`,o),{[I](){return this},next(){return new Promise(function(t,r){n=t,i=r;let a=e.read();a===null?e._duplexState&8&&s(null):s(a)})},return(){return c(null)},throw(e){return c(e)}};function a(){n!==null&&s(e.read())}function o(){n!==null&&s(null)}function s(a){i!==null&&(t?i(t):a===null&&!(e._duplexState&d)?i(r):n({value:a,done:a===null}),i=n=null)}function c(t){return e.destroy(t),new Promise((n,r)=>{if(e._duplexState&8)return n({value:void 0,done:!0});e.once(`close`,function(){t?r(t):n({value:void 0,done:!0})})})}}},ue=class extends ce{constructor(e){super(e),this._duplexState|=16385,this._writableState=new L(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=E}uncork(){this._duplexState&=O,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&146800654)!=0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let t=e._writableState,n=(Ae(e)?Math.min(1,t.queue.length):t.queue.length)+(e._duplexState&67108864?1:0);return n===0?Promise.resolve(!0):(t.drains===null&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:n,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},W=class extends le{constructor(e){super(e),this._duplexState=1|this._duplexState&p,this._writableState=new L(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=E}uncork(){this._duplexState&=O,this._writableState.updateNextTick()}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},de=class extends W{constructor(e){super(e),this._transformState=new z(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(pe.bind(this))}},fe=class extends de{};function pe(e,t){let n=this._transformState.afterFinal;if(e)return n(e);t!=null&&this.push(t),this.push(null),n(null)}function me(...e){return new Promise((t,n)=>he(...e,e=>{if(e)return n(e);t()}))}function he(e,...t){let n=Array.isArray(e)?[...e,...t]:[e,...t],r=n.length&&typeof n[n.length-1]==`function`?n.pop():null;if(n.length<2)throw Error(`Pipeline requires at least 2 streams`);let a=n[0],o=null,s=null;for(let e=1;e1,l),a.pipe(o)),a=o;if(r){let e=!1,t=ve(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on(`error`,e=>{s===null&&(s=e)}),o.on(`finish`,()=>{e=!0,t||r(s)}),t&&o.on(`close`,()=>r(s||(e?null:i)))}return o;function c(e,t,n,r){e.on(`error`,r),e.on(`close`,a);function a(){if(t&&e._readableState&&!e._readableState.ended||n&&e._writableState&&!e._writableState.ended)return r(i)}}function l(e){if(!(!e||s)){s=e;for(let t of n)t.destroy(e)}}}function ge(e){return e}function _e(e){return!!e._readableState||!!e._writableState}function ve(e){return typeof e._duplexState==`number`&&_e(e)}function ye(e){return!!e._readableState&&e._readableState.ending}function be(e){return!!e._readableState&&e._readableState.ended}function xe(e){return!!e._writableState&&e._writableState.ending}function Se(e){return!!e._writableState&&e._writableState.ended}function Ce(e,t={}){let n=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return!t.all&&n===r?null:n}function we(e){return ve(e)&&e.readable}function Te(e){return(e._duplexState&1)!=1||(e._duplexState&4)==4||(e._duplexState&M)!=0}function Ee(e){return typeof e==`object`&&!!e&&typeof e.byteLength==`number`}function De(e){return Ee(e)?e.byteLength:1024}function Oe(){}function ke(){this.destroy(Error(`Stream aborted.`))}function Ae(e){return e._writev!==ue.prototype._writev&&e._writev!==W.prototype._writev}t.exports={pipeline:he,pipelinePromise:me,isStream:_e,isStreamx:ve,isEnding:ye,isEnded:be,isFinishing:xe,isFinished:Se,isDisturbed:Te,getStreamError:Ce,Stream:ce,Writable:ue,Readable:le,Duplex:W,Transform:de,PassThrough:fe}})),JL=a((e=>{let t=UL(),n=t.from([117,115,116,97,114,0]),r=t.from([48,48]),i=t.from([117,115,116,97,114,32]),a=t.from([32,0]);e.decodeLongPath=function(e,t){return y(e,0,e.length,t)},e.encodePax=function(e){let n=``;e.name&&(n+=b(` path=`+e.name+` +`)),e.linkname&&(n+=b(` linkpath=`+e.linkname+` +`));let r=e.pax;if(r)for(let e in r)n+=b(` `+e+`=`+r[e]+` +`);return t.from(n)},e.decodePax=function(e){let n={};for(;e.length;){let r=0;for(;r100;){let e=a.indexOf(`/`);if(e===-1)return null;o+=o?`/`+a.slice(0,e):a.slice(0,e),a=a.slice(e+1)}return t.byteLength(a)>100||t.byteLength(o)>155||e.linkname&&t.byteLength(e.linkname)>100?null:(t.write(i,a),t.write(i,p(e.mode&4095,6),100),t.write(i,p(e.uid,6),108),t.write(i,p(e.gid,6),116),h(e.size,i,124),t.write(i,p(e.mtime.getTime()/1e3|0,11),136),i[156]=48+u(e.type),e.linkname&&t.write(i,e.linkname,157),t.copy(n,i,257),t.copy(r,i,263),e.uname&&t.write(i,e.uname,265),e.gname&&t.write(i,e.gname,297),t.write(i,p(e.devmajor||0,6),329),t.write(i,p(e.devminor||0,6),337),o&&t.write(i,o,345),t.write(i,p(f(i),6),148),i)},e.decode=function(e,t,n){let r=e[156]===0?0:e[156]-48,i=y(e,0,100,t),a=v(e,100,8),c=v(e,108,8),u=v(e,116,8),d=v(e,124,12),p=v(e,136,12),m=l(r),h=e[157]===0?null:y(e,157,100,t),g=y(e,265,32),b=y(e,297,32),x=v(e,329,8),S=v(e,337,8),C=f(e);if(C===256)return null;if(C!==v(e,148,8))throw Error(`Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?`);if(o(e))e[345]&&(i=y(e,345,155,t)+`/`+i);else if(!s(e)&&!n)throw Error(`Invalid tar header: unknown format.`);return r===0&&i&&i[i.length-1]===`/`&&(r=5),{name:i,mode:a,uid:c,gid:u,size:d,mtime:new Date(1e3*p),type:m,linkname:h,uname:g,gname:b,devmajor:x,devminor:S,pax:null}};function o(e){return t.equals(n,e.subarray(257,263))}function s(e){return t.equals(i,e.subarray(257,263))&&t.equals(a,e.subarray(263,265))}function c(e,t,n){return typeof e==`number`?(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0):n}function l(e){switch(e){case 0:return`file`;case 1:return`link`;case 2:return`symlink`;case 3:return`character-device`;case 4:return`block-device`;case 5:return`directory`;case 6:return`fifo`;case 7:return`contiguous-file`;case 72:return`pax-header`;case 55:return`pax-global-header`;case 27:return`gnu-long-link-path`;case 28:case 30:return`gnu-long-path`}return null}function u(e){switch(e){case`file`:return 0;case`link`:return 1;case`symlink`:return 2;case`character-device`:return 3;case`block-device`:return 4;case`directory`:return 5;case`fifo`:return 6;case`contiguous-file`:return 7;case`pax-header`:return 72}return 0}function d(e,t,n,r){for(;nt?`7777777777777777777`.slice(0,t)+` `:`0000000000000000000`.slice(0,t-e.length)+e+` `}function m(e,t,n){t[n]=128;for(let r=11;r>0;r--)t[n+r]=e&255,e=Math.floor(e/256)}function h(e,n,r){e.toString(8).length>11?m(e,n,r):t.write(n,p(e,11),r)}function g(e){let t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;let n=[],r;for(r=e.length-1;r>0;r--){let i=e[r];t?n.push(i):n.push(255-i)}let i=0,a=n.length;for(r=0;r=10**r&&r++,n+r+e}})),YL=a(((e,t)=>{let{Writable:n,Readable:r,getStreamError:i}=qL(),a=HL(),o=UL(),s=JL(),c=o.alloc(0);var l=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new a,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return c;let t=this._next(e);if(e===t.byteLength)return t;let n=[t];for(;(e-=t.byteLength)>0;)t=this._next(e),n.push(t);return o.concat(n)}_next(e){let t=this.queue.peek(),n=t.byteLength-this._offset;if(e>=n){let e=this._offset?t.subarray(this._offset,t.byteLength):t;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,e}return this.buffered-=e,this.shifted+=e,t.subarray(this._offset,this._offset+=e)}},u=class extends r{constructor(e,t,n){super(),this.header=t,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(i(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=p(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},d=class extends n{constructor(e){super(e),e||={},this._buffer=new l,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=f,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||`utf-8`,this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=s.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case`gnu-long-path`:case`gnu-long-link-path`:case`pax-global-header`:case`pax-header`:return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type===`directory`?(this.emit(`entry`,this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit(`entry`,this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&=(this._header.name=this._gnuLongPath,null),this._gnuLongLinkPath&&=(this._header.linkname=this._gnuLongLinkPath,null),this._pax&&=(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,null)}_decodeLongHeader(e){switch(this._header.type){case`gnu-long-path`:this._gnuLongPath=s.decodeLongPath(e,this._filenameEncoding);break;case`gnu-long-link-path`:this._gnuLongLinkPath=s.decodeLongPath(e,this._filenameEncoding);break;case`pax-global-header`:this._paxGlobal=s.decodePax(e);break;case`pax-header`:this._pax=this._paxGlobal===null?s.decodePax(e):Object.assign({},this._paxGlobal,s.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=p(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(e){return this._continueWrite(e),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let t=this._stream.push(e);return this._missing===0?(this._stream.push(null),t&&this._stream._detach(),t&&this._locked===!1):t}_createStream(){return new u(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let t=this._callback;this._callback=f,t(e)}_write(e,t){this._callback=t,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:Error(`Unexpected end of data`))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(i(this)),e(null)}[Symbol.asyncIterator](){let e=null,t=null,n=null,r=null,i=null,a=this;return this.on(`entry`,c),this.on(`error`,t=>{e=t}),this.on(`close`,l),{[Symbol.asyncIterator](){return this},next(){return new Promise(s)},return(){return u(null)},throw(e){return u(e)}};function o(e){if(!i)return;let t=i;i=null,t(e)}function s(i,s){if(e)return s(e);if(r){i({value:r,done:!1}),r=null;return}t=i,n=s,o(null),a._finished&&t&&(t({value:void 0,done:!0}),t=n=null)}function c(e,a,o){i=o,a.on(`error`,f),t?(t({value:a,done:!1}),t=n=null):r=a}function l(){o(e),t&&=(e?n(e):t({value:void 0,done:!0}),n=null)}function u(e){return a.destroy(e),o(e),new Promise((t,n)=>{if(a.destroyed)return t({value:void 0,done:!0});a.once(`close`,function(){e?n(e):t({value:void 0,done:!0})})})}}};t.exports=function(e){return new d(e)};function f(){}function p(e){return e&=511,e&&512-e}})),XL=a(((e,n)=>{let r={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{n.exports=t(`fs`).constants||r}catch{n.exports=r}})),ZL=a(((e,t)=>{let{Readable:n,Writable:r,getStreamError:i}=qL(),a=UL(),o=XL(),s=JL(),c=a.alloc(1024);var l=class extends r{constructor(e,t,n){super({mapWritable:m,eagerOpen:!0}),this.written=0,this.header=t,this._callback=n,this._linkname=null,this._isLinkname=t.type===`symlink`&&!t.linkname,this._isVoid=t.type!==`file`&&t.type!==`contiguous-file`,this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let t=this._callback;this._callback=null,t(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(Error(`pack stream destroyed`));if(this._pack._finalized)return e(Error(`pack stream is already finalized`));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,t){if(this._isLinkname)return this._linkname=this._linkname?a.concat([this._linkname,e]):e,t(null);if(this._isVoid)return e.byteLength>0?t(Error(`No body allowed for this entry`)):t();if(this.written+=e.byteLength,this._pack.push(e))return t();this._pack._drain=t}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?a.toString(this._linkname,`utf-8`):``,this._pack._encode(this.header)),p(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(Error(`Size mismatch`));this._finish(),e(null)}_getError(){return i(this)||Error(`tar entry destroyed`)}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},u=class extends n{constructor(e){super(e),this._drain=f,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,t,n){if(this._finalized||this.destroying)throw Error(`already finalized or destroyed`);typeof t==`function`&&(n=t,t=null),n||=f,(!e.size||e.type===`symlink`)&&(e.size=0),e.type||=d(e.mode),e.mode||=e.type===`directory`?493:420,e.uid||=0,e.gid||=0,e.mtime||=new Date,typeof t==`string`&&(t=a.from(t));let r=new l(this,e,n);return a.isBuffer(t)?(e.size=t.byteLength,r.write(t),r.end(),r):(r._isVoid,r)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(c),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let t=s.encode(e);if(t){this.push(t);return}}this._encodePax(e)}_encodePax(e){let t=s.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:`PaxHeader`,mode:e.mode,uid:e.uid,gid:e.gid,size:t.byteLength,mtime:e.mtime,type:`pax-header`,linkname:e.linkname&&`PaxHeader`,uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(s.encode(n)),this.push(t),p(this,t.byteLength),n.size=e.size,n.type=e.type,this.push(s.encode(n))}_doDrain(){let e=this._drain;this._drain=f,e()}_predestroy(){let e=i(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let t=this._pending.shift();t.destroy(e),t._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};t.exports=function(e){return new u(e)};function d(e){switch(e&o.S_IFMT){case o.S_IFBLK:return`block-device`;case o.S_IFCHR:return`character-device`;case o.S_IFDIR:return`directory`;case o.S_IFIFO:return`fifo`;case o.S_IFLNK:return`symlink`}return`file`}function f(){}function p(e,t){t&=511,t&&e.push(c.subarray(0,512-t))}function m(e){return a.isBuffer(e)?e:a.from(e)}})),QL=a((e=>{e.extract=YL(),e.pack=ZL()})),$L=a(((e,n)=>{ +/** +* 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 r=t(`zlib`),i=QL(),a=xL(),o=function(e){if(!(this instanceof o))return new o(e);e=this.options=a.defaults(e,{gzip:!1}),typeof e.gzipOptions!=`object`&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=i.pack(e),this.compressor=!1,e.gzip&&(this.compressor=r.createGzip(e.gzipOptions),this.compressor.on(`error`,this._onCompressorError.bind(this)))};o.prototype._onCompressorError=function(e){this.engine.emit(`error`,e)},o.prototype.append=function(e,t,n){var r=this;t.mtime=t.date;function i(e,i){if(e){n(e);return}r.engine.entry(t,i,function(e){n(e,t)})}if(t.sourceType===`buffer`)i(null,e);else if(t.sourceType===`stream`&&t.stats){t.size=t.stats.size;var o=r.engine.entry(t,function(e){n(e,t)});e.pipe(o)}else t.sourceType===`stream`&&a.collectStream(e,i)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)},o.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},n.exports=o})),eR=a(((e,t)=>{function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}let r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function i(e){if(Buffer.isBuffer(e))return e;if(typeof e==`number`)return Buffer.alloc(e);if(typeof e==`string`)return Buffer.from(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){let t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var a=0;a>>8;return n^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=n(s)})),tR=a(((e,n)=>{ +/** +* 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 r=t(`util`).inherits,i=sI().Transform,a=eR(),o=xL(),s=function(e){if(!(this instanceof s))return new s(e);e=this.options=o.defaults(e,{}),i.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};r(s,i),s.prototype._transform=function(e,t,n){n(null,e)},s.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)},s.prototype.append=function(e,t,n){var r=this;t.crc32=0;function i(e,i){if(e){n(e);return}t.size=i.length||0,t.crc32=a.unsigned(i),r.files.push(t),n(null,t)}t.sourceType===`buffer`?i(null,e):t.sourceType===`stream`&&o.collectStream(e,i)},s.prototype.finalize=function(){this._writeStringified(),this.end()},n.exports=s})),nR=r(a(((e,t)=>{ +/** +* Archiver Vending +* +* @ignore +* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} +* @copyright (c) 2012-2014 Chris Talkington, contributors. +*/ +var n=CL(),r={},i=function(e,t){return i.create(e,t)};i.create=function(e,t){if(r[e]){var i=new n(e,t);return i.setFormat(e),i.setModule(new r[e](t)),i}else throw Error(`create(`+e+`): format not registered`)},i.registerFormat=function(e,t){if(r[e])throw Error(`register(`+e+`): format already registered`);if(typeof t!=`function`)throw Error(`register(`+e+`): format module invalid`);if(typeof t.prototype.append!=`function`||typeof t.prototype.finalize!=`function`)throw Error(`register(`+e+`): format module missing methods`);r[e]=t},i.isRegisteredFormat=function(e){return!!r[e]},i.registerFormat(`zip`,zL()),i.registerFormat(`tar`,$L()),i.registerFormat(`json`,tR()),t.exports=i}))(),1),rR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},iR=class extends qe.Transform{constructor(e){super({highWaterMark:e})}_transform(e,t,n){n(null,e)}};function aR(e){return rR(this,void 0,void 0,function*(){K(`Creating raw file upload stream for: ${e}`);let t=pN(),n=new iR(t),r=e;(yield H.promises.lstat(e)).isSymbolicLink()&&(r=yield Ze(e));let i=H.createReadStream(r,{highWaterMark:t});return i.on(`error`,e=>{fi(`An error has occurred while reading the file for upload`),fi(String(e)),n.destroy(Error(`An error has occurred during file read for the artifact`))}),i.pipe(n),n})}var oR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function sR(e){return oR(this,arguments,void 0,function*(e,t=6){K(`Creating Artifact archive with compressionLevel: ${t}`);let n=nR.default.create(`zip`,{highWaterMark:pN(),zlib:{level:t}});n.on(`error`,cR),n.on(`warning`,lR),n.on(`finish`,uR),n.on(`end`,dR);for(let t of e)if(t.sourcePath!==null){let e=t.sourcePath;t.stats.isSymbolicLink()&&(e=yield Ze(t.sourcePath)),n.file(e,{name:t.destinationPath})}else n.append(``,{name:t.destinationPath});let r=new iR(pN());return K(`Zip write high watermark value ${r.writableHighWaterMark}`),K(`Zip read high watermark value ${r.readableHighWaterMark}`),n.pipe(r),n.finalize(),r})}const cR=e=>{throw fi(`An error has occurred while creating the zip file for upload`),mi(e),Error(`An error has occurred during zip creation for the artifact`)},lR=e=>{e.code===`ENOENT`?(pi(`ENOENT warning during artifact zip creation. No such file or directory`),mi(e)):(pi(`A non-blocking warning has occurred during artifact zip creation: ${e.code}`),mi(e))},uR=()=>{K(`Zip stream for upload has finished.`)},dR=()=>{K(`Zip stream for upload has ended.`)},fR={".txt":`text/plain`,".html":`text/html`,".htm":`text/html`,".css":`text/css`,".csv":`text/csv`,".xml":`text/xml`,".md":`text/markdown`,".js":`application/javascript`,".mjs":`application/javascript`,".json":`application/json`,".png":`image/png`,".jpg":`image/jpeg`,".jpeg":`image/jpeg`,".gif":`image/gif`,".svg":`image/svg+xml`,".webp":`image/webp`,".ico":`image/x-icon`,".bmp":`image/bmp`,".tiff":`image/tiff`,".tif":`image/tiff`,".mp3":`audio/mpeg`,".wav":`audio/wav`,".ogg":`audio/ogg`,".flac":`audio/flac`,".mp4":`video/mp4`,".webm":`video/webm`,".avi":`video/x-msvideo`,".mov":`video/quicktime`,".pdf":`application/pdf`,".doc":`application/msword`,".docx":`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,".xls":`application/vnd.ms-excel`,".xlsx":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,".ppt":`application/vnd.ms-powerpoint`,".pptx":`application/vnd.openxmlformats-officedocument.presentationml.presentation`,".zip":`application/zip`,".tar":`application/x-tar`,".gz":`application/gzip`,".rar":`application/vnd.rar`,".7z":`application/x-7z-compressed`,".wasm":`application/wasm`,".yaml":`application/x-yaml`,".yml":`application/x-yaml`,".woff":`font/woff`,".woff2":`font/woff2`,".ttf":`font/ttf`,".otf":`font/otf`,".eot":`application/vnd.ms-fontobject`};function pR(e){return fR[W.extname(e).toLowerCase()]||`application/octet-stream`}var mR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function hR(e,t,n,r){return mR(this,void 0,void 0,function*(){let i=`${e}.zip`;if(r?.skipArchive){if(t.length===0)throw new GN([]);if(t.length>1)throw Error(`skipArchive option is only supported when uploading a single file`);if(!H.existsSync(t[0]))throw new GN(t);i=W.basename(t[0]),e=i}BN(e),cP(n);let a=[];if(!r?.skipArchive&&(a=lP(t,n),a.length===0))throw new GN(a.flatMap(e=>e.sourcePath?[e.sourcePath]:[]));let o=pR(i),s=nP(),c=sP(),l={workflowRunBackendId:s.workflowRunBackendId,workflowJobRunBackendId:s.workflowJobRunBackendId,name:e,mimeType:CN.create({value:o}),version:7},u=IN(r?.retentionDays);u&&(l.expiresAt=u);let d=yield c.CreateArtifact(l);if(!d.ok)throw new KN(`CreateArtifact: response from backend was not ok`);let f;f=r?.skipArchive?yield aR(t[0]):yield sR(a,r?.compressionLevel),mi(`Uploading artifact: ${i}`);let p=yield dP(d.signedUploadUrl,f,o),m={workflowRunBackendId:s.workflowRunBackendId,workflowJobRunBackendId:s.workflowJobRunBackendId,name:e,size:p.uploadSize?p.uploadSize.toString():`0`};p.sha256Hash&&(m.hash=CN.create({value:`sha256:${p.sha256Hash}`})),mi(`Finalizing artifact upload`);let h=yield c.FinalizeArtifact(m);if(!h.ok)throw new KN(`FinalizeArtifact: response from backend was not ok`);let g=BigInt(h.artifactId);return mi(`Artifact ${e} successfully finalized. Artifact ID ${g}`),{size:p.uploadSize,digest:p.sha256Hash,id:Number(g)}})}var gR=a(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.value=e}n.prototype.get=function(e){for(var t=this.value,n=0;n{var r=gR(),i=t(`events`).EventEmitter;n.exports=a;function a(e){var t=a.saw(e,{}),n=e.call(t.handlers,t);return n!==void 0&&(t.handlers=n),t.record(),t.chain()}a.light=function(e){var t=a.saw(e,{}),n=e.call(t.handlers,t);return n!==void 0&&(t.handlers=n),t.chain()},a.saw=function(e,t){var n=new i;return n.handlers=t,n.actions=[],n.chain=function(){var e=r(n.handlers).map(function(t){if(this.isRoot)return t;var r=this.path;typeof t==`function`&&this.update(function(){return n.actions.push({path:r,args:[].slice.call(arguments)}),e})});return process.nextTick(function(){n.emit(`begin`),n.next()}),e},n.pop=function(){return n.actions.shift()},n.next=function(){var e=n.pop();if(!e)n.emit(`end`);else if(!e.trap){var t=n.handlers;e.path.forEach(function(e){t=t[e]}),t.apply(n.handlers,e.args)}},n.nest=function(t){var r=[].slice.call(arguments,1),i=!0;if(typeof t==`boolean`){var i=t;t=r.shift()}var o=a.saw(e,{}),s=e.call(o.handlers,o);s!==void 0&&(o.handlers=s),n.step!==void 0&&o.record(),t.apply(o.chain(),r),i!==!1&&o.on(`end`,n.next)},n.record=function(){o(n)},[`trap`,`down`,`jump`].forEach(function(e){n[e]=function(){throw Error(`To use the trap, down and jump features, please call record() first to start recording actions.`)}}),n};function o(e){e.step=0,e.pop=function(){return e.actions[e.step++]},e.trap=function(t,n){var r=Array.isArray(t)?t:[t];e.actions.push({path:r,step:e.step,cb:n,trap:!0})},e.down=function(t){var n=(Array.isArray(t)?t:[t]).join(`/`),r=e.actions.slice(e.step).map(function(t){return t.trap&&t.step<=e.step?!1:t.path.join(`/`)==n}).indexOf(!0);r>=0?e.step+=r:e.step=e.actions.length;var i=e.actions[e.step-1];i&&i.trap?(e.step=i.step,i.cb()):e.next()},e.jump=function(t){e.step=t,e.next()}}})),vR=a(((e,t)=>{t.exports=n;function n(e){if(!(this instanceof n))return new n(e);this.buffers=e||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}n.prototype.push=function(){for(var e=0;e=0?e:this.length-e,a=[].slice.call(arguments,2);(t===void 0||t>this.length-i)&&(t=this.length-i);for(var e=0;e0){var l=i-s;if(l+t0){var p=a.slice();p.unshift(d),p.push(f),r.splice.apply(r,[c,1].concat(p)),c+=p.length,a=[]}else r.splice(c,1,d,f),c+=2}else o.push(r[c].slice(l)),r[c]=r[c].slice(0,l),c++}for(a.length>0&&(r.splice.apply(r,[c,0].concat(a)),c+=a.length);o.lengththis.length&&(t=this.length);for(var r=0,i=0;i=t-e?Math.min(l+(t-e)-o,c):c;n[s].copy(a,o,l,u),o+=u-l}return a},n.prototype.pos=function(e){if(e<0||e>=this.length)throw Error(`oob`);for(var t=e,n=0,r=null;;){if(r=this.buffers[n],t=this.buffers[n].length;)if(r=0,n++,n>=this.buffers.length)return-1;if(this.buffers[n][r]==e[i]){if(i==0&&(a={i:n,j:r,pos:o}),i++,i==e.length)return a.pos}else i!=0&&(n=a.i,r=a.j,o=a.pos,i=0);r++,o++}},n.prototype.toBuffer=function(){return this.slice()},n.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)}})),yR=a(((e,t)=>{t.exports=function(e){function t(e,t){var r=n.store,i=e.split(`.`);i.slice(0,-1).forEach(function(e){r[e]===void 0&&(r[e]={}),r=r[e]});var a=i[i.length-1];return arguments.length==1?r[a]:r[a]=t}var n={get:function(e){return t(e)},set:function(e,n){return t(e,n)},store:e||{}};return n}})),bR=a(((e,n)=>{var r=_R(),i=t(`events`).EventEmitter,a=vR(),o=yR(),s=t(`stream`).Stream;e=n.exports=function(t,n){if(Buffer.isBuffer(t))return e.parse(t);var r=e.stream();return t&&t.pipe?t.pipe(r):t&&(t.on(n||`data`,function(e){r.write(e)}),t.on(`end`,function(){r.end()})),r},e.stream=function(t){if(t)return e.apply(null,arguments);var n=null;function c(e,t,r){n={bytes:e,skip:r,cb:function(e){n=null,t(e)}},u()}var l=null;function u(){if(!n){v&&(g=!0);return}if(typeof n==`function`)n();else{var e=l+n.bytes;if(m.length>=e){var t;l==null?(t=m.splice(0,e),n.skip||(t=t.slice())):(n.skip||(t=m.slice(l,e)),l=e),n.skip?n.cb():n.cb(t)}}}function d(e){function t(){g||e.next()}var r=f(function(e,n){return function(r){c(e,function(e){h.set(r,n(e)),t()})}});return r.tap=function(t){e.nest(t,h.store)},r.into=function(t,n){h.get(t)||h.set(t,{});var r=h;h=o(r.get(t)),e.nest(function(){n.apply(this,arguments),this.tap(function(){h=r})},h.store)},r.flush=function(){h.store={},t()},r.loop=function(n){var r=!1;e.nest(!1,function i(){this.vars=h.store,n.call(this,function(){r=!0,t()},h.store),this.tap(function(){r?e.next():i.call(this)}.bind(this))},h.store)},r.buffer=function(e,n){typeof n==`string`&&(n=h.get(n)),c(n,function(n){h.set(e,n),t()})},r.skip=function(e){typeof e==`string`&&(e=h.get(e)),c(e,function(){t()})},r.scan=function(e,r){if(typeof r==`string`)r=new Buffer(r);else if(!Buffer.isBuffer(r))throw Error(`search must be a Buffer or a string`);var i=0;n=function(){var a=m.indexOf(r,l+i),o=a-l-i;a===-1?o=Math.max(m.length-r.length-l-i,0):(n=null,l==null?(h.set(e,m.slice(0,i+o)),m.splice(0,i+o+r.length)):(h.set(e,m.slice(l,l+i+o)),l+=i+o+r.length),t(),u()),i+=o},u()},r.peek=function(t){l=0,e.nest(function(){t.call(this,h.store),this.tap(function(){l=null})})},r}var p=r.light(d);p.writable=!0;var m=a();p.write=function(e){m.push(e),u()};var h=o(),g=!1,v=!1;return p.end=function(){v=!0},p.pipe=s.prototype.pipe,Object.getOwnPropertyNames(i.prototype).forEach(function(e){p[e]=i.prototype[e]}),p},e.parse=function(e){var t=f(function(i,a){return function(o){if(n+i<=e.length){var s=e.slice(n,n+i);n+=i,r.set(o,a(s))}else r.set(o,null);return t}}),n=0,r=o();return t.vars=r.store,t.tap=function(e){return e.call(t,r.store),t},t.into=function(e,n){r.get(e)||r.set(e,{});var i=r;return r=o(i.get(e)),n.call(t,r.store),r=i,t},t.loop=function(e){for(var n=!1,i=function(){n=!0};n===!1;)e.call(t,i,r.store);return t},t.buffer=function(i,a){typeof a==`string`&&(a=r.get(a));var o=e.slice(n,Math.min(e.length,n+a));return n+=a,r.set(i,o),t},t.skip=function(e){return typeof e==`string`&&(e=r.get(e)),n+=e,t},t.scan=function(i,a){if(typeof a==`string`)a=new Buffer(a);else if(!Buffer.isBuffer(a))throw Error(`search must be a Buffer or a string`);r.set(i,null);for(var o=0;o+n<=e.length-a.length+1;o++){for(var s=0;s=e.length},t};function c(e){for(var t=0,n=0;n{var r=t(`stream`).Transform,i=t(`util`);function a(e,t){if(!(this instanceof a))return new a;r.call(this);var n=typeof e==`object`?e.pattern:e;this.pattern=Buffer.isBuffer(n)?n:Buffer.from(n),this.requiredLength=this.pattern.length,e.requiredExtraSize&&(this.requiredLength+=e.requiredExtraSize),this.data=new Buffer(``),this.bytesSoFar=0,this.matchFn=t}i.inherits(a,r),a.prototype.checkDataChunk=function(e){if(this.data.length>=this.requiredLength){var t=this.data.indexOf(this.pattern,+!!e);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var n=this.data.slice(0,t);this.push(n),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var r=this.data.length-this.requiredLength+1,n=this.data.slice(0,r);this.push(n),this.bytesSoFar+=r,this.data=this.data.slice(r);return}if(t>0){var n=this.data.slice(0,t);this.data=this.data.slice(t),this.push(n),this.bytesSoFar+=t}if(!this.matchFn||this.matchFn(this.data,this.bytesSoFar)){this.data=new Buffer(``);return}return!0}},a.prototype._transform=function(e,t,n){this.data=Buffer.concat([this.data,e]);for(var r=!0;this.checkDataChunk(!r);)r=!1;n()},a.prototype._flush=function(e){if(this.data.length>0)for(var t=!0;this.checkDataChunk(!t);)t=!1;this.data.length>0&&(this.push(this.data),this.data=null),e()},n.exports=a})),SR=a(((e,n)=>{var r=t(`stream`),i=t(`util`).inherits;function a(){if(!(this instanceof a))return new a;r.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}i(a,r.PassThrough),a.prototype.autodrain=function(){return this.pipe(new r.Transform({transform:function(e,t,n){n()}}))},n.exports=a})),CR=a(((e,n)=>{var r=bR(),i=t(`stream`),a=t(`util`),o=t(`zlib`),s=xR(),c=SR();let l={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},u=4294967296;function d(e){if(!(this instanceof d))return new d(e);i.Transform.call(this),this.options=e||{},this.data=new Buffer(``),this.state=l.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}a.inherits(d,i.Transform),d.prototype.processDataChunk=function(e){var t;switch(this.state){case l.STREAM_START:case l.START:t=4;break;case l.LOCAL_FILE_HEADER:t=26;break;case l.LOCAL_FILE_HEADER_SUFFIX:t=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case l.DATA_DESCRIPTOR:t=12;break;case l.CENTRAL_DIRECTORY_FILE_HEADER:t=42;break;case l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:t=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case l.CDIR64_END:t=52;break;case l.CDIR64_END_DATA_SECTOR:t=this.parsedEntity.centralDirectoryRecordSize-44;break;case l.CDIR64_LOCATOR:t=16;break;case l.CENTRAL_DIRECTORY_END:t=18;break;case l.CENTRAL_DIRECTORY_END_COMMENT:t=this.parsedEntity.commentLength;break;case l.FILE_DATA:return 0;case l.FILE_DATA_END:return 0;case l.TRAILING_JUNK:return this.options.debug&&console.log(`found`,e.length,`bytes of TRAILING_JUNK`),e.length;default:return e.length}if(e.length>>=8,(i&255)==80){a=o;break}return this.skippedBytes+=a,this.options.debug&&console.log(`Skipped`,this.skippedBytes,`bytes`),a}this.state=l.ERROR;var s=r?`Not a valid zip file`:`Invalid signature in zip file`;if(this.options.debug){var d=e.readUInt32LE(0),f;try{f=e.slice(0,4).toString()}catch{}console.log(`Unexpected signature in zip file: 0x`+d.toString(16),`"`+f+`", skipped`,this.skippedBytes,`bytes`)}return this.emit(`error`,Error(s)),e.length}return this.skippedBytes=0,t;case l.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(e),this.state=l.LOCAL_FILE_HEADER_SUFFIX,t;case l.LOCAL_FILE_HEADER_SUFFIX:var p=new c,m=(this.parsedEntity.flags&2048)!=0;p.path=this._decodeString(e.slice(0,this.parsedEntity.fileNameLength),m);var h=e.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),g=this._readExtraFields(h);if(g&&g.parsed&&(g.parsed.path&&!m&&(p.path=g.parsed.path),Number.isFinite(g.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===u-1&&(this.parsedEntity.uncompressedSize=g.parsed.uncompressedSize),Number.isFinite(g.parsed.compressedSize)&&this.parsedEntity.compressedSize===u-1&&(this.parsedEntity.compressedSize=g.parsed.compressedSize)),this.parsedEntity.extra=g.parsed||{},this.options.debug){let e=Object.assign({},this.parsedEntity,{path:p.path,flags:`0x`+this.parsedEntity.flags.toString(16),extraFields:g&&g.debug});console.log(`decoded LOCAL_FILE_HEADER:`,JSON.stringify(e,null,2))}return this._prepareOutStream(this.parsedEntity,p),this.emit(`entry`,p),this.state=l.FILE_DATA,t;case l.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(e),this.state=l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,t;case l.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var m=(this.parsedEntity.flags&2048)!=0,v=this._decodeString(e.slice(0,this.parsedEntity.fileNameLength),m),h=e.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),g=this._readExtraFields(h);g&&g.parsed&&g.parsed.path&&!m&&(v=g.parsed.path),this.parsedEntity.extra=g.parsed;var y=(this.parsedEntity.versionMadeBy&65280)>>8==3,b,x;if(y&&(b=this.parsedEntity.externalFileAttributes>>>16,x=(b>>>12&10)==10),this.options.debug){let e=Object.assign({},this.parsedEntity,{path:v,flags:`0x`+this.parsedEntity.flags.toString(16),unixAttrs:b&&`0`+b.toString(8),isSymlink:x,extraFields:g.debug});console.log(`decoded CENTRAL_DIRECTORY_FILE_HEADER:`,JSON.stringify(e,null,2))}return this.state=l.START,t;case l.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(e),this.options.debug&&console.log(`decoded CDIR64_END_RECORD:`,this.parsedEntity),this.state=l.CDIR64_END_DATA_SECTOR,t;case l.CDIR64_END_DATA_SECTOR:return this.state=l.START,t;case l.CDIR64_LOCATOR:return this.state=l.START,t;case l.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(e),this.options.debug&&console.log(`decoded CENTRAL_DIRECTORY_END:`,this.parsedEntity),this.state=l.CENTRAL_DIRECTORY_END_COMMENT,t;case l.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log(`decoded CENTRAL_DIRECTORY_END_COMMENT:`,e.slice(0,t).toString()),this.state=l.TRAILING_JUNK,t;case l.ERROR:return e.length;default:return console.log(`didn't handle state #`,this.state,`discarding`),e.length}},d.prototype._prepareOutStream=function(e,t){var n=this,r=e.uncompressedSize===0&&/[\/\\]$/.test(t.path);t.path=t.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,`.`),t.type=r?`Directory`:`File`,t.isDirectory=r;var a=!(e.flags&8);a&&(t.size=e.uncompressedSize);var d=e.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:a?e.compressedSize:-1,written:0},a)this.outStreamInfo.stream=new i.PassThrough;else{var f=new Buffer(4);f.writeUInt32LE(134695760,0);var p=e.extra.zip64Mode,m=new s({pattern:f,requiredExtraSize:p?20:12},function(e,t){var r=n._readDataDescriptor(e,p),i=r.compressedSize===t;if(!p&&!i&&t>=u)for(var a=t-u;a>=0&&(i=r.compressedSize===a,!i);)a-=u;if(i){n.state=l.FILE_DATA_END;var o=p?24:16;return n.data.length>0?n.data=Buffer.concat([e.slice(o),n.data]):n.data=e.slice(o),!0}});this.outStreamInfo.stream=m}var h=e.flags&1||e.flags&64;if(h||!d){var g=h?`Encrypted files are not supported!`:`Zip version `+Math.floor(e.versionsNeededToExtract/10)+`.`+e.versionsNeededToExtract%10+` is not supported`;t.skip=!0,setImmediate(()=>{n.emit(`error`,Error(g))}),this.outStreamInfo.stream.pipe(new c().autodrain());return}if(e.compressionMethod>0){var v=o.createInflateRaw();v.on(`error`,function(e){n.state=l.ERROR,n.emit(`error`,e)}),this.outStreamInfo.stream.pipe(v).pipe(t)}else this.outStreamInfo.stream.pipe(t);this._drainAllEntries&&t.autodrain()},d.prototype._readFile=function(e){return r.parse(e).word16lu(`versionsNeededToExtract`).word16lu(`flags`).word16lu(`compressionMethod`).word16lu(`lastModifiedTime`).word16lu(`lastModifiedDate`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).word16lu(`fileNameLength`).word16lu(`extraFieldLength`).vars},d.prototype._readExtraFields=function(e){var t={},n={parsed:t};this.options.debug&&(n.debug=[]);for(var i=0;i=l+4&&c&1&&(t.mtime=new Date(e.readUInt32LE(i+l)*1e3),l+=4),a.extraSize>=l+4&&c&2&&(t.atime=new Date(e.readUInt32LE(i+l)*1e3),l+=4),a.extraSize>=l+4&&c&4&&(t.ctime=new Date(e.readUInt32LE(i+l)*1e3));break;case 28789:if(o=`Info-ZIP Unicode Path Extra Field`,e.readUInt8(i)===1){var l=1;e.readUInt32LE(i+l),l+=4,t.path=e.slice(i+l).toString()}break;case 13:case 22613:o=a.extraId===13?`PKWARE Unix`:`Info-ZIP UNIX (type 1)`;var l=0;if(a.extraSize>=8){var u=new Date(e.readUInt32LE(i+l)*1e3);l+=4;var d=new Date(e.readUInt32LE(i+l)*1e3);if(l+=4,t.atime=u,t.mtime=d,a.extraSize>=12){var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);l+=2,t.uid=f,t.gid=p}}break;case 30805:o=`Info-ZIP UNIX (type 2)`;var l=0;if(a.extraSize>=4){var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);l+=2,t.uid=f,t.gid=p}break;case 30837:o=`Info-ZIP New Unix`;var l=0,m=e.readUInt8(i);if(l+=1,m===1){var h=e.readUInt8(i+l);l+=1,h<=6&&(t.uid=e.readUIntLE(i+l,h)),l+=h;var g=e.readUInt8(i+l);l+=1,g<=6&&(t.gid=e.readUIntLE(i+l,g))}break;case 30062:o=`ASi Unix`;var l=0;if(a.extraSize>=14){e.readUInt32LE(i+l),l+=4;var v=e.readUInt16LE(i+l);l+=2,e.readUInt32LE(i+l),l+=4;var f=e.readUInt16LE(i+l);l+=2;var p=e.readUInt16LE(i+l);if(l+=2,t.mode=v,t.uid=f,t.gid=p,a.extraSize>14){var y=i+l,b=i+a.extraSize-14;t.symlink=this._decodeString(e.slice(y,b))}}break}this.options.debug&&n.debug.push({extraId:`0x`+a.extraId.toString(16),description:o,data:e.slice(i,i+a.extraSize).inspect()}),i+=a.extraSize}return n},d.prototype._readDataDescriptor=function(e,t){if(t){var n=r.parse(e).word32lu(`dataDescriptorSignature`).word32lu(`crc32`).word64lu(`compressedSize`).word64lu(`uncompressedSize`).vars;return n}var n=r.parse(e).word32lu(`dataDescriptorSignature`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).vars;return n},d.prototype._readCentralDirectoryEntry=function(e){return r.parse(e).word16lu(`versionMadeBy`).word16lu(`versionsNeededToExtract`).word16lu(`flags`).word16lu(`compressionMethod`).word16lu(`lastModifiedTime`).word16lu(`lastModifiedDate`).word32lu(`crc32`).word32lu(`compressedSize`).word32lu(`uncompressedSize`).word16lu(`fileNameLength`).word16lu(`extraFieldLength`).word16lu(`fileCommentLength`).word16lu(`diskNumber`).word16lu(`internalFileAttributes`).word32lu(`externalFileAttributes`).word32lu(`offsetToLocalFileHeader`).vars},d.prototype._readEndOfCentralDirectory64=function(e){return r.parse(e).word64lu(`centralDirectoryRecordSize`).word16lu(`versionMadeBy`).word16lu(`versionsNeededToExtract`).word32lu(`diskNumber`).word32lu(`diskNumberWithCentralDirectoryStart`).word64lu(`centralDirectoryEntries`).word64lu(`totalCentralDirectoryEntries`).word64lu(`sizeOfCentralDirectory`).word64lu(`offsetToStartOfCentralDirectory`).vars},d.prototype._readEndOfCentralDirectory=function(e){return r.parse(e).word16lu(`diskNumber`).word16lu(`diskStart`).word16lu(`centralDirectoryEntries`).word16lu(`totalCentralDirectoryEntries`).word32lu(`sizeOfCentralDirectory`).word32lu(`offsetToStartOfCentralDirectory`).word16lu(`commentLength`).vars},d.prototype._decodeString=function(e,t){if(t)return e.toString(`utf8`);if(this.options.decodeString)return this.options.decodeString(e);let n=``;for(var r=0;r?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `[e[r]];return n},d.prototype._parseOrOutput=function(e,t){for(var n;(n=this.processDataChunk(this.data))>0&&(this.data=this.data.slice(n),this.data.length!==0););if(this.state===l.FILE_DATA){if(this.outStreamInfo.limit>=0){var r=this.outStreamInfo.limit-this.outStreamInfo.written,i;r{if(this.state===l.FILE_DATA_END)return this.state=l.START,a.end(t);t()})}return}t()},d.prototype.drainAll=function(){this._drainAllEntries=!0},d.prototype._transform=function(e,t,n){var r=this;r.data.length>0?r.data=Buffer.concat([r.data,e]):r.data=e;var i=r.data.length,a=function(){if(r.data.length>0&&r.data.length0){t._parseOrOutput(`buffer`,function(){if(t.data.length>0)return setImmediate(function(){t._flush(e)});e()});return}if(t.state===l.FILE_DATA)return e(Error(`Stream finished in an invalid state, uncompression failed`));setImmediate(e)},n.exports=d})),wR=a(((e,n)=>{var r=t(`stream`).Transform,i=t(`util`),a=CR();function o(e){if(!(this instanceof o))return new o(e);r.call(this,{readableObjectMode:!0}),this.opts=e||{},this.unzipStream=new a(this.opts);var t=this;this.unzipStream.on(`entry`,function(e){t.push(e)}),this.unzipStream.on(`error`,function(e){t.emit(`error`,e)})}i.inherits(o,r),o.prototype._transform=function(e,t,n){this.unzipStream.write(e,t,n)},o.prototype._flush=function(e){var t=this;this.unzipStream.end(function(){process.nextTick(function(){t.emit(`close`)}),e()})},o.prototype.on=function(e,t){return e===`entry`?r.prototype.on.call(this,`data`,t):r.prototype.on.call(this,e,t)},o.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new r({objectMode:!0,transform:function(e,t,n){n()}}))},n.exports=o})),TR=a(((e,n)=>{var r=t(`path`),i=t(`fs`),a=511;n.exports=o.mkdirp=o.mkdirP=o;function o(e,t,n,s){typeof t==`function`?(n=t,t={}):(!t||typeof t!=`object`)&&(t={mode:t});var c=t.mode,l=t.fs||i;c===void 0&&(c=a),s||=null;var u=n||function(){};e=r.resolve(e),l.mkdir(e,c,function(n){if(!n)return s||=e,u(null,s);switch(n.code){case`ENOENT`:if(r.dirname(e)===e)return u(n);o(r.dirname(e),t,function(n,r){n?u(n,r):o(e,t,u,r)});break;default:l.stat(e,function(e,t){e||!t.isDirectory()?u(n,s):u(null,s)});break}})}o.sync=function e(t,n,o){(!n||typeof n!=`object`)&&(n={mode:n});var s=n.mode,c=n.fs||i;s===void 0&&(s=a),o||=null,t=r.resolve(t);try{c.mkdirSync(t,s),o||=t}catch(i){switch(i.code){case`ENOENT`:o=e(r.dirname(t),n,o),e(t,n,o);break;default:var l;try{l=c.statSync(t)}catch{throw i}if(!l.isDirectory())throw i;break}}return o}})),ER=a(((e,n)=>{var r=t(`fs`),i=t(`path`),a=t(`util`),o=TR(),s=t(`stream`).Transform,c=CR();function l(e){if(!(this instanceof l))return new l(e);s.call(this),this.opts=e||{},this.unzipStream=new c(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var t=this;this.unzipStream.on(`entry`,this._processEntry.bind(this)),this.unzipStream.on(`error`,function(e){t.emit(`error`,e)})}a.inherits(l,s),l.prototype._transform=function(e,t,n){this.unzipStream.write(e,t,n)},l.prototype._flush=function(e){var t=this,n=function(){process.nextTick(function(){t.emit(`close`)}),e()};this.unzipStream.end(function(){if(t.unfinishedEntries>0)return t.afterFlushWait=!0,t.on(`await-finished`,n);n()})},l.prototype._processEntry=function(e){var t=this,n=i.join(this.opts.path,e.path),a=e.isDirectory?n:i.dirname(n);this.unfinishedEntries++;var s=function(){var i=r.createWriteStream(n);i.on(`close`,function(){t.unfinishedEntries--,t._notifyAwaiter()}),i.on(`error`,function(e){t.emit(`error`,e)}),e.pipe(i)};if(this.createdDirectories[a]||a===`.`)return s();o(a,function(n){if(n)return t.emit(`error`,n);if(t.createdDirectories[a]=!0,e.isDirectory){t.unfinishedEntries--,t._notifyAwaiter();return}s()})},l.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit(`await-finished`),this.afterFlushWait=!1)},n.exports=l})),DR=r(a((e=>{e.Parse=wR(),e.Extract=ER()}))(),1),OR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const kR=e=>{let t=new URL(e);return t.search=``,t.toString()};function AR(e){return OR(this,void 0,void 0,function*(){try{return yield Xe.access(e),!0}catch(e){if(e.code===`ENOENT`)return!1;throw e}})}function jR(e,t,n){return OR(this,void 0,void 0,function*(){let r=0;for(;r<5;)try{return yield MR(e,t,{skipDecompress:n})}catch(e){r++,K(`Failed to download artifact after ${r} retries due to ${e.message}. Retrying in 5 seconds...`),yield new Promise(e=>setTimeout(e,5e3))}throw Error(`Artifact download failed after ${r} retries.`)})}function MR(e,t){return OR(this,arguments,void 0,function*(e,t,n={}){let{timeout:r=30*1e3,skipDecompress:i=!1}=n,a=yield new dr(WN()).get(e);if(a.message.statusCode!==200)throw Error(`Unexpected HTTP response from blob storage: ${a.message.statusCode} ${a.message.statusMessage}`);let o=a.message.headers[`content-type`]||``,s=o.split(`;`,1)[0].trim().toLowerCase(),c=new URL(e).pathname.toLowerCase().endsWith(`.zip`),l=s===`application/zip`||s===`application/x-zip-compressed`||s===`application/zip-compressed`||c,u=a.message.headers[`content-disposition`]||``,d=`artifact`,f=u.match(/filename\*\s*=\s*UTF-8''([^;\r\n]*)/i),p=u.match(/(?{let o=setTimeout(()=>{let e=Error(`Blob storage chunk did not respond in ${r}ms`);a.message.destroy(e),n(e)},r),s=e=>{K(`response.message: Artifact download failed: ${e.message}`),clearTimeout(o),n(e)},c=oe.createHash(`sha256`).setEncoding(`hex`),u=new qe.PassThrough().on(`data`,()=>{o.refresh()}).on(`error`,s);a.message.pipe(u),u.pipe(c);let f=()=>{clearTimeout(o),c&&(c.end(),h=c.read(),mi(`SHA256 digest of downloaded artifact is ${h}`)),e({sha256Digest:`sha256:${h}`})};if(l&&!i)u.pipe(DR.Extract({path:t})).on(`close`,f).on(`error`,s);else{let e=W.join(t,d),n=H.createWriteStream(e);mi(`Downloading raw file (non-zip) to: ${e}`),u.pipe(n).on(`close`,f).on(`error`,s)}})})}function NR(e,t,n,r,i){return OR(this,void 0,void 0,function*(){let a=yield FR(i?.path),o=vu(r),s=!1;mi(`Downloading artifact '${e}' from '${t}/${n}'`);let{headers:c,status:l}=yield o.rest.actions.downloadArtifact({owner:t,repo:n,artifact_id:e,archive_format:`zip`,request:{redirect:`manual`}});if(l!==302)throw Error(`Unable to download artifact. Unexpected status: ${l}`);let{location:u}=c;if(!u)throw Error(`Unable to redirect to artifact download url`);mi(`Redirecting to blob download url: ${kR(u)}`);try{mi(`Starting download of artifact to: ${a}`);let e=yield jR(u,a,i?.skipDecompress);mi(`Artifact download completed successfully.`),i?.expectedHash&&i?.expectedHash!==e.sha256Digest&&(s=!0,K(`Computed digest: ${e.sha256Digest}`),K(`Expected digest: ${i.expectedHash}`))}catch(e){throw Error(`Unable to download and extract artifact: ${e.message}`)}return{downloadPath:a,digestMismatch:s}})}function PR(e,t){return OR(this,void 0,void 0,function*(){let n=yield FR(t?.path),r=sP(),i=!1,{workflowRunBackendId:a,workflowJobRunBackendId:o}=nP(),s={workflowRunBackendId:a,workflowJobRunBackendId:o,idFilter:SN.create({value:e.toString()})},{artifacts:c}=yield r.ListArtifacts(s);if(c.length===0)throw new qN(`No artifacts found for ID: ${e}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&pi(`Multiple artifacts found, defaulting to first.`);let l={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield r.GetSignedArtifactURL(l);mi(`Redirecting to blob download url: ${kR(u)}`);try{mi(`Starting download of artifact to: ${n}`);let e=yield jR(u,n,t?.skipDecompress);mi(`Artifact download completed successfully.`),t?.expectedHash&&t?.expectedHash!==e.sha256Digest&&(i=!0,K(`Computed digest: ${e.sha256Digest}`),K(`Expected digest: ${t.expectedHash}`))}catch(e){throw Error(`Unable to download and extract artifact: ${e.message}`)}return{downloadPath:n,digestMismatch:i}})}function FR(){return OR(this,arguments,void 0,function*(e=_N()){return(yield AR(e))?K(`Artifact destination folder already exists: ${e}`):(K(`Artifact destination folder does not exist, creating: ${e}`),yield Xe.mkdir(e,{recursive:!0})),e})}const IR=[400,401,403,404,422];function LR(e,t=5,n=IR){if(t<=0)return[{enabled:!1},e.request];let r={enabled:!0};n.length>0&&(r.doNotRetry=n);let i=Object.assign(Object.assign({},e.request),{retries:t});return K(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${r.doNotRetry??`octokit default: [400, 401, 403, 404, 422]`})`),[r,i]}function RR(e){e.hook.wrap(`request`,(t,n)=>{e.log.debug(`request`,n);let r=Date.now(),i=e.request.endpoint.parse(n),a=i.url.replace(n.baseUrl,``);return t(n).then(t=>{let n=t.headers[`x-github-request-id`];return e.log.info(`${i.method} ${a} - ${t.status} with id ${n} in ${Date.now()-r}ms`),t}).catch(t=>{let n=t.response?.headers[`x-github-request-id`]||`UNKNOWN`;throw e.log.error(`${i.method} ${a} - ${t.status} with id ${n} in ${Date.now()-r}ms`),t})})}RR.VERSION=`6.0.0`;var zR=r(a(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,v=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),v.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),v.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var y=g,b=c,x=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},S=r,C=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new S}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},w=`2.19.5`,T=Object.freeze({version:w,default:{version:w}}),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),k,A,j,M,N,P=n;k=i,M=E,j=D,N=O,A=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,P.load(this.limiterOptions,this.defaults,this),this.Events=new k(this),this.instances={},this.Bottleneck=ue,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new M(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...N.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(P.overwrite(e,this.defaults,this),P.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var F=A,I,L,R=n;L=i,I=(function(){class e{constructor(e={}){this.options=e,R.load(this.options,this.defaults,this),this.Events=new L(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var z=I,ee=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),B=t(T),te,ne,V,re,ie,ae,oe,H,se,U,ce,le=[].splice;ae=10,ne=5,ce=n,oe=s,re=m,ie=y,H=ee,V=i,se=x,U=C,te=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),ce.load(t,this.instanceDefaults,this),this._queues=new oe(ae),this._scheduled={},this._states=new se([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new V(this),this._submitLock=new U(`submit`,this.Promise),this._registerLock=new U(`register`,this.Promise),i=ce.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=ce.load(t,this.redisStoreDefaults,{}),new H(this,i,r);if(this.datastore===`local`)return r=ce.load(t,this.localStoreDefaults,{}),new ie(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.prototype.BottleneckError(`Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.`)}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=ce.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ae-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=le.call(e,-1),i=ce.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=le.call(e,-1),i=ce.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new re(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new re(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(ce.overwrite(e,this.storeDefaults)),ce.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=V,e.version=e.prototype.version=B.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=F,e.RedisConnection=e.prototype.RedisConnection=E,e.IORedisConnection=e.prototype.IORedisConnection=D,e.Batcher=e.prototype.Batcher=z,e.prototype.jobDefaults={priority:ne,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var ue=te;return ue}))}))(),1),BR=`0.0.0-development`;function VR(e){return e.request!==void 0}async function HR(e,t,n,r){if(!VR(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function UR(e,t,n,r){let i=new zR.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(WR.bind(null,e,t,n),r)}async function WR(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?HR(e,t,new yl(i.data.errors[0].message,500,{request:r,response:i}),r):i}function GR(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,HR.bind(null,n,r)),e.hook.wrap(`request`,UR.bind(null,n,r))),r}GR.VERSION=BR;var KR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function qR(e,t,n,r,i){return KR(this,void 0,void 0,function*(){let[a,o]=LR(mu),s=yield vu(i,{log:void 0,userAgent:WN(),previews:void 0,retry:a,request:o},GR,RR).request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}`,{owner:n,repo:r,run_id:t,name:e});if(s.status!==200)throw new KN(`Invalid response from GitHub API: ${s.status} (${s?.headers?.[`x-github-request-id`]})`);if(s.data.artifacts.length===0)throw new qN(`Artifact not found for name: ${e} + Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. + For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=s.data.artifacts[0];return s.data.artifacts.length>1&&(c=s.data.artifacts.sort((e,t)=>t.id-e.id)[0],K(`More than one artifact found for a single name, returning newest (id: ${c.id})`)),{artifact:{name:c.name,id:c.id,size:c.size_in_bytes,createdAt:c.created_at?new Date(c.created_at):void 0,digest:c.digest}}})}function JR(e){return KR(this,void 0,void 0,function*(){let t=sP(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=nP(),i={workflowRunBackendId:n,workflowJobRunBackendId:r,nameFilter:CN.create({value:e})},a=yield t.ListArtifacts(i);if(a.artifacts.length===0)throw new qN(`Artifact not found for name: ${e} + Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. + For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let o=a.artifacts[0];return a.artifacts.length>1&&(o=a.artifacts.sort((e,t)=>Number(t.databaseId)-Number(e.databaseId))[0],K(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`)),{artifact:{name:o.name,id:Number(o.databaseId),size:Number(o.size),createdAt:o.createdAt?xN.toDate(o.createdAt):void 0,digest:o.digest?.value}}})}var YR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function XR(e,t,n,r,i){return YR(this,void 0,void 0,function*(){let[a,o]=LR(mu),s=vu(i,{log:void 0,userAgent:WN(),previews:void 0,retry:a,request:o},GR,RR),c=yield qR(e,t,n,r,i),l=yield s.rest.actions.deleteArtifact({owner:n,repo:r,artifact_id:c.artifact.id});if(l.status!==204)throw new KN(`Invalid response from GitHub API: ${l.status} (${l?.headers?.[`x-github-request-id`]})`);return{id:c.artifact.id}})}function ZR(e){return YR(this,void 0,void 0,function*(){let t=sP(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=nP(),i={workflowRunBackendId:n,workflowJobRunBackendId:r,nameFilter:CN.create({value:e})},a=yield t.ListArtifacts(i);if(a.artifacts.length===0)throw new qN(`Artifact not found for name: ${e}`);let o=a.artifacts[0];a.artifacts.length>1&&(o=a.artifacts.sort((e,t)=>Number(t.databaseId)-Number(e.databaseId))[0],K(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let s={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield t.DeleteArtifact(s);return mi(`Artifact '${e}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var QR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const $R=bN(),ez=Math.ceil($R/100);function tz(e,t,n,r){return QR(this,arguments,void 0,function*(e,t,n,r,i=!1){mi(`Fetching artifact list for workflow run ${e} in repository ${t}/${n}`);let a=[],[o,s]=LR(mu),c=vu(r,{log:void 0,userAgent:WN(),previews:void 0,retry:o,request:s},GR,RR),l=1,{data:u}=yield c.request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`,{owner:t,repo:n,run_id:e,per_page:100,page:l}),d=Math.ceil(u.total_count/100),f=u.total_count;f>$R&&(pi(`Workflow run ${e} has ${f} artifacts, exceeding the limit of ${$R}. Results will be incomplete as only the first ${$R} artifacts will be returned`),d=ez);for(let e of u.artifacts)a.push({name:e.name,id:e.id,size:e.size_in_bytes,createdAt:e.created_at?new Date(e.created_at):void 0,digest:e.digest});for(l++;l<=d;l++){K(`Fetching page ${l} of artifact list`);let{data:r}=yield c.request(`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`,{owner:t,repo:n,run_id:e,per_page:100,page:l});for(let e of r.artifacts)a.push({name:e.name,id:e.id,size:e.size_in_bytes,createdAt:e.created_at?new Date(e.created_at):void 0,digest:e.digest})}return i&&(a=rz(a)),mi(`Found ${a.length} artifact(s)`),{artifacts:a}})}function nz(){return QR(this,arguments,void 0,function*(e=!1){let t=sP(),{workflowRunBackendId:n,workflowJobRunBackendId:r}=nP(),i={workflowRunBackendId:n,workflowJobRunBackendId:r},a=(yield t.ListArtifacts(i)).artifacts.map(e=>({name:e.name,id:Number(e.databaseId),size:Number(e.size),createdAt:e.createdAt?xN.toDate(e.createdAt):void 0,digest:e.digest?.value}));return e&&(a=rz(a)),mi(`Found ${a.length} artifact(s)`),{artifacts:a}})}function rz(e){e.sort((e,t)=>t.id-e.id);let t=[],n=new Set;for(let r of e)n.has(r.name)||(t.push(r),n.add(r.name));return t}var iz=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},az=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{r={warningEmitted:!1},i=e=>{if(e&&!r.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED===`true`){r.warningEmitted=!0;return}parseInt(e.substring(1,e.indexOf(`.`)))<22&&(r.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3) -versions published after the first week of January 2027 -will require node >=22. You are running node ${e}. - -To continue receiving updates to AWS services, bug fixes, -and security updates please upgrade to node >=22. - -More information can be found at: https://a.co/c895JFp`))}}})),o,s,c,l=e((()=>{o=()=>(e,t)=>async n=>(t.__retryLongPoll=!0,e(n)),s={name:`longPollMiddleware`,tags:[`RETRY`],step:`initialize`,override:!0},c=e=>({applyToStack:e=>{e.add(o(),s)}})}));function u(e,t,n){return e.$source||={},e.$source[t]=n,e}var d=e((()=>{})),f=n((e=>{let t=[`AuthFailure`,`InvalidSignatureException`,`RequestExpired`,`RequestInTheFuture`,`RequestTimeTooSkewed`,`SignatureDoesNotMatch`],n=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],r=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],i=[500,502,503,504],a=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],o=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`],s=e=>e?.$retryable!==void 0,c=e=>t.includes(e.name),l=e=>e.$metadata?.clockSkewCorrected,u=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},d=e=>e.$metadata?.httpStatusCode===429||n.includes(e.name)||e.$retryable?.throttling==1,f=(e,t=0)=>s(e)||l(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||r.includes(e.name)||a.includes(e?.code||``)||o.includes(e?.code||``)||i.includes(e.$metadata?.httpStatusCode||0)||u(e)||m(e)||e.cause!==void 0&&t<=10&&f(e.cause,t+1),p=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!f(e)}return!1};function m(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}e.isBrowserNetworkError=u,e.isClockSkewCorrectedError=l,e.isClockSkewError=c,e.isNodeJsHttp2TransientError=m,e.isRetryableByTrait=s,e.isServerError=p,e.isThrottlingError=d,e.isTransientError=f})),p=n((e=>{var t=f();e.RETRY_MODES=void 0,(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(e.RETRY_MODES||={});let n=e.RETRY_MODES.STANDARD;var r=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let n;this.updateMeasuredRate();let r=e;if(r?.errorType===`THROTTLING`||t.isThrottlingError(r?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let i=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(i)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}};let i=20*1e3;var a=class e{static v2026=typeof process<`u`&&process.env?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}},o=class{x=a.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,i);return Math.floor(t)}setDelayBase(e){this.x=e}},s=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(i,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};let c={incompatible:1,attempts:2,capacity:3};var l=class{mode=e.RETRY_MODES.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=a.delay(),this.retryBackoffStrategy??=new o}async acquireInitialRetryToken(e){return new s(a.delay(),0,void 0,a.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,o=e.isLongPoll?.();if(i||o){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?a.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(t.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(t.retryAfterHint.getTime()-Date.now(),l+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new s(u,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:a.v2026&&r===c.capacity&&o?u:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:c.incompatible,a=r=this.getCapacityCost(t.errorType)?0:c.capacity;return i||a||o}getCapacityCost(e){return e===a.modifiedCostType()?a.throttlingCost():a.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}},u=class{mode=e.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new r,this.standardRetryStrategy=t?new l({maxAttempts:typeof e==`number`?e:3,...t}):new l(e)}async acquireInitialRetryToken(e){let t=this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},d=class extends l{computeNextBackoffDelay;constructor(e,t=a.delay()){super(typeof e==`function`?e:async()=>e),typeof t==`number`?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(e,t){let n=await super.refreshRetryTokenForRetry(e,t);return n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount()),n}};e.AdaptiveRetryStrategy=u,e.ConfiguredRetryStrategy=d,e.DEFAULT_MAX_ATTEMPTS=3,e.DEFAULT_RETRY_DELAY_BASE=100,e.DEFAULT_RETRY_MODE=n,e.DefaultRateLimiter=r,e.INITIAL_RETRY_TOKENS=500,e.INVOCATION_ID_HEADER=`amz-sdk-invocation-id`,e.MAXIMUM_RETRY_DELAY=i,e.NO_RETRY_INCREMENT=1,e.REQUEST_HEADER=`amz-sdk-request`,e.RETRY_COST=5,e.Retry=a,e.StandardRetryStrategy=l,e.THROTTLING_RETRY_DELAY_BASE=500,e.TIMEOUT_RETRY_COST=10}));function m(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}var h,g=e((()=>{h=p(),h.Retry.v2026||=typeof process==`object`&&process.env?.AWS_NEW_RETRIES_2026===`true`}));function _(e,t,n){return e.$source||={},e.$source[t]=n,e}var v=e((()=>{})),y=t({emitWarningIfUnsupportedVersion:()=>i,getLongPollPlugin:()=>c,setCredentialFeature:()=>u,setFeature:()=>m,setTokenFeature:()=>_,state:()=>r}),b=e((()=>{a(),l(),d(),g(),v()}));export{d as a,a as c,f as i,b as n,u as o,p as r,i as s,y as t}; \ No newline at end of file diff --git a/dist/client-CtZmAvVy.js b/dist/client-CtZmAvVy.js new file mode 100644 index 00000000..d88dd3a4 --- /dev/null +++ b/dist/client-CtZmAvVy.js @@ -0,0 +1,9 @@ +import{n as e,o as t,r as n}from"./chunk-BTyA9uPd.js";import{Dn as r,En as i,F as a,I as o,K as s,L as c,Lt as l,Nn as u,R as d,Rt as f,S as p,Sn as ee,Tt as te,Y as ne,a as re,b as ie,f as m,gn as ae,h as oe,j as se,jn as ce,kn as h,q as le,r as ue,vn as de,y as fe,z as pe}from"./serde-Bngt0OLn.js";import{t as g,y as me}from"./protocols-D7c0rc_2.js";import{env as he,versions as ge}from"node:process";import{Readable as _e}from"node:stream";import{readFile as ve}from"node:fs/promises";import{join as ye,normalize as be,sep as xe}from"node:path";import{platform as Se,release as Ce}from"node:os";var _,we,Te=e((()=>{_={warningEmitted:!1},we=e=>{if(e&&!_.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED===`true`){_.warningEmitted=!0;return}parseInt(e.substring(1,e.indexOf(`.`)))<22&&(_.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3) +versions published after the first week of January 2027 +will require node >=22. You are running node ${e}. + +To continue receiving updates to AWS services, bug fixes, +and security updates please upgrade to node >=22. + +More information can be found at: https://a.co/c895JFp`))}}})),Ee,De,Oe,ke=e((()=>{Ee=()=>(e,t)=>async n=>(t.__retryLongPoll=!0,e(n)),De={name:`longPollMiddleware`,tags:[`RETRY`],step:`initialize`,override:!0},Oe=e=>({applyToStack:e=>{e.add(Ee(),De)}})}));function Ae(e,t,n){return e.$source||={},e.$source[t]=n,e}var je=e((()=>{})),v,Me=e((()=>{v=e=>e?.body instanceof _e||typeof ReadableStream<`u`&&e?.body instanceof ReadableStream})),Ne,Pe,Fe,Ie,Le,Re,ze=e((()=>{Ne=[`AuthFailure`,`InvalidSignatureException`,`RequestExpired`,`RequestInTheFuture`,`RequestTimeTooSkewed`,`SignatureDoesNotMatch`],Pe=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`,`TransactionInProgressException`],Fe=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Ie=[500,502,503,504],Le=[`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`],Re=[`EHOSTUNREACH`,`ENETUNREACH`,`ENOTFOUND`]}));function Be(e){return e.code===`ERR_HTTP2_STREAM_ERROR`&&e.message.includes(`NGHTTP2_REFUSED_STREAM`)}var y,Ve,He,Ue,b,x,We,S=e((()=>{ze(),y=e=>e?.$retryable!==void 0,Ve=e=>Ne.includes(e.name),He=e=>e.$metadata?.clockSkewCorrected,Ue=e=>{let t=new Set([`Failed to fetch`,`NetworkError when attempting to fetch resource`,`The Internet connection appears to be offline`,`Load failed`,`Network request failed`]);return e&&e instanceof TypeError?t.has(e.message):!1},b=e=>e.$metadata?.httpStatusCode===429||Pe.includes(e.name)||e.$retryable?.throttling==1,x=(e,t=0)=>y(e)||He(e)||e.name===`InvalidSignatureException`&&e.message?.includes(`Signature expired`)||Fe.includes(e.name)||Le.includes(e?.code||``)||Re.includes(e?.code||``)||Ie.includes(e.$metadata?.httpStatusCode||0)||Ue(e)||Be(e)||e.cause!==void 0&&t<=10&&x(e.cause,t+1),We=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!x(e)}return!1}})),C,w,T,E=e((()=>{C=20*1e3,w=`amz-sdk-invocation-id`,T=`amz-sdk-request`}));function Ge(e,t){if(r.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(te(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}function Ke(e,t){return Ge(e,t)}var qe=e((()=>{g(),ue()})),Je,Ye=e((()=>{Je=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`)}));function Xe(e){return t=>(n,r)=>async i=>{let a=await t.retryStrategy(),o=await t.maxAttempts();if($e(a)){a=a;let s=await a.acquireInitialRetryToken((r.partition_id??``)+(r.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:d}=i,p=h.isInstance(d);for(p&&(d.headers[w]=re());;)try{p&&(d.headers[T]=`attempt=${l+1}; max=${o}`);let{response:e,output:t}=await n(i);return a.recordSuccess(s),t.$metadata.attempts=l+1,t.$metadata.totalRetryDelay=u,{response:e,output:t}}catch(n){let i=et(n,t.logger);if(c=Je(n),p&&e(d))throw(r.logger instanceof f?console:r.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,i)}catch(e){throw typeof e.$backoff==`number`&&await Qe(e.$backoff),c.$metadata||={},c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let o=s.getRetryDelay();u+=o,await Qe(o)}}else return a=a,a?.mode&&(r.userAgent=[...r.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(n,i)}}function Ze(e){let t=Xe(e);return e=>({applyToStack:n=>{n.add(t(e),nt)}})}var Qe,$e,et,tt,nt,rt=e((()=>{l(),g(),ue(),S(),E(),qe(),Ye(),Qe=e=>new Promise(t=>setTimeout(t,e)),$e=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,et=(e,t)=>{let n={error:e,errorType:tt(e)},r=Ge(e.$response,t);return r&&(n.retryAfterHint=r),n},tt=e=>b(e)?`THROTTLING`:x(e)?`TRANSIENT`:We(e)?`SERVER_ERROR`:`CLIENT_ERROR`,nt={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0}})),D,it=e((()=>{S(),D=class e{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();let n=e;if(n?.errorType===`THROTTLING`||b(n?.error??e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let n=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,n)),this.refillTokenBucket()}this.availableTokens-=t}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise((this.lastMaxRate*(1-this.beta)/this.scaleConstant)**(1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*(e-this.lastThrottleTime-this.timeWindow)**3+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}})),O,k=e((()=>{O=class e{static v2026=typeof process<`u`&&process.env?.SMITHY_NEW_RETRIES_2026===`true`;static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?`THROTTLING`:`TRANSIENT`}}})),at,ot=e((()=>{E(),k(),at=class{x=O.delay();computeNextBackoffDelay(e){let t=Math.random()*Math.min(this.x*2**e,C);return Math.floor(t)}setDelayBase(e){this.x=e}}})),st,ct=e((()=>{E(),st=class{delay;count;cost;longPoll;constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(C,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}})),A,j,M=e((()=>{(function(e){e.STANDARD=`standard`,e.ADAPTIVE=`adaptive`})(A||={}),j=A.STANDARD})),N,P,F=e((()=>{ot(),ct(),M(),E(),k(),N={incompatible:1,attempts:2,capacity:3},P=class{mode=A.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e==`number`?this.maxAttemptsProvider=async()=>e:typeof e==`function`?this.maxAttemptsProvider=e:e&&typeof e==`object`&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=O.delay(),this.retryBackoffStrategy??=new at}async acquireInitialRetryToken(e){return new st(O.delay(),0,void 0,O.v2026&&e.includes(`:longpoll`))}async refreshRetryTokenForRetry(e,t){let n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=r===0,a=e.isLongPoll?.();if(i||a){let n=t.errorType;this.retryBackoffStrategy.setDelayBase(n===`THROTTLING`?O.throttlingDelay():this.baseDelay);let o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=o;if(t.retryAfterHint instanceof Date&&(s=Math.max(o,Math.min(t.retryAfterHint.getTime()-Date.now(),o+5e3))),i){let t=this.getCapacityCost(n);return this.capacity-=t,new st(s,e.getRetryCount()+1,t,e.isLongPoll?.()??!1)}else throw Object.assign(Error(`No retry token available`),{$backoff:O.v2026&&r===N.capacity&&a?s:0})}throw Error(`No retry token available`)}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of 3`),3}}retryCode(e,t,n){let r=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:N.incompatible,a=r=this.getCapacityCost(t.errorType)?0:N.capacity;return i||a||o}getCapacityCost(e){return e===O.modifiedCostType()?O.throttlingCost():O.cost()}isRetryableError(e){return e===`THROTTLING`||e===`TRANSIENT`}}})),lt,ut=e((()=>{it(),F(),M(),lt=class{mode=A.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:n}=t??{};this.rateLimiter=n??new D,this.standardRetryStrategy=t?new P({maxAttempts:typeof e==`number`?e:3,...t}):new P(e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}})),dt,ft=e((()=>{F(),k(),dt=class extends P{computeNextBackoffDelay;constructor(e,t=O.delay()){super(typeof e==`function`?e:async()=>e),typeof t==`number`?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(e,t){let n=await super.refreshRetryTokenForRetry(e,t);return n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount()),n}}})),pt,mt=e((()=>{E(),pt=(e,t)=>{let n=e,r=t?.noRetryIncrement??1,i=t?.retryCost??5,a=t?.timeoutRetryCost??10,o=e,s=e=>e.name===`TimeoutError`?a:i,c=e=>s(e)<=o;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:e=>{if(!c(e))throw Error(`No retry token available`);let t=s(e);return o-=t,t},releaseRetryTokens:e=>{o+=e??r,o=Math.min(o,n)}})}})),I,ht=e((()=>{E(),I=(e,t)=>Math.floor(Math.min(C,Math.random()*2**t*e))})),L,gt=e((()=>{S(),L=e=>e?y(e)||Ve(e)||b(e)||x(e):!1})),R,_t,vt=e((()=>{g(),ue(),S(),M(),E(),Ye(),mt(),ht(),gt(),R=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=A.STANDARD;constructor(e,t){this.maxAttemptsProvider=e,this.retryDecider=t?.retryDecider??L,this.delayDecider=t?.delayDecider??I,this.retryQuota=t?.retryQuota??pt(500)}shouldRetry(e,t,n){return tsetTimeout(e,o));continue}throw t.$metadata||={},t.$metadata.attempts=i,t.$metadata.totalRetryDelay=a,t}}},_t=e=>{if(!r.isInstance(e))return;let t=Object.keys(e.headers).find(e=>e.toLowerCase()===`retry-after`);if(!t)return;let n=e.headers[t],i=Number(n);return Number.isNaN(i)?new Date(n).getTime()-Date.now():i*1e3}})),yt,bt=e((()=>{it(),M(),vt(),yt=class extends R{rateLimiter;constructor(e,t){let{rateLimiter:n,...r}=t??{};super(e,r),this.rateLimiter=n??new D,this.mode=A.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}})),z,B,xt,St,Ct,wt,Tt,Et=e((()=>{l(),ut(),F(),M(),z=`AWS_MAX_ATTEMPTS`,B=`max_attempts`,xt={environmentVariableSelector:e=>{let t=e[z];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Environment variable ${z} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[B];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Shared config file entry ${B} mast be a number, got "${t}"`);return n},default:3},St=e=>{let{retryStrategy:t,retryMode:n}=e,r=ee(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await ee(n)()===A.ADAPTIVE?new lt(r):new P(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??=a()})},Ct=`AWS_RETRY_MODE`,wt=`retry_mode`,Tt={environmentVariableSelector:e=>e[Ct],configFileSelector:e=>e[wt],default:j}})),Dt,Ot,kt,At=e((()=>{g(),E(),Dt=()=>e=>async t=>{let{request:n}=t;return h.isInstance(n)&&(delete n.headers[w],delete n.headers[T]),e(t)},Ot={name:`omitRetryHeadersMiddleware`,tags:[`RETRY`,`HEADERS`,`OMIT_RETRY_HEADERS`],relation:`before`,toMiddleware:`awsAuthMiddleware`,override:!0},kt=e=>({applyToStack:e=>{e.addRelativeTo(Dt(),Ot)}})})),jt=n({AdaptiveRetryStrategy:()=>lt,CONFIG_MAX_ATTEMPTS:()=>B,CONFIG_RETRY_MODE:()=>wt,ConfiguredRetryStrategy:()=>dt,DEFAULT_MAX_ATTEMPTS:()=>3,DEFAULT_RETRY_DELAY_BASE:()=>100,DEFAULT_RETRY_MODE:()=>j,DefaultRateLimiter:()=>D,DeprecatedAdaptiveRetryStrategy:()=>yt,DeprecatedStandardRetryStrategy:()=>R,ENV_MAX_ATTEMPTS:()=>z,ENV_RETRY_MODE:()=>Ct,INITIAL_RETRY_TOKENS:()=>500,INVOCATION_ID_HEADER:()=>w,MAXIMUM_RETRY_DELAY:()=>C,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>xt,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Tt,NO_RETRY_INCREMENT:()=>1,REQUEST_HEADER:()=>T,RETRY_COST:()=>5,RETRY_MODES:()=>A,Retry:()=>O,StandardRetryStrategy:()=>P,THROTTLING_RETRY_DELAY_BASE:()=>500,TIMEOUT_RETRY_COST:()=>10,defaultDelayDecider:()=>I,defaultRetryDecider:()=>L,getOmitRetryHeadersPlugin:()=>kt,getRetryAfterHint:()=>Ke,getRetryPlugin:()=>Nt,isBrowserNetworkError:()=>Ue,isClockSkewCorrectedError:()=>He,isClockSkewError:()=>Ve,isNodeJsHttp2TransientError:()=>Be,isRetryableByTrait:()=>y,isServerError:()=>We,isThrottlingError:()=>b,isTransientError:()=>x,omitRetryHeadersMiddleware:()=>Dt,omitRetryHeadersMiddlewareOptions:()=>Ot,resolveRetryConfig:()=>St,retryMiddleware:()=>Mt,retryMiddlewareOptions:()=>nt}),Mt,Nt,Pt=e((()=>{Me(),rt(),S(),ut(),ft(),it(),F(),M(),E(),k(),bt(),vt(),ht(),gt(),Et(),At(),qe(),Mt=Xe(v),Nt=Ze(v)}));function V(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}var Ft=e((()=>{Pt(),O.v2026||=typeof process==`object`&&process.env?.AWS_NEW_RETRIES_2026===`true`}));function It(e,t,n){return e.$source||={},e.$source[t]=n,e}var Lt=e((()=>{}));function Rt(e){return e}var zt,Bt,Vt,Ht=e((()=>{g(),zt=e=>t=>async n=>{if(!h.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=``}=e.requestHandler.metadata||{};if(i.indexOf(`h2`)>=0&&!r.headers[`:authority`])delete r.headers.host,r.headers[`:authority`]=r.hostname+(r.port?`:`+r.port:``);else if(!r.headers.host){let e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},Bt={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},Vt=e=>({applyToStack:t=>{t.add(zt(e),Bt)}})})),Ut,Wt,Gt,Kt=e((()=>{Ut=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},Wt={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},Gt=e=>({applyToStack:e=>{e.add(Ut(),Wt)}})})),qt,Jt=e((()=>{qt={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`}})),H,U,Yt,Xt,Zt,Qt,$t=e((()=>{H={REQUEST_ID:Symbol.for(`_AWS_LAMBDA_REQUEST_ID`),X_RAY_TRACE_ID:Symbol.for(`_AWS_LAMBDA_X_RAY_TRACE_ID`),TENANT_ID:Symbol.for(`_AWS_LAMBDA_TENANT_ID`)},U=[`true`,`1`].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??``),U||(globalThis.awslambda=globalThis.awslambda||{}),Yt=class{static PROTECTED_KEYS=H;isProtectedKey(e){return Object.values(H).includes(e)}getRequestId(){return this.get(H.REQUEST_ID)??`-`}getXRayTraceId(){return this.get(H.X_RAY_TRACE_ID)}getTenantId(){return this.get(H.TENANT_ID)}},Xt=class extends Yt{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){return this.currentContext=e,t()}},Zt=class e extends Yt{als;static async create(){let t=new e;return t.als=new(await(import(`node:async_hooks`))).AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw Error(`No context available`);n[e]=t}run(e,t){return this.als.run(e,t)}},(function(e){let t=null;async function n(e){return t||=(async()=>{let t=e===!0||`AWS_LAMBDA_MAX_CONCURRENCY`in process.env?await Zt.create():new Xt;return!U&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!U&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=t),t)})(),t}e.getInstanceAsync=n,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE===`1`?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(Qt||={})})),W,en,tn,nn,rn=e((()=>{$t(),g(),W=`X-Amzn-Trace-Id`,en=`AWS_LAMBDA_FUNCTION_NAME`,tn=`_X_AMZN_TRACE_ID`,nn=()=>e=>async t=>{let{request:n}=t;if(!h.isInstance(n))return e(t);let r=Object.keys(n.headers??{}).find(e=>e.toLowerCase()===W.toLowerCase())??W;if(n.headers.hasOwnProperty(r))return e(t);let i=process.env[en],a=process.env[tn],o=(await Qt.getInstanceAsync())?.getXRayTraceId()??a,s=e=>typeof e==`string`&&e.length>0;return s(i)&&s(o)&&(n.headers[W]=o),e({...t,request:n})}})),an,on=e((()=>{Jt(),rn(),an=e=>({applyToStack:e=>{e.add(nn(),qt)}})})),sn,cn=e((()=>{sn=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n}}));function ln(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var G,un=e((()=>{l(),cn(),G=(e,t)=>(n,r)=>async i=>{let a=sn(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=ln(e.httpAuthSchemes),s=ce(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` +`));return n(i)}})),dn,fn,pn=e((()=>{un(),dn={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},fn=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(G(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),dn)}})})),mn,hn,gn=e((()=>{un(),mn={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`serializerMiddleware`},hn=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(G(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),mn)}})})),_n=e((()=>{un(),pn(),gn()})),vn,yn,bn,xn=e((()=>{l(),g(),vn=e=>e=>{throw e},yn=(e,t)=>{},bn=e=>(e,t)=>async n=>{if(!h.isInstance(n.request))return e(n);let r=ce(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||vn)(i));return(o.successHandler||yn)(s.response,i),s}})),Sn,Cn,wn=e((()=>{xn(),Sn={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},Cn=e=>({applyToStack:t=>{t.addRelativeTo(bn(e),Sn)}})})),Tn=e((()=>{xn(),wn()})),K,En=e((()=>{K=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t}}));function Dn(e,t,n,r,i){return async function*(a,o,...s){let c=o,l=a.startingToken??c[n],u=!0,d;for(;u;){if(c[n]=l,i&&(c[i]=c[i]??a.pageSize),a.client instanceof e)d=await On(t,a.client,o,a.withCommand,...s);else throw Error(`Invalid client, expected instance of ${e.name}`);yield d;let f=l;l=kn(d,r),u=!!(l&&(!a.stopOnSameToken||l!==f))}return void 0}}var On,kn,An=e((()=>{On=async(e,t,n,r=e=>e,...i)=>{let a=new e(n);return a=r(a)??a,await t.send(a,...i)},kn=(e,t)=>{let n=e,r=t.split(`.`);for(let e of r){if(!n||typeof n!=`object`)return;n=n[e]}return n}}));function jn(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var Mn=e((()=>{})),Nn,Pn=e((()=>{Nn=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}})),Fn,In,Ln=e((()=>{g(),Fn=u(),In=class{async sign(e,t,n){if(!n)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!t.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let r=h.clone(e);if(n.in===Fn.HttpApiKeyAuthLocation.QUERY)r.query[n.name]=t.apiKey;else if(n.in===Fn.HttpApiKeyAuthLocation.HEADER)r.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return r}}})),Rn,zn=e((()=>{g(),Rn=class{async sign(e,t,n){let r=h.clone(e);if(!t.token)throw Error("request could not be signed with `token` since the `token` is not defined");return r.headers.Authorization=`Bearer ${t.token}`,r}}})),Bn,Vn=e((()=>{Bn=class{async sign(e,t,n){return e}}})),Hn=e((()=>{Ln(),zn(),Vn()})),Un,Wn,Gn,q,Kn,qn=e((()=>{Un=e=>function(t){return q(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,Kn=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))}})),Jn=e((()=>{Pn(),Hn(),qn()})),Yn=n({DefaultIdentityProviderConfig:()=>Nn,EXPIRATION_MS:()=>Wn,HttpApiKeyAuthSigner:()=>In,HttpBearerAuthSigner:()=>Rn,NoAuthSigner:()=>Bn,createIsIdentityExpiredFunction:()=>Un,createPaginator:()=>Dn,doesIdentityRequireRefresh:()=>q,getHttpAuthSchemeEndpointRuleSetPlugin:()=>fn,getHttpAuthSchemePlugin:()=>hn,getHttpSigningPlugin:()=>Cn,getSmithyContext:()=>ce,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>dn,httpAuthSchemeMiddleware:()=>G,httpAuthSchemeMiddlewareOptions:()=>mn,httpSigningMiddleware:()=>bn,httpSigningMiddlewareOptions:()=>Sn,isIdentityExpired:()=>Gn,memoizeIdentityProvider:()=>Kn,normalizeProvider:()=>K,requestBuilder:()=>me,setFeature:()=>jn}),Xn=e((()=>{ae(),_n(),Tn(),En(),An(),g(),Mn(),Jn()}));function Zn(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Qn(e){let t=K(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!Zn(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var $n=e((()=>{Xn()})),er,tr=e((()=>{er={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`}})),nr,rr,ir,ar,or,sr,cr=e((()=>{tr(),nr=er,rr=``,ir=e=>{let{partitions:t}=nr;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},ar=(e,t=``)=>{nr=e,rr=t},or=()=>{ar(er,``)},sr=()=>rr}));async function lr(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&V(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case A.ADAPTIVE:V(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case A.STANDARD:V(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(ur)&&V(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:V(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:V(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:V(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&V(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))V(e,n,r)}}var ur,dr=e((()=>{Pt(),Ft(),ur=/\d{12}\.ddb/})),fr,pr,mr,hr,gr=e((()=>{fr=`user-agent`,pr=`x-amz-user-agent`,mr=/[^!$%&'*+\-.^_`|~\w]/g,hr=/[^!$%&'*+\-.^_`|~\w#]/g}));function _r(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=vr){t.length?t+=`,`+r:t+=r;continue}break}return t}var vr,yr=e((()=>{vr=1024})),br,J,Y,xr,Sr=e((()=>{g(),cr(),dr(),gr(),yr(),br=e=>(t,n)=>async r=>{let{request:i}=r;if(!h.isInstance(i))return t(r);let{headers:a}=i,o=n?.userAgent?.map(J)||[],s=(await e.defaultUserAgentProvider()).map(J);await lr(n,e,r);let c=n;s.push(`m/${_r(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(J)||[],u=await e.userAgentAppId();u&&s.push(J([`app`,`${u}`]));let d=sr(),f=(d?[d]:[]).concat([...s,...o,...l]).join(` `),p=[...s.filter(e=>e.startsWith(`aws-sdk-`)),...l].join(` `);return e.runtime===`browser`?a[pr]=f:(p&&(a[pr]=a[`x-amz-user-agent`]?`${a[fr]} ${p}`:p),a[fr]=f),t({...r,request:i})},J=e=>{let t=e[0].split(`/`).map(e=>e.replace(mr,`-`)).join(`/`),n=e[1]?.replace(hr,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Y={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},xr=e=>({applyToStack:t=>{t.add(br(e),Y)}})})),Cr,wr=e((()=>{Cr=()=>{for(let e of[`deno`,`bun`,`llrt`])if(ge[e])return[`md/${e}`,ge[e]];return[`md/nodejs`,ge.node]}})),Tr,Er=e((()=>{Tr=e=>{let t=process.cwd();if(!e)return[t];let n=be(e),r=n.split(xe),i=r.indexOf(`node_modules`),a=i===-1?n:r.slice(0,i).join(xe);return t===a?[t]:[a,t]}})),Dr,Or,kr=e((()=>{Dr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,Or=(e=``)=>{let t=e.match(Dr);if(!t)return;let[n,r,i,a]=[t[1],t[2],t[3],t[4]];return a?`${n}.${r}.${i}-${a}`:`${n}.${r}.${i}`}})),Ar,jr,Mr,Nr=e((()=>{kr(),Ar=[`^`,`~`,`>=`,`<=`,`>`,`<`],jr=[`latest`,`beta`,`dev`,`rc`,`insiders`,`next`],Mr=(e=``)=>{if(jr.includes(e))return e;let t=Ar.find(t=>e.startsWith(t))??``,n=Or(e.slice(t.length));if(n)return`${t}${n}`}})),X,Pr,Fr,Ir=e((()=>{se(),Er(),Nr(),kr(),Pr=ye(`node_modules`,`typescript`,`package.json`),Fr=async()=>{if(X===null)return;if(typeof X==`string`)return[`md/tsc`,X];let e=!1;try{e=ne(process.env,`AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED`,le.ENV)||!1}catch{}if(e){X=null;return}let t=Tr(typeof __dirname<`u`?__dirname:void 0),n;for(let e of t)try{let t=await ve(ye(e,`package.json`),`utf-8`),{dependencies:r,devDependencies:i}=JSON.parse(t),a=i?.typescript??r?.typescript;if(typeof a!=`string`)continue;n=a;break}catch{}if(!n){X=null;return}let r;for(let e of t)try{let t=await ve(ye(e,Pr),`utf-8`),{version:n}=JSON.parse(t),i=Or(n);if(typeof i!=`string`)continue;r=i;break}catch{}if(r)return X=r,[`md/tsc`,X];let i=Mr(n);if(typeof i!=`string`){X=null;return}return X=`dev_${i}`,[`md/tsc`,X]}})),Lr,Rr=e((()=>{Lr={isCrtAvailable:!1}})),zr,Br=e((()=>{Rr(),zr=()=>Lr.isCrtAvailable?[`md/crt-avail`]:null})),Z,Vr,Hr=e((()=>{wr(),Ir(),Br(),Rr(),Z=({serviceId:e,clientVersion:t})=>{let n=Cr();return async r=>{let i=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${Se()}`,Ce()],[`lang/js`],n],a=await Fr();a&&i.push(a);let o=zr();o&&i.push(o),e&&i.push([`api/${e}`,t]),he.AWS_EXECUTION_ENV&&i.push([`exec-env/${he.AWS_EXECUTION_ENV}`]);let s=await r?.userAgentAppId?.();return s?[...i,[`app/${s}`]]:[...i]}},Vr=Z})),Ur,Wr,Gr,Kr,qr=e((()=>{$n(),Ur=`AWS_SDK_UA_APP_ID`,Wr=`sdk_ua_app_id`,Gr=`sdk-ua-app-id`,Kr={environmentVariableSelector:e=>e[Ur],configFileSelector:e=>e.sdk_ua_app_id??e[Gr],default:void 0}})),Jr,Yr=e((()=>{Jr=({serviceId:e,clientVersion:n})=>async r=>{let i=await import(`./es5-DkAJ-1lB.js`).then(e=>t(e.default)),a=i.parse??i.default.parse??(()=>``),o=typeof window<`u`&&window?.navigator?.userAgent?a(window.navigator.userAgent):void 0,s=[[`aws-sdk-js`,n],[`ua`,`2.1`],[`os/${o?.os?.name||`other`}`,o?.os?.version],[`lang/js`],[`md/browser`,`${o?.browser?.name??`unknown`}_${o?.browser?.version??`unknown`}`]];e&&s.push([`api/${e}`,n]);let c=await r?.userAgentAppId?.();return c&&s.push([`app/${c}`]),s}})),Xr,Zr=e((()=>{Yr(),Xr={os(e){if(/iPhone|iPad|iPod/.test(e))return`iOS`;if(/Macintosh|Mac OS X/.test(e))return`macOS`;if(/Windows NT/.test(e))return`Windows`;if(/Android/.test(e))return`Android`;if(/Linux/.test(e))return`Linux`},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return`Microsoft Edge`;if(/Firefox\//.test(e))return`Firefox`;if(/Chrome\//.test(e))return`Chrome`;if(/Safari\//.test(e))return`Safari`}}})),Qr=e((()=>{m()})),Q,$r=e((()=>{m(),Qr(),Q=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!Q(t))return!1;return!0}return!(!i(e)||e.length<3||e.length>63||e!==e.toLowerCase()||fe(e))}})),ei,ti,ni,ri=e((()=>{ei=`:`,ti=`/`,ni=e=>{let t=e.split(ei);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(ei)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(ti)).flat()}}})),$,ii=e((()=>{m(),$r(),ri(),cr(),$={isVirtualHostableS3Bucket:Q,parseArn:ni,partition:ir},ie.aws=$})),ai=e((()=>{m()})),oi,si,ci=e((()=>{g(),oi=e=>{if(typeof e.endpointProvider!=`function`)throw Error(`@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.`);let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>si(e.endpointProvider({Region:typeof e.region==`function`?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==`function`?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==`function`?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}))),e},si=e=>de(e.url)})),li=e((()=>{m()})),ui=e((()=>{se()}));function di(e={}){return s({...c,async default(){return fi.silence||console.warn(`@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.`),`us-east-1`}},{...o,...e})}var fi,pi=e((()=>{se(),fi={silence:!1}})),mi,hi,gi=e((()=>{mi=e=>({setRegion(t){e.region=t},region(){return e.region}}),hi=e=>({region:e.region()})})),_i=n({DEFAULT_UA_APP_ID:()=>void 0,EndpointError:()=>p,NODE_APP_ID_CONFIG_OPTIONS:()=>Kr,NODE_REGION_CONFIG_FILE_OPTIONS:()=>o,NODE_REGION_CONFIG_OPTIONS:()=>c,REGION_ENV_NAME:()=>d,REGION_INI_NAME:()=>pe,UA_APP_ID_ENV_NAME:()=>Ur,UA_APP_ID_INI_NAME:()=>Wr,awsEndpointFunctions:()=>$,createDefaultUserAgentProvider:()=>Z,createUserAgentStringParsingProvider:()=>Jr,crtAvailability:()=>Lr,defaultUserAgent:()=>Vr,emitWarningIfUnsupportedVersion:()=>we,fallback:()=>Xr,getAwsRegionExtensionConfiguration:()=>mi,getHostHeaderPlugin:()=>Vt,getLoggerPlugin:()=>Gt,getLongPollPlugin:()=>Oe,getRecursionDetectionPlugin:()=>an,getUserAgentMiddlewareOptions:()=>Y,getUserAgentPlugin:()=>xr,getUserAgentPrefix:()=>sr,hostHeaderMiddleware:()=>zt,hostHeaderMiddlewareOptions:()=>Bt,isIpAddress:()=>fe,isVirtualHostableS3Bucket:()=>Q,loggerMiddleware:()=>Ut,loggerMiddlewareOptions:()=>Wt,parseArn:()=>ni,partition:()=>ir,recursionDetectionMiddleware:()=>nn,recursionDetectionMiddlewareOptions:()=>qt,resolveAwsRegionExtensionConfiguration:()=>hi,resolveDefaultAwsRegionalEndpointsConfig:()=>oi,resolveEndpoint:()=>oe,resolveHostHeaderConfig:()=>Rt,resolveRegionConfig:()=>a,resolveUserAgentConfig:()=>Qn,setCredentialFeature:()=>Ae,setFeature:()=>V,setPartitionInfo:()=>ar,setTokenFeature:()=>It,state:()=>_,stsRegionDefaultResolver:()=>di,stsRegionWarning:()=>fi,toEndpointV1:()=>si,useDefaultPartitionInfo:()=>or,userAgentMiddleware:()=>br}),vi=e((()=>{Te(),ke(),je(),Ft(),Lt(),Ht(),Kt(),Jt(),on(),rn(),$n(),Sr(),Hr(),qr(),Zr(),Yr(),ii(),ai(),ci(),Qr(),$r(),ri(),cr(),li(),ui(),pi(),gi()}));export{Te as $,Cn as A,Rt as B,Kn as C,Pn as D,Nn as E,on as F,Tt as G,Pt as H,Gt as I,j as J,Et as K,Kt as L,fn as M,pn as N,En as O,an as P,we as Q,Vt as R,Gn as S,Vn as T,jt as U,Nt as V,xt as W,je as X,M as Y,Ae as Z,Qn as _,hi as a,q as b,$ as c,qr as d,Z as f,$n as g,Sr as h,gi as i,wn as j,K as k,ii as l,xr as m,vi as n,pi as o,Hr as p,St as q,mi as r,di as s,_i as t,Kr as u,Yn as v,Bn as w,qn as x,Xn as y,Ht as z}; \ No newline at end of file diff --git a/dist/dist-cjs-B33Pip5h.js b/dist/dist-cjs-B33Pip5h.js new file mode 100644 index 00000000..cffc2f05 --- /dev/null +++ b/dist/dist-cjs-B33Pip5h.js @@ -0,0 +1,3 @@ +import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./protocols-D7c0rc_2.js";var a=n((n=>{var a=t(`node:https`),o=(i(),e(r)),s=t(`node:stream`),c=t(`node:http2`);function l(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}let u=[`ECONNRESET`,`EPIPE`,`ETIMEDOUT`],d=e=>{let t={};for(let n in e){let r=e[n];t[n]=Array.isArray(r)?r.join(`,`):r}return t},f={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},p=1e3,m=(e,t,n=0)=>{if(!n)return-1;let r=r=>{let i=f.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:`TimeoutError`}))},n-r),a=e=>{e?.connecting?e.on(`connect`,()=>{f.clearTimeout(i)}):f.clearTimeout(i)};e.socket?a(e.socket):e.on(`socket`,a)};return n<2e3?(r(0),0):f.setTimeout(r.bind(null,p),p)},h=(e,t,n=0,r,i)=>n?f.setTimeout(()=>{let a=`@smithy/node-http-handler - [${r?`ERROR`:`WARN`}] a request has exceeded the configured ${n} ms requestTimeout.`;if(r){let n=Object.assign(Error(a),{name:`TimeoutError`,code:`ETIMEDOUT`});e.destroy(n),t(n)}else a+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`,i?.warn?.(a)},n):-1,g=(e,{keepAlive:t,keepAliveMsecs:n},r=3e3)=>{if(t!==!0)return-1;let i=()=>{e.socket?e.socket.setKeepAlive(t,n||0):e.on(`socket`,e=>{e.setKeepAlive(t,n||0)})};return r===0?(i(),0):f.setTimeout(i,r)},_=3e3,v=(e,t,n=0)=>{let r=r=>{let i=n-r,a=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:`TimeoutError`}))};e.socket?(e.socket.setTimeout(i,a),e.on(`close`,()=>e.socket?.removeListener(`timeout`,a))):e.setTimeout(i,a)};return 0{o=Number(f.setTimeout(()=>e(!0),Math.max(y,n)))}),new Promise(t=>{e.on(`continue`,()=>{f.clearTimeout(o),t(!0)}),e.on(`response`,()=>{f.clearTimeout(o),t(!1)}),e.on(`error`,()=>{f.clearTimeout(o),t(!1)})})])),s&&x(e,t.body)}function x(e,t){if(t instanceof s.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==`string`){n&&t.byteLength===0?e.end():e.end(t);return}let r=t;if(typeof r==`object`&&r.buffer&&typeof r.byteOffset==`number`&&typeof r.byteLength==`number`){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}let S,C;var w=class e{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:`http/1.1`};static create(t){return typeof t?.handle==`function`?t:new e(t)}static checkSocketUsage(e,t,n=console){let{sockets:r,requests:i,maxSockets:a}=e;if(typeof a!=`number`||a===1/0||Date.now()-15e3=a&&o>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${o} additional requests are enqueued. +See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html +or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{typeof e==`function`?e().then(e=>{t(this.resolveDefaultConfig(e))}).catch(n):t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||=await this.configProvider;let i=this.config,s=t.protocol===`https:`;return!s&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((c,p)=>{let _,y=-1,x=-1,w=-1,T=-1,E=-1,D=()=>{f.clearTimeout(y),f.clearTimeout(x),f.clearTimeout(w),f.clearTimeout(T),f.clearTimeout(E)},O=async e=>{await _,D(),c(e)},k=async e=>{await _,D(),p(e)};if(n?.aborted){k(l(n));return}let A=t.headers,j=A?(A.Expect??A.expect)===`100-continue`:!1,M=s?i.httpsAgent:i.httpAgent;j&&!this.externalAgent&&(M=new(s?a.Agent:S)({keepAlive:!1,maxSockets:1/0})),y=f.setTimeout(()=>{this.socketWarningTimestamp=e.checkSocketUsage(M,this.socketWarningTimestamp,i.logger)},i.socketAcquisitionWarningTimeout??(i.requestTimeout??2e3)+(i.connectionTimeout??1e3));let N=t.query?o.buildQueryString(t.query):``,P;(t.username!=null||t.password!=null)&&(P=`${t.username??``}:${t.password??``}`);let F=t.path;N&&(F+=`?${N}`),t.fragment&&(F+=`#${t.fragment}`);let I=t.hostname??``;I=I[0]===`[`&&I.endsWith(`]`)?t.hostname.slice(1,-1):t.hostname;let L={headers:t.headers,host:I,method:t.method,path:F,port:t.port,agent:M,auth:P},R=(s?a.request:C)(L,e=>{O({response:new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:d(e.headers),body:e})})});if(R.on(`error`,e=>{u.includes(e.code)?k(Object.assign(e,{name:`TimeoutError`})):k(e)}),n){let e=()=>{R.destroy(),k(l(n))};if(typeof n.addEventListener==`function`){let t=n;t.addEventListener(`abort`,e,{once:!0}),R.once(`close`,()=>t.removeEventListener(`abort`,e))}else n.onabort=e}let z=r??i.requestTimeout;x=m(R,k,i.connectionTimeout),w=h(R,k,z,i.throwOnRequestTimeout,i.logger??console),T=v(R,k,i.socketTimeout);let B=L.agent;typeof B==`object`&&`keepAlive`in B&&(E=g(R,{keepAlive:B.keepAlive,keepAliveMsecs:B.keepAliveMsecs})),_=b(R,t,z,this.externalAgent).catch(e=>(D(),p(e)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:r,socketAcquisitionWarningTimeout:i,httpAgent:o,httpsAgent:s,throwOnRequestTimeout:c,logger:l}=e||{};return{connectionTimeout:n,requestTimeout:t,socketTimeout:r,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:e,request:t}=await import(`node:http`);return C=t,S=e,o instanceof S||typeof o?.destroy==`function`?(this.externalAgent=!0,o):new S({keepAlive:!0,maxSockets:50,...o})},httpsAgent:s instanceof a.Agent||typeof s?.destroy==`function`?(this.externalAgent=!0,s):new a.Agent({keepAlive:!0,maxSockets:50,...s}),logger:l}}};let T=new Uint16Array(1);var E=class{id=T[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error(`@smithy/node-http-handler - cannot acquire reference to destroyed session.`);this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(--this.refs,this.refs===0&&this.session.unref(),this.refs<0))throw Error(`@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.`)}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},D=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(e=>new E(e))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()-1&&this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},O=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError(`maxConcurrency must be greater than zero.`)}lease(e,t){let n=this.getUrlString(e),r=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let e=r.poll();if(e)return e.retain(),e}let i=new E(this.connect(n)),a=i.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},t=>{if(t)throw Error(`Fail to set maxConcurrentStreams to `+this.config.maxConcurrency+`when creating new session for `+e.destination.toString())});let o=()=>{this.removeFromPoolAndClose(n,i)},s=()=>{this.removeFromPoolAndCheckedDestroy(n,i)};return a.on(`goaway`,o),a.on(`error`,s),a.on(`frameError`,s),a.on(`close`,s),t.requestTimeout&&a.setTimeout(t.requestTimeout,s),r.offerLast(i),i.retain(),i}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),r=new E(this.connect(n)),i=r.deref();i.settings({maxConcurrentStreams:1});let a=()=>{r.destroy()};return i.on(`error`,a),i.on(`frameError`,a),i.on(`close`,a),t.requestTimeout&&i.setTimeout(t.requestTimeout,a),r.retain(),r}destroy(){for(let[e,t]of this.connectionPools){for(let e of[...t])e.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError(`maxConcurrentStreams must be greater than zero.`);this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let r=[];for(let e of n)r.push({id:e.id,active:e.useCount(),maxConcurrent:e.max,totalRequests:e.total});e[t]={sessions:r}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new D;this.config.maxConcurrency&&t.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?c.connect(e):c.connect(e,this.connectOptions)}},k=class e{config;configProvider;metadata={handlerProtocol:`h2`};connectionManager=new O({});static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){this.configProvider=new Promise((t,n)=>{typeof e==`function`?e().then(e=>{t(e||{})}).catch(n):t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:r}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:e,maxConcurrentStreams:t,nodeHttp2ConnectOptions:n}=this.config;this.connectionManager.setDisableConcurrentStreams(e??!1),t&&this.connectionManager.setMaxConcurrentStreams(t),n&&this.connectionManager.setNodeHttp2ConnectOptions(n)}let{requestTimeout:i,disableConcurrentStreams:a}=this.config,s=a||r,u=n??i;return new Promise((n,i)=>{let a=!1,f,p=async e=>{await f,n(e)},m=async e=>{await f,i(e)};if(t?.aborted){a=!0,m(l(t));return}let{hostname:h,method:g,port:_,protocol:v,query:y}=e,x=``;(e.username!=null||e.password!=null)&&(x=`${e.username??``}:${e.password??``}@`);let S=`${v}//${x}${h}${_?`:${_}`:``}`,C={destination:new URL(S)},w={requestTimeout:this.config?.sessionTimeout,isEventStream:r},T=s?this.connectionManager.createIsolatedSession(C,w):this.connectionManager.lease(C,w),E=T.deref(),D=e=>{s&&T.destroy(),a=!0,m(e)},O=y?o.buildQueryString(y):``,k=e.path;O&&(k+=`?${O}`),e.fragment&&(k+=`#${e.fragment}`);let A=E.request({...e.headers,[c.constants.HTTP2_HEADER_PATH]:k,[c.constants.HTTP2_HEADER_METHOD]:g});if(u&&A.setTimeout(u,()=>{A.close();let e=Error(`Stream timed out because of no activity for ${u} ms`);e.name=`TimeoutError`,D(e)}),t){let e=()=>{A.close(),D(l(t))};if(typeof t.addEventListener==`function`){let n=t;n.addEventListener(`abort`,e,{once:!0}),A.once(`close`,()=>n.removeEventListener(`abort`,e))}else t.onabort=e}A.on(`frameError`,(e,t,n)=>{D(Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}),A.on(`error`,D),A.on(`aborted`,()=>{D(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${A.rstCode}.`))}),A.on(`response`,e=>{let t=new o.HttpResponse({statusCode:e[`:status`]??-1,headers:d(e),body:A});a=!0,p({response:t}),s&&E.close()}),A.on(`close`,()=>{s?T.destroy():this.connectionManager.release(C,T),a||D(Error(`Unexpected error: http2 request did not get a response`))}),f=b(A,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}},A=class extends s.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}};let j=e=>M(e)?N(e):new Promise((t,n)=>{let r=new A;e.pipe(r),e.on(`error`,e=>{r.end(),n(e)}),r.on(`error`,n),r.on(`finish`,function(){t(new Uint8Array(Buffer.concat(this.bufferedBytes)))})}),M=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream;async function N(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}n.DEFAULT_REQUEST_TIMEOUT=0,n.NodeHttp2Handler=k,n.NodeHttpHandler=w,n.streamCollector=j}));export{a as t}; \ No newline at end of file diff --git a/dist/dist-cjs-BDo7soHc.js b/dist/dist-cjs-BDo7soHc.js new file mode 100644 index 00000000..3cec3d48 --- /dev/null +++ b/dist/dist-cjs-BDo7soHc.js @@ -0,0 +1 @@ +import{a as e,i as t,o as n,t as r}from"./chunk-BTyA9uPd.js";import{n as i,t as a}from"./client-CtZmAvVy.js";import{A as o,j as s}from"./serde-Bngt0OLn.js";import{n as c,t as l}from"./protocols-D7c0rc_2.js";var u=r((n=>{var r=(i(),e(a)),u=(s(),e(o)),d=(l(),e(c)),f=t(`node:crypto`),p=t(`node:fs`),m=t(`node:os`),h=t(`node:path`),g=class e{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,t,n){this.profileData=e,this.init=t,this.callerClientConfig=n}async loadCredentials(){let t=await this.loadToken();if(!t)throw new u.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=t.accessToken,r=Date.now();return new Date(n.expiresAt).getTime()-r<=e.REFRESH_THRESHOLD?this.refresh(t):{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:t,CreateOAuth2TokenCommand:n}=await import(`./signin-DsuSbn96.js`),{logger:r,userAgentAppId:i}=this.callerClientConfig??{},a=(e=>e?.metadata?.handlerProtocol===`h2`)(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,o=new t({credentials:{accessKeyId:``,secretAccessKey:``},region:this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,requestHandler:a,logger:r,userAgentAppId:i,...this.init?.clientConfig});this.createDPoPInterceptor(o.middlewareStack);let s={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:`refresh_token`}};try{let t=await o.send(new n(s)),{accessKeyId:r,secretAccessKey:i,sessionToken:a}=t.tokenOutput?.accessToken??{},{refreshToken:c,expiresIn:l}=t.tokenOutput??{};if(!r||!i||!a||!c)throw new u.CredentialsProviderError(`Token refresh response missing required fields`,{logger:this.logger,tryNextLink:!1});let d=(l??900)*1e3,f=new Date(Date.now()+d),p={...e,accessToken:{...e.accessToken,accessKeyId:r,secretAccessKey:i,sessionToken:a,expiresAt:f.toISOString()},refreshToken:c};await this.saveToken(p);let m=p.accessToken;return{accessKeyId:m.accessKeyId,secretAccessKey:m.secretAccessKey,sessionToken:m.sessionToken,accountId:m.accountId,expiration:f}}catch(e){if(e.name===`AccessDeniedException`){let t=e.error,n;switch(t){case`TOKEN_EXPIRED`:n=`Your session has expired. Please reauthenticate.`;break;case`USER_CREDENTIALS_CHANGED`:n=`Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.`;break;case`INSUFFICIENT_PERMISSIONS`:n=`Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.`;break;default:n=`Failed to refresh token: ${String(e)}. Please re-authenticate using \`aws login\``}throw new u.CredentialsProviderError(n,{logger:this.logger,tryNextLink:!1})}throw new u.CredentialsProviderError(`Failed to refresh token: ${String(e)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t;try{t=await u.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{t=await p.promises.readFile(e,`utf8`)}let n=JSON.parse(t),r=[`accessToken`,`clientId`,`refreshToken`,`dpopKey`].filter(e=>!n[e]);if(n.accessToken?.accountId||r.push(`accountId`),r.length>0)throw new u.CredentialsProviderError(`Token validation failed, missing fields: ${r.join(`, `)}`,{logger:this.logger,tryNextLink:!1});return n}catch(t){throw new u.CredentialsProviderError(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),n=h.dirname(t);try{await p.promises.mkdir(n,{recursive:!0})}catch{}await p.promises.writeFile(t,JSON.stringify(e,null,2),`utf8`)}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??h.join(m.homedir(),`.aws`,`login`,`cache`),t=Buffer.from(this.loginSession,`utf8`),n=f.createHash(`sha256`).update(t).digest(`hex`);return h.join(e,`${n}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw Error(`Invalid DER signature`);t++;let n=e[t++],r=e.subarray(t,t+n);if(t+=n,e[t]!==2)throw Error(`Invalid DER signature`);t++;let i=e[t++],a=e.subarray(t,t+i);r=r[0]===0?r.subarray(1):r,a=a[0]===0?a.subarray(1):a;let o=Buffer.concat([Buffer.alloc(32-r.length),r]),s=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([o,s])}createDPoPInterceptor(e){e.add(e=>async t=>{if(d.HttpRequest.isInstance(t.request)){let e=t.request,n=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:``}${e.path}`,r=await this.generateDpop(e.method,n);e.headers={...e.headers,DPoP:r}}return e(t)},{step:`finalizeRequest`,name:`dpopInterceptor`,override:!0})}async generateDpop(e=`POST`,t){let n=await this.loadToken();try{let r=f.createPrivateKey({key:n.dpopKey,format:`pem`,type:`sec1`}),i=f.createPublicKey(r).export({format:`der`,type:`spki`}),a=-1;for(let e=0;easync({callerClientConfig:t}={})=>{e?.logger?.debug?.(`@aws-sdk/credential-providers - fromLoginCredentials`);let n=await u.parseKnownFiles(e||{}),i=u.getProfileName({profile:e?.profile??t?.profile}),a=n[i];if(!a?.login_session)throw new u.CredentialsProviderError(`Profile ${i} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let o=await new g(a,e,t).loadCredentials();return r.setCredentialFeature(o,`CREDENTIALS_LOGIN`,`AD`)}})),d=r((t=>{var r=(s(),e(o)),c=(i(),e(a)),l=u();let d=(e,t,i)=>{let a={EcsContainer:async e=>{let{fromHttp:t}=await import(`./dist-cjs-CZ6FHb0v.js`).then(e=>n(e.default)),{fromContainerMetadata:a}=await import(`./dist-cjs-CzHPD-Ob.js`).then(e=>n(e.default));return i?.debug(`@aws-sdk/credential-provider-ini - credential_source is EcsContainer`),async()=>r.chain(t(e??{}),a(e))().then(f)},Ec2InstanceMetadata:async e=>{i?.debug(`@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata`);let{fromInstanceMetadata:t}=await import(`./dist-cjs-CzHPD-Ob.js`).then(e=>n(e.default));return async()=>t(e)().then(f)},Environment:async e=>{i?.debug(`@aws-sdk/credential-provider-ini - credential_source is Environment`);let{fromEnv:t}=await import(`./dist-cjs-DyHnqsGQ.js`).then(e=>n(e.default));return async()=>t(e)().then(f)}};if(e in a)return a[e];throw new r.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:i})},f=e=>c.setCredentialFeature(e,`CREDENTIALS_PROFILE_NAMED_PROVIDER`,`p`),p=(e,{profile:t=`default`,logger:n}={})=>!!e&&typeof e==`object`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1&&[`undefined`,`string`].indexOf(typeof e.external_id)>-1&&[`undefined`,`string`].indexOf(typeof e.mfa_serial)>-1&&(m(e,{profile:t,logger:n})||h(e,{profile:t,logger:n})),m=(e,{profile:t,logger:n})=>{let r=typeof e.source_profile==`string`&&e.credential_source===void 0;return r&&n?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),r},h=(e,{profile:t,logger:n})=>{let r=typeof e.credential_source==`string`&&e.source_profile===void 0;return r&&n?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),r},g=async(e,t,n,i,a={},o)=>{n.logger?.debug(`@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)`);let s=t[e],{source_profile:l,region:u}=s;if(!n.roleAssumer){let{getDefaultRoleAssumer:e}=await import(`./sts-DkzBNnVh.js`);n.roleAssumer=e({...n.clientConfig,credentialProviderLogger:n.logger,parentClientConfig:{...i,...n?.parentClientConfig,region:u??n?.parentClientConfig?.region??i?.region}},n.clientPlugins)}if(l&&l in a)throw new r.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${r.getProfileName(n)}. Profiles visited: `+Object.keys(a).join(`, `),{logger:n.logger});n.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${l?`source_profile=[${l}]`:`profile=[${e}]`}`);let f=l?o(l,t,n,i,{...a,[l]:!0},_(t[l]??{})):(await d(s.credential_source,e,n.logger)(n))();if(_(s))return f.then(e=>c.setCredentialFeature(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`));{let t={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id,DurationSeconds:parseInt(s.duration_seconds||`3600`,10)},{mfa_serial:i}=s;if(i){if(!n.mfaCodeProvider)throw new r.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:n.logger,tryNextLink:!1});t.SerialNumber=i,t.TokenCode=await n.mfaCodeProvider(i)}let a=await f;return n.roleAssumer(a,t).then(e=>c.setCredentialFeature(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`))}},_=e=>!e.role_arn&&!!e.credential_source,v=e=>!!(e&&e.login_session),y=async(e,t,n)=>{let r=await l.fromLoginCredentials({...t,profile:e})({callerClientConfig:n});return c.setCredentialFeature(r,`CREDENTIALS_PROFILE_LOGIN`,`AC`)},b=e=>!!e&&typeof e==`object`&&typeof e.credential_process==`string`,x=async(e,t)=>import(`./dist-cjs-H7yYXifd.js`).then(e=>n(e.default)).then(({fromProcess:n})=>n({...e,profile:t})().then(e=>c.setCredentialFeature(e,`CREDENTIALS_PROFILE_PROCESS`,`v`))),S=async(e,t,r={},i)=>{let{fromSSO:a}=await import(`./dist-cjs-CrGr2xby.js`).then(e=>n(e.default));return a({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:i}).then(e=>t.sso_session?c.setCredentialFeature(e,`CREDENTIALS_PROFILE_SSO`,`r`):c.setCredentialFeature(e,`CREDENTIALS_PROFILE_SSO_LEGACY`,`t`))},C=e=>e&&(typeof e.sso_start_url==`string`||typeof e.sso_account_id==`string`||typeof e.sso_session==`string`||typeof e.sso_region==`string`||typeof e.sso_role_name==`string`),w=e=>!!e&&typeof e==`object`&&typeof e.aws_access_key_id==`string`&&typeof e.aws_secret_access_key==`string`&&[`undefined`,`string`].indexOf(typeof e.aws_session_token)>-1&&[`undefined`,`string`].indexOf(typeof e.aws_account_id)>-1,T=async(e,t)=>{t?.logger?.debug(`@aws-sdk/credential-provider-ini - resolveStaticCredentials`);let n={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return c.setCredentialFeature(n,`CREDENTIALS_PROFILE`,`n`)},E=e=>!!e&&typeof e==`object`&&typeof e.web_identity_token_file==`string`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1,D=async(e,t,r)=>import(`./dist-cjs-BY5VA32r.js`).then(e=>n(e.default)).then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r}).then(e=>c.setCredentialFeature(e,`CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN`,`q`))),O=async(e,t,n,i,a={},o=!1)=>{let s=t[e];if(Object.keys(a).length>0&&w(s))return T(s,n);if(o||p(s,{profile:e,logger:n.logger}))return g(e,t,n,i,a,O);if(w(s))return T(s,n);if(E(s))return D(s,n,i);if(b(s))return x(n,e);if(C(s))return await S(e,s,n,i);if(v(s))return y(e,n,i);throw new r.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:n.logger})};t.fromIni=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-ini - fromIni`);let n=await r.parseKnownFiles(e);return O(r.getProfileName({profile:e.profile??t?.profile}),n,e,t)}}));export default d();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-BWu9uV-R.js b/dist/dist-cjs-BWu9uV-R.js deleted file mode 100644 index 742a604a..00000000 --- a/dist/dist-cjs-BWu9uV-R.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-BTyA9uPd.js";import{t}from"./dist-cjs-BjeBHYpU.js";import{t as n}from"./dist-cjs-Vc3Nkab2.js";var r=e((e=>{var r=t(),i=n();function a(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete(`CONFIG`),t.delete(`CONFIG_PREFIX_SEPARATOR`),t.delete(`ENV`),[...t].join(`, `)}catch{return e}}let o=(e,t)=>async()=>{try{let n=e(process.env,t);if(n===void 0)throw Error();return n}catch(n){throw new r.CredentialsProviderError(n.message||`Not found in ENV: ${a(e.toString())}`,{logger:t?.logger})}},s=(e,{preferredFile:t=`config`,...n}={})=>async()=>{let o=i.getProfileName(n),{configFile:s,credentialsFile:c}=await i.loadSharedConfigFiles(n),l=c[o]||{},u=s[o]||{},d=t===`config`?{...l,...u}:{...u,...l};try{let n=e(d,t===`config`?s:c);if(n===void 0)throw Error();return n}catch(t){throw new r.CredentialsProviderError(t.message||`Not found in config files w/ profile [${o}]: ${a(e.toString())}`,{logger:n.logger})}},c=e=>typeof e==`function`,l=e=>c(e)?async()=>await e():r.fromStatic(e);e.loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{let{signingName:a,logger:c}=i,u={signingName:a,logger:c};return r.memoize(r.chain(o(e,u),s(t,i),l(n)))}}));export{r as t}; \ No newline at end of file diff --git a/dist/dist-cjs-BY5VA32r.js b/dist/dist-cjs-BY5VA32r.js new file mode 100644 index 00000000..4031b494 --- /dev/null +++ b/dist/dist-cjs-BY5VA32r.js @@ -0,0 +1 @@ +import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./client-CtZmAvVy.js";import{A as a,j as o}from"./serde-Bngt0OLn.js";var s=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromWebToken=void 0,e.fromWebToken=e=>async t=>{e.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromWebToken`);let{roleArn:n,roleSessionName:r,webIdentityToken:i,providerId:a,policyArns:o,policy:s,durationSeconds:c}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:n}=await import(`./sts-DkzBNnVh.js`);l=n({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:n,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:a,PolicyArns:o,Policy:s,DurationSeconds:c})}})),c=n((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.fromTokenFile=void 0;let c=(r(),e(i)),l=(o(),e(a)),u=t(`node:fs`),d=s(),f=`AWS_WEB_IDENTITY_TOKEN_FILE`;n.fromTokenFile=(e={})=>async t=>{e.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromTokenFile`);let n=e?.webIdentityTokenFile??process.env[f],r=e?.roleArn??process.env.AWS_ROLE_ARN,i=e?.roleSessionName??process.env.AWS_ROLE_SESSION_NAME;if(!n||!r)throw new l.CredentialsProviderError(`Web identity configuration not specified`,{logger:e.logger});let a=await(0,d.fromWebToken)({...e,webIdentityToken:l.externalDataInterceptor?.getTokenRecord?.()[n]??(0,u.readFileSync)(n,{encoding:`ascii`}),roleArn:r,roleSessionName:i})(t);return n===process.env[f]&&(0,c.setCredentialFeature)(a,`CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN`,`h`),a}})),l=n((e=>{var t=c(),n=s();Object.prototype.hasOwnProperty.call(t,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:t.__proto__}),Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])}),Object.prototype.hasOwnProperty.call(n,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:n.__proto__}),Object.keys(n).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n[t])})}));export default l();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-B_LTzHDO.js b/dist/dist-cjs-B_LTzHDO.js deleted file mode 100644 index fa4742e4..00000000 --- a/dist/dist-cjs-B_LTzHDO.js +++ /dev/null @@ -1,12 +0,0 @@ -import{a as e,i as t,n,r,t as i}from"./chunk-BTyA9uPd.js";import{t as a}from"./dist-cjs-DyeqKkmv.js";import{t as o}from"./dist-cjs-Qh8tJqb7.js";import{n as s,t as c}from"./dist-cjs-GIhSYq7f.js";import{t as l}from"./dist-cjs-CKxbtVku.js";var u=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromBase64=void 0;let t=s(),n=/^[A-Za-z0-9+/]*={0,2}$/;e.fromBase64=e=>{if(e.length*3%4!=0)throw TypeError(`Incorrect padding on base64 string.`);if(!n.exec(e))throw TypeError(`Invalid base64 string.`);let r=(0,t.fromString)(e,`base64`);return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}})),d=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toBase64=void 0;let t=s(),n=c();e.toBase64=e=>{let r;if(r=typeof e==`string`?(0,n.fromUtf8)(e):e,typeof r!=`object`||typeof r.byteOffset!=`number`||typeof r.byteLength!=`number`)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);return(0,t.fromArrayBuffer)(r.buffer,r.byteOffset,r.byteLength).toString(`base64`)}})),f=i((e=>{var t=u(),n=d();Object.prototype.hasOwnProperty.call(t,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:t.__proto__}),Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])}),Object.prototype.hasOwnProperty.call(n,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:n.__proto__}),Object.keys(n).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n[t])})})),p=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChecksumStream=void 0;let n=f(),r=t(`stream`);e.ChecksumStream=class extends r.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:i,base64Encoder:a}){if(super(),typeof r.pipe==`function`)this.source=r;else throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);this.base64Encoder=a??n.toBase64,this.expectedChecksum=e,this.checksum=t,this.checksumSourceLocation=i,this.source.pipe(this)}_read(e){if(this.pendingCallback){let e=this.pendingCallback;this.pendingCallback=null,e()}}_write(e,t,n){try{if(this.checksum.update(e),!this.push(e)){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{let t=await this.checksum.digest(),n=this.base64Encoder(t);if(this.expectedChecksum!==n)return e(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}" in response header "${this.checksumSourceLocation}".`))}catch(t){return e(t)}return this.push(null),e()}}})),m=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBlob=e.isReadableStream=void 0,e.isReadableStream=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),e.isBlob=e=>typeof Blob==`function`&&(e?.constructor?.name===Blob.name||e instanceof Blob)})),h=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChecksumStream=void 0;let t=typeof ReadableStream==`function`?ReadableStream:function(){};e.ChecksumStream=class extends t{}})),g=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createChecksumStream=void 0;let t=f(),n=m(),r=h();e.createChecksumStream=({expectedChecksum:e,checksum:i,source:a,checksumSourceLocation:o,base64Encoder:s})=>{if(!(0,n.isReadableStream)(a))throw Error(`@smithy/util-stream: unsupported source type ${a?.constructor?.name??a} in ChecksumStream.`);let c=s??t.toBase64;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let l=new TransformStream({start(){},async transform(e,t){i.update(e),t.enqueue(e)},async flush(t){let n=c(await i.digest());if(e!==n){let r=Error(`Checksum mismatch: expected "${e}" but received "${n}" in response header "${o}".`);t.error(r)}else t.terminate()}});a.pipeThrough(l);let u=l.readable;return Object.setPrototypeOf(u,r.ChecksumStream.prototype),u}})),ee=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createChecksumStream=i;let t=m(),n=p(),r=g();function i(e){return typeof ReadableStream==`function`&&(0,t.isReadableStream)(e.source)?(0,r.createChecksumStream)(e):new n.ChecksumStream(e)}})),_=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ByteArrayCollector=void 0,e.ByteArrayCollector=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.createBufferedReadable=void 0,e.createBufferedReadableStream=n,e.merge=r,e.flush=i,e.sizeOf=a,e.modeOf=o;let t=_();function n(e,n,s){let c=e.getReader(),l=!1,u=0,d=[``,new t.ByteArrayCollector(e=>new Uint8Array(e))],f=-1,p=async e=>{let{value:t,done:m}=await c.read(),h=t;if(m){if(f!==-1){let t=i(d,f);a(t)>0&&e.enqueue(t)}e.close()}else{let t=o(h,!1);if(f!==t&&(f>=0&&e.enqueue(i(d,f)),f=t),f===-1){e.enqueue(h);return}let c=a(h);u+=c;let m=a(d[f]);if(c>=n&&m===0)e.enqueue(h);else{let t=r(d,f,h);!l&&u>n*2&&(l=!0,s?.warn(`@smithy/util-stream - stream chunk size ${c} is below threshold of ${n}, automatically buffering.`)),t>=n?e.enqueue(i(d,f)):await p(e)}}};return new ReadableStream({pull:p})}e.createBufferedReadable=n;function r(e,t,n){switch(t){case 0:return e[0]+=n,a(e[0]);case 1:case 2:return e[t].push(n),a(e[t])}}function i(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function a(e){return e?.byteLength??e?.length??0}function o(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}})),y=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createBufferedReadable=o;let n=t(`node:stream`),r=_(),i=v(),a=m();function o(e,t,o){if((0,a.isReadableStream)(e))return(0,i.createBufferedReadableStream)(e,t,o);let s=new n.Readable({read(){}}),c=!1,l=0,u=[``,new r.ByteArrayCollector(e=>new Uint8Array(e)),new r.ByteArrayCollector(e=>Buffer.from(new Uint8Array(e)))],d=-1;return e.on(`data`,e=>{let n=(0,i.modeOf)(e,!0);if(d!==n&&(d>=0&&s.push((0,i.flush)(u,d)),d=n),d===-1){s.push(e);return}let r=(0,i.sizeOf)(e);l+=r;let a=(0,i.sizeOf)(u[d]);if(r>=t&&a===0)s.push(e);else{let n=(0,i.merge)(u,d,e);!c&&l>t*2&&(c=!0,o?.warn(`@smithy/util-stream - stream chunk size ${r} is below threshold of ${t}, automatically buffering.`)),n>=t&&s.push((0,i.flush)(u,d))}}),e.on(`end`,()=>{if(d!==-1){let e=(0,i.flush)(u,d);(0,i.sizeOf)(e)>0&&s.push(e)}s.push(null)}),s}})),b=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getAwsChunkedEncodingStream=void 0,e.getAwsChunkedEncodingStream=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r -`),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r -`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})}})),x=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getAwsChunkedEncodingStream=a;let n=t(`node:stream`),r=b(),i=m();function a(e,t){let a=e,o=e;if((0,i.isReadableStream)(o))return(0,r.getAwsChunkedEncodingStream)(o,t);let{base64Encoder:s,bodyLengthChecker:c,checksumAlgorithmFn:l,checksumLocationName:u,streamHasher:d}=t,f=s!==void 0&&l!==void 0&&u!==void 0&&d!==void 0,p=f?d(l,a):void 0,m=new n.Readable({read:()=>{}});return a.on(`data`,e=>{let t=c(e)||0;t!==0&&(m.push(`${t.toString(16)}\r\n`),m.push(e),m.push(`\r -`))}),a.on(`end`,async()=>{if(m.push(`0\r -`),f){let e=s(await p);m.push(`${u}:${e}\r\n`),m.push(`\r -`)}m.push(null)}),m}})),S=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.headStream=t;async function t(e,t){let n=0,r=[],i=e.getReader(),a=!1;for(;!a;){let{done:e,value:o}=await i.read();if(o&&(r.push(o),n+=o?.byteLength??0),n>=t)break;a=e}i.releaseLock();let o=new Uint8Array(Math.min(t,n)),s=0;for(let e of r){if(e.byteLength>o.byteLength-s){o.set(e.subarray(0,o.byteLength-s),s);break}else o.set(e,s);s+=e.length}return o}})),C=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.headStream=void 0;let n=t(`stream`),r=S(),i=m();e.headStream=(e,t)=>(0,i.isReadableStream)(e)?(0,r.headStream)(e,t):new Promise((n,r)=>{let i=new a;i.limit=t,e.pipe(i),e.on(`error`,e=>{i.end(),r(e)}),i.on(`error`,r),i.on(`finish`,function(){n(new Uint8Array(Buffer.concat(this.buffers)))})});var a=class extends n.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,t,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let e=this.bytesBuffered-this.limit,t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e),this.emit(`finish`)}n()}}})),w=i((e=>{let t=e=>encodeURIComponent(e).replace(/[!'()*]/g,n),n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;e.escapeUri=t,e.escapeUriPath=e=>e.split(`/`).map(t).join(`/`)})),T=i((e=>{var t=w();function n(e){let n=[];for(let r of Object.keys(e).sort()){let i=e[r];if(r=t.escapeUri(r),Array.isArray(i))for(let e=0,a=i.length;e{var n=o(),r=T(),i=t(`node:https`),a=t(`node:stream`),s=t(`node:http2`);function c(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}let l=[`ECONNRESET`,`EPIPE`,`ETIMEDOUT`],u=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(`,`):r}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},f=1e3,p=(e,t,n=0)=>{if(!n)return-1;let r=r=>{let i=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:`TimeoutError`}))},n-r),a=e=>{e?.connecting?e.on(`connect`,()=>{d.clearTimeout(i)}):d.clearTimeout(i)};e.socket?a(e.socket):e.on(`socket`,a)};return n<2e3?(r(0),0):d.setTimeout(r.bind(null,f),f)},m=(e,t,n=0,r,i)=>n?d.setTimeout(()=>{let a=`@smithy/node-http-handler - [${r?`ERROR`:`WARN`}] a request has exceeded the configured ${n} ms requestTimeout.`;if(r){let n=Object.assign(Error(a),{name:`TimeoutError`,code:`ETIMEDOUT`});e.destroy(n),t(n)}else a+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`,i?.warn?.(a)},n):-1,h=(e,{keepAlive:t,keepAliveMsecs:n},r=3e3)=>{if(t!==!0)return-1;let i=()=>{e.socket?e.socket.setKeepAlive(t,n||0):e.on(`socket`,e=>{e.setKeepAlive(t,n||0)})};return r===0?(i(),0):d.setTimeout(i,r)},g=3e3,ee=(e,t,n=0)=>{let r=r=>{let i=n-r,a=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:`TimeoutError`}))};e.socket?(e.socket.setTimeout(i,a),e.on(`close`,()=>e.socket?.removeListener(`timeout`,a))):e.setTimeout(i,a)};return 0{o=Number(d.setTimeout(()=>e(!0),Math.max(_,n)))}),new Promise(t=>{e.on(`continue`,()=>{d.clearTimeout(o),t(!0)}),e.on(`response`,()=>{d.clearTimeout(o),t(!1)}),e.on(`error`,()=>{d.clearTimeout(o),t(!1)})})])),s&&y(e,t.body)}function y(e,t){if(t instanceof a.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==`string`){n&&t.byteLength===0?e.end():e.end(t);return}let r=t;if(typeof r==`object`&&r.buffer&&typeof r.byteOffset==`number`&&typeof r.byteLength==`number`){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}let b,x;var S=class e{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:`http/1.1`};static create(t){return typeof t?.handle==`function`?t:new e(t)}static checkSocketUsage(e,t,n=console){let{sockets:r,requests:i,maxSockets:a}=e;if(typeof a!=`number`||a===1/0||Date.now()-15e3=a&&o>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${o} additional requests are enqueued. -See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html -or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{typeof e==`function`?e().then(e=>{t(this.resolveDefaultConfig(e))}).catch(n):t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:a,requestTimeout:o}={}){this.config||=await this.configProvider;let s=this.config,f=t.protocol===`https:`;return!f&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((g,_)=>{let y,S=[],C=async e=>{await y,S.forEach(d.clearTimeout),g(e)},w=async e=>{await y,S.forEach(d.clearTimeout),_(e)};if(a?.aborted){w(c(a));return}let T=t.headers??{},E=(T.Expect??T.expect)===`100-continue`,D=f?s.httpsAgent:s.httpAgent;E&&!this.externalAgent&&(D=new(f?i.Agent:b)({keepAlive:!1,maxSockets:1/0})),S.push(d.setTimeout(()=>{this.socketWarningTimestamp=e.checkSocketUsage(D,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3)));let O=r.buildQueryString(t.query||{}),k;(t.username!=null||t.password!=null)&&(k=`${t.username??``}:${t.password??``}`);let A=t.path;O&&(A+=`?${O}`),t.fragment&&(A+=`#${t.fragment}`);let j=t.hostname??``;j=j[0]===`[`&&j.endsWith(`]`)?t.hostname.slice(1,-1):t.hostname;let te={headers:t.headers,host:j,method:t.method,path:A,port:t.port,agent:D,auth:k},M=(f?i.request:x)(te,e=>{C({response:new n.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:u(e.headers),body:e})})});if(M.on(`error`,e=>{l.includes(e.code)?w(Object.assign(e,{name:`TimeoutError`})):w(e)}),a){let e=()=>{M.destroy(),w(c(a))};if(typeof a.addEventListener==`function`){let t=a;t.addEventListener(`abort`,e,{once:!0}),M.once(`close`,()=>t.removeEventListener(`abort`,e))}else a.onabort=e}let ne=o??s.requestTimeout;S.push(p(M,w,s.connectionTimeout)),S.push(m(M,w,ne,s.throwOnRequestTimeout,s.logger??console)),S.push(ee(M,w,s.socketTimeout));let N=te.agent;typeof N==`object`&&`keepAlive`in N&&S.push(h(M,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs})),y=v(M,t,ne,this.externalAgent).catch(e=>(S.forEach(d.clearTimeout),_(e)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:r,socketAcquisitionWarningTimeout:a,httpAgent:o,httpsAgent:s,throwOnRequestTimeout:c,logger:l}=e||{};return{connectionTimeout:n,requestTimeout:t,socketTimeout:r,socketAcquisitionWarningTimeout:a,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:e,request:t}=await import(`node:http`);return x=t,b=e,o instanceof b||typeof o?.destroy==`function`?(this.externalAgent=!0,o):new b({keepAlive:!0,maxSockets:50,...o})},httpsAgent:s instanceof i.Agent||typeof s?.destroy==`function`?(this.externalAgent=!0,s):new i.Agent({keepAlive:!0,maxSockets:50,...s}),logger:l}}};let C=new Uint16Array(1);var w=class{id=C[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error(`@smithy/node-http-handler - cannot acquire reference to destroyed session.`);this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(--this.refs,this.refs===0&&this.session.unref(),this.refs<0))throw Error(`@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.`)}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},E=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(e=>new w(e))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()-1&&this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},D=class{config;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError(`maxConcurrency must be greater than zero.`)}lease(e,t){let n=this.getUrlString(e),r=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let e=r.poll();if(e)return e.retain(),e}let i=new w(s.connect(n)),a=i.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},t=>{if(t)throw Error(`Fail to set maxConcurrentStreams to `+this.config.maxConcurrency+`when creating new session for `+e.destination.toString())});let o=()=>{this.removeFromPoolAndClose(n,i)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,i)};return a.on(`goaway`,o),a.on(`error`,c),a.on(`frameError`,c),a.on(`close`,c),t.requestTimeout&&a.setTimeout(t.requestTimeout,c),r.offerLast(i),i.retain(),i}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),r=new w(s.connect(n)),i=r.deref();i.settings({maxConcurrentStreams:1});let a=()=>{r.destroy()};return i.on(`error`,a),i.on(`frameError`,a),i.on(`close`,a),t.requestTimeout&&i.setTimeout(t.requestTimeout,a),r.retain(),r}destroy(){for(let[e,t]of this.connectionPools){for(let e of[...t])e.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError(`maxConcurrentStreams must be greater than zero.`);this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}debug(){let e={};for(let[t,n]of this.connectionPools){let r=[];for(let e of n)r.push({id:e.id,active:e.useCount(),maxConcurrent:e.max,totalRequests:e.total});e[t]={sessions:r}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new E;this.config.maxConcurrency&&t.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}},O=class e{config;configProvider;metadata={handlerProtocol:`h2`};connectionManager=new D({});static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){this.configProvider=new Promise((t,n)=>{typeof e==`function`?e().then(e=>{t(e||{})}).catch(n):t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:i,isEventStream:a}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:e,maxConcurrentStreams:t}=this.config;this.connectionManager.setDisableConcurrentStreams(e??!1),t&&this.connectionManager.setMaxConcurrentStreams(t)}let{requestTimeout:o,disableConcurrentStreams:l}=this.config,d=l||a,f=i??o;return new Promise((i,o)=>{let l=!1,p,m=async e=>{await p,i(e)},h=async e=>{await p,o(e)};if(t?.aborted){l=!0,h(c(t));return}let{hostname:g,method:ee,port:_,protocol:y,query:b}=e,x=``;(e.username!=null||e.password!=null)&&(x=`${e.username??``}:${e.password??``}@`);let S=`${y}//${x}${g}${_?`:${_}`:``}`,C={destination:new URL(S)},w={requestTimeout:this.config?.sessionTimeout,isEventStream:a},T=d?this.connectionManager.createIsolatedSession(C,w):this.connectionManager.lease(C,w),E=T.deref(),D=e=>{d&&T.destroy(),l=!0,h(e)},O=r.buildQueryString(b??{}),k=e.path;O&&(k+=`?${O}`),e.fragment&&(k+=`#${e.fragment}`);let A=E.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:k,[s.constants.HTTP2_HEADER_METHOD]:ee});if(f&&A.setTimeout(f,()=>{A.close();let e=Error(`Stream timed out because of no activity for ${f} ms`);e.name=`TimeoutError`,D(e)}),t){let e=()=>{A.close(),D(c(t))};if(typeof t.addEventListener==`function`){let n=t;n.addEventListener(`abort`,e,{once:!0}),A.once(`close`,()=>n.removeEventListener(`abort`,e))}else t.onabort=e}A.on(`frameError`,(e,t,n)=>{D(Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}),A.on(`error`,D),A.on(`aborted`,()=>{D(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${A.rstCode}.`))}),A.on(`response`,e=>{let t=new n.HttpResponse({statusCode:e[`:status`]??-1,headers:u(e),body:A});l=!0,m({response:t}),d&&E.close()}),A.on(`close`,()=>{d?T.destroy():this.connectionManager.release(C,T),l||D(Error(`Unexpected error: http2 request did not get a response`))}),p=v(A,e,f)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}},k=class extends a.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}};let A=e=>j(e)?te(e):new Promise((t,n)=>{let r=new k;e.pipe(r),e.on(`error`,e=>{r.end(),n(e)}),r.on(`error`,n),r.on(`finish`,function(){t(new Uint8Array(Buffer.concat(this.bufferedBytes)))})}),j=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream;async function te(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}e.DEFAULT_REQUEST_TIMEOUT=0,e.NodeHttp2Handler=O,e.NodeHttpHandler=S,e.streamCollector=A})),D=i((e=>{var t=o(),n=T(),r=f();function i(e,t){return new Request(e,t)}function a(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}let s={supported:void 0};var c=class e{config;configProvider;static create(t){return typeof t?.handle==`function`?t:new e(t)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),s.supported===void 0&&(s.supported=typeof Request<`u`&&`keepalive`in i(`https://[::1]`))}destroy(){}async handle(e,{abortSignal:r,requestTimeout:o}={}){this.config||=await this.configProvider;let c=o??this.config.requestTimeout,u=this.config.keepAlive===!0,d=this.config.credentials;if(r?.aborted){let e=l(r);return Promise.reject(e)}let f=e.path,p=n.buildQueryString(e.query||{});p&&(f+=`?${p}`),e.fragment&&(f+=`#${e.fragment}`);let m=``;(e.username!=null||e.password!=null)&&(m=`${e.username??``}:${e.password??``}@`);let{port:h,method:g}=e,ee=`${e.protocol}//${m}${e.hostname}${h?`:${h}`:``}${f}`,_=g===`GET`||g===`HEAD`?void 0:e.body,v={body:_,headers:new Headers(e.headers),method:g,credentials:d};this.config?.cache&&(v.cache=this.config.cache),_&&(v.duplex=`half`),typeof AbortController<`u`&&(v.signal=r),s.supported&&(v.keepalive=u),typeof this.config.requestInit==`function`&&Object.assign(v,this.config.requestInit(e));let y=()=>{},b=i(ee,v),x=[fetch(b).then(e=>{let n=e.headers,r={};for(let e of n.entries())r[e[0]]=e[1];return e.body==null?e.blob().then(n=>({response:new t.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:n})})):{response:new t.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}}),a(c)];return r&&x.push(new Promise((e,t)=>{let n=()=>{t(l(r))};if(typeof r.addEventListener==`function`){let e=r;e.addEventListener(`abort`,n,{once:!0}),y=()=>e.removeEventListener(`abort`,n)}else r.onabort=n})),Promise.race(x).finally(y)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function l(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}let u=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?d(e):new Uint8Array(await e.arrayBuffer()):p(e);async function d(e){let t=await m(e),n=r.fromBase64(t);return new Uint8Array(n)}async function p(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function m(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}e.FetchHttpHandler=c,e.keepAliveSupport=s,e.streamCollector=u})),O=i((e=>{let t={},n={};for(let e=0;e<256;e++){let r=e.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),t[e]=r,n[r]=e}function r(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.sdkStreamMixin=void 0;let t=D(),n=f(),r=O(),i=c(),a=m(),o=`The stream has already been transformed.`;e.sdkStreamMixin=e=>{if(!s(e)&&!(0,a.isReadableStream)(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let c=!1,l=async()=>{if(c)throw Error(o);return c=!0,await(0,t.streamCollector)(e)},u=e=>{if(typeof e.stream!=`function`)throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return e.stream()};return Object.assign(e,{transformToByteArray:l,transformToString:async e=>{let t=await l();if(e===`base64`)return(0,n.toBase64)(t);if(e===`hex`)return(0,r.toHex)(t);if(e===void 0||e===`utf8`||e===`utf-8`)return(0,i.toUtf8)(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(c)throw Error(o);if(c=!0,s(e))return u(e);if((0,a.isReadableStream)(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})};let s=e=>typeof Blob==`function`&&e instanceof Blob})),A=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sdkStreamMixin=void 0;let n=E(),r=s(),i=t(`stream`),a=k(),o=`The stream has already been transformed.`;e.sdkStreamMixin=e=>{if(!(e instanceof i.Readable))try{return(0,a.sdkStreamMixin)(e)}catch{let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${t}`)}let t=!1,s=async()=>{if(t)throw Error(o);return t=!0,await(0,n.streamCollector)(e)};return Object.assign(e,{transformToByteArray:s,transformToString:async e=>{let t=await s();return e===void 0||Buffer.isEncoding(e)?(0,r.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e):new TextDecoder(e).decode(t)},transformToWebStream:()=>{if(t)throw Error(o);if(e.readableFlowing!==null)throw Error(`The stream has been consumed by other callbacks.`);if(typeof i.Readable.toWeb!=`function`)throw Error(`Readable.toWeb() is not supported. Please ensure a polyfill is available.`);return t=!0,i.Readable.toWeb(e)}})}})),j=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitStream=t;async function t(e){return typeof e.stream==`function`&&(e=e.stream()),e.tee()}})),te=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.splitStream=a;let n=t(`stream`),r=j(),i=m();async function a(e){if((0,i.isReadableStream)(e)||(0,i.isBlob)(e))return(0,r.splitStream)(e);let t=new n.PassThrough,a=new n.PassThrough;return e.pipe(t),e.pipe(a),[t,a]}})),M=i((e=>{var t=f(),n=c(),r=p(),i=ee(),a=y(),o=x(),s=C(),l=A(),u=te(),d=m(),h=class e extends Uint8Array{static fromString(r,i=`utf-8`){if(typeof r==`string`)return i===`base64`?e.mutate(t.fromBase64(r)):e.mutate(n.fromUtf8(r));throw Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(e=`utf-8`){return e===`base64`?t.toBase64(this):n.toUtf8(this)}};e.isBlob=d.isBlob,e.isReadableStream=d.isReadableStream,e.Uint8ArrayBlobAdapter=h,Object.prototype.hasOwnProperty.call(r,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:r.__proto__}),Object.keys(r).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=r[t])}),Object.prototype.hasOwnProperty.call(i,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:i.__proto__}),Object.keys(i).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=i[t])}),Object.prototype.hasOwnProperty.call(a,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:a.__proto__}),Object.keys(a).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=a[t])}),Object.prototype.hasOwnProperty.call(o,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:o.__proto__}),Object.keys(o).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o[t])}),Object.prototype.hasOwnProperty.call(s,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:s.__proto__}),Object.keys(s).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=s[t])}),Object.prototype.hasOwnProperty.call(l,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:l.__proto__}),Object.keys(l).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=l[t])}),Object.prototype.hasOwnProperty.call(u,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:u.__proto__}),Object.keys(u).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=u[t])})})),ne=r({__addDisposableResource:()=>Oe,__assign:()=>Me,__asyncDelegator:()=>be,__asyncGenerator:()=>ye,__asyncValues:()=>xe,__await:()=>P,__awaiter:()=>de,__classPrivateFieldGet:()=>Te,__classPrivateFieldIn:()=>De,__classPrivateFieldSet:()=>Ee,__createBinding:()=>Ne,__decorate:()=>ie,__disposeResources:()=>ke,__esDecorate:()=>oe,__exportStar:()=>pe,__extends:()=>N,__generator:()=>fe,__importDefault:()=>we,__importStar:()=>Ce,__makeTemplateObject:()=>Se,__metadata:()=>ue,__param:()=>ae,__propKey:()=>ce,__read:()=>he,__rest:()=>re,__rewriteRelativeImportExtension:()=>Ae,__runInitializers:()=>se,__setFunctionName:()=>le,__spread:()=>ge,__spreadArray:()=>ve,__spreadArrays:()=>_e,__values:()=>me,default:()=>Le});function N(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);je(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function re(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ae(e,t){return function(n,r){t(n,r,e)}}function oe(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function se(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function he(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ge(){for(var e=[],t=0;t1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof P?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function be(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:P(e[r](t)),done:!1}:i?i(t):t}:i}}function xe(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof me==`function`?me(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Se(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Ce(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Fe(e),r=0;r{je=function(e,t){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},je(e,t)},Me=function(){return Me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var t=a();e.getSmithyContext=e=>e[t.SMITHY_CONTEXT_KEY]||(e[t.SMITHY_CONTEXT_KEY]={}),e.normalizeProvider=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t}})),Be=i((e=>{let t=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},n=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,r=()=>{let e=[],o=[],s=!1,c=new Set,l=e=>e.sort((e,t)=>i[t.step]-i[e.step]||a[t.priority||`normal`]-a[e.priority||`normal`]),u=n=>{let r=!1,i=e=>{let i=t(e.name,e.aliases);if(i.includes(n)){r=!0;for(let e of i)c.delete(e);return!1}return!0};return e=e.filter(i),o=o.filter(i),r},d=n=>{let r=!1,i=e=>{if(e.middleware===n){r=!0;for(let n of t(e.name,e.aliases))c.delete(n);return!1}return!0};return e=e.filter(i),o=o.filter(i),r},f=t=>(e.forEach(e=>{t.add(e.middleware,{...e})}),o.forEach(e=>{t.addRelativeTo(e.middleware,{...e})}),t.identifyOnResolve?.(h.identifyOnResolve()),t),p=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...p(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...p(e))}),t},m=(r=!1)=>{let i=[],a=[],s={};return e.forEach(e=>{let n={...e,before:[],after:[]};for(let e of t(n.name,n.aliases))s[e]=n;i.push(n)}),o.forEach(e=>{let n={...e,before:[],after:[]};for(let e of t(n.name,n.aliases))s[e]=n;a.push(n)}),a.forEach(e=>{if(e.toMiddleware){let t=s[e.toMiddleware];if(t===void 0){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${n(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),l(i).map(p).reduce((e,t)=>(e.push(...t),e),[])},h={add:(r,i={})=>{let{name:a,override:o,aliases:s}=i,l={step:`initialize`,priority:`normal`,middleware:r,...i},u=t(a,s);if(u.length>0){if(u.some(e=>c.has(e))){if(!o)throw Error(`Duplicate middleware name '${n(a,s)}'`);for(let t of u){let r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(r===-1)continue;let i=e[r];if(i.step!==l.step||l.priority!==i.priority)throw Error(`"${n(i.name,i.aliases)}" middleware with ${i.priority} priority in ${i.step} step cannot be overridden by "${n(a,s)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(r,1)}}for(let e of u)c.add(e)}e.push(l)},addRelativeTo:(e,r)=>{let{name:i,override:a,aliases:s}=r,l={middleware:e,...r},u=t(i,s);if(u.length>0){if(u.some(e=>c.has(e))){if(!a)throw Error(`Duplicate middleware name '${n(i,s)}'`);for(let e of u){let t=o.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(t===-1)continue;let r=o[t];if(r.toMiddleware!==l.toMiddleware||r.relation!==l.relation)throw Error(`"${n(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${n(i,s)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);o.splice(t,1)}}for(let e of u)c.add(e)}o.push(l)},clone:()=>f(r()),use:e=>{e.applyToStack(h)},remove:e=>typeof e==`string`?u(e):d(e),removeByTag:n=>{let r=!1,i=e=>{let{tags:i,name:a,aliases:o}=e;if(i&&i.includes(n)){let e=t(a,o);for(let t of e)c.delete(t);return r=!0,!1}return!0};return e=e.filter(i),o=o.filter(i),r},concat:e=>{let t=f(r());return t.use(e),t.identifyOnResolve(s||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:f,identify:()=>m(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return n(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(s=e),s},resolve:(e,t)=>{for(let n of m().map(e=>e.middleware).reverse())e=n(e,t);return s&&console.log(h.identify()),e}};return h},i={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1};e.constructStack=r})),F,Ve=n((()=>{F=e=>typeof e==`function`?e():e})),He,Ue=n((()=>{He=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i})})),We,Ge,Ke,qe,Je=n((()=>{We=o(),Ge=ze(),Ue(),Ke=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=(0,Ge.getSmithyContext)(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(He(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(We.HttpResponse.isInstance(i)){let{headers:t={}}=i,n=Object.entries(t);e.$metadata={httpStatusCode:i.statusCode,requestId:qe(/^x-[\w-]+-request-?id$/,n),extendedRequestId:qe(/^x-[\w-]+-id-2$/,n),cfId:qe(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},qe=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]})),Ye,Xe,Ze=n((()=>{Ye=l(),Xe=e=>{if(typeof e==`object`){if(`url`in e){let t=(0,Ye.parseUrl)(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return(0,Ye.parseUrl)(e)}})),Qe=r({toEndpointV1:()=>Xe}),$e=n((()=>{Ze()})),et,tt,nt=n((()=>{$e(),et=ze(),Ue(),tt=e=>(t,n)=>async r=>{let{operationSchema:i}=(0,et.getSmithyContext)(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>Xe(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(He(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})}}));function rt(e){return{applyToStack:t=>{t.add(tt(e),at),t.add(Ke(e),it),e.protocol.setSerdeContext(e)}}}var it,at,ot=n((()=>{Je(),nt(),it={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},at={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}})),I,L=n((()=>{I=class{name;namespace;traits;static assign(e,t){return Object.assign(e,t)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}getName(){return this.namespace+`#`+this.name}}})),st,ct,lt=n((()=>{L(),st=class e extends I{static symbol=Symbol.for(`@smithy/lis`);name;traits;valueSchema;symbol=e.symbol},ct=(e,t,n,r)=>I.assign(new st,{name:t,namespace:e,traits:n,valueSchema:r})})),ut,dt,ft=n((()=>{L(),ut=class e extends I{static symbol=Symbol.for(`@smithy/map`);name;traits;keySchema;valueSchema;symbol=e.symbol},dt=(e,t,n,r,i)=>I.assign(new ut,{name:t,namespace:e,traits:n,keySchema:r,valueSchema:i})})),pt,mt,ht=n((()=>{L(),pt=class e extends I{static symbol=Symbol.for(`@smithy/ope`);name;traits;input;output;symbol=e.symbol},mt=(e,t,n,r,i)=>I.assign(new pt,{name:t,namespace:e,traits:n,input:r,output:i})})),gt,_t,vt=n((()=>{L(),gt=class e extends I{static symbol=Symbol.for(`@smithy/str`);name;traits;memberNames;memberList;symbol=e.symbol},_t=(e,t,n,r,i)=>I.assign(new gt,{name:t,namespace:e,traits:n,memberNames:r,memberList:i})})),yt,bt,xt=n((()=>{L(),vt(),yt=class e extends gt{static symbol=Symbol.for(`@smithy/err`);ctor;symbol=e.symbol},bt=(e,t,n,r,i,a)=>I.assign(new yt,{name:t,namespace:e,traits:n,memberNames:r,memberList:i,ctor:null})}));function R(e){if(typeof e==`object`)return e;if(e|=0,St[e])return St[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return St[e]=t}var St,Ct=n((()=>{St=[]}));function wt(e,t){return e instanceof B?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new B(e,t)}var z,Tt,Et,B,Dt,Ot,kt=n((()=>{Ve(),Ct(),z={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},Tt=[],Et={},B=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;Dt(i);)r.push(i[1]),i=i[0],a=F(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,R(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=F(a),Ot(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(Tt[t])return Tt[t]}else if(typeof t==`string`){if(Et[t])return Et[t]}else if(n&&t[z.ns])return t[z.ns];let r=F(t);if(r instanceof e)return r;if(Dt(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),R(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[z.ns]=i:typeof r==`string`?Et[r]=i:typeof r==`number`?Tt[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return R(this.memberTraits)}getOwnTraits(){return R(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return wt([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return wt([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return wt(Dt(r)?r:[r,0],e)}if(this.isDocumentSchema())return wt([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[z.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,Ot=e=>Array.isArray(e)&&e.length>=5})),At,jt,Mt,Nt=n((()=>{L(),At=class e extends I{static symbol=Symbol.for(`@smithy/sim`);name;schemaRef;traits;symbol=e.symbol},jt=(e,t,n,r)=>I.assign(new At,{name:t,namespace:e,traits:r,schemaRef:n}),Mt=(e,t,n,r)=>I.assign(new At,{name:t,namespace:e,traits:n,schemaRef:r})})),Pt,Ft=n((()=>{Pt={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}})),It,Lt=n((()=>{It=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}}})),Rt=r({ErrorSchema:()=>yt,ListSchema:()=>st,MapSchema:()=>ut,NormalizedSchema:()=>B,OperationSchema:()=>pt,SCHEMA:()=>Pt,Schema:()=>I,SimpleSchema:()=>At,StructureSchema:()=>gt,TypeRegistry:()=>It,deref:()=>F,deserializerMiddlewareOption:()=>it,error:()=>bt,getSchemaSerdePlugin:()=>rt,isStaticSchema:()=>Ot,list:()=>ct,map:()=>dt,op:()=>mt,operation:()=>He,serializerMiddlewareOption:()=>at,sim:()=>jt,simAdapter:()=>Mt,simpleSchemaCacheN:()=>Tt,simpleSchemaCacheS:()=>Et,struct:()=>_t,traitsCache:()=>St,translateTraits:()=>R}),V=n((()=>{Ve(),ot(),lt(),ft(),ht(),Ue(),xt(),kt(),L(),Nt(),vt(),Ft(),Ct(),Lt()})),zt,Bt=n((()=>{zt=(e,t,n=e=>e)=>e})),Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,H,cn,ln,un,dn,fn,pn,mn,hn,U,gn,_n,W,vn=n((()=>{Vt=e=>{switch(e){case`true`:return!0;case`false`:return!1;default:throw Error(`Unable to parse boolean value "${e}"`)}},Ht=e=>{if(e!=null){if(typeof e==`number`){if((e===0||e===1)&&W.warn(_n(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e==`string`){let t=e.toLowerCase();if((t===`false`||t===`true`)&&W.warn(_n(`Expected boolean, got ${typeof e}: ${e}`)),t===`false`)return!1;if(t===`true`)return!0}if(typeof e==`boolean`)return e;throw TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},Ut=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&W.warn(_n(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},Wt=Math.ceil(2**127*(2-2**-23)),Gt=e=>{let t=Ut(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Wt)throw TypeError(`Expected 32-bit float, got ${e}`);return t},Kt=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},qt=Kt,Jt=e=>Zt(e,32),Yt=e=>Zt(e,16),Xt=e=>Zt(e,8),Zt=(e,t)=>{let n=Kt(e);if(n!==void 0&&Qt(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Qt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},$t=(e,t)=>{if(e==null)throw TypeError(t?`Expected a non-null value for ${t}`:`Expected a non-null value`);return e},en=e=>{if(e!=null){if(typeof e==`object`&&!Array.isArray(e))return e;throw TypeError(`Expected object, got ${Array.isArray(e)?`array`:typeof e}: ${e}`)}},tn=e=>{if(e!=null){if(typeof e==`string`)return e;if([`boolean`,`number`,`bigint`].includes(typeof e))return W.warn(_n(`Expected string, got ${typeof e}: ${e}`)),String(e);throw TypeError(`Expected string, got ${typeof e}: ${e}`)}},nn=e=>{if(e==null)return;let t=en(e),n=[];for(let e in t)t[e]!=null&&n.push(e);if(n.length===0)throw TypeError(`Unions must have exactly one non-null member. None were found.`);if(n.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},rn=e=>Ut(typeof e==`string`?H(e):e),an=rn,on=e=>Gt(typeof e==`string`?H(e):e),sn=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H=e=>{let t=e.match(sn);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},cn=e=>typeof e==`string`?fn(e):Ut(e),ln=cn,un=cn,dn=e=>typeof e==`string`?fn(e):Gt(e),fn=e=>{switch(e){case`NaN`:return NaN;case`Infinity`:return 1/0;case`-Infinity`:return-1/0;default:throw Error(`Unable to parse float value: ${e}`)}},pn=e=>Kt(typeof e==`string`?H(e):e),mn=pn,hn=e=>Jt(typeof e==`string`?H(e):e),U=e=>Yt(typeof e==`string`?H(e):e),gn=e=>Xt(typeof e==`string`?H(e):e),_n=e=>String(TypeError(e).stack||e).split(` -`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` -`),W={warn:console.warn}}));function yn(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${bn[r]}, ${c} ${xn[n]} ${t} ${l}:${u}:${d} GMT`}var bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,G,jn,Mn,Nn,Pn,Fn,In,Ln,K,Rn,zn,q,Bn=n((()=>{vn(),bn=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],xn=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Sn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Cn=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=Sn.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l]=t;return G(U(q(r)),K(i,`month`,1,12),K(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l})},wn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Tn=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=wn.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l,u]=t,d=G(U(q(r)),K(i,`month`,1,12),K(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!=`Z`&&d.setTime(d.getTime()-zn(u)),d},En=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Dn=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),On=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),kn=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=En.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return G(U(q(i)),Pn(r),K(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=Dn.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return Nn(G(jn(i),Pn(r),K(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=On.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return G(U(q(c)),Pn(n),K(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},An=e=>{if(e==null)return;let t;if(typeof e==`number`)t=e;else if(typeof e==`string`)t=rn(e);else if(typeof e==`object`&&e.tag===1)t=e.value;else throw TypeError(`Epoch timestamps must be expressed as floating point numbers or their string representation`);if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError(`Epoch timestamps must be valid, non-Infinite, non-NaN numerics`);return new Date(Math.round(t*1e3))},G=(e,t,n,r)=>{let i=t-1;return In(e,i,n),new Date(Date.UTC(e,i,n,K(r.hours,`hour`,0,23),K(r.minutes,`minute`,0,59),K(r.seconds,`seconds`,0,60),Rn(r.fractionalMilliseconds)))},jn=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+U(q(e));return ne.getTime()-new Date().getTime()>Mn?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Pn=e=>{let t=xn.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},Fn=[31,28,31,30,31,30,31,31,30,31,30,31],In=(e,t,n)=>{let r=Fn[t];if(t===1&&Ln(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${xn[t]} in ${e}: ${n}`)},Ln=e=>e%4==0&&(e%100!=0||e%400==0),K=(e,t,n,r)=>{let i=gn(q(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Rn=e=>e==null?0:on(`0.`+e)*1e3,zn=e=>{let t=e[0],n=1;if(t==`+`)n=1;else if(t==`-`)n=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),i=Number(e.substring(4,6));return n*(r*60+i)*60*1e3},q=e=>{let t=0;for(;t{Object.defineProperty(n,"__esModule",{value:!0}),n.randomUUID=void 0;let r=(Re(),e(ne)).__importDefault(t(`crypto`));n.randomUUID=r.default.randomUUID.bind(r.default)})),Hn=i((e=>{var t=Vn();let n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));e.v4=()=>{if(t.randomUUID)return t.randomUUID();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,n[e[0]]+n[e[1]]+n[e[2]]+n[e[3]]+`-`+n[e[4]]+n[e[5]]+`-`+n[e[6]]+n[e[7]]+`-`+n[e[8]]+n[e[9]]+`-`+n[e[10]]+n[e[11]]+n[e[12]]+n[e[13]]+n[e[14]]+n[e[15]]}})),Un,Wn=n((()=>{Un=Hn()})),J,Gn=n((()=>{J=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},J.from=e=>e&&typeof e==`object`&&(e instanceof J||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?J(String(e)):J(JSON.stringify(e)),J.fromObject=J.from}));function Kn(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var qn=n((()=>{}));function Y(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}var Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr=n((()=>{Jn=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,Yn=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,Xn=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,Zn=`(\\d?\\d)`,Qn=`(\\d{4})`,$n=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),er=RegExp(`^${Jn}, ${Zn} ${Yn} ${Qn} ${Xn} GMT$`),tr=RegExp(`^${Jn}, ${Zn}-${Yn}-(\\d\\d) ${Xn} GMT$`),nr=RegExp(`^${Jn} ${Yn} ( [1-9]|\\d\\d) ${Xn} ${Qn}$`),rr=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],ir=e=>{if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`string`){if(!/^-?\d*\.?\d+$/.test(e))throw TypeError(`parseEpochTimestamp - numeric string invalid.`);t=Number.parseFloat(e)}else typeof e==`object`&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},ar=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=$n.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;Y(r,1,12),Y(i,1,31),Y(a,0,23),Y(o,0,59),Y(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},or=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=er.exec(e))?[,t,n,r,i,a,o,s]=c:(c=tr.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=nr.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),rr.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);Y(t,1,31),Y(i,0,23),Y(a,0,59),Y(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)}}));function cr(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{})),ur,dr=n((()=>{ur=e=>{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})}}));function fr(e){return new mr(String(e),`bigDecimal`)}var pr,mr,hr=n((()=>{pr=/^-?\d*(\.\d+)?$/,mr=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!pr.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&pr.test(n.string)}}})),gr=r({LazyJsonString:()=>J,NumericValue:()=>mr,_parseEpochTimestamp:()=>ir,_parseRfc3339DateTimeWithOffset:()=>ar,_parseRfc7231DateTime:()=>or,copyDocumentWithTransform:()=>zt,dateToUtcString:()=>yn,expectBoolean:()=>Ht,expectByte:()=>Xt,expectFloat32:()=>Gt,expectInt:()=>qt,expectInt32:()=>Jt,expectLong:()=>Kt,expectNonNull:()=>$t,expectNumber:()=>Ut,expectObject:()=>en,expectShort:()=>Yt,expectString:()=>tn,expectUnion:()=>nn,generateIdempotencyToken:()=>Un.v4,handleFloat:()=>ln,limitedParseDouble:()=>cn,limitedParseFloat:()=>un,limitedParseFloat32:()=>dn,logger:()=>W,nv:()=>fr,parseBoolean:()=>Vt,parseEpochTimestamp:()=>An,parseRfc3339DateTime:()=>Cn,parseRfc3339DateTimeWithOffset:()=>Tn,parseRfc7231DateTime:()=>kn,quoteHeader:()=>Kn,splitEvery:()=>cr,splitHeader:()=>ur,strictParseByte:()=>gn,strictParseDouble:()=>rn,strictParseFloat:()=>an,strictParseFloat32:()=>on,strictParseInt:()=>mn,strictParseInt32:()=>hn,strictParseLong:()=>pn,strictParseShort:()=>U}),_r=n((()=>{Bt(),Bn(),Wn(),Gn(),vn(),qn(),sr(),lr(),dr(),hr()})),vr,X,yr=n((()=>{vr=M(),X=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return vr.Uint8ArrayBlobAdapter.mutate(e);if(!e)return vr.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let n=t.streamCollector(e);return vr.Uint8ArrayBlobAdapter.mutate(await n)}}));function Z(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var br=n((()=>{})),Q,$=n((()=>{Q=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}})),xr,Sr,Cr=n((()=>{V(),xr=o(),$(),Sr=class extends Q{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=It.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return xr.HttpRequest}getResponseType(){return xr.HttpResponse}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=B.of(t.input),i=R(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await import(`./event-streams-CTAMtwD0.js`);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}}})),wr,Tr,Er,Dr=n((()=>{V(),_r(),wr=o(),Tr=M(),yr(),br(),Cr(),Er=class extends Sr{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=B.of(e?.input),l=[],u=[],d=!1,f,p=new wr.HttpRequest({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(p,s),this.setHostPrefix(p,e,r);let t=R(e.traits);if(t.http){p.method=t.http[0];let[e,n]=t.http[1].split(`?`);p.path==`/`?p.path=e:p.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(p.path.includes(`{${e}+}`)||p.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(f=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):f=s:(i.write(t,s),f=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();p.path.includes(`{${e}+}`)?p.path=p.path.replace(`{${e}+}`,n.split(`/`).map(Z).join(`/`)):p.path.includes(`{${e}}`)&&(p.path=p.path.replace(`{${e}}`,Z(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),f=i.flush()}return p.headers=o,p.query=a,p.body=f,p}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=B.of(e.output),a={};if(n.statusCode>=300){let i=await X(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await X(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await X(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=B.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=(0,Tr.sdkStreamMixin)(n.body);else if(n.body){let i=await X(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?cr(o,`,`,2):ur(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}}})),Or,kr,Ar=n((()=>{V(),Or=o(),yr(),Cr(),kr=class extends Sr{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=B.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new Or.HttpRequest({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=B.of(e.output),a={};if(n.statusCode>=300){let i=await X(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await X(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}}})),jr,Mr=n((()=>{br(),jr=(e,t,n,r,i,a)=>{if(t!=null&&t[n]!==void 0){let t=r();if(t==null||t.length<=0)throw Error(`Empty value provided for input HTTP label: `+n+`.`);e=e.replace(i,a?t.split(`/`).map(e=>Z(e)).join(`/`):Z(t))}else throw Error(`No value provided for input HTTP label: `+n+`.`);return e}}));function Nr(e,t){return new Fr(e,t)}var Pr,Fr,Ir=n((()=>{Pr=o(),Mr(),Fr=class{input;context;query={};method=``;headers={};path=``;body=null;hostname=``;resolvePathStack=[];constructor(e,t){this.input=e,this.context=t}async build(){let{hostname:e,protocol:t=`https`,port:n,path:r}=await this.context.endpoint();this.path=r;for(let e of this.resolvePathStack)e(this.path);return new Pr.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(t=>{this.path=`${t?.endsWith(`/`)?t.slice(0,-1):t||``}`+e}),this}p(e,t,n,r){return this.resolvePathStack.push(i=>{this.path=jr(i,this.input,e,t,n,r)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}}));function Lr(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var Rr=n((()=>{})),zr,Br,Vr,Hr=n((()=>{V(),_r(),zr=f(),Br=c(),$(),Rr(),Vr=class extends Q{settings;constructor(e){super(),this.settings=e}read(e,t){let n=B.of(e);if(n.isListSchema())return ur(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??zr.fromBase64)(t);if(n.isTimestampSchema())switch(Lr(n,this.settings)){case 5:return ar(t);case 6:return or(t);case 7:return ir(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=J.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new mr(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Br.toUtf8)((this.serdeContext?.base64Decoder??zr.fromBase64)(e))}}})),Ur,Wr,Gr=n((()=>{V(),Ur=c(),$(),Hr(),Wr=class extends Q{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new Vr(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=B.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??Ur.toUtf8;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??Ur.fromUtf8;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}}})),Kr,qr,Jr=n((()=>{V(),_r(),Kr=f(),$(),Rr(),qr=class extends Q{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=B.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(Lr(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=yn(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??Kr.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:Kn(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=J.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Kr.toBase64)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=(0,Un.v4)():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}}})),Yr,Xr=n((()=>{V(),Jr(),Yr=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new qr(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=B.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}})),Zr=r({FromStringShapeDeserializer:()=>Vr,HttpBindingProtocol:()=>Er,HttpInterceptingShapeDeserializer:()=>Wr,HttpInterceptingShapeSerializer:()=>Yr,HttpProtocol:()=>Sr,RequestBuilder:()=>Fr,RpcProtocol:()=>kr,SerdeContext:()=>Q,ToStringShapeSerializer:()=>qr,collectBody:()=>X,determineTimestampFormat:()=>Lr,extendedEncodeURIComponent:()=>Z,requestBuilder:()=>Nr,resolvedPath:()=>jr}),Qr=n((()=>{yr(),br(),Dr(),Cr(),Ar(),Ir(),Mr(),Hr(),Gr(),Xr(),Jr(),Rr(),$()})),$r=i((t=>{var n=Be(),r=a(),i=(V(),e(Rt)),o=(_r(),e(gr)),s=(Qr(),e(Zr)),c=class{config;middlewareStack=n.constructStack();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}};let l=`***SensitiveInformation***`;function u(e,t){if(t==null)return t;let n=i.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive)return l;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return l}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return l}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=u(i,e[t]));return r}return t}var d=class{middlewareStack=n.constructStack();schema;static classBuilder(){return new f}resolveMiddlewareWithContext(e,t,n,{middlewareFn:i,clientName:a,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:c,smithyContext:l,additionalContext:u,CommandCtor:d}){for(let r of i.bind(this)(d,e,t,n))this.middlewareStack.use(r);let f=e.concat(this.middlewareStack),{logger:p}=t,m={logger:p,clientName:a,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:c,[r.SMITHY_CONTEXT_KEY]:{commandInstance:this,...l},...u},{requestHandler:h}=t,g=n??{};return l.eventStream&&(g={isEventStream:!0,...g}),f.resolve(e=>h.handle(e.request,g),m)}},f=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends d{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?u.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?u.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}};let p=(e,t,n)=>{for(let[n,r]of Object.entries(e)){let e=async function(e,t,n){let i=new r(e);if(typeof t==`function`)this.send(i,t);else if(typeof n==`function`){if(typeof t!=`object`)throw Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else return this.send(i,t)},i=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,``);t.prototype[i]=e}let{paginators:r={},waiters:i={}}=n??{};for(let[e,n]of Object.entries(r))t.prototype[e]===void 0&&(t.prototype[e]=function(e={},t,...r){return n({...t,client:this},e,...r)});for(let[e,n]of Object.entries(i))t.prototype[e]===void 0&&(t.prototype[e]=async function(e={},t,...r){let i=t;return typeof t==`number`&&(i={maxWaitTime:t}),n({...i,client:this},e,...r)})};var m=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}};let h=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e),g=({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{let i=_(e),a=i.httpStatusCode?i.httpStatusCode+``:void 0;throw h(new n({name:t?.code||t?.Code||r||a||`UnknownError`,$fault:`client`,$metadata:i}),t)},ee=e=>({output:t,parsedBody:n,errorCode:r})=>{g({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},_=e=>({httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}),v=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}},y=!1,b=e=>{e&&!y&&parseInt(e.substring(1,e.indexOf(`.`)))<16&&(y=!0)},x=Object.values(r.AlgorithmId),S=e=>{let t=[];for(let n in r.AlgorithmId){let i=r.AlgorithmId[n];e[i]!==void 0&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();x.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},C=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();x.includes(n)&&(t[n]=e.checksumConstructor())}),t},w=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),T=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},E=e=>Object.assign(S(e),w(e)),D=E,O=e=>Object.assign(C(e),T(e)),k=e=>Array.isArray(e)?e:[e],A=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=A(e[n]));return e},j=e=>e!=null;var te=class{trace(){}debug(){}info(){}warn(){}error(){}};function M(e,t,n){let r,i,a;if(t===void 0&&n===void 0)r={},a=e;else{if(r=e,typeof t==`function`)return i=t,a=n,re(r,i,a);a=t}for(let e of Object.keys(a)){if(!Array.isArray(a[e])){r[e]=a[e];continue}ie(r,null,a,e)}return r}let ne=e=>{let t={};for(let[n,r]of Object.entries(e||{}))t[n]=[,r];return t},N=(e,t)=>{let n={};for(let r in t)ie(n,e,t,r);return n},re=(e,t,n)=>M(e,Object.entries(n).reduce((e,[n,r])=>(Array.isArray(r)?e[n]=r:typeof r==`function`?e[n]=[t,r()]:e[n]=[t,r],e),{})),ie=(e,t,n,r)=>{if(t!==null){let i=n[r];typeof i==`function`&&(i=[,i]);let[a=ae,o=oe,s=r]=i;(typeof a==`function`&&a(t[s])||typeof a!=`function`&&a)&&(e[r]=o(t[s]));return}let[i,a]=n[r];if(typeof a==`function`){let t,n=i===void 0&&(t=a())!=null,o=typeof i==`function`&&!!i(void 0)||typeof i!=`function`&&!!i;n?e[r]=t:o&&(e[r]=a())}else{let t=i===void 0&&a!=null,n=typeof i==`function`&&!!i(a)||typeof i!=`function`&&!!i;(t||n)&&(e[r]=a)}},ae=e=>e!=null,oe=e=>e,se=e=>{if(e!==e)return`NaN`;switch(e){case 1/0:return`Infinity`;case-1/0:return`-Infinity`;default:return e}},ce=e=>e.toISOString().replace(`.000Z`,`Z`),le=e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(e=>e!=null).map(le);if(typeof e==`object`){let t={};for(let n of Object.keys(e))e[n]!=null&&(t[n]=le(e[n]));return t}return e};t.collectBody=s.collectBody,t.extendedEncodeURIComponent=s.extendedEncodeURIComponent,t.resolvedPath=s.resolvedPath,t.Client=c,t.Command=d,t.NoOpLogger=te,t.SENSITIVE_STRING=`***SensitiveInformation***`,t.ServiceException=m,t._json=le,t.convertMap=ne,t.createAggregatedClient=p,t.decorateServiceException=h,t.emitWarningIfUnsupportedVersion=b,t.getArrayIfSingleItem=k,t.getDefaultClientConfiguration=D,t.getDefaultExtensionConfiguration=E,t.getValueFromTextNode=A,t.isSerializableHeaderValue=j,t.loadConfigsForDefaultMode=v,t.map=M,t.resolveDefaultRuntimeConfig=O,t.serializeDateTime=ce,t.serializeFloat=se,t.take=N,t.throwDefaultError=g,t.withBaseException=ee,Object.prototype.hasOwnProperty.call(o,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:o.__proto__}),Object.keys(o).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=o[e])})}));export{Re as $,J as A,V as B,_r as C,fr as D,hr as E,yn as F,kt as G,It as H,Bn as I,Qe as J,rt as K,An as L,Un as M,Wn as N,ir as O,Hn as P,ze as Q,Tn as R,yr as S,mr as T,Lt as U,Rt as V,B as W,F as X,$e as Y,Ve as Z,Q as _,Wr as a,f as at,br as b,Hr as c,Ir as d,ne as et,Nr as f,Dr as g,Er as h,Xr as i,w as it,Gn as j,sr as k,Lr as l,Ar as m,Qr as n,O as nt,Gr as o,kr as p,ot as q,Yr as r,E as rt,Vr as s,$r as t,M as tt,Rr as u,$ as v,gr as w,X as x,Z as y,kn as z}; \ No newline at end of file diff --git a/dist/dist-cjs-Bd7-ZKWb.js b/dist/dist-cjs-Bd7-ZKWb.js deleted file mode 100644 index 240343fa..00000000 --- a/dist/dist-cjs-Bd7-ZKWb.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,n,r,t as i}from"./chunk-BTyA9uPd.js";import{t as a}from"./dist-cjs-Qh8tJqb7.js";import{n as o,r as s,s as c,t as l}from"./client-BGPX0p_V.js";import{t as u}from"./dist-cjs-GIhSYq7f.js";import{B as d,H as f,K as p,Q as m,at as h,rt as g,t as _}from"./dist-cjs-B_LTzHDO.js";import{A as v,C as y,D as ee,G as te,H as ne,K as re,M as ie,O as b,P as x,R as ae,S,T as C,W as oe,_ as w,a as se,b as ce,i as le,l as ue,n as de,o as fe,p as pe,r as me,s as T,t as he,w as ge,x as _e,y as ve}from"./dist-cjs-D0bofO8q.js";import{t as ye}from"./dist-cjs-CKxbtVku.js";import{t as be}from"./dist-cjs-BjeBHYpU.js";import{t as xe}from"./dist-cjs-Vc3Nkab2.js";import{t as Se}from"./dist-cjs-BWu9uV-R.js";import{t as Ce}from"./package-1vOVG41v.js";var we=i((n=>{var r=(o(),e(l)),i=(T(),e(fe)),a=be(),s=xe(),c=t(`node:fs`);let u=({logger:e,signingName:t}={})=>async()=>{if(e?.debug?.(`@aws-sdk/token-providers - fromEnvSigningName`),!t)throw new a.TokenProviderError(`Please pass 'signingName' to compute environment variable key`,{logger:e});let n=i.getBearerTokenEnvKey(t);if(!(n in process.env))throw new a.TokenProviderError(`Token not present in '${n}' environment variable`,{logger:e});let o={token:process.env[n]};return r.setTokenFeature(o,`BEARER_SERVICE_ENV_VARS`,`3`),o},d=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`,f=async(e,t={},n)=>{let{SSOOIDCClient:r}=await import(`./sso-oidc-D-gXX4Oj.js`),i=e=>t.clientConfig?.[e]??t.parentClientConfig?.[e]??n?.[e];return new r(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:i(`logger`),userAgentAppId:i(`userAgentAppId`)}))},p=async(e,t,n={},r)=>{let{CreateTokenCommand:i}=await import(`./sso-oidc-D-gXX4Oj.js`);return(await f(t,n,r)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:`refresh_token`}))},m=e=>{if(e.expiration&&e.expiration.getTime(){if(t===void 0)throw new a.TokenProviderError(`Value not present for '${e}' in SSO Token${n?`. Cannot refresh`:``}. ${d}`,!1)},{writeFile:g}=c.promises,_=(e,t)=>g(s.getSSOTokenFilepath(e),JSON.stringify(t,null,2)),v=new Date(0),y=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/token-providers - fromSso`);let n=await s.parseKnownFiles(e),r=s.getProfileName({profile:e.profile??t?.profile}),i=n[r];if(!i)throw new a.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);if(!i.sso_session)throw new a.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let o=i.sso_session,c=(await s.loadSsoSessionData(e))[o];if(!c)throw new a.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let e of[`sso_start_url`,`sso_region`])if(!c[e])throw new a.TokenProviderError(`Sso session '${o}' is missing required property '${e}'.`,!1);c.sso_start_url;let l=c.sso_region,u;try{u=await s.getSSOTokenFromFile(o)}catch{throw new a.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${d}`,!1)}h(`accessToken`,u.accessToken),h(`expiresAt`,u.expiresAt);let{accessToken:f,expiresAt:g}=u,y={token:f,expiration:new Date(g)};if(y.expiration.getTime()-Date.now()>3e5)return y;if(Date.now()-v.getTime()<30*1e3)return m(y),y;h(`clientId`,u.clientId,!0),h(`clientSecret`,u.clientSecret,!0),h(`refreshToken`,u.refreshToken,!0);try{v.setTime(Date.now());let n=await p(u,l,e,t);h(`accessToken`,n.accessToken),h(`expiresIn`,n.expiresIn);let r=new Date(Date.now()+n.expiresIn*1e3);try{await _(o,{...u,accessToken:n.accessToken,expiresAt:r.toISOString(),refreshToken:n.refreshToken})}catch{}return{token:n.accessToken,expiration:r}}catch{return m(y),y}};n.fromEnvSigningName=u,n.fromSso=y,n.fromStatic=({token:e,logger:t})=>async()=>{if(t?.debug(`@aws-sdk/token-providers - fromStatic`),!e||!e.token)throw new a.TokenProviderError(`Please pass a valid token to fromStatic`,!1);return e},n.nodeProvider=(e={})=>a.memoize(a.chain(y(e),async()=>{throw new a.TokenProviderError(`Could not load token from any providers`,!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0)}));function Te(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`awsssoportal`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Ee(e){return{schemeId:`smithy.api#noAuth`}}var E,De,Oe,ke,Ae=n((()=>{T(),E=m(),De=async(e,t,n)=>({operation:(0,E.getSmithyContext)(t).operation,region:await(0,E.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Oe=e=>{let t=[];switch(e.operation){case`GetRoleCredentials`:t.push(Ee(e));break;default:t.push(Te(e))}return t},ke=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:(0,E.normalizeProvider)(e.authSchemePreference??[])})}})),je,Me,Ne=n((()=>{je=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`awsssoportal`}),Me={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),Pe,D,O,k,A,j,M,N,Fe,P,F,Ie,Le,Re,ze,Be,Ve=n((()=>{Pe=C(),D=`ref`,O=-1,k=!0,A=`isSet`,j=`PartitionResult`,M=`booleanEquals`,N=`getAttr`,Fe={[D]:`Endpoint`},P={[D]:j},F={},Ie=[{[D]:`Region`}],Le={conditions:[[A,[Fe]],[A,Ie],[`aws.partition`,Ie,j],[M,[{[D]:`UseFIPS`},k]],[M,[{[D]:`UseDualStack`},k]],[M,[{fn:N,argv:[P,`supportsDualStack`]},k]],[M,[{fn:N,argv:[P,`supportsFIPS`]},k]],[`stringEquals`,[{fn:N,argv:[P,`name`]},`aws-us-gov`]]],results:[[O],[O,`Invalid Configuration: FIPS and custom endpoint are not supported`],[O,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Fe,F],[`https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,F],[O,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://portal.sso.{Region}.amazonaws.com`,F],[`https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}`,F],[O,`FIPS is enabled but this partition does not support FIPS`],[`https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}`,F],[O,`DualStack is enabled but this partition does not support DualStack`],[`https://portal.sso.{Region}.{PartitionResult#dnsSuffix}`,F],[O,`Invalid Configuration: Missing Region`]]},Re=2,ze=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Be=Pe.BinaryDecisionDiagram.from(ze,Re,Le.conditions,Le.results)})),He,I,Ue,We,Ge=n((()=>{He=ge(),I=C(),Ve(),Ue=new I.EndpointCache({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),We=(e,t={})=>Ue.get(e,()=>(0,I.decideEndpoint)(Be,{endpointParams:e,logger:t.logger})),I.customEndpointFunctions.aws=He.awsEndpointFunctions})),Ke,L,R=n((()=>{Ke=_(),L=class e extends Ke.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),z,B,V,H,qe=n((()=>{R(),z=class e extends L{name=`InvalidRequestException`;$fault=`client`;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},B=class e extends L{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},V=class e extends L{name=`TooManyRequestsException`;$fault=`client`;constructor(t){super({name:`TooManyRequestsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},H=class e extends L{name=`UnauthorizedException`;$fault=`client`;constructor(t){super({name:`UnauthorizedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,U,W,lt,ut,G,dt,K,q,ft,pt,mt,J,ht,gt,_t,Y,vt,yt,X,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt=n((()=>{d(),qe(),R(),Je=`AccessTokenType`,Ye=`GetRoleCredentials`,Xe=`GetRoleCredentialsRequest`,Ze=`GetRoleCredentialsResponse`,Qe=`InvalidRequestException`,$e=`RoleCredentials`,et=`ResourceNotFoundException`,tt=`SecretAccessKeyType`,nt=`SessionTokenType`,rt=`TooManyRequestsException`,it=`UnauthorizedException`,at=`accountId`,ot=`accessKeyId`,st=`accessToken`,ct=`account_id`,U=`client`,W=`error`,lt=`expiration`,ut=`http`,G=`httpError`,dt=`httpHeader`,K=`httpQuery`,q=`message`,ft=`roleCredentials`,pt=`roleName`,mt=`role_name`,J=`smithy.ts.sdk.synthetic.com.amazonaws.sso`,ht=`secretAccessKey`,gt=`sessionToken`,_t=`x-amz-sso_bearer_token`,Y=`com.amazonaws.sso`,vt=f.for(J),yt=[-3,J,`SSOServiceException`,0,[],[]],vt.registerError(yt,L),X=f.for(Y),bt=[-3,Y,Qe,{[W]:U,[G]:400},[q],[0]],X.registerError(bt,z),xt=[-3,Y,et,{[W]:U,[G]:404},[q],[0]],X.registerError(xt,B),St=[-3,Y,rt,{[W]:U,[G]:429},[q],[0]],X.registerError(St,V),Ct=[-3,Y,it,{[W]:U,[G]:401},[q],[0]],X.registerError(Ct,H),wt=[vt,X],Tt=[0,Y,Je,8,0],Et=[0,Y,tt,8,0],Dt=[0,Y,nt,8,0],Ot=[3,Y,Xe,0,[pt,at,st],[[0,{[K]:mt}],[0,{[K]:ct}],[()=>Tt,{[dt]:_t}]],3],kt=[3,Y,Ze,0,[ft],[[()=>At,0]]],At=[3,Y,$e,0,[ot,ht,gt,lt],[0,[()=>Et,0],[()=>Dt,0],1]],jt=[9,Y,Ye,{[ut]:[`GET`,`/federation/credentials`,200]},()=>Ot,()=>kt]})),Nt,Pt,Ft,It,Lt,Rt=n((()=>{T(),ae(),ee(),Nt=_(),Pt=ye(),Ft=h(),It=u(),Ae(),Ge(),Mt(),Lt=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??Ft.fromBase64,base64Encoder:e?.base64Encoder??Ft.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??We,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Oe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new w},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new b}],logger:e?.logger??new Nt.NoOpLogger,protocol:e?.protocol??ne,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sso`,errorTypeRegistries:wt,version:`2019-06-10`,serviceTarget:`SWBPortalService`},serviceId:e?.serviceId??`SSO`,urlParser:e?.urlParser??Pt.parseUrl,utf8Decoder:e?.utf8Decoder??It.fromUtf8,utf8Encoder:e?.utf8Encoder??It.toUtf8})})),zt,Z,Bt,Vt,Q,Ht,Ut,Wt,Gt,Kt,qt,Jt=n((()=>{o(),T(),zt=se(),Z=S(),Bt=le(),Vt=ve(),Q=Se(),Ht=g(),Ut=_(),Wt=me(),Gt=de(),Kt=s(),Rt(),qt=e=>{(0,Ut.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Gt.resolveDefaultsModeConfig)(e),n=()=>t().then(Ut.loadConfigsForDefaultMode),r=Lt(e);c(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,Q.loadConfig)(pe,i),bodyLengthChecker:e?.bodyLengthChecker??Wt.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,zt.createDefaultUserAgentProvider)({serviceId:r.serviceId,clientVersion:Ce}),maxAttempts:e?.maxAttempts??(0,Q.loadConfig)(Vt.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,Q.loadConfig)(Z.NODE_REGION_CONFIG_OPTIONS,{...Z.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:Ht.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,Q.loadConfig)({...Vt.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||Kt.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Bt.Hash.bind(null,`sha256`),streamCollector:e?.streamCollector??Ht.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Q.loadConfig)(Z.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,Q.loadConfig)(Z.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,Q.loadConfig)(zt.NODE_APP_ID_CONFIG_OPTIONS,i)}}})),Yt,Xt,Zt=n((()=>{Yt=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Xt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),Qt,$t,en,tn,nn=n((()=>{Qt=he(),$t=a(),en=_(),Zt(),tn=(e,t)=>{let n=Object.assign((0,Qt.getAwsRegionExtensionConfiguration)(e),(0,en.getDefaultExtensionConfiguration)(e),(0,$t.getHttpHandlerExtensionConfiguration)(e),Yt(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,Qt.resolveAwsRegionExtensionConfiguration)(n),(0,en.resolveDefaultRuntimeConfig)(n),(0,$t.resolveHttpHandlerRuntimeConfig)(n),Xt(n))}})),rn,an,on,$,sn,cn,ln,un,dn,fn,pn=n((()=>{rn=re(),an=te(),on=oe(),$=y(),sn=S(),ee(),d(),cn=_e(),ln=ce(),un=ve(),dn=_(),Ae(),Ne(),Jt(),nn(),fn=class extends dn.Client{config;constructor(...[e]){let t=qt(e||{});super(t),this.initConfig=t;let n=tn(ke((0,ln.resolveEndpointConfig)((0,rn.resolveHostHeaderConfig)((0,sn.resolveRegionConfig)((0,un.resolveRetryConfig)((0,$.resolveUserAgentConfig)(je(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(p(this.config)),this.middlewareStack.use((0,$.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,un.getRetryPlugin)(this.config)),this.middlewareStack.use((0,cn.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,rn.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,an.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,on.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(x(this.config,{httpAuthSchemeParametersProvider:De,identityProviderConfigProvider:async e=>new v({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ie(this.config))}destroy(){super.destroy()}}})),mn,hn,gn,_n=n((()=>{mn=ce(),hn=_(),Ne(),Mt(),gn=class extends hn.Command.classBuilder().ep(Me).m(function(e,t,n,r){return[(0,mn.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s(`SWBPortalService`,`GetRoleCredentials`,{}).n(`SSOClient`,`GetRoleCredentialsCommand`).sc(jt).build(){}})),vn,yn,bn,xn=n((()=>{vn=_(),_n(),pn(),yn={GetRoleCredentialsCommand:gn},bn=class extends fn{},(0,vn.createAggregatedClient)(yn,bn)})),Sn=n((()=>{_n()})),Cn=n((()=>{})),wn=r({$Command:()=>hn.Command,GetRoleCredentials$:()=>jt,GetRoleCredentialsCommand:()=>gn,GetRoleCredentialsRequest$:()=>Ot,GetRoleCredentialsResponse$:()=>kt,InvalidRequestException:()=>z,InvalidRequestException$:()=>bt,ResourceNotFoundException:()=>B,ResourceNotFoundException$:()=>xt,RoleCredentials$:()=>At,SSO:()=>bn,SSOClient:()=>fn,SSOServiceException:()=>L,SSOServiceException$:()=>yt,TooManyRequestsException:()=>V,TooManyRequestsException$:()=>St,UnauthorizedException:()=>H,UnauthorizedException$:()=>Ct,__Client:()=>dn.Client,errorTypeRegistries:()=>wt}),Tn=n((()=>{pn(),xn(),Sn(),Mt(),qe(),Cn(),R()})),En=i((t=>{var n=(Tn(),e(wn));t.GetRoleCredentialsCommand=n.GetRoleCredentialsCommand,t.SSOClient=n.SSOClient})),Dn=i((t=>{var n=be(),r=xe(),i=(o(),e(l)),a=we();let s=e=>e&&(typeof e.sso_start_url==`string`||typeof e.sso_account_id==`string`||typeof e.sso_session==`string`||typeof e.sso_region==`string`||typeof e.sso_role_name==`string`),c=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:o,ssoRegion:s,ssoRoleName:c,ssoClient:l,clientConfig:u,parentClientConfig:d,callerClientConfig:f,profile:p,filepath:m,configFilepath:h,ignoreCache:g,logger:_})=>{let v,y=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t)try{let e=await a.fromSso({profile:p,filepath:m,configFilepath:h,ignoreCache:g})();v={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new n.CredentialsProviderError(e.message,{tryNextLink:!1,logger:_})}else try{v=await r.getSSOTokenFromFile(e)}catch{throw new n.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${y}`,{tryNextLink:!1,logger:_})}if(new Date(v.expiresAt).getTime()-Date.now()<=0)throw new n.CredentialsProviderError(`The SSO session associated with this profile has expired. ${y}`,{tryNextLink:!1,logger:_});let{accessToken:ee}=v,{SSOClient:te,GetRoleCredentialsCommand:ne}=await Promise.resolve().then(function(){return En()}),re=l||new te(Object.assign({},u??{},{logger:u?.logger??f?.logger??d?.logger,region:u?.region??s,userAgentAppId:u?.userAgentAppId??f?.userAgentAppId??d?.userAgentAppId})),ie;try{ie=await re.send(new ne({accountId:o,roleName:c,accessToken:ee}))}catch(e){throw new n.CredentialsProviderError(e,{tryNextLink:!1,logger:_})}let{roleCredentials:{accessKeyId:b,secretAccessKey:x,sessionToken:ae,expiration:S,credentialScope:C,accountId:oe}={}}=ie;if(!b||!x||!ae||!S)throw new n.CredentialsProviderError(`SSO returns an invalid temporary credential.`,{tryNextLink:!1,logger:_});let w={accessKeyId:b,secretAccessKey:x,sessionToken:ae,expiration:new Date(S),...C&&{credentialScope:C},...oe&&{accountId:oe}};return t?i.setCredentialFeature(w,`CREDENTIALS_SSO`,`s`):i.setCredentialFeature(w,`CREDENTIALS_SSO_LEGACY`,`u`),w},u=(e,t)=>{let{sso_start_url:r,sso_account_id:i,sso_region:a,sso_role_name:o}=e;if(!r||!i||!a||!o)throw new n.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(`, `)}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:t});return e};t.fromSSO=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-sso - fromSSO`);let{ssoStartUrl:i,ssoAccountId:a,ssoRegion:o,ssoRoleName:l,ssoSession:d}=e,{ssoClient:f}=e,p=r.getProfileName({profile:e.profile??t?.profile});if(!i&&!a&&!o&&!l&&!d){let t=(await r.parseKnownFiles(e))[p];if(!t)throw new n.CredentialsProviderError(`Profile ${p} was not found.`,{logger:e.logger});if(!s(t))throw new n.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`,{logger:e.logger});if(t?.sso_session){let a=(await r.loadSsoSessionData(e))[t.sso_session],s=` configurations in profile ${p} and sso-session ${t.sso_session}`;if(o&&o!==a.sso_region)throw new n.CredentialsProviderError(`Conflicting SSO region`+s,{tryNextLink:!1,logger:e.logger});if(i&&i!==a.sso_start_url)throw new n.CredentialsProviderError(`Conflicting SSO start_url`+s,{tryNextLink:!1,logger:e.logger});t.sso_region=a.sso_region,t.sso_start_url=a.sso_start_url}let{sso_start_url:a,sso_account_id:l,sso_region:d,sso_role_name:m,sso_session:h}=u(t,e.logger);return c({ssoStartUrl:a,ssoSession:h,ssoAccountId:l,ssoRegion:d,ssoRoleName:m,ssoClient:f,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!i||!a||!o||!l)throw new n.CredentialsProviderError(`Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"`,{tryNextLink:!1,logger:e.logger});else return c({ssoStartUrl:i,ssoSession:d,ssoAccountId:a,ssoRegion:o,ssoRoleName:l,ssoClient:f,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},t.isSsoProfile=s,t.validateSsoProfile=u}));export default Dn();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-BgrAoXL3.js b/dist/dist-cjs-BgrAoXL3.js deleted file mode 100644 index 3a2f5039..00000000 --- a/dist/dist-cjs-BgrAoXL3.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./client-BGPX0p_V.js";import{t as a}from"./dist-cjs-BjeBHYpU.js";import{t as o}from"./dist-cjs-Vc3Nkab2.js";var s=n((n=>{var s=o(),c=a(),l=t(`node:child_process`),u=t(`node:util`),d=(r(),e(i));let f=(e,t,n)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration){let r=t[e];if(t[e]){let i=r.credential_process;if(i!==void 0){let r=u.promisify(s.externalDataInterceptor?.getTokenRecord?.().exec??l.exec);try{let{stdout:n}=await r(i),a;try{a=JSON.parse(n.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return f(e,a,t)}catch(e){throw new c.CredentialsProviderError(e.message,{logger:n})}}else throw new c.CredentialsProviderError(`Profile ${e} did not contain credential_process.`,{logger:n})}else throw new c.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`,{logger:n})};n.fromProcess=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-process - fromProcess`);let n=await s.parseKnownFiles(e);return p(s.getProfileName({profile:e.profile??t?.profile}),n,e.logger)}}));export default s();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-BjeBHYpU.js b/dist/dist-cjs-BjeBHYpU.js deleted file mode 100644 index e787ef18..00000000 --- a/dist/dist-cjs-BjeBHYpU.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-BTyA9uPd.js";var t=e((e=>{var t=class e extends Error{name=`ProviderError`;tryNextLink;constructor(t,n=!0){let r,i=!0;typeof n==`boolean`?(r=void 0,i=n):typeof n==`object`&&n&&(r=n.logger,i=n.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,e.prototype),r?.debug?.(`@smithy/property-provider ${i?`->`:`(!)`} ${t}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}},n=class e extends t{name=`CredentialsProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}},r=class e extends t{name=`TokenProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}};e.CredentialsProviderError=n,e.ProviderError=t,e.TokenProviderError=r,e.chain=(...e)=>async()=>{if(e.length===0)throw new t(`No providers in chain`);let n;for(let t of e)try{return await t()}catch(e){if(n=e,e?.tryNextLink)continue;throw e}throw n},e.fromStatic=e=>()=>Promise.resolve(e),e.memoize=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))}}));export{t}; \ No newline at end of file diff --git a/dist/dist-cjs-C6TMHN_x.js b/dist/dist-cjs-C6TMHN_x.js deleted file mode 100644 index 999e0ae9..00000000 --- a/dist/dist-cjs-C6TMHN_x.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./dist-cjs-DzDz58I_.js";export default e();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-CKxbtVku.js b/dist/dist-cjs-CKxbtVku.js deleted file mode 100644 index 795f25c2..00000000 --- a/dist/dist-cjs-CKxbtVku.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-BTyA9uPd.js";var t=e((e=>{function t(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}e.parseQueryString=t})),n=e((e=>{var n=t();let r=e=>{if(typeof e==`string`)return r(new URL(e));let{hostname:t,pathname:i,port:a,protocol:o,search:s}=e,c;return s&&(c=n.parseQueryString(s)),{hostname:t,port:a?parseInt(a):void 0,protocol:o,path:i,query:c}};e.parseUrl=r}));export{n as t}; \ No newline at end of file diff --git a/dist/dist-cjs-CZ6FHb0v.js b/dist/dist-cjs-CZ6FHb0v.js new file mode 100644 index 00000000..c058e263 --- /dev/null +++ b/dist/dist-cjs-CZ6FHb0v.js @@ -0,0 +1,5 @@ +import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./client-CtZmAvVy.js";import{A as a,i as o,j as s,r as c}from"./serde-Bngt0OLn.js";import{n as l,t as u}from"./protocols-D7c0rc_2.js";import{n as d,t as f}from"./tslib.es6-Bl8O1Dl_.js";import{t as p}from"./dist-cjs-B33Pip5h.js";var m=n((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkUrl=void 0;let n=(s(),e(a));t.checkUrl=(e,t)=>{if(e.protocol!==`https:`&&!(e.hostname===`169.254.170.2`||e.hostname===`169.254.170.23`||e.hostname===`[fd00:ec2::23]`)){if(e.hostname.includes(`[`)){if(e.hostname===`[::1]`||e.hostname===`[0000:0000:0000:0000:0000:0000:0000:0001]`)return}else{if(e.hostname===`localhost`)return;let t=e.hostname.split(`.`),n=e=>{let t=parseInt(e,10);return 0<=t&&t<=255};if(t[0]===`127`&&n(t[1])&&n(t[2])&&n(t[3])&&t.length===4)return}throw new n.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: + - loopback CIDR 127.0.0.0/8 or [::1/128] + - ECS container host 169.254.170.2 + - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}}})),h=n((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createGetRequest=f,t.getCredentials=p;let n=(s(),e(a)),r=(u(),e(l)),i=(c(),e(o)),d=(c(),e(o));function f(e){return new r.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((e,[t,n])=>(e[t]=n,e),{}),fragment:e.hash})}async function p(e,t){let r=await(0,d.sdkStreamMixin)(e.body).transformToString();if(e.statusCode===200){let e=JSON.parse(r);if(typeof e.AccessKeyId!=`string`||typeof e.SecretAccessKey!=`string`||typeof e.Token!=`string`||typeof e.Expiration!=`string`)throw new n.CredentialsProviderError(`HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }`,{logger:t});return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:(0,i.parseRfc3339DateTime)(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let i={};try{i=JSON.parse(r)}catch{}throw Object.assign(new n.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:i.Code,Message:i.Message})}throw new n.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t})}})),g=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryWrapper=void 0,e.retryWrapper=(e,t,n)=>async()=>{for(let r=0;rsetTimeout(e,n))}return await e()}})),_=n((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.fromHttp=void 0;let o=(f(),e(d)),c=(r(),e(i)),l=(s(),e(a)),u=p(),_=o.__importDefault(t(`node:fs/promises`)),v=m(),y=h(),b=g();n.fromHttp=(e={})=>{e.logger?.debug(`@aws-sdk/credential-provider-http - fromHttp`);let t,n=e.awsContainerCredentialsRelativeUri??process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI,r=e.awsContainerCredentialsFullUri??process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI,i=e.awsContainerAuthorizationToken??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN,a=e.awsContainerAuthorizationTokenFile??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE,o=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&r&&(o(`@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.`),o(`awsContainerCredentialsFullUri will take precedence.`)),i&&a&&(o(`@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.`),o(`awsContainerAuthorizationToken will take precedence.`)),r)t=r;else if(n)t=`http://169.254.170.2${n}`;else throw new l.CredentialsProviderError(`No HTTP credential provider host provided. +Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let s=new URL(t);(0,v.checkUrl)(s,e.logger);let d=u.NodeHttpHandler.create({connectionTimeout:e.timeout??1e3}),f=e.timeout??1e3,p=(0,b.retryWrapper)(async()=>{let t=(0,y.createGetRequest)(s);i?t.headers.Authorization=i:a&&(t.headers.Authorization=(await _.default.readFile(a)).toString());try{let e=await d.handle(t,{requestTimeout:f});return(0,y.getCredentials)(e.response).then(e=>(0,c.setCredentialFeature)(e,`CREDENTIALS_HTTP`,`z`))}catch(t){throw new l.CredentialsProviderError(String(t),{logger:e.logger})}},e.maxRetries??3,e.timeout??1e3);return async()=>{try{return await p()}finally{d.destroy?.()}}}})),v=n((e=>{e.fromHttp=_().fromHttp}));export default v();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-CrGr2xby.js b/dist/dist-cjs-CrGr2xby.js new file mode 100644 index 00000000..51937ce9 --- /dev/null +++ b/dist/dist-cjs-CrGr2xby.js @@ -0,0 +1 @@ +import{a as e,i as t,n,r,t as i}from"./chunk-BTyA9uPd.js";import{A as a,B as o,E as s,G as c,H as l,I as u,J as d,M as f,P as p,Q as m,R as h,V as g,W as _,_ as v,a as ee,c as te,f as ne,m as re,n as y,q as ie,r as b,t as x,u as S,w as ae,y as C}from"./client-CtZmAvVy.js";import{A as w,E as oe,F as se,Gt as ce,Ht as le,I as ue,Jt as de,K as T,L as fe,Lt as E,Mt as pe,N as me,Pt as he,Qt as ge,Rt as _e,Sn as ve,U as ye,V as be,Wt as xe,Yt as Se,b as Ce,c as we,d as Te,en as Ee,f as D,g as De,in as Oe,j as O,jn as ke,jt as Ae,kt as je,mn as Me,nn as Ne,p as Pe,r as Fe,tt as Ie,un as Le,vn as Re,w as ze}from"./serde-Bngt0OLn.js";import{a as Be,l as Ve,s as He,t as k}from"./protocols-D7c0rc_2.js";import{c as Ue,f as We,h as Ge,i as Ke,n as A,t as qe,y as Je}from"./httpAuthSchemes-D66OtRTv.js";import{t as Ye}from"./dist-cjs-B33Pip5h.js";import{t as Xe}from"./package-CWUbVncD.js";var Ze=i((n=>{var r=(y(),e(x)),i=(A(),e(qe)),a=(O(),e(w)),o=t(`node:fs`);let s=({logger:e,signingName:t}={})=>async()=>{if(e?.debug?.(`@aws-sdk/token-providers - fromEnvSigningName`),!t)throw new a.TokenProviderError(`Please pass 'signingName' to compute environment variable key`,{logger:e});let n=i.getBearerTokenEnvKey(t);if(!(n in process.env))throw new a.TokenProviderError(`Token not present in '${n}' environment variable`,{logger:e});let o={token:process.env[n]};return r.setTokenFeature(o,`BEARER_SERVICE_ENV_VARS`,`3`),o},c=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`,l=async(e,t={},n)=>{let{SSOOIDCClient:r}=await import(`./sso-oidc-BAXbMZ3t.js`),i=e=>t.clientConfig?.[e]??t.parentClientConfig?.[e]??n?.[e];return new r(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:i(`logger`),userAgentAppId:i(`userAgentAppId`)}))},u=async(e,t,n={},r)=>{let{CreateTokenCommand:i}=await import(`./sso-oidc-BAXbMZ3t.js`);return(await l(t,n,r)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:`refresh_token`}))},d=e=>{if(e.expiration&&e.expiration.getTime(){if(t===void 0)throw new a.TokenProviderError(`Value not present for '${e}' in SSO Token${n?`. Cannot refresh`:``}. ${c}`,!1)},{writeFile:p}=o.promises,m=(e,t)=>p(a.getSSOTokenFilepath(e),JSON.stringify(t,null,2)),h=new Date(0),g=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/token-providers - fromSso`);let n=await a.parseKnownFiles(e),r=a.getProfileName({profile:e.profile??t?.profile}),i=n[r];if(!i)throw new a.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);if(!i.sso_session)throw new a.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let o=i.sso_session,s=(await a.loadSsoSessionData(e))[o];if(!s)throw new a.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let e of[`sso_start_url`,`sso_region`])if(!s[e])throw new a.TokenProviderError(`Sso session '${o}' is missing required property '${e}'.`,!1);s.sso_start_url;let l=s.sso_region,p;try{p=await a.getSSOTokenFromFile(o)}catch{throw new a.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${c}`,!1)}f(`accessToken`,p.accessToken),f(`expiresAt`,p.expiresAt);let{accessToken:g,expiresAt:_}=p,v={token:g,expiration:new Date(_)};if(v.expiration.getTime()-Date.now()>3e5)return v;if(Date.now()-h.getTime()<30*1e3)return d(v),v;f(`clientId`,p.clientId,!0),f(`clientSecret`,p.clientSecret,!0),f(`refreshToken`,p.refreshToken,!0);try{h.setTime(Date.now());let n=await u(p,l,e,t);f(`accessToken`,n.accessToken),f(`expiresIn`,n.expiresIn);let r=new Date(Date.now()+n.expiresIn*1e3);try{await m(o,{...p,accessToken:n.accessToken,expiresAt:r.toISOString(),refreshToken:n.refreshToken})}catch{}return{token:n.accessToken,expiration:r}}catch{return d(v),v}};n.fromEnvSigningName=s,n.fromSso=g,n.fromStatic=({token:e,logger:t})=>async()=>{if(t?.debug(`@aws-sdk/token-providers - fromStatic`),!e||!e.token)throw new a.TokenProviderError(`Please pass a valid token to fromStatic`,!1);return e},n.nodeProvider=(e={})=>a.memoize(a.chain(g(e),async()=>{throw new a.TokenProviderError(`Could not load token from any providers`,!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0)}));function Qe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`awsssoportal`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function $e(e){return{schemeId:`smithy.api#noAuth`}}var et,tt,nt,rt=n((()=>{A(),E(),et=async(e,t,n)=>({operation:ke(t).operation,region:await ve(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),tt=e=>{let t=[];switch(e.operation){case`GetRoleCredentials`:t.push($e(e));break;default:t.push(Qe(e))}return t},nt=e=>{let t=Ke(e);return Object.assign(t,{authSchemePreference:ve(e.authSchemePreference??[])})}})),it,at,ot=n((()=>{it=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`awsssoportal`}),at={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),j,M,N,P,st,F,I,L,R,z,B,V,ct,lt,ut,dt=n((()=>{D(),j=`ref`,M=-1,N=!0,P=`isSet`,st=`PartitionResult`,F=`booleanEquals`,I=`getAttr`,L={[j]:`Endpoint`},R={[j]:st},z={},B=[{[j]:`Region`}],V={conditions:[[P,[L]],[P,B],[`aws.partition`,B,st],[F,[{[j]:`UseFIPS`},N]],[F,[{[j]:`UseDualStack`},N]],[F,[{fn:I,argv:[R,`supportsDualStack`]},N]],[F,[{fn:I,argv:[R,`supportsFIPS`]},N]],[`stringEquals`,[{fn:I,argv:[R,`name`]},`aws-us-gov`]]],results:[[M],[M,`Invalid Configuration: FIPS and custom endpoint are not supported`],[M,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[L,z],[`https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,z],[M,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://portal.sso.{Region}.amazonaws.com`,z],[`https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}`,z],[M,`FIPS is enabled but this partition does not support FIPS`],[`https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}`,z],[M,`DualStack is enabled but this partition does not support DualStack`],[`https://portal.sso.{Region}.{PartitionResult#dnsSuffix}`,z],[M,`Invalid Configuration: Missing Region`]]},ct=2,lt=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),ut=oe.from(lt,ct,V.conditions,V.results)})),ft,pt,mt=n((()=>{y(),D(),dt(),ft=new ze({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),pt=(e,t={})=>ft.get(e,()=>De(ut,{endpointParams:e,logger:t.logger})),Ce.aws=te})),H,U=n((()=>{E(),H=class e extends Se{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),W,G,K,q,ht=n((()=>{U(),W=class e extends H{name=`InvalidRequestException`;$fault=`client`;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},G=class e extends H{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},K=class e extends H{name=`TooManyRequestsException`;$fault=`client`;constructor(t){super({name:`TooManyRequestsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},q=class e extends H{name=`UnauthorizedException`;$fault=`client`;constructor(t){super({name:`UnauthorizedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,J,Y,jt,Mt,X,Nt,Pt,Z,Ft,It,Lt,Rt,zt,Bt,Vt,Q,Ht,Ut,$,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn=n((()=>{Ne(),ht(),U(),gt=`AccessTokenType`,_t=`GetRoleCredentials`,vt=`GetRoleCredentialsRequest`,yt=`GetRoleCredentialsResponse`,bt=`InvalidRequestException`,xt=`RoleCredentials`,St=`ResourceNotFoundException`,Ct=`SecretAccessKeyType`,wt=`SessionTokenType`,Tt=`TooManyRequestsException`,Et=`UnauthorizedException`,Dt=`accountId`,Ot=`accessKeyId`,kt=`accessToken`,At=`account_id`,J=`client`,Y=`error`,jt=`expiration`,Mt=`http`,X=`httpError`,Nt=`httpHeader`,Pt=`httpQuery`,Z=`message`,Ft=`roleCredentials`,It=`roleName`,Lt=`role_name`,Rt=`smithy.ts.sdk.synthetic.com.amazonaws.sso`,zt=`secretAccessKey`,Bt=`sessionToken`,Vt=`x-amz-sso_bearer_token`,Q=`com.amazonaws.sso`,Ht=Oe.for(Rt),Ut=[-3,Rt,`SSOServiceException`,0,[],[]],Ht.registerError(Ut,H),$=Oe.for(Q),Wt=[-3,Q,bt,{[Y]:J,[X]:400},[Z],[0]],$.registerError(Wt,W),Gt=[-3,Q,St,{[Y]:J,[X]:404},[Z],[0]],$.registerError(Gt,G),Kt=[-3,Q,Tt,{[Y]:J,[X]:429},[Z],[0]],$.registerError(Kt,K),qt=[-3,Q,Et,{[Y]:J,[X]:401},[Z],[0]],$.registerError(qt,q),Jt=[Ht,$],Yt=[0,Q,gt,8,0],Xt=[0,Q,Ct,8,0],Zt=[0,Q,wt,8,0],Qt=[3,Q,vt,0,[It,Dt,kt],[[0,{[Pt]:Lt}],[0,{[Pt]:At}],[()=>Yt,{[Nt]:Vt}]],3],$t=[3,Q,yt,0,[Ft],[[()=>en,0]]],en=[3,Q,xt,0,[Ot,zt,Bt,jt],[0,[()=>Xt,0],[()=>Zt,0],1]],tn=[9,Q,_t,{[Mt]:[`GET`,`/federation/credentials`,200]},()=>Qt,()=>$t]})),rn,an=n((()=>{A(),Ge(),C(),E(),k(),Fe(),rt(),mt(),nn(),rn=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??he,base64Encoder:e?.base64Encoder??Ae,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??pt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??tt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new We},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new ae}],logger:e?.logger??new _e,protocol:e?.protocol??Je,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sso`,errorTypeRegistries:Jt,version:`2019-06-10`,serviceTarget:`SWBPortalService`},serviceId:e?.serviceId??`SSO`,urlParser:e?.urlParser??Re,utf8Decoder:e?.utf8Decoder??pe,utf8Encoder:e?.utf8Encoder??je})})),on,sn,cn=n((()=>{y(),A(),E(),O(),l(),Fe(),on=Ye(),an(),sn=e=>{ce(process.version);let t=me(e),n=()=>t().then(de),r=rn(e);m(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??T(Ue,i),bodyLengthChecker:e?.bodyLengthChecker??Ie,defaultUserAgentProvider:e?.defaultUserAgentProvider??ne({serviceId:r.serviceId,clientVersion:Xe}),maxAttempts:e?.maxAttempts??T(_,e),region:e?.region??T(fe,{...ue,...i}),requestHandler:on.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??T({...c,default:async()=>(await n()).retryMode||d},e),sha256:e?.sha256??we.bind(null,`sha256`),streamCollector:e?.streamCollector??on.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??T(ye,i),useFipsEndpoint:e?.useFipsEndpoint??T(be,i),userAgentAppId:e?.userAgentAppId??T(S,i)}}})),ln,un,dn=n((()=>{ln=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},un=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),fn,pn=n((()=>{y(),E(),k(),dn(),fn=(e,t)=>{let n=Object.assign(b(e),le(e),He(e),ln(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ee(n),xe(n),Ve(n),un(n))}})),mn,hn=n((()=>{y(),C(),E(),O(),D(),k(),l(),Ne(),rt(),ot(),cn(),pn(),mn=class extends Me{config;constructor(...[e]){let t=sn(e||{});super(t),this.initConfig=t;let n=fn(nt(Pe(o(se(ie(v(it(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(g(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(h(this.config)),this.middlewareStack.use(u(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(f(this.config,{httpAuthSchemeParametersProvider:et,identityProviderConfigProvider:async e=>new s({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(a(this.config))}destroy(){super.destroy()}}})),gn,_n=n((()=>{E(),D(),ot(),nn(),gn=class extends Ee.classBuilder().ep(at).m(function(e,t,n,r){return[Te(n,e.getEndpointParameterInstructions())]}).s(`SWBPortalService`,`GetRoleCredentials`,{}).n(`SSOClient`,`GetRoleCredentialsCommand`).sc(tn).build(){}})),vn,yn,bn=n((()=>{E(),_n(),hn(),vn={GetRoleCredentialsCommand:gn},yn=class extends mn{},ge(vn,yn)})),xn=n((()=>{_n()})),Sn=n((()=>{})),Cn=r({$Command:()=>Ee,GetRoleCredentials$:()=>tn,GetRoleCredentialsCommand:()=>gn,GetRoleCredentialsRequest$:()=>Qt,GetRoleCredentialsResponse$:()=>$t,InvalidRequestException:()=>W,InvalidRequestException$:()=>Wt,ResourceNotFoundException:()=>G,ResourceNotFoundException$:()=>Gt,RoleCredentials$:()=>en,SSO:()=>yn,SSOClient:()=>mn,SSOServiceException:()=>H,SSOServiceException$:()=>Ut,TooManyRequestsException:()=>K,TooManyRequestsException$:()=>Kt,UnauthorizedException:()=>q,UnauthorizedException$:()=>qt,__Client:()=>Me,errorTypeRegistries:()=>Jt}),wn=n((()=>{hn(),bn(),xn(),nn(),ht(),Sn(),U()})),Tn=i((t=>{var n=(wn(),e(Cn));t.GetRoleCredentialsCommand=n.GetRoleCredentialsCommand,t.SSOClient=n.SSOClient})),En=i((t=>{var n=(O(),e(w)),r=(y(),e(x)),i=Ze();let a=e=>e&&(typeof e.sso_start_url==`string`||typeof e.sso_account_id==`string`||typeof e.sso_session==`string`||typeof e.sso_region==`string`||typeof e.sso_role_name==`string`),o=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:a,ssoRegion:o,ssoRoleName:s,ssoClient:c,clientConfig:l,parentClientConfig:u,callerClientConfig:d,profile:f,filepath:p,configFilepath:m,ignoreCache:h,logger:g})=>{let _,v=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t)try{let e=await i.fromSso({profile:f,filepath:p,configFilepath:m,ignoreCache:h})();_={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new n.CredentialsProviderError(e.message,{tryNextLink:!1,logger:g})}else try{_=await n.getSSOTokenFromFile(e)}catch{throw new n.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${v}`,{tryNextLink:!1,logger:g})}if(new Date(_.expiresAt).getTime()-Date.now()<=0)throw new n.CredentialsProviderError(`The SSO session associated with this profile has expired. ${v}`,{tryNextLink:!1,logger:g});let{accessToken:ee}=_,{SSOClient:te,GetRoleCredentialsCommand:ne}=await Promise.resolve().then(function(){return Tn()}),re=c||new te(Object.assign({},l??{},{logger:l?.logger??d?.logger??u?.logger,region:l?.region??o,userAgentAppId:l?.userAgentAppId??d?.userAgentAppId??u?.userAgentAppId})),y;try{y=await re.send(new ne({accountId:a,roleName:s,accessToken:ee}))}catch(e){throw new n.CredentialsProviderError(e,{tryNextLink:!1,logger:g})}let{roleCredentials:{accessKeyId:ie,secretAccessKey:b,sessionToken:x,expiration:S,credentialScope:ae,accountId:C}={}}=y;if(!ie||!b||!x||!S)throw new n.CredentialsProviderError(`SSO returns an invalid temporary credential.`,{tryNextLink:!1,logger:g});let w={accessKeyId:ie,secretAccessKey:b,sessionToken:x,expiration:new Date(S),...ae&&{credentialScope:ae},...C&&{accountId:C}};return t?r.setCredentialFeature(w,`CREDENTIALS_SSO`,`s`):r.setCredentialFeature(w,`CREDENTIALS_SSO_LEGACY`,`u`),w},s=(e,t)=>{let{sso_start_url:r,sso_account_id:i,sso_region:a,sso_role_name:o}=e;if(!r||!i||!a||!o)throw new n.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(`, `)}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:t});return e};t.fromSSO=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-sso - fromSSO`);let{ssoStartUrl:r,ssoAccountId:i,ssoRegion:c,ssoRoleName:l,ssoSession:u}=e,{ssoClient:d}=e,f=n.getProfileName({profile:e.profile??t?.profile});if(!r&&!i&&!c&&!l&&!u){let t=(await n.parseKnownFiles(e))[f];if(!t)throw new n.CredentialsProviderError(`Profile ${f} was not found.`,{logger:e.logger});if(!a(t))throw new n.CredentialsProviderError(`Profile ${f} is not configured with SSO credentials.`,{logger:e.logger});if(t?.sso_session){let i=(await n.loadSsoSessionData(e))[t.sso_session],a=` configurations in profile ${f} and sso-session ${t.sso_session}`;if(c&&c!==i.sso_region)throw new n.CredentialsProviderError(`Conflicting SSO region`+a,{tryNextLink:!1,logger:e.logger});if(r&&r!==i.sso_start_url)throw new n.CredentialsProviderError(`Conflicting SSO start_url`+a,{tryNextLink:!1,logger:e.logger});t.sso_region=i.sso_region,t.sso_start_url=i.sso_start_url}let{sso_start_url:i,sso_account_id:l,sso_region:u,sso_role_name:p,sso_session:m}=s(t,e.logger);return o({ssoStartUrl:i,ssoSession:m,ssoAccountId:l,ssoRegion:u,ssoRoleName:p,ssoClient:d,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:f,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!r||!i||!c||!l)throw new n.CredentialsProviderError(`Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"`,{tryNextLink:!1,logger:e.logger});else return o({ssoStartUrl:r,ssoSession:u,ssoAccountId:i,ssoRegion:c,ssoRoleName:l,ssoClient:d,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:f,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},t.isSsoProfile=a,t.validateSsoProfile=s}));export default En();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-CuhA-p5Q.js b/dist/dist-cjs-CuhA-p5Q.js deleted file mode 100644 index 0a144f52..00000000 --- a/dist/dist-cjs-CuhA-p5Q.js +++ /dev/null @@ -1,5 +0,0 @@ -import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{t as r}from"./dist-cjs-Qh8tJqb7.js";import{n as i,t as a}from"./client-BGPX0p_V.js";import{$ as o,et as s,rt as c,t as l,tt as u}from"./dist-cjs-B_LTzHDO.js";import{t as d}from"./dist-cjs-BjeBHYpU.js";var f=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkUrl=void 0;let t=d();e.checkUrl=(e,n)=>{if(e.protocol!==`https:`&&!(e.hostname===`169.254.170.2`||e.hostname===`169.254.170.23`||e.hostname===`[fd00:ec2::23]`)){if(e.hostname.includes(`[`)){if(e.hostname===`[::1]`||e.hostname===`[0000:0000:0000:0000:0000:0000:0000:0001]`)return}else{if(e.hostname===`localhost`)return;let t=e.hostname.split(`.`),n=e=>{let t=parseInt(e,10);return 0<=t&&t<=255};if(t[0]===`127`&&n(t[1])&&n(t[2])&&n(t[3])&&t.length===4)return}throw new t.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: - - loopback CIDR 127.0.0.0/8 or [::1/128] - - ECS container host 169.254.170.2 - - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:n})}}})),p=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createGetRequest=o,e.getCredentials=s;let t=d(),n=r(),i=l(),a=u();function o(e){return new n.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((e,[t,n])=>(e[t]=n,e),{}),fragment:e.hash})}async function s(e,n){let r=await(0,a.sdkStreamMixin)(e.body).transformToString();if(e.statusCode===200){let e=JSON.parse(r);if(typeof e.AccessKeyId!=`string`||typeof e.SecretAccessKey!=`string`||typeof e.Token!=`string`||typeof e.Expiration!=`string`)throw new t.CredentialsProviderError(`HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }`,{logger:n});return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:(0,i.parseRfc3339DateTime)(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let i={};try{i=JSON.parse(r)}catch{}throw Object.assign(new t.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:n}),{Code:i.Code,Message:i.Message})}throw new t.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:n})}})),m=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryWrapper=void 0,e.retryWrapper=(e,t,n)=>async()=>{for(let r=0;rsetTimeout(e,n))}return await e()}})),h=n((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.fromHttp=void 0;let r=(o(),e(s)),l=(i(),e(a)),u=c(),h=d(),g=r.__importDefault(t(`node:fs/promises`)),_=f(),v=p(),y=m();n.fromHttp=(e={})=>{e.logger?.debug(`@aws-sdk/credential-provider-http - fromHttp`);let t,n=e.awsContainerCredentialsRelativeUri??process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI,r=e.awsContainerCredentialsFullUri??process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI,i=e.awsContainerAuthorizationToken??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN,a=e.awsContainerAuthorizationTokenFile??process.env.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE,o=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&r&&(o(`@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.`),o(`awsContainerCredentialsFullUri will take precedence.`)),i&&a&&(o(`@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.`),o(`awsContainerAuthorizationToken will take precedence.`)),r)t=r;else if(n)t=`http://169.254.170.2${n}`;else throw new h.CredentialsProviderError(`No HTTP credential provider host provided. -Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let s=new URL(t);(0,_.checkUrl)(s,e.logger);let c=u.NodeHttpHandler.create({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return(0,y.retryWrapper)(async()=>{let t=(0,v.createGetRequest)(s);i?t.headers.Authorization=i:a&&(t.headers.Authorization=(await g.default.readFile(a)).toString());try{let e=await c.handle(t);return(0,v.getCredentials)(e.response).then(e=>(0,l.setCredentialFeature)(e,`CREDENTIALS_HTTP`,`z`))}catch(t){throw new h.CredentialsProviderError(String(t),{logger:e.logger})}},e.maxRetries??3,e.timeout??1e3)}})),g=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromHttp=void 0;var t=h();Object.defineProperty(e,"fromHttp",{enumerable:!0,get:function(){return t.fromHttp}})}));export default g();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-CwG3sq6u.js b/dist/dist-cjs-CwG3sq6u.js new file mode 100644 index 00000000..8796976a --- /dev/null +++ b/dist/dist-cjs-CwG3sq6u.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-BTyA9uPd.js";import{m as t}from"./httpAuthSchemes-D66OtRTv.js";var n=e((e=>{var n=t();let r={CrtSignerV4:null},i=`X-Amz-S3session-Token`,a=`x-amz-s3session-token`;var o=class extends n.SignatureV4{async signWithCredentials(e,t,n){let r=s(t);e.headers[a]=t.sessionToken;let i=this;return c(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=s(t);return delete e.headers[a],e.headers[i]=t.sessionToken,e.query=e.query??{},e.query[i]=t.sessionToken,c(this,r),this.presign(e,n)}};function s(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function c(e,t){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(t))}e.SignatureV4MultiRegion=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof r.CrtSignerV4==`function`?`crt`:typeof n.signatureV4aContainer.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new o(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let i=this.getSigv4aSigner(),a=r.CrtSignerV4;if(a&&i instanceof a)return i.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),i=r.CrtSignerV4;if(i&&n instanceof i)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=r.CrtSignerV4,t=n.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},e.SignatureV4SignWithCredentials=o,e.signatureV4CrtContainer=r}));export{n as t}; \ No newline at end of file diff --git a/dist/dist-cjs-CzHPD-Ob.js b/dist/dist-cjs-CzHPD-Ob.js new file mode 100644 index 00000000..aaed6b14 --- /dev/null +++ b/dist/dist-cjs-CzHPD-Ob.js @@ -0,0 +1 @@ +import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{A as r,j as i}from"./serde-Bngt0OLn.js";import{n as a,t as o}from"./protocols-D7c0rc_2.js";var s=n((n=>{var s=(i(),e(r)),c=t(`node:http`),l=(o(),e(a));let u=e=>!!e&&typeof e==`object`&&typeof e.AccessKeyId==`string`&&typeof e.SecretAccessKey==`string`&&typeof e.Token==`string`&&typeof e.Expiration==`string`,d=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}}),f=1e3,p=({maxRetries:e=0,timeout:t=f})=>({maxRetries:e,timeout:t});function m(e){return new Promise((t,n)=>{let r=c.request({method:`GET`,...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,`$1`)});r.on(`error`,e=>{n(Object.assign(new s.ProviderError(`Unable to connect to instance metadata service`),e)),r.destroy()}),r.on(`timeout`,()=>{n(new s.ProviderError(`TimeoutError from instance metadata service`)),r.destroy()}),r.on(`response`,e=>{let{statusCode:i=400}=e;(i<200||300<=i)&&(n(Object.assign(new s.ProviderError(`Error response received from instance metadata service`),{statusCode:i})),r.destroy());let a=[];e.on(`data`,e=>{a.push(e)}),e.on(`end`,()=>{t(Buffer.concat(a)),r.destroy()})}),r.end()})}let h=(e,t)=>{let n=e();for(let r=0;r{let{timeout:t,maxRetries:n}=p(e);return()=>h(async()=>{let n=await C({logger:e.logger}),r=JSON.parse(await b(t,n));if(!u(r))throw new s.CredentialsProviderError(`Invalid response received from instance metadata service.`,{logger:e.logger});return d(r)},n)},b=async(e,t)=>(process.env[v]&&(t.headers={...t.headers,Authorization:process.env[v]}),(await m({...t,timeout:e})).toString()),x=new Set([`localhost`,`127.0.0.1`]),S=new Set([`http:`,`https:`]),C=async({logger:e})=>{if(process.env[_])return{hostname:`169.254.170.2`,path:process.env[_]};if(process.env[g]){let t;try{t=new URL(process.env[g])}catch{throw new s.CredentialsProviderError(`${process.env[g]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:e})}if(!t.hostname||!x.has(t.hostname))throw new s.CredentialsProviderError(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!S.has(t.protocol))throw new s.CredentialsProviderError(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{protocol:t.protocol,hostname:t.hostname,path:t.pathname+t.search,port:t.port?parseInt(t.port,10):void 0}}throw new s.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${g} environment variable is set`,{tryNextLink:!1,logger:e})};var w=class e extends s.CredentialsProviderError{tryNextLink;name=`InstanceMetadataV1FallbackError`;constructor(t,n=!0){super(t,n),this.tryNextLink=n,Object.setPrototypeOf(this,e.prototype)}};n.Endpoint=void 0,(function(e){e.IPv4=`http://169.254.169.254`,e.IPv6=`http://[fd00:ec2::254]`})(n.Endpoint||={});let T={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var E;(function(e){e.IPv4=`IPv4`,e.IPv6=`IPv6`})(E||={});let D={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:E.IPv4},O=async()=>l.parseUrl(await k()||await A()),k=async()=>s.loadConfig(T)(),A=async()=>{let e=await s.loadConfig(D)();switch(e){case E.IPv4:return n.Endpoint.IPv4;case E.IPv6:return n.Endpoint.IPv6;default:throw Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(E)}`)}},j=(e,t)=>{let n=300+Math.floor(Math.random()*300),r=new Date(Date.now()+n*1e3);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(r)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let i=e.originalExpiration??e.expiration;return{...e,...i?{originalExpiration:i}:{},expiration:r}},M=(e,t={})=>{let n=t?.logger||console,r;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()M(R(e),{logger:e.logger}),R=(e={})=>{let t=!1,{logger:n,profile:r}=e,{timeout:i,maxRetries:a}=p(e),o=async(n,i)=>{if(t||i.headers?.[I]==null){let t=!1,n=!1,i=await s.loadConfig({environmentVariableSelector:t=>{let r=t[P];if(n=!!r&&r!==`false`,r===void 0)throw new s.CredentialsProviderError(`${P} not set in env, checking config file next.`,{logger:e.logger});return n},configFileSelector:e=>{let n=e[F];return t=!!n&&n!==`false`,t},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||i){let r=[];throw e.ec2MetadataV1Disabled&&r.push(`credential provider initialization (runtime option ec2MetadataV1Disabled)`),t&&r.push(`config file profile (${F})`),n&&r.push(`process environment variable (${P})`),new w(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${r.join(`, `)}].`)}}let a=(await h(async()=>{let e;try{e=await B(i)}catch(e){throw e.statusCode===401&&(t=!1),e}return e},n)).trim();return h(async()=>{let n;try{n=await V(a,i,e)}catch(e){throw e.statusCode===401&&(t=!1),e}return n},n)};return async()=>{let e=await O();if(t)return n?.debug(`AWS SDK Instance Metadata`,`using v1 fallback (no token fetch)`),o(a,{...e,timeout:i});{let r;try{r=(await z({...e,timeout:i})).toString()}catch(r){if(r?.statusCode===400)throw Object.assign(r,{message:`EC2 Metadata token request returned error`});return(r.message===`TimeoutError`||[403,404,405].includes(r.statusCode))&&(t=!0),n?.debug(`AWS SDK Instance Metadata`,`using v1 fallback (initial)`),o(a,{...e,timeout:i})}return o(a,{...e,headers:{[I]:r},timeout:i})}}},z=async e=>m({...e,path:`/latest/api/token`,method:`PUT`,headers:{"x-aws-ec2-metadata-token-ttl-seconds":`21600`}}),B=async e=>(await m({...e,path:N})).toString(),V=async(e,t,n)=>{let r=JSON.parse((await m({...t,path:N+e})).toString());if(!u(r))throw new s.CredentialsProviderError(`Invalid response received from instance metadata service.`,{logger:n.logger});return d(r)};n.DEFAULT_MAX_RETRIES=0,n.DEFAULT_TIMEOUT=f,n.ENV_CMDS_AUTH_TOKEN=v,n.ENV_CMDS_FULL_URI=g,n.ENV_CMDS_RELATIVE_URI=_,n.fromContainerMetadata=y,n.fromInstanceMetadata=L,n.getInstanceMetadataEndpoint=O,n.httpRequest=m,n.providerConfigFromInit=p}));export default s();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-D0bofO8q.js b/dist/dist-cjs-D0bofO8q.js deleted file mode 100644 index 7af91d6b..00000000 --- a/dist/dist-cjs-D0bofO8q.js +++ /dev/null @@ -1,21 +0,0 @@ -import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-BTyA9uPd.js";import{t as o}from"./dist-cjs-DyeqKkmv.js";import{t as s}from"./dist-cjs-Qh8tJqb7.js";import{i as c,n as l,o as u,r as d,t as f}from"./client-BGPX0p_V.js";import{n as p,r as m,t as h}from"./dist-cjs-GIhSYq7f.js";import{A as g,B as _,C as v,D as y,F as b,H as x,J as S,L as C,M as w,O as T,P as E,Q as D,R as O,T as k,W as A,X as j,Y as M,_ as N,a as P,at as F,f as I,h as L,it as ee,l as R,n as z,nt as te,p as ne,r as re,s as ie,t as B,w as ae,x as V,y as H,z as U}from"./dist-cjs-B_LTzHDO.js";import{t as oe}from"./dist-cjs-CKxbtVku.js";import{t as se}from"./dist-cjs-BjeBHYpU.js";import{t as ce}from"./dist-cjs-Vc3Nkab2.js";import{t as le}from"./dist-cjs-BWu9uV-R.js";var ue=a((e=>{var t=s();function n(e){return e}let r=e=>n=>async r=>{if(!t.HttpRequest.isInstance(r.request))return n(r);let{request:i}=r,{handlerProtocol:a=``}=e.requestHandler.metadata||{};if(a.indexOf(`h2`)>=0&&!i.headers[`:authority`])delete i.headers.host,i.headers[`:authority`]=i.hostname+(i.port?`:`+i.port:``);else if(!i.headers.host){let e=i.hostname;i.port!=null&&(e+=`:${i.port}`),i.headers.host=e}return n(r)},i={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0};e.getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(r(e),i)}}),e.hostHeaderMiddleware=r,e.hostHeaderMiddlewareOptions=i,e.resolveHostHeaderConfig=n})),de=a((e=>{let t=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},n={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0};e.getLoggerPlugin=e=>({applyToStack:e=>{e.add(t(),n)}}),e.loggerMiddleware=t,e.loggerMiddlewareOptions=n})),fe=i({InvokeStore:()=>ve,InvokeStoreBase:()=>he}),pe,me,he,ge,_e,ve,ye=n((()=>{pe={REQUEST_ID:Symbol.for(`_AWS_LAMBDA_REQUEST_ID`),X_RAY_TRACE_ID:Symbol.for(`_AWS_LAMBDA_X_RAY_TRACE_ID`),TENANT_ID:Symbol.for(`_AWS_LAMBDA_TENANT_ID`)},me=[`true`,`1`].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??``),me||(globalThis.awslambda=globalThis.awslambda||{}),he=class{static PROTECTED_KEYS=pe;isProtectedKey(e){return Object.values(pe).includes(e)}getRequestId(){return this.get(pe.REQUEST_ID)??`-`}getXRayTraceId(){return this.get(pe.X_RAY_TRACE_ID)}getTenantId(){return this.get(pe.TENANT_ID)}},ge=class extends he{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){return this.currentContext=e,t()}},_e=class e extends he{als;static async create(){let t=new e;return t.als=new(await(import(`node:async_hooks`))).AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw Error(`No context available`);n[e]=t}run(e,t){return this.als.run(e,t)}},(function(e){let t=null;async function n(e){return t||=(async()=>{let t=e===!0||`AWS_LAMBDA_MAX_CONCURRENCY`in process.env?await _e.create():new ge;return!me&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!me&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=t),t)})(),t}e.getInstanceAsync=n,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE===`1`?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(ve||={})})),be=a((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recursionDetectionMiddleware=void 0;let n=(ye(),e(fe)),r=s(),i=`X-Amzn-Trace-Id`;t.recursionDetectionMiddleware=()=>e=>async t=>{let{request:a}=t;if(!r.HttpRequest.isInstance(a))return e(t);let o=Object.keys(a.headers??{}).find(e=>e.toLowerCase()===`x-amzn-trace-id`)??i;if(a.headers.hasOwnProperty(o))return e(t);let s=process.env.AWS_LAMBDA_FUNCTION_NAME,c=process.env._X_AMZN_TRACE_ID,l=(await n.InvokeStore.getInstanceAsync())?.getXRayTraceId()??c,u=e=>typeof e==`string`&&e.length>0;return u(s)&&u(l)&&(a.headers[i]=l),e({...t,request:a})}})),xe=a((e=>{var t=be();let n={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`};e.getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(t.recursionDetectionMiddleware(),n)}}),Object.prototype.hasOwnProperty.call(t,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:t.__proto__}),Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])})}));function W(e){return typeof Buffer<`u`?Buffer.alloc(e):new Uint8Array(e)}function Se(e){return e[Ce]=!0,e}var Ce,we=n((()=>{Ce=Symbol(`@smithy/core/cbor::tagSymbol`)}));function Te(e){K=e,q=new DataView(K.buffer,K.byteOffset,K.byteLength)}function G(e,t){if(e>=t)throw Error(`unexpected end of (decode) payload.`);let n=(K[e]&224)>>5,r=K[e]&31;switch(n){case 0:case 1:case 6:let i,a;if(r<24)i=r,a=1;else switch(r){case 24:case 25:case 26:case 27:let n=We[r],o=n+1;if(a=o,t-e>7,r=(e&124)>>2,i=(e&3)<<8|t,a=n===0?1:-1,o,s;if(r===0){if(i===0)return 0;o=2**-14,s=0}else if(r===31)return i===0?a*(1/0):NaN;else o=2**(r-15),s=1;return s+=i/1024,o*s*a}function ke(e,t){let n=K[e]&31;if(n<24)return J=1,n;if(n===24||n===25||n===26||n===27){let r=We[n];if(J=r+1,t-e>5,a=K[e]&31;if(i!==3)throw Error(`unexpected major type ${i} in indefinite string.`);if(a===31)throw Error(`nested indefinite string.`);let o=Me(e,t);e+=J;for(let e=0;e>5,a=K[e]&31;if(i!==2)throw Error(`unexpected major type ${i} in indefinite string.`);if(a===31)throw Error(`nested indefinite string.`);let o=Me(e,t);e+=J;for(let e=0;e=t)throw Error(`unexpected end of map payload.`);let n=(K[e]&224)>>5;if(n!==3)throw Error(`unexpected major type ${n} for map key at index ${e}.`);let r=G(e,t);e+=J;let i=G(e,t);e+=J,a[r]=i}return J=r+(e-i),a}function Le(e,t){e+=1;let n=e,r={};for(;e=t)throw Error(`unexpected end of map payload.`);if(K[e]===255)return J=e-n+2,r;let i=(K[e]&224)>>5;if(i!==3)throw Error(`unexpected major type ${i} for map key.`);let a=G(e,t);e+=J;let o=G(e,t);e+=J,r[a]=o}throw Error(`expected break marker.`)}function Re(e,t){let n=K[e]&31;switch(n){case 21:case 20:return J=1,n===21;case 22:return J=1,null;case 23:return J=1,null;case 25:if(t-e<3)throw Error(`incomplete float16 at end of buf.`);return J=3,Oe(K[e+1],K[e+2]);case 26:if(t-e<5)throw Error(`incomplete float32 at end of buf.`);return J=5,q.getFloat32(e+1);case 27:if(t-e<9)throw Error(`incomplete float64 at end of buf.`);return J=9,q.getFloat64(e+1);default:throw Error(`unexpected minor value ${n}.`)}}function ze(e){if(typeof e==`number`)return e;let t=Number(e);return-(2**53-1)<=t&&t<=2**53-1?t:e}var Be,Ve,He,K,q,Ue,J,We,Ge=n((()=>{v(),Be=h(),we(),Ve=typeof TextDecoder<`u`,He=typeof Buffer<`u`,K=W(0),q=new DataView(K.buffer,K.byteOffset,K.byteLength),Ue=Ve?new TextDecoder:null,J=0,We={24:1,25:2,26:4,27:8}}));function Ke(e){X.byteLength-Q=0,n=+!t,r=t?e:-e-1;r<24?X[Q++]=n<<5|r:r<256?(X[Q++]=n<<5|24,X[Q++]=r):r<65536?(X[Q++]=n<<5|25,X[Q++]=r>>8,X[Q++]=r):r<4294967296?(X[Q++]=n<<5|26,Z.setUint32(Q,r),Q+=4):(X[Q++]=n<<5|27,Z.setBigUint64(Q,BigInt(r)),Q+=8);continue}X[Q++]=251,Z.setFloat64(Q,e),Q+=8;continue}else if(typeof e==`bigint`){let t=e>=0,n=+!t,r=t?e:-e-BigInt(1),i=Number(r);if(i<24)X[Q++]=n<<5|i;else if(i<256)X[Q++]=n<<5|24,X[Q++]=i;else if(i<65536)X[Q++]=n<<5|25,X[Q++]=i>>8,X[Q++]=i&255;else if(i<4294967296)X[Q++]=n<<5|26,Z.setUint32(Q,i),Q+=4;else if(r=0;)n[n.byteLength-a]=Number(i&BigInt(255)),i>>=BigInt(8);Ke(n.byteLength*2),X[Q++]=t?194:195,Ze?Y(2,Buffer.byteLength(n)):Y(2,n.byteLength),X.set(n,Q),Q+=n.byteLength}continue}else if(e===null){X[Q++]=246;continue}else if(typeof e==`boolean`){X[Q++]=224|(e?21:20);continue}else if(e===void 0)throw Error(`@smithy/core/cbor: client may not serialize undefined value.`);else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n)t.push(e[n]);Y(4,e.length);continue}else if(typeof e.byteLength==`number`){Ke(e.length*2),Y(2,e.length),X.set(e,Q),Q+=e.byteLength;continue}else if(typeof e==`object`){if(e instanceof k){let n=e.string.indexOf(`.`),r=n===-1?0:n-e.string.length+1,i=BigInt(e.string.replace(`.`,``));X[Q++]=196,t.push(i),t.push(r),Y(4,2);continue}if(e[Ce])if(`tag`in e&&`value`in e){t.push(e.value),Y(6,e.tag);continue}else throw Error(`tag encountered with missing fields, need 'tag' and 'value', found: `+JSON.stringify(e));let n=Object.keys(e);for(let r=n.length-1;r>=0;--r){let i=n[r];t.push(e[i]),t.push(i)}Y(5,n.length);continue}throw Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}var Xe,Ze,X,Z,Q,Qe=n((()=>{v(),Xe=h(),we(),Ze=typeof Buffer<`u`,X=W(2048),Z=new DataView(X.buffer,X.byteOffset,X.byteLength),Q=0})),$e,et=n((()=>{Ge(),Qe(),$e={deserialize(e){return Te(e),G(0,e.length)},serialize(e){try{return Ye(e),qe()}catch(e){throw qe(),e}},resizeEncodingBuffer(e){Je(e)}}})),tt,nt,rt=n((()=>{we(),tt=e=>Se({tag:1,value:e.getTime()/1e3}),nt=(e,t)=>{let n=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t};if(t.__type!==void 0)return n(t.__type);let r;for(let e in t)if(e.toLowerCase()===`code`){r=e;break}if(r&&t[r]!==void 0)return n(t[r])}})),it,at,ot,st,ct=n((()=>{z(),_(),v(),it=F(),et(),rt(),at=class extends N{createSerializer(){let e=new ot;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new st;return e.setSerdeContext(this.serdeContext),e}},ot=class extends N{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){let n=A.of(e);if(t==null)return n.isIdempotencyToken()?(0,w.v4)():t;if(n.isBlobSchema())return typeof t==`string`?(this.serdeContext?.base64Decoder??it.fromBase64)(t):t;if(n.isTimestampSchema())return tt(typeof t==`number`||typeof t==`bigint`?new Date(Number(t)/1e3|0):t);if(typeof t==`function`||typeof t==`object`){let e=t;if(n.isListSchema()&&Array.isArray(e)){let t=!!n.getMergedTraits().sparse,r=[],i=0;for(let a of e){let e=this.serialize(n.getValueSchema(),a);(e!=null||t)&&(r[i++]=e)}return r}if(e instanceof Date)return tt(e);let r={};if(n.isMapSchema()){let t=!!n.getMergedTraits().sparse;for(let i in e){let a=this.serialize(n.getValueSchema(),e[i]);(a!=null||t)&&(r[i]=a)}}else if(n.isStructSchema()){for(let[t,i]of n.structIterator()){let n=this.serialize(i,e[t]);n!=null&&(r[t]=n)}if(n.isUnionSchema()&&Array.isArray(e.$unknown)){let[t,n]=e.$unknown;r[t]=n}else if(typeof e.__type==`string`)for(let t in e)t in r||(r[t]=this.serialize(15,e[t]))}else if(n.isDocumentSchema())for(let t in e)r[t]=this.serialize(n.getValueSchema(),e[t]);else if(n.isBigDecimalSchema())return e;return r}return t}flush(){let e=$e.serialize(this.value);return this.value=void 0,e}},st=class extends N{read(e,t){let n=$e.deserialize(t);return this.readValue(e,n)}readValue(e,t){let n=A.of(e);if(n.isTimestampSchema()){if(typeof t==`number`)return T(t);if(typeof t==`object`&&t.tag===1&&`value`in t)return T(t.value)}if(n.isBlobSchema())return typeof t==`string`?(this.serdeContext?.base64Decoder??it.fromBase64)(t):t;if(t===void 0||typeof t==`boolean`||typeof t==`number`||typeof t==`string`||typeof t==`bigint`||typeof t==`symbol`)return t;if(typeof t==`object`){if(t===null)return null;if(`byteLength`in t||t instanceof Date||n.isDocumentSchema())return t;if(n.isListSchema()){let e=[],r=n.getValueSchema();for(let n of t){let t=this.readValue(r,n);e.push(t)}return e}let e={};if(n.isMapSchema()){let r=n.getValueSchema();for(let n in t)e[n]=this.readValue(r,t[n])}else if(n.isStructSchema()){let r=n.isUnionSchema(),i;if(r){i=new Set;for(let e in t)e!==`__type`&&i.add(e)}for(let[a,o]of n.structIterator())r&&i.delete(a),t[a]!=null&&(e[a]=this.readValue(o,t[a]));if(r&&i?.size===1){let n=!0;for(let t in e){n=!1;break}if(n){let n=i.values().next().value;e.$unknown=[n,t[n]]}}else if(typeof t.__type==`string`)for(let n in t)n in e||(e[n]=t[n])}else if(t instanceof k)return t;return e}else return t}}})),lt,ut,dt=n((()=>{z(),_(),lt=D(),ct(),rt(),ut=class extends ne{codec=new at;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return`smithy.protocols#rpcv2Cbor`}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);if(Object.assign(r.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":`rpc-v2-cbor`,accept:this.getDefaultContentType()}),j(e.input)===`unit`)delete r.body,delete r.headers[`content-type`];else{r.body||=(this.serializer.write(15,{}),this.serializer.flush());try{r.headers[`content-length`]=String(r.body.byteLength)}catch{}}let{service:i,operation:a}=(0,lt.getSmithyContext)(n),o=`/service/${i}/operation/${a}`;return r.path.endsWith(`/`)?r.path+=o.slice(1):r.path+=o,r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=nt(n,r)??`Unknown`,o={$metadata:i,$fault:n.statusCode<=500?`client`:`server`},s=this.options.defaultNamespace;a.includes(`#`)&&([s]=a.split(`#`));let c=this.compositeErrorRegistry,l=x.for(s);c.copyFrom(l);let u;try{u=c.getSchema(a)}catch{r.Message&&(r.message=r.Message);let e=x.for(`smithy.ts.sdk.synthetic.`+s);c.copyFrom(e);let t=c.getBaseException();if(t){let e=c.getErrorCtor(t);throw Object.assign(new e({name:a}),o,r)}throw Object.assign(Error(a),o,r)}let d=A.of(u),f=c.getErrorCtor(u),p=r.message??r.Message??`Unknown`,m=new f(p),h={};for(let[e,t]of d.structIterator())h[e]=this.deserializer.readValue(t,r[e]);throw Object.assign(m,o,{$fault:d.getMergedTraits().error,message:p},h)}getDefaultContentType(){return`application/cbor`}}})),ft=n((()=>{et(),we(),rt(),dt(),ct()})),pt,mt,ht=n((()=>{_(),pt=B(),mt=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=x.for(r),a=x.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=(0,pt.decorateServiceException)(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return(0,pt.decorateServiceException)(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tA.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}})),gt,_t=n((()=>{ft(),_(),ht(),gt=class extends ut{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t}),this.awsQueryCompatible=!!n,this.mixin=new mt(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),r}async handleError(e,t,n,r,i){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);let a=(()=>{let e=n.headers[`x-amzn-query-error`];return e&&this.awsQueryCompatible?e.split(`;`)[0]:nt(n,r)??`Unknown`})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),c=A.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l),d={};for(let[e,t]of c.structIterator())r[e]!=null&&(d[e]=this.deserializer.readValue(t,r[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,d),this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}}})),vt,yt,bt,xt=n((()=>{vt=e=>{if(e==null)return e;if(typeof e==`number`||typeof e==`bigint`){let t=Error(`Received number ${e} where a string was expected.`);return t.name=`Warning`,console.warn(t),String(e)}if(typeof e==`boolean`){let t=Error(`Received boolean ${e} where a string was expected.`);return t.name=`Warning`,console.warn(t),String(e)}return e},yt=e=>{if(e==null)return e;if(typeof e==`string`){let t=e.toLowerCase();if(e!==``&&t!==`false`&&t!==`true`){let t=Error(`Received string "${e}" where a boolean was expected.`);t.name=`Warning`,console.warn(t)}return e!==``&&t!==`false`}return e},bt=e=>{if(e==null)return e;if(typeof e==`string`){let t=Number(e);if(t.toString()!==e){let t=Error(`Received string "${e}" where a number was expected.`);return t.name=`Warning`,console.warn(t),e}return t}return e}})),St,Ct=n((()=>{St=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}})),wt,Tt=n((()=>{wt=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}}));function Et(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new k(e,`bigDecimal`):BigInt(e)}return t}var Dt=n((()=>{v()})),Ot,kt,At,jt=n((()=>{Ot=B(),kt=h(),At=(e,t)=>(0,Ot.collectBody)(e,t).then(e=>(t?.utf8Encoder??kt.toUtf8)(e))})),Mt,Nt,Pt,Ft,It,Lt=n((()=>{jt(),Mt=(e,t)=>At(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),Nt=async(e,t)=>{let n=await Mt(e,t);return n.message=n.message??n.Message,n},Pt=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),Ft=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},It=(e,t)=>{let n=Pt(e.headers,`x-amzn-errortype`);if(n!==void 0)return Ft(e.headers[n]);if(t&&typeof t==`object`){let e=Pt(t,`code`);if(e&&t[e]!==void 0)return Ft(t[e]);if(t.__type!==void 0)return Ft(t.__type)}}})),Rt,zt,Bt=n((()=>{z(),_(),v(),Rt=F(),Ct(),Tt(),Dt(),Lt(),zt=class extends St{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,Et):await Mt(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=A.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new wt(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return(0,Rt.fromBase64)(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?g.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(R(r,this.settings)){case 5:return O(t);case 6:return U(t);case 7:return C(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof k)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new k(e.string,e.type):new k(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof k?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}}})),Vt,Ht=n((()=>{v(),Vt=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof k){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}}})),Ut,Wt,Gt=n((()=>{z(),_(),v(),Ut=F(),Ct(),Ht(),Wt=class extends St{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=A.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Vt;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=A.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=A.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??Ut.toBase64)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(R(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return b(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof k&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return(0,w.v4)();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?g.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??Ut.toBase64)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof k?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}}})),Kt,qt=n((()=>{Ct(),Bt(),Gt(),Kt=class extends St{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Wt(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new zt(this.settings);return e.setSerdeContext(this.serdeContext),e}}})),Jt,Yt=n((()=>{z(),_(),ht(),qt(),Lt(),Jt=class extends ne{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new Kt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new mt(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(j(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);let a=It(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),c=A.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l),d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator())r[e]!=null&&(d[e]=f.readObject(t,r[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,d),this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}}})),Xt,Zt=n((()=>{Yt(),Xt=class extends Jt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_0`}getJsonRpcVersion(){return`1.0`}getDefaultContentType(){return`application/x-amz-json-1.0`}}})),Qt,$t=n((()=>{Yt(),Qt=class extends Jt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}}})),en,tn=n((()=>{z(),_(),ht(),qt(),Lt(),en=class extends L{serializer;deserializer;codec;mixin=new mt;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Kt(n),this.serializer=new re(this.codec.createSerializer(),n),this.deserializer=new P(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=A.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=A.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=It(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=A.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;d[e]=f.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/json`}}})),nn,rn,an=n((()=>{nn=B(),rn=e=>{if(e!=null)return typeof e==`object`&&`__type`in e&&delete e.__type,(0,nn.expectUnion)(e)}})),on=a(((e,t)=>{(()=>{var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{XMLBuilder:()=>We,XMLParser:()=>Me,XMLValidator:()=>Ge});let r=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function i(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!y(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,_(`InvalidTag`,t,b(e,a))}let l=p(e,a);if(!1===l)return _(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,b(e,a));let m=l.value;if(a=l.index,m[m.length-1]===`/`){let n=a-m.length;m=m.substring(0,m.length-1);let i=h(m,t);if(!0!==i)return _(i.err.code,i.err.msg,b(e,n+i.err.line));r=!0}else if(s){if(!l.tagClosed)return _(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,b(e,a));if(m.trim().length>0)return _(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,b(e,o));if(n.length===0)return _(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,b(e,o));{let t=n.pop();if(c!==t.tagName){let n=b(e,t.tagStartPos);return _(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,b(e,o))}n.length==0&&(i=!0)}}else{let s=h(m,t);if(!0!==s)return _(s.err.code,s.err.msg,b(e,a-m.length+s.err.line));if(!0===i)return _(`InvalidXml`,`Multiple possible root nodes found.`,b(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0)||_(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):_(`InvalidXml`,`Start tag expected.`,1)}function u(e){return e===` `||e===` `||e===` -`||e===`\r`}function d(e,t){let n=t;for(;t5&&r===`xml`)return _(`InvalidXml`,`XML declaration allowed only at the start of the document.`,b(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}continue}return t}function f(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function p(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``&&{value:n,index:t,tagClosed:i}}let m=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function h(e,t){let n=i(e,m),r={};for(let e=0;eo.includes(e)?`__`+e:e,C={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:S};function w(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(o.some(e=>n===e.toLowerCase())||s.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function T(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:T(!0)}let E=function(e){let t=Object.assign({},C,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&w(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=S),t.processEntities=T(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t},D;D=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;class O{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}class k{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]!==`O`||e[t+4]!==`C`||e[t+5]!==`T`||e[t+6]!==`Y`||e[t+7]!==`P`||e[t+8]!==`E`)throw Error(`Invalid Tag instead of DOCTYPE`);{t+=9;let i=1,a=!1,o=!1,s=``;for(;t`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];else{if(a&&j(e,`!ENTITY`,t)){let i,a;if(t+=7,[i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),a.indexOf(`&`)===-1){if(!1!==this.options.enabled&&this.options.maxEntityCount!=null&&r>=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&j(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&j(e,`!ATTLIST`,t))t+=8;else if(a&&j(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!j(e,`!--`,t))throw Error(`Invalid DOCTYPE`);o=!0}i++,s=``}if(i!==0)throw Error(`Unclosed DOCTYPE`)}return{entities:n,i:t}}readEntityExp(e,t){let n=t=A(e,t);for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[r,i,--t]}readNotationExp(e,t){let n=t=A(e,t);for(;t{for(;t0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class ee{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new L(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&!0===t){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length!==0&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}}class R{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n`,lt:`<`,quot:`"`},re={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},ie=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function B(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(ie.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function ae(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}let V=`external`,H=`base`,U=Object.freeze({allow:0,leave:1,remove:2,throw:3}),oe=new Set([9,10,13]);class se{constructor(e={}){var t;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=(t=this._limit.applyLimitsTo??V)&&t!==V?t===`all`?new Set([`all`]):t===H?new Set([H]):Array.isArray(t)?new Set(t):new Set([V]):new Set([V]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=ae(ne,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let n=function(e){if(!e)return{xmlVersion:1,onLevel:U.allow,nullLevel:U.remove};let t=e.xmlVersion===1.1?1.1:1,n=U[e.onNCR]??U.allow,r=U[e.nullNCR]??U.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,U.remove)}}(e.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))B(t);this._externalMap=ae(e)}addExternalEntity(e,t){B(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=ae(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=V);else{if(this._leaveSet.has(l)){a++;continue}if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=H}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}}if(u!==void 0){if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else a++}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!oe.has(e)?U.remove:-1}_applyNCRAction(e,t,n){switch(e){case U.allow:return String.fromCodePoint(n);case U.remove:return``;case U.leave:return;case U.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}class ue{constructor(e,t){var n;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=he,this.parseTextData=de,this.resolveNameSpace=fe,this.buildAttributesMap=me,this.isItStopNode=ye,this.replaceEntitiesValue=_e,this.readStopNodeData=Se,this.saveTextToParentTag=ve,this.addChild=ge,this.ignoreAttributesFn=typeof(n=this.options.ignoreAttributes)==`function`?n:Array.isArray(n)?e=>{for(let t of n)if(typeof t==`string`&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let r={...ne};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?r=this.options.htmlEntities:!0===this.options.htmlEntities&&(r={...re,...te}),this.entityDecoder=new se({namedEntities:{...r,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new ee,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new z;let i=this.options.stopNodes;if(i&&i.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?Ce(e,s.parseTagValue,s.numberParseOptions):e}}function fe(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}let pe=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function me(e,t,n,r=!1){let a=this.options;if(!0===r||!0!==a.ignoreAttributes&&typeof e==`string`){let r=i(e,pe),o=r.length,s={},c=Array(o),l=!1,u={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=we(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=W(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new O(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==i.ignoreAttributes&&(e[`:@`]=a),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=be(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=be(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=W(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=we(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h,g=null;h=le(l),c!==t.tagname&&this.matcher.push(c,{},h),c!==u&&d&&(g=this.buildAttributesMap(u,this.matcher,c),g&&ce(g,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new O(c);g&&(r[`:@`]=g),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=we(i.transformTagName,c,u,i));let e=new O(c);g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(i.unpairedTagsSet.has(c)){let e=new O(c);g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}{let e=new O(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),n=e}}r=``,s=f}}}else r+=e[s];return t.child};function ge(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);!1===a||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function _e(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function ve(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[`:@`]&&Object.keys(t[`:@`]).length!==0,r))!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function ye(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function be(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i+t.length-1}function xe(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i}function W(e,t,n,r=`>`){let i=function(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=be(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=be(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=be(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=W(e,n,`>`);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function Ce(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`||t!==`false`&&function(e,t={}){if(t=Object.assign({},F,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`)return 0;if(t.hex&&N.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}(n);if(isFinite(n)){if(n.includes(`e`)||n.includes(`E`))return function(e,t,n){if(!n.eNotation)return e;let r=t.match(I);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:(o.length!==1||!r[3].startsWith(`.${a}`)&&r[3][0]!==a)&&o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}return e}(e,n,t);{let i=P.exec(n);if(i){let a=i[1]||``,o=i[2],s=((r=i[3])&&r.indexOf(`.`)!==-1&&((r=r.replace(/0+$/,``))===`.`?r=`0`:r[0]===`.`?r=`0`+r:r[r.length-1]===`.`&&(r=r.substring(0,r.length-1))),r),c=a?e[o.length+1]===`.`:e[o.length]===`.`;if(!t.leadingZeros&&(o.length>1||o.length===1&&!c))return e;{let r=Number(n),i=String(r);if(r===0)return r;if(i.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return i===`0`||i===s||i===`${a}${s}`?r:e;let c=o?s:n;return o?c===i||a+c===i?r:e:c===i||c===a+i?r:e}}return e}}var r;return function(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}(e,Number(n),t)}(e,n)}return e===void 0?``:e}function we(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return{tagName:t=Te(t,r),tagExp:n}}function Te(e,t){if(s.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return o.includes(e)?t.onDangerousProperty(e):e}let G=O.getMetaDataSymbol();function Ee(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function De(e,t,n,r){return Oe(e,t,n,r)}function Oe(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function ke(e){let t=Object.keys(e);for(let e=0;e0&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=Ve(n,t),n}return``}for(let s=0;s/g,`]]]]>`)}]]>`,o=!1,r.pop();continue}if(l===t.commentPropName){let e=c[l][0][t.textNodeName];a+=n+`\x3c!--${String(e).replace(/--/g,`- -`).replace(/-$/,`- `)}--\x3e`,o=!0,r.pop();continue}if(l[0]===`?`){let e=ze(c[`:@`],t,d),i=l===`?xml`?``:n,s=c[l][0][t.textNodeName];s=s.length===0?``:` `+s,a+=i+`<${l}${s}${e}?>`,o=!0,r.pop();continue}let f=n;f!==``&&(f+=t.indentBy);let p=n+`<${l}${ze(c[`:@`],t,d)}`,m;m=d?Ie(c[l],t):Pe(c[l],t,f,r,i),t.unpairedTags.indexOf(l)===-1?m&&m.length!==0||!t.suppressEmptyNode?m&&m.endsWith(`>`)?a+=p+`>${m}${n}`:(a+=p+`>`,m&&n!==``&&(m.includes(`/>`)||m.includes(``):a+=p+`/>`:t.suppressUnpairedNode?a+=p+`>`:a+=p+`/>`,o=!0,r.pop()}return a}function Fe(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],r=!0);return r?n:null}function Ie(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r${r}`:n+=`<${a}${e}/>`}}}return n}function Le(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];!0===i&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function Re(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function K(e){if(this.options=Object.assign({},He,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e{for(let n of t)if(typeof n==`string`&&e===n||n instanceof RegExp&&n.test(e))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=J),this.processTextOrObjNode=q,this.options.format?(this.indentate=Ue,this.tagEndChar=`> -`,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function q(e,t,n,r){let i=this.extractAttributes(e);if(r.push(t,i),this.checkStopNode(r)){let i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(i,t,a,n)}let a=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,a.attrStr,n,r):this.buildObjectNode(a.val,t,a.attrStr,n)}function Ue(e){return this.options.indentBy.repeat(e)}function J(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}K.prototype.build=function(e){if(this.options.preserveOrder)return Ne(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new ee;return this.j2x(e,0,t).val}},K.prototype.j2x=function(e,t,n){let r=``,i=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let a=this.options.jPath?n.toString():n,o=this.checkStopNode(n);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(e[s]===void 0)this.isAttribute(s)&&(i+=``);else if(e[s]===null)this.isAttribute(s)||s===this.options.cdataPropName?i+=``:s[0]===`?`?i+=this.indentate(t)+`<`+s+`?`+this.tagEndChar:i+=this.indentate(t)+`<`+s+`/`+this.tagEndChar;else if(e[s]instanceof Date)i+=this.buildTextValNode(e[s],s,``,t,n);else if(typeof e[s]!=`object`){let c=this.isAttribute(s);if(c&&!this.ignoreAttributesFn(c,a))r+=this.buildAttrPairStr(c,``+e[s],o);else if(!c)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,``+e[s]);i+=this.replaceEntitiesValue(t)}else{n.push(s);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[s];i+=n===``?this.indentate(t)+`<`+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+`<`+s+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=r===``?`<${n}${i}/>`:`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);t+=e===``?`<${n}${i}/>`:`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},K.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];!0===i&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];!0===i&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},K.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;{let i=``+e+i}},K.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>/g,`]]]]>`);return this.indentate(r)+``+this.newLine}if(!1!==this.options.commentPropName&&t===this.options.commentPropName){let t=String(e).replace(/--/g,`- -`).replace(/-$/,`- `);return this.indentate(r)+`\x3c!--${t}--\x3e`+this.newLine}if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.EntityDecoderImpl=e.CURRENCY=e.COMMON_HTML=e.XML=void 0,e.XML={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},e.COMMON_HTML={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},e.CURRENCY={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`};let t=new Set(`!?\\/[]$%{}^&*()<>|+`);function n(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let n of e)if(t.has(n))throw Error(`[EntityReplacer] Invalid character '${n}' in entity name: "${e}"`);return e}function r(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}let i=`external`,a=`base`;function o(e){return!e||e===i?new Set([i]):e===`all`?new Set([`all`]):e===a?new Set([a]):Array.isArray(e)?new Set(e):new Set([i])}let s=Object.freeze({allow:0,leave:1,remove:2,throw:3}),c=new Set([9,10,13]);function l(e){if(!e)return{xmlVersion:1,onLevel:s.allow,nullLevel:s.remove};let t=e.xmlVersion===1.1?1.1:1,n=s[e.onNCR??`allow`]??s.allow,r=s[e.nullNCR??`remove`]??s.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,s.remove)}}e.EntityDecoderImpl=class{_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;constructor(t={}){this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck==`function`?t.postCheck:e=>e,this._limitTiers=o(this._limit.applyLimitsTo??i),this._numericAllowed=t.numericAllowed??!0,this._baseMap=r(e.XML,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let n=l(t.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))n(t);this._externalMap=r(e)}addExternalEntity(e,t){n(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=r(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===`1.1`||e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,o=0,s=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;s=r||e.charCodeAt(t)!==59){s++;continue}let d=e.slice(s+1,t);if(d.length===0){s++;continue}let f,p;if(this._removeSet.has(d))f=``,p===void 0&&(p=i);else if(this._leaveSet.has(d)){s++;continue}else if(d.charCodeAt(0)===35){let e=this._resolveNCR(d);if(e===void 0){s++;continue}f=e,p=a}else{let e=this._resolveName(d);f=e?.value,p=e?.tier}if(f===void 0){s++;continue}if(s>o&&n.push(e.slice(o,s)),n.push(f),o=t+1,s=o,u&&this._tierCounts(p)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let e=f.length-(d.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!c.has(e)?s.remove:-1}_applyNCRAction(e,t,n){switch(e){case s.allow:return String.fromCodePoint(n);case s.remove:return``;case s.leave:return;case s.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r{Object.defineProperty(e,"__esModule",{value:!0}),e.parseXML=a;let t=on(),n=sn(),r=new n.EntityDecoderImpl({namedEntities:{...n.XML,...n.COMMON_HTML,...n.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),i=new t.XMLParser({attributeNamePrefix:``,processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:e=>{r.setExternalEntities(e)},addInputEntities:e=>{r.addInputEntities(e)},reset:()=>{r.reset()},decode:e=>r.decode(e),setXmlVersion:e=>void 0},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>t.trim()===``&&t.includes(` -`)?``:void 0,maxNestedTags:1/0});function a(e){return i.parse(e,!0)}})),ln=a((e=>{var t=cn();let n=/[&<>"]/g,r={"&":`&`,"<":`<`,">":`>`,'"':`"`};function i(e){return e.replace(n,e=>r[e])}let a=/[&"'<>\r\n\u0085\u2028]/g,o={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function s(e){return e.replace(a,e=>o[e])}var c=class{value;constructor(e){this.value=e}toString(){return s(``+this.value)}},l=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new c(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${i(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}};e.parseXML=t.parseXML,e.XmlNode=l,e.XmlText=c})),un,dn,fn,pn,mn=n((()=>{un=ln(),z(),_(),dn=B(),fn=h(),Ct(),Tt(),pn=class extends St{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new ie(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=A.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??fn.toUtf8)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=A.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new wt(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=(0,un.parseXML)(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),(0,dn.getValueFromTextNode)(i)}return{}}}})),hn,gn,_n,vn=n((()=>{z(),_(),v(),hn=B(),gn=F(),Ct(),_n=class extends St{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=A.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??gn.toBase64)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue((0,w.v4)())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof k?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),R(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue((0,hn.dateToUtcString)(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${H(e)}=`}writeValue(e){this.buffer+=H(e)}}})),yn,bn=n((()=>{z(),_(),ht(),mn(),vn(),yn=class extends ne{options;serializer;deserializer;mixin=new mt;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new _n(t),this.deserializer=new pn(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(j(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=A.of(e.output),a={};if(n.statusCode>=300){let i=await V(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await V(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=A.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}}})),xn,Sn=n((()=>{bn(),xn=class extends yn{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}}})),Cn=n((()=>{})),wn,Tn,En,Dn,On,kn=n((()=>{wn=ln(),Tn=B(),jt(),En=(e,t)=>At(e,t).then(e=>{if(e.length){let t;try{t=(0,wn.parseXML)(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),(0,Tn.getValueFromTextNode)(i)}return{}}),Dn=async(e,t)=>{let n=await En(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},On=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`}})),$,An,jn,Mn,Nn=n((()=>{$=ln(),z(),_(),v(),An=B(),jn=F(),Ct(),Mn=class extends St{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=A.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??jn.fromBase64)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=$.XmlNode.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=$.XmlNode.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=$.XmlNode.of(e);if(typeof n!=`string`)if(t instanceof $.XmlNode||t instanceof $.XmlText)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=$.XmlNode.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=$.XmlNode.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),h=(e,t,n)=>{let r=$.XmlNode.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=$.XmlNode.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=$.XmlNode.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=$.XmlNode.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=$.XmlNode.of(`entry`);h(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=A.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??jn.toBase64)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(R(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=(0,An.dateToUtcString)(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=(0,An.dateToUtcString)(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof k?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?(0,w.v4)():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=A.of(e),o=new $.XmlText(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}}})),Pn,Fn=n((()=>{Ct(),mn(),Nn(),Pn=class extends St{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Mn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new pn(this.settings);return e.setSerdeContext(this.serdeContext),e}}})),In,Ln=n((()=>{z(),_(),ht(),kn(),Fn(),In=class extends L{codec;serializer;deserializer;mixin=new mt;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Pn(t),this.serializer=new re(this.codec.createSerializer(),t),this.deserializer=new P(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=A.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=On(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=A.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}}})),Rn=i({AwsEc2QueryProtocol:()=>xn,AwsJson1_0Protocol:()=>Xt,AwsJson1_1Protocol:()=>Qt,AwsJsonRpcProtocol:()=>Jt,AwsQueryProtocol:()=>yn,AwsRestJsonProtocol:()=>en,AwsRestXmlProtocol:()=>In,AwsSmithyRpcV2CborProtocol:()=>gt,JsonCodec:()=>Kt,JsonShapeDeserializer:()=>zt,JsonShapeSerializer:()=>Wt,QueryShapeSerializer:()=>_n,XmlCodec:()=>Pn,XmlShapeDeserializer:()=>pn,XmlShapeSerializer:()=>Mn,_toBool:()=>yt,_toNum:()=>bt,_toStr:()=>vt,awsExpectUnion:()=>rn,loadRestJsonErrorCode:()=>It,loadRestXmlErrorCode:()=>On,parseJsonBody:()=>Mt,parseJsonErrorBody:()=>Nt,parseXmlBody:()=>En,parseXmlErrorBody:()=>Dn}),zn=n((()=>{_t(),xt(),Zt(),$t(),Yt(),tn(),qt(),Bt(),Gt(),an(),Lt(),Sn(),bn(),Cn(),vn(),Ln(),Fn(),mn(),Nn(),kn()})),Bn=a((e=>{var t=te(),n=h(),r=m(),i=s(),a=D(),o=ee();let c=`X-Amz-Algorithm`,l=`X-Amz-Credential`,u=`X-Amz-Date`,d=`X-Amz-SignedHeaders`,f=`X-Amz-Expires`,p=`X-Amz-Signature`,g=`X-Amz-Security-Token`,_=`authorization`,v=`x-amz-date`,y=`date`,b=[_,v,y],x=`x-amz-signature`,S=`x-amz-content-sha256`,C=`x-amz-security-token`,w={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},T=/^proxy-/,E=/^sec-/,O=[/^proxy-/i,/^sec-/i],k=`AWS4-HMAC-SHA256`,A=`AWS4-HMAC-SHA256-PAYLOAD`,j=`UNSIGNED-PAYLOAD`,M=`aws4_request`,N=3600*24*7,P={},F=[],I=(e,t,n)=>`${e}/${t}/${n}/${M}`,L=async(e,n,r,i,a)=>{let o=await z(e,n.secretAccessKey,n.accessKeyId),s=`${r}:${i}:${a}:${t.toHex(o)}:${n.sessionToken}`;if(s in P)return P[s];for(F.push(s);F.length>50;)delete P[F.shift()];let c=`AWS4${n.secretAccessKey}`;for(let t of[r,i,a,M])c=await z(e,c,t);return P[s]=c},R=()=>{F.length=0,Object.keys(P).forEach(e=>{delete P[e]})},z=(e,t,r)=>{let i=new e(t);return i.update(n.toUint8Array(r)),i.digest()},ne=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in w||t?.has(a)||T.test(a)||E.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},re=async({headers:e,body:i},a)=>{for(let t of Object.keys(e))if(t.toLowerCase()===S)return e[t];if(i==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof i==`string`||ArrayBuffer.isView(i)||r.isArrayBuffer(i)){let e=new a;return e.update(n.toUint8Array(i)),t.toHex(await e.digest())}return j};var ie=class{format(e){let t=[];for(let r of Object.keys(e)){let i=n.fromUtf8(r);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of t)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case`integer`:let i=new DataView(new ArrayBuffer(5));return i.setUint8(0,4),i.setInt32(1,e.value,!1),new Uint8Array(i.buffer);case`long`:let a=new Uint8Array(9);return a[0]=5,a.set(e.value.bytes,1),a;case`binary`:let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let s=new Uint8Array(o.buffer);return s.set(e.value,3),s;case`string`:let c=n.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case`timestamp`:let d=new Uint8Array(9);return d[0]=8,d.set(V.fromNumber(e.value.valueOf()).bytes,1),d;case`uuid`:if(!ae.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(t.fromHex(e.value.replace(/\-/g,``)),1),f}}},B;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(B||={});let ae=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var V=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&H(n),new e(n)}valueOf(){let e=this.bytes.slice(0),n=e[0]&128;return n&&H(e),parseInt(t.toHex(e),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function H(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}let U=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},oe=(e,t={})=>{let{headers:n,query:r={}}=i.HttpRequest.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},se=e=>{e=i.HttpRequest.clone(e);for(let t of Object.keys(e.headers))b.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ce=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===x)continue;let i=o.escapeUri(r);t.push(i);let a=e[r];typeof a==`string`?n[i]=`${i}=${o.escapeUri(a)}`:Array.isArray(a)&&(n[i]=a.slice(0).reduce((e,t)=>e.concat([`${i}=${o.escapeUri(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},le=e=>ue(e).toISOString().replace(/\.\d{3}Z$/,`Z`),ue=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var de=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:o=!0}){this.service=r,this.sha256=i,this.uriEscapePath=o,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=a.normalizeProvider(n),this.credentialProvider=a.normalizeProvider(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} -${this.getCanonicalPath(e)} -${ce(e)} -${r.map(e=>`${e}:${t[e]}`).join(` -`)} - -${r.join(`;`)} -${n}`}async createStringToSign(e,r,i,a){let o=new this.sha256;o.update(n.toUint8Array(i));let s=await o.digest();return`${a} -${e} -${r} -${t.toHex(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));let n=`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`;return o.escapeUri(n).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=le(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}},fe=class extends de{headerFormatter=new ie;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:m,signingService:h}=t,_=await this.credentialProvider();this.validateResolvedCredentials(_);let v=m??await this.regionProvider(),{longDate:y,shortDate:b}=this.formatDate(n);if(r>N)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let x=I(b,v,h??this.service),S=oe(se(e),{unhoistableHeaders:a,hoistableHeaders:s});_.sessionToken&&(S.query[g]=_.sessionToken),S.query[c]=k,S.query[l]=`${_.accessKeyId}/${x}`,S.query[u]=y,S.query[f]=r.toString(10);let C=ne(S,i,o);return S.query[d]=this.getCanonicalHeaderList(C),S.query[p]=await this.getSignature(y,x,this.getSigningKey(_,v,b,h),this.createCanonicalRequest(S,C,await re(e,this.sha256))),S}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:a,signingService:o,eventStreamCredentials:s}){let c=a??await this.regionProvider(),{shortDate:l,longDate:u}=this.formatDate(r),d=I(l,c,o??this.service),f=await re({headers:{},body:n},this.sha256),p=new this.sha256;p.update(e);let m=[A,u,d,i,t.toHex(await p.digest()),f].join(` -`);return this.signString(m,{signingDate:r,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:r=new Date,signingRegion:i,signingService:a,eventStreamCredentials:o}={}){let s=o??await this.credentialProvider();this.validateResolvedCredentials(s);let c=i??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(s,c,l,a));return u.update(n.toUint8Array(e)),t.toHex(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=se(e),{longDate:l,shortDate:u}=this.formatDate(t),d=I(u,s,a??this.service);c.headers[v]=l,o.sessionToken&&(c.headers[C]=o.sessionToken);let f=await re(c,this.sha256);!U(S,c.headers)&&this.applyChecksum&&(c.headers[S]=f);let p=ne(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[_]=`${k} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,r,i,a){let o=await this.createStringToSign(e,r,a,k),s=new this.sha256(await i);return s.update(n.toUint8Array(o)),t.toHex(await s.digest())}getSigningKey(e,t,n,r){return L(this.sha256,e,n,t,r||this.service)}};e.ALGORITHM_IDENTIFIER=k,e.ALGORITHM_IDENTIFIER_V4A=`AWS4-ECDSA-P256-SHA256`,e.ALGORITHM_QUERY_PARAM=c,e.ALWAYS_UNSIGNABLE_HEADERS=w,e.AMZ_DATE_HEADER=v,e.AMZ_DATE_QUERY_PARAM=u,e.AUTH_HEADER=_,e.CREDENTIAL_QUERY_PARAM=l,e.DATE_HEADER=y,e.EVENT_ALGORITHM_IDENTIFIER=A,e.EXPIRES_QUERY_PARAM=f,e.GENERATED_HEADERS=b,e.HOST_HEADER=`host`,e.KEY_TYPE_IDENTIFIER=M,e.MAX_CACHE_SIZE=50,e.MAX_PRESIGNED_TTL=N,e.PROXY_HEADER_PATTERN=T,e.REGION_SET_PARAM=`X-Amz-Region-Set`,e.SEC_HEADER_PATTERN=E,e.SHA256_HEADER=S,e.SIGNATURE_HEADER=x,e.SIGNATURE_QUERY_PARAM=p,e.SIGNED_HEADERS_QUERY_PARAM=d,e.SignatureV4=fe,e.SignatureV4Base=de,e.TOKEN_HEADER=C,e.TOKEN_QUERY_PARAM=g,e.UNSIGNABLE_PATTERNS=O,e.UNSIGNED_PAYLOAD=j,e.clearCredentialCache=R,e.createScope=I,e.getCanonicalHeaders=ne,e.getCanonicalQuery=ce,e.getPayloadHash=re,e.getSigningKey=L,e.hasHeader=U,e.moveHeadersToQuery=oe,e.prepareRequest=se,e.signatureV4aContainer={SignatureV4a:null}})),Vn=a((e=>{e.SelectorType=void 0,(function(e){e.ENV=`env`,e.CONFIG=`shared config entry`})(e.SelectorType||={}),e.booleanSelector=(e,t,n)=>{if(t in e){if(e[t]===`true`)return!0;if(e[t]===`false`)return!1;throw Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}},e.numberSelector=(e,t,n)=>{if(!(t in e))return;let r=parseInt(e[t],10);if(Number.isNaN(r))throw TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`);return r}})),Hn,Un,Wn=n((()=>{Hn=o(),Un=e=>e[Hn.SMITHY_CONTEXT_KEY]||(e[Hn.SMITHY_CONTEXT_KEY]={})})),Gn,Kn=n((()=>{Gn=(e,t)=>{if(!t||t.length===0)return e;let n=[];for(let r of t)for(let t of e)t.schemeId.split(`#`)[1]===r&&n.push(t);for(let t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n}}));function qn(e){let t=new Map;for(let n of e)t.set(n.schemeId,n);return t}var Jn,Yn,Xn=n((()=>{Jn=D(),Kn(),Yn=(e,t)=>(n,r)=>async i=>{let a=Gn(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=qn(e.httpAuthSchemes),s=(0,Jn.getSmithyContext)(r),c=[];for(let n of a){let i=o.get(n.schemeId);if(!i){c.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}let a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){c.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=n.propertiesExtractor?.(e,r)||{};n.identityProperties=Object.assign(n.identityProperties||{},l),n.signingProperties=Object.assign(n.signingProperties||{},u),s.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!s.selectedHttpAuthScheme)throw Error(c.join(` -`));return n(i)}})),Zn,Qn,$n=n((()=>{Xn(),Zn={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`},Qn=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Yn(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),Zn)}})})),er,tr,nr=n((()=>{Xn(),er={step:`serialize`,tags:[`HTTP_AUTH_SCHEME`],name:`httpAuthSchemeMiddleware`,override:!0,relation:`before`,toMiddleware:`serializerMiddleware`},tr=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(Yn(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),er)}})})),rr=n((()=>{Xn(),$n(),nr()})),ir,ar,or,sr,cr,lr=n((()=>{ir=s(),ar=D(),or=e=>e=>{throw e},sr=(e,t)=>{},cr=e=>(e,t)=>async n=>{if(!ir.HttpRequest.isInstance(n.request))return e(n);let r=(0,ar.getSmithyContext)(t).selectedHttpAuthScheme;if(!r)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:i={}},identity:a,signer:o}=r,s=await e({...n,request:await o.sign(n.request,a,i)}).catch((o.errorHandler||or)(i));return(o.successHandler||sr)(s.response,i),s}})),ur,dr,fr=n((()=>{lr(),ur={step:`finalizeRequest`,tags:[`HTTP_SIGNING`],name:`httpSigningMiddleware`,aliases:[`apiKeyMiddleware`,`tokenMiddleware`,`awsAuthMiddleware`],override:!0,relation:`after`,toMiddleware:`retryMiddleware`},dr=e=>({applyToStack:t=>{t.addRelativeTo(cr(e),ur)}})})),pr=n((()=>{lr(),fr()})),mr,hr=n((()=>{mr=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t}}));function gr(e,t,n,r,i){return async function*(a,o,...s){let c=o,l=a.startingToken??c[n],u=!0,d;for(;u;){if(c[n]=l,i&&(c[i]=c[i]??a.pageSize),a.client instanceof e)d=await _r(t,a.client,o,a.withCommand,...s);else throw Error(`Invalid client, expected instance of ${e.name}`);yield d;let f=l;l=vr(d,r),u=!!(l&&(!a.stopOnSameToken||l!==f))}return void 0}}var _r,vr,yr=n((()=>{_r=async(e,t,n,r=e=>e,...i)=>{let a=new e(n);return a=r(a)??a,await t.send(a,...i)},vr=(e,t)=>{let n=e,r=t.split(`.`);for(let e of r){if(!n||typeof n!=`object`)return;n=n[e]}return n}})),br=n((()=>{z()}));function xr(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}var Sr=n((()=>{})),Cr,wr=n((()=>{Cr=class{authSchemes=new Map;constructor(e){for(let t in e){let n=e[t];n!==void 0&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}})),Tr,Er,Dr,Or=n((()=>{Tr=s(),Er=o(),Dr=class{async sign(e,t,n){if(!n)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!t.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let r=Tr.HttpRequest.clone(e);if(n.in===Er.HttpApiKeyAuthLocation.QUERY)r.query[n.name]=t.apiKey;else if(n.in===Er.HttpApiKeyAuthLocation.HEADER)r.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return r}}})),kr,Ar,jr=n((()=>{kr=s(),Ar=class{async sign(e,t,n){let r=kr.HttpRequest.clone(e);if(!t.token)throw Error("request could not be signed with `token` since the `token` is not defined");return r.headers.Authorization=`Bearer ${t.token}`,r}}})),Mr,Nr=n((()=>{Mr=class{async sign(e,t,n){return e}}})),Pr=n((()=>{Or(),jr(),Nr()})),Fr,Ir,Lr,Rr,zr,Br=n((()=>{Fr=e=>function(t){return Rr(t)&&t.expiration.getTime()-Date.now()e.expiration!==void 0,zr=(e,t,n)=>{if(e===void 0)return;let r=typeof e==`function`?e:async()=>Promise.resolve(e),i,a,o,s=!1,c=async e=>{a||=r(e);try{i=await a,o=!0,s=!1}finally{a=void 0}return i};return t===void 0?async e=>((!o||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!o||e?.forceRefresh)&&(i=await c(e)),s?i:n(i)?(t(i)&&await c(e),i):(s=!0,i))}})),Vr=n((()=>{wr(),Pr(),Br()})),Hr=i({DefaultIdentityProviderConfig:()=>Cr,EXPIRATION_MS:()=>Ir,HttpApiKeyAuthSigner:()=>Dr,HttpBearerAuthSigner:()=>Ar,NoAuthSigner:()=>Mr,createIsIdentityExpiredFunction:()=>Fr,createPaginator:()=>gr,doesIdentityRequireRefresh:()=>Rr,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Qn,getHttpAuthSchemePlugin:()=>tr,getHttpSigningPlugin:()=>dr,getSmithyContext:()=>Un,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>Zn,httpAuthSchemeMiddleware:()=>Yn,httpAuthSchemeMiddlewareOptions:()=>er,httpSigningMiddleware:()=>cr,httpSigningMiddlewareOptions:()=>ur,isIdentityExpired:()=>Lr,memoizeIdentityProvider:()=>zr,normalizeProvider:()=>mr,requestBuilder:()=>I,setFeature:()=>xr}),Ur=n((()=>{Wn(),rr(),pr(),hr(),yr(),br(),Sr(),Vr()})),Wr=a((e=>{var t=o(),n=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},r=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},i=class extends Error{constructor(e){super(e),this.name=`EndpointError`}};let a=`endpoints`;function s(e){return typeof e!=`object`||!e?e:`ref`in e?`$${s(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(s).join(`, `)})`:JSON.stringify(e,null,2)}let c={},l=(e,t)=>e===t;function u(...e){for(let t of e)if(t!=null)return t}let d=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new i(`Path: '${e}' does not end with ']'`);let a=r.slice(t+1,-1);if(Number.isNaN(parseInt(a)))throw new i(`Invalid array index: '${a}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(a)}else n.push(r)}return n},f=(e,t)=>d(t).reduce((n,r)=>{if(typeof n!=`object`)throw new i(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),p=e=>e!=null,m=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),h=(e,t=!1)=>{if(!t)return m.test(e);let n=e.split(`.`);for(let e of n)if(!h(e))return!1;return!0};function g(e,t,n){return e?t:n}let _=e=>!e,v=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),y=e=>v.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),b={[t.EndpointURLScheme.HTTP]:80,[t.EndpointURLScheme.HTTPS]:443},x=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=n.href,{host:i,hostname:a,pathname:o,protocol:s,search:c}=n;if(c)return null;let l=s.slice(0,-1);if(!Object.values(t.EndpointURLScheme).includes(l))return null;let u=y(a);return{scheme:l,authority:`${i}${r.includes(`${i}:${b[l]}`)||typeof e==`string`&&e.includes(`${i}:${b[l]}`)?`:${b[l]}`:``}`,path:o,normalizedPath:o.endsWith(`/`)?o:`${o}/`,isIp:u}};function S(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}let C={booleanEquals:l,coalesce:u,getAttr:f,isSet:p,isValidHostLabel:h,ite:g,not:_,parseURL:x,split:S,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},w=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;at.referenceRecord[e]??t.endpointParams[e],E=(e,t,n)=>{if(typeof e==`string`)return w(e,n);if(e.fn)return O.callFunction(e,n);if(e.ref)return T(e,n);throw new i(`'${t}': ${String(e)} is not a string, function or reference.`)},D=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new i(`'${n}' is already defined in Reference Record.`);let r=D(e,t);t.logger?.debug?.(`${a} evaluateCondition: ${s(e)} = ${s(r)}`);let o=r===``?!0:!!r;return n==null?{result:o}:{result:o,toAssign:{name:n,value:r}}},A=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=E(e,`Header value entry`,t);if(typeof r!=`string`)throw new i(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),j=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=N.getEndpointProperty(r,t),e),{}),M=(e,t)=>{if(Array.isArray(e))return e.map(e=>M(e,t));switch(typeof e){case`string`:return w(e,t);case`object`:if(e===null)throw new i(`Unexpected endpoint property: ${e}`);return N.getEndpointProperties(e,t);case`boolean`:return e;default:throw new i(`Unexpected endpoint property type: ${typeof e}`)}},N={getEndpointProperty:M,getEndpointProperties:j},P=(e,t)=>{let n=E(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new i(`Endpoint URL must be a string, got ${typeof n}`)},F=1e8,I=(e,t)=>{let{nodes:n,root:r,results:a,conditions:o}=e,s=r,c={},l={referenceRecord:c,endpointParams:t.endpointParams,logger:t.logger};for(;s!==1&&s!==-1&&s=0===f.result?r:i}if(s>=F){let e=a[s-F];if(e[0]===-1){let[,t]=e;throw new i(E(t,`Error`,l))}let[t,n,r]=e;return{url:P(t,l),properties:j(n,l),headers:A(r??{},l)}}throw new i(`No matching endpoint.`)},L=(e=[],t)=>{let n={},r={...t,referenceRecord:{...t.referenceRecord}},i=!1;for(let o of e){let{result:e,toAssign:c}=k(o,r);if(!e)return{result:e};c&&(i=!0,n[c.name]=c.value,r.referenceRecord[c.name]=c.value,t.logger?.debug?.(`${a} assign: ${c.name} := ${s(c.value)}`))}return i?{result:!0,referenceRecord:n}:{result:!0}},ee=(e,t)=>{let{conditions:n,endpoint:r}=e,{result:i,referenceRecord:o}=L(n,t);if(!i)return;let c=o?{...t,referenceRecord:{...t.referenceRecord,...o}}:t,{url:l,properties:u,headers:d}=r;t.logger?.debug?.(`${a} Resolving endpoint from template: ${s(r)}`);let f={url:P(l,c)};return d!=null&&(f.headers=A(d,c)),u!=null&&(f.properties=j(u,c)),f},R=(e,t)=>{let{conditions:n,error:r}=e,{result:a,referenceRecord:o}=L(n,t);if(a)throw new i(E(r,`Error`,o?{...t,referenceRecord:{...t.referenceRecord,...o}}:t))},z=(e,t)=>{for(let n of e)if(n.type===`endpoint`){let e=ee(n,t);if(e)return e}else if(n.type===`error`)R(n,t);else if(n.type===`tree`){let e=te.evaluateTreeRule(n,t);if(e)return e}else throw new i(`Unknown endpoint rule: ${n}`);throw new i(`Rules evaluation failed`)},te={evaluateRules:z,evaluateTreeRule:(e,t)=>{let{conditions:n,rules:r}=e,{result:i,referenceRecord:a}=L(n,t);if(!i)return;let o=a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t;return te.evaluateRules(r,o)}};e.BinaryDecisionDiagram=n,e.EndpointCache=r,e.EndpointError=i,e.customEndpointFunctions=c,e.decideEndpoint=I,e.isIpAddress=y,e.isValidHostLabel=h,e.resolveEndpoint=(e,t)=>{let{endpointParams:n,logger:r}=t,{parameters:o,rules:c}=e;t.logger?.debug?.(`${a} Initial EndpointParams: ${s(n)}`);for(let e in o){let t=o[e],r=n[e];if(r==null&&t.default!=null){n[e]=t.default;continue}if(t.required&&r==null)throw new i(`Missing required parameter: '${e}'`)}let l=z(c,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${a} Resolved endpoint: ${s(l)}`),l}})),Gr=a((e=>{var t=Wr(),n=oe();let r=(e,n=!1)=>{if(n){for(let t of e.split(`.`))if(!r(t))return!1;return!0}return!(!t.isValidHostLabel(e)||e.length<3||e.length>63||e!==e.toLowerCase()||t.isIpAddress(e))},i=e=>{let t=e.split(`:`);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(`:`)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(`/`)).flat()}};var a={partitions:[{id:`aws`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-east-1`,name:`aws`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$`,regions:{"af-south-1":{description:`Africa (Cape Town)`},"ap-east-1":{description:`Asia Pacific (Hong Kong)`},"ap-east-2":{description:`Asia Pacific (Taipei)`},"ap-northeast-1":{description:`Asia Pacific (Tokyo)`},"ap-northeast-2":{description:`Asia Pacific (Seoul)`},"ap-northeast-3":{description:`Asia Pacific (Osaka)`},"ap-south-1":{description:`Asia Pacific (Mumbai)`},"ap-south-2":{description:`Asia Pacific (Hyderabad)`},"ap-southeast-1":{description:`Asia Pacific (Singapore)`},"ap-southeast-2":{description:`Asia Pacific (Sydney)`},"ap-southeast-3":{description:`Asia Pacific (Jakarta)`},"ap-southeast-4":{description:`Asia Pacific (Melbourne)`},"ap-southeast-5":{description:`Asia Pacific (Malaysia)`},"ap-southeast-6":{description:`Asia Pacific (New Zealand)`},"ap-southeast-7":{description:`Asia Pacific (Thailand)`},"aws-global":{description:`aws global region`},"ca-central-1":{description:`Canada (Central)`},"ca-west-1":{description:`Canada West (Calgary)`},"eu-central-1":{description:`Europe (Frankfurt)`},"eu-central-2":{description:`Europe (Zurich)`},"eu-north-1":{description:`Europe (Stockholm)`},"eu-south-1":{description:`Europe (Milan)`},"eu-south-2":{description:`Europe (Spain)`},"eu-west-1":{description:`Europe (Ireland)`},"eu-west-2":{description:`Europe (London)`},"eu-west-3":{description:`Europe (Paris)`},"il-central-1":{description:`Israel (Tel Aviv)`},"me-central-1":{description:`Middle East (UAE)`},"me-south-1":{description:`Middle East (Bahrain)`},"mx-central-1":{description:`Mexico (Central)`},"sa-east-1":{description:`South America (Sao Paulo)`},"us-east-1":{description:`US East (N. Virginia)`},"us-east-2":{description:`US East (Ohio)`},"us-west-1":{description:`US West (N. California)`},"us-west-2":{description:`US West (Oregon)`}}},{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`,dualStackDnsSuffix:`api.amazonwebservices.com.cn`,implicitGlobalRegion:`cn-northwest-1`,name:`aws-cn`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:{"aws-cn-global":{description:`aws-cn global region`},"cn-north-1":{description:`China (Beijing)`},"cn-northwest-1":{description:`China (Ningxia)`}}},{id:`aws-eusc`,outputs:{dnsSuffix:`amazonaws.eu`,dualStackDnsSuffix:`api.amazonwebservices.eu`,implicitGlobalRegion:`eusc-de-east-1`,name:`aws-eusc`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eusc\\-(de)\\-\\w+\\-\\d+$`,regions:{"eusc-de-east-1":{description:`AWS European Sovereign Cloud (Germany)`}}},{id:`aws-iso`,outputs:{dnsSuffix:`c2s.ic.gov`,dualStackDnsSuffix:`api.aws.ic.gov`,implicitGlobalRegion:`us-iso-east-1`,name:`aws-iso`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-iso\\-\\w+\\-\\d+$`,regions:{"aws-iso-global":{description:`aws-iso global region`},"us-iso-east-1":{description:`US ISO East`},"us-iso-west-1":{description:`US ISO WEST`}}},{id:`aws-iso-b`,outputs:{dnsSuffix:`sc2s.sgov.gov`,dualStackDnsSuffix:`api.aws.scloud`,implicitGlobalRegion:`us-isob-east-1`,name:`aws-iso-b`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isob\\-\\w+\\-\\d+$`,regions:{"aws-iso-b-global":{description:`aws-iso-b global region`},"us-isob-east-1":{description:`US ISOB East (Ohio)`},"us-isob-west-1":{description:`US ISOB West`}}},{id:`aws-iso-e`,outputs:{dnsSuffix:`cloud.adc-e.uk`,dualStackDnsSuffix:`api.cloud-aws.adc-e.uk`,implicitGlobalRegion:`eu-isoe-west-1`,name:`aws-iso-e`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^eu\\-isoe\\-\\w+\\-\\d+$`,regions:{"aws-iso-e-global":{description:`aws-iso-e global region`},"eu-isoe-west-1":{description:`EU ISOE West`}}},{id:`aws-iso-f`,outputs:{dnsSuffix:`csp.hci.ic.gov`,dualStackDnsSuffix:`api.aws.hci.ic.gov`,implicitGlobalRegion:`us-isof-south-1`,name:`aws-iso-f`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-isof\\-\\w+\\-\\d+$`,regions:{"aws-iso-f-global":{description:`aws-iso-f global region`},"us-isof-east-1":{description:`US ISOF EAST`},"us-isof-south-1":{description:`US ISOF SOUTH`}}},{id:`aws-us-gov`,outputs:{dnsSuffix:`amazonaws.com`,dualStackDnsSuffix:`api.aws`,implicitGlobalRegion:`us-gov-west-1`,name:`aws-us-gov`,supportsDualStack:!0,supportsFIPS:!0},regionRegex:`^us\\-gov\\-\\w+\\-\\d+$`,regions:{"aws-us-gov-global":{description:`aws-us-gov global region`},"us-gov-east-1":{description:`AWS GovCloud (US-East)`},"us-gov-west-1":{description:`AWS GovCloud (US-West)`}}}],version:`1.1`};let o=a,s=``,c=e=>{let{partitions:t}=o;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},l=(e,t=``)=>{o=e,s=t},u=()=>{l(a,``)},d=()=>s,f={isVirtualHostableS3Bucket:r,parseArn:i,partition:c};t.customEndpointFunctions.aws=f;let p=e=>{if(typeof e.endpointProvider!=`function`)throw Error(`@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.`);let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>m(e.endpointProvider({Region:typeof e.region==`function`?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==`function`?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==`function`?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}))),e},m=e=>n.parseUrl(e.url);e.EndpointError=t.EndpointError,e.isIpAddress=t.isIpAddress,e.resolveEndpoint=t.resolveEndpoint,e.awsEndpointFunctions=f,e.getUserAgentPrefix=d,e.partition=c,e.resolveDefaultAwsRegionalEndpointsConfig=p,e.setPartitionInfo=l,e.toEndpointV1=m,e.useDefaultPartitionInfo=u})),Kr=a((t=>{var n=(Ur(),e(Hr)),r=Gr(),i=s(),a=(l(),e(f)),o=d();function c(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function u(e){let t=n.normalizeProvider(e.userAgentAppId??void 0),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r==`string`?[[r]]:r,userAgentAppId:async()=>{let n=await t();if(!c(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}let p=/\d{12}\.ddb/;async function m(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&a.setFeature(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case o.RETRY_MODES.ADAPTIVE:a.setFeature(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case o.RETRY_MODES.STANDARD:a.setFeature(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(p)&&a.setFeature(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:a.setFeature(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:a.setFeature(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:a.setFeature(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&a.setFeature(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))a.setFeature(e,n,r)}}let h=`user-agent`,g=`x-amz-user-agent`,_=/[^!$%&'*+\-.^_`|~\w]/g,v=/[^!$%&'*+\-.^_`|~\w#]/g;function y(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=1024){t.length?t+=`,`+r:t+=r;continue}break}return t}let b=e=>(t,n)=>async a=>{let{request:o}=a;if(!i.HttpRequest.isInstance(o))return t(a);let{headers:s}=o,c=n?.userAgent?.map(x)||[],l=(await e.defaultUserAgentProvider()).map(x);await m(n,e,a);let u=n;l.push(`m/${y(Object.assign({},n.__smithy_context?.features,u.__aws_sdk_context?.features))}`);let d=e?.customUserAgent?.map(x)||[],f=await e.userAgentAppId();f&&l.push(x([`app`,`${f}`]));let p=r.getUserAgentPrefix(),_=(p?[p]:[]).concat([...l,...c,...d]).join(` `),v=[...l.filter(e=>e.startsWith(`aws-sdk-`)),...d].join(` `);return e.runtime===`browser`?s[g]=_:(v&&(s[g]=s[g]?`${s[h]} ${v}`:v),s[h]=_),t({...a,request:o})},x=e=>{let t=e[0].split(`/`).map(e=>e.replace(_,`-`)).join(`/`),n=e[1]?.replace(v,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},S={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0};t.DEFAULT_UA_APP_ID=void 0,t.getUserAgentMiddlewareOptions=S,t.getUserAgentPlugin=e=>({applyToStack:t=>{t.add(b(e),S)}}),t.resolveUserAgentConfig=u,t.userAgentMiddleware=b})),qr=a((e=>{var t=Vn(),n=D(),r=Wr();let i=`AWS_USE_DUALSTACK_ENDPOINT`,a=`use_dualstack_endpoint`,o={environmentVariableSelector:e=>t.booleanSelector(e,i,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,a,t.SelectorType.CONFIG),default:!1},s={environmentVariableSelector:e=>t.booleanSelector(e,i,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,a,t.SelectorType.CONFIG),default:void 0},c=`AWS_USE_FIPS_ENDPOINT`,l=`use_fips_endpoint`,u={environmentVariableSelector:e=>t.booleanSelector(e,c,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,l,t.SelectorType.CONFIG),default:!1},d={environmentVariableSelector:e=>t.booleanSelector(e,c,t.SelectorType.ENV),configFileSelector:e=>t.booleanSelector(e,l,t.SelectorType.CONFIG),default:void 0},f=e=>{let{tls:t,endpoint:r,urlParser:i,useDualstackEndpoint:a}=e;return Object.assign(e,{tls:t??!0,endpoint:n.normalizeProvider(typeof r==`string`?i(r):r),isCustomEndpoint:!0,useDualstackEndpoint:n.normalizeProvider(a??!1)})},p=async e=>{let{tls:t=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw Error(`Invalid region in client config`);let r=await e.useDualstackEndpoint(),i=await e.useFipsEndpoint(),{hostname:a}=await e.regionInfoProvider(n,{useDualstackEndpoint:r,useFipsEndpoint:i})??{};if(!a)throw Error(`Cannot resolve hostname from client config`);return e.urlParser(`${t?`https:`:`http:`}//${a}`)},m=e=>{let t=n.normalizeProvider(e.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:i,urlParser:a,tls:o}=e;return Object.assign(e,{tls:o??!0,endpoint:r?n.normalizeProvider(typeof r==`string`?a(r):r):()=>p({...e,useDualstackEndpoint:t,useFipsEndpoint:i}),isCustomEndpoint:!!r,useDualstackEndpoint:t})},h=`AWS_REGION`,g=`region`,_={environmentVariableSelector:e=>e[h],configFileSelector:e=>e[g],default:()=>{throw Error(`Region is missing`)}},v={preferredFile:`credentials`},y=new Set,b=(e,t=r.isValidHostLabel)=>{if(!y.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else y.add(e)},x=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),S=e=>x(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,C=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=S(typeof t==`function`?await t():t);return b(e),e},useFipsEndpoint:async()=>x(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},w=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find(({tags:e})=>t===e.includes(`fips`)&&n===e.includes(`dualstack`))?.hostname,T=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace(`{region}`,e):void 0),E=(e,{partitionHash:t})=>Object.keys(t||{}).find(n=>t[n].regions.includes(e))??`aws`,O=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let t=n.replace(`\\\\`,`\\`).replace(/^\^/g,`\\.`).replace(/\$$/g,`\\.`),r=e.match(t);if(r)return r[0].slice(1,-1)}};e.CONFIG_USE_DUALSTACK_ENDPOINT=a,e.CONFIG_USE_FIPS_ENDPOINT=l,e.DEFAULT_USE_DUALSTACK_ENDPOINT=!1,e.DEFAULT_USE_FIPS_ENDPOINT=!1,e.ENV_USE_DUALSTACK_ENDPOINT=i,e.ENV_USE_FIPS_ENDPOINT=c,e.NODE_REGION_CONFIG_FILE_OPTIONS=v,e.NODE_REGION_CONFIG_OPTIONS=_,e.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=o,e.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=u,e.REGION_ENV_NAME=h,e.REGION_INI_NAME=g,e.getRegionInfo=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:a})=>{let o=E(e,{partitionHash:a}),s=e in i?e:a[o]?.endpoint??e,c={useFipsEndpoint:t,useDualstackEndpoint:n},l=T(s,{regionHostname:w(i[s]?.variants,c),partitionHostname:w(a[o]?.variants,c)});if(l===void 0)throw Error(`Endpoint resolution failed for: [object Object]`);let u=O(l,{signingRegion:i[s]?.signingRegion,regionRegex:a[o].regionRegex,useFipsEndpoint:t});return{partition:o,signingService:r,hostname:l,...u&&{signingRegion:u},...i[s]?.signingService&&{signingService:i[s].signingService}}},e.nodeDualstackConfigSelectors=s,e.nodeFipsConfigSelectors=d,e.resolveCustomEndpointsConfig=f,e.resolveEndpointsConfig=m,e.resolveRegionConfig=C})),Jr=a((e=>{var t=s();let n=`content-length`;function r(e){return r=>async i=>{let a=i.request;if(t.HttpRequest.isInstance(a)){let{body:t,headers:r}=a;if(t&&Object.keys(r).map(e=>e.toLowerCase()).indexOf(n)===-1)try{let r=e(t);a.headers={...a.headers,[n]:String(r)}}catch{}}return r({...i,request:a})}}let i={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0};e.contentLengthMiddleware=r,e.contentLengthMiddlewareOptions=i,e.getContentLengthPlugin=e=>({applyToStack:t=>{t.add(r(e.bodyLengthChecker),i)}})})),Yr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getEndpointUrlConfig=void 0;let t=ce(),n=`AWS_ENDPOINT_URL`,r=`endpoint_url`;e.getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{let r=t[[n,...e.split(` `).map(e=>e.toUpperCase())].join(`_`)];if(r)return r;let i=t[n];if(i)return i},configFileSelector:(n,i)=>{if(i&&n.services){let a=i[[`services`,n.services].join(t.CONFIG_PREFIX_SEPARATOR)];if(a){let n=a[[e.split(` `).map(e=>e.toLowerCase()).join(`_`),r].join(t.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}let a=n[r];if(a)return a},default:void 0})})),Xr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getEndpointFromConfig=void 0;let t=le(),n=Yr();e.getEndpointFromConfig=async e=>(0,t.loadConfig)((0,n.getEndpointUrlConfig)(e??``))()})),Zr=a((t=>{var n=s(),r=(M(),e(S));let i=(e,t)=>(r,i)=>async o=>{let{response:s}=await r(o);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` - Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!i.logger||i.logger?.constructor?.name===`NoOpLogger`?console.warn(t):i.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(n.HttpResponse.isInstance(s)){let{headers:t={}}=s,n=Object.entries(t);e.$metadata={httpStatusCode:s.statusCode,requestId:a(/^x-[\w-]+-request-?id$/,n),extendedRequestId:a(/^x-[\w-]+-id-2$/,n),cfId:a(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},a=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],o=(e,t)=>(n,i)=>async a=>{let o=e,s=i.endpointV2?async()=>r.toEndpointV1(i.endpointV2):o.endpoint;if(!s)throw Error(`No valid endpoint provider available.`);let c=await t(a.input,{...e,endpoint:s});return n({...a,request:c})},c={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},l={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0};function u(e,t,n){return{applyToStack:r=>{r.add(i(e,n),c),r.add(o(e,t),l)}}}t.deserializerMiddleware=i,t.deserializerMiddlewareOption=c,t.getSerdePlugin=u,t.serializerMiddleware=o,t.serializerMiddlewareOption=l})),Qr=a((t=>{var n=(Ur(),e(Hr)),r=D(),i=Xr(),a=oe(),o=Zr();let s=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),f(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!d(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},c=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,l=/(\d+\.){3}\d+/,u=/\.\./,d=e=>c.test(e)&&!l.test(e)&&!u.test(e),f=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},p=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},m=e=>{if(typeof e==`object`){if(`url`in e){let t=a.parseUrl(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return a.parseUrl(e)},h=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await i.getEndpointFromConfig(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(m(e)),n.isCustomEndpoint=!0)}let a=await g(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=n.endpointProvider(a,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o},g=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await p(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await s(r),r},_=({config:e,instructions:t})=>(i,a)=>async o=>{e.isCustomEndpoint&&n.setFeature(a,`ENDPOINT_OVERRIDE`,`N`);let s=await h(o.input,{getEndpointParameterInstructions(){return t}},{...e},a);a.endpointV2=s,a.authSchemes=s.properties?.authSchemes;let c=a.authSchemes?.[0];if(c){a.signing_region=c.signingRegion,a.signing_service=c.signingName;let e=r.getSmithyContext(a)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return i({...o})},v={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:o.serializerMiddlewareOption.name};t.endpointMiddleware=_,t.endpointMiddlewareOptions=v,t.getEndpointFromInstructions=h,t.getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(_({config:e,instructions:t}),v)}}),t.resolveEndpointConfig=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:a,useFipsEndpoint:o}=e,s=Object.assign(e,{endpoint:n==null?void 0:async()=>m(await r.normalizeProvider(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:r.normalizeProvider(a??!1),useFipsEndpoint:r.normalizeProvider(o??!1)}),c;return s.serviceConfiguredEndpoint=async()=>(e.serviceId&&!c&&(c=i.getEndpointFromConfig(e.serviceId)),c),s},t.resolveEndpointRequiredConfig=e=>{let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>{throw Error(`@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.`)}),e},t.resolveParams=g,t.toEndpointV1=m})),$r=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isStreamingPayload=void 0;let n=t(`stream`);e.isStreamingPayload=e=>e?.body instanceof n.Readable||typeof ReadableStream<`u`&&e?.body instanceof ReadableStream})),ei=a((t=>{var n=d(),r=s(),i=c(),a=E(),o=D(),l=B(),u=$r(),f=(v(),e(ae));let p=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`),m=(e,t)=>{let r=e,i=n.NO_RETRY_INCREMENT,a=n.RETRY_COST,o=n.TIMEOUT_RETRY_COST,s=e,c=e=>e.name===`TimeoutError`?o:a,l=e=>c(e)<=s;return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:e=>{if(!l(e))throw Error(`No retry token available`);let t=c(e);return s-=t,t},releaseRetryTokens:e=>{s+=e??i,s=Math.min(s,r)}})},h=(e,t)=>Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e)),g=e=>e?i.isRetryableByTrait(e)||i.isClockSkewError(e)||i.isThrottlingError(e)||i.isTransientError(e):!1;var _=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=n.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e,this.retryDecider=t?.retryDecider??g,this.delayDecider=t?.delayDecider??h,this.retryQuota=t?.retryQuota??m(n.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return tsetTimeout(e,a));continue}throw t.$metadata||={},t.$metadata.attempts=c,t.$metadata.totalRetryDelay=l,t}}};let y=e=>{if(!r.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(e=>e.toLowerCase()===`retry-after`);if(!t)return;let n=e.headers[t],i=Number(n);return Number.isNaN(i)?new Date(n).getTime()-Date.now():i*1e3};var b=class extends _{rateLimiter;constructor(e,t){let{rateLimiter:r,...i}=t??{};super(e,i),this.rateLimiter=r??new n.DefaultRateLimiter,this.mode=n.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}};let x=`AWS_MAX_ATTEMPTS`,S=`max_attempts`,C={environmentVariableSelector:e=>{let t=e[x];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Environment variable ${x} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[S];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Shared config file entry ${S} mast be a number, got "${t}"`);return n},default:n.DEFAULT_MAX_ATTEMPTS},w=e=>{let{retryStrategy:t,retryMode:r}=e,i=o.normalizeProvider(e.maxAttempts??n.DEFAULT_MAX_ATTEMPTS),a=t?Promise.resolve(t):void 0,s=async()=>await o.normalizeProvider(r)()===n.RETRY_MODES.ADAPTIVE?new n.AdaptiveRetryStrategy(i):new n.StandardRetryStrategy(i);return Object.assign(e,{maxAttempts:i,retryStrategy:()=>a??=s()})},T=`AWS_RETRY_MODE`,O=`retry_mode`,k={environmentVariableSelector:e=>e[T],configFileSelector:e=>e[O],default:n.DEFAULT_RETRY_MODE},A=()=>e=>async t=>{let{request:i}=t;return r.HttpRequest.isInstance(i)&&(delete i.headers[n.INVOCATION_ID_HEADER],delete i.headers[n.REQUEST_HEADER]),e(t)},j={name:`omitRetryHeadersMiddleware`,tags:[`RETRY`,`HEADERS`,`OMIT_RETRY_HEADERS`],relation:`before`,toMiddleware:`awsAuthMiddleware`,override:!0},M=e=>({applyToStack:e=>{e.addRelativeTo(A(),j)}});function N(e,t){if(r.HttpResponse.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(f.parseRfc7231DateTime(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}function P(e,t){return N(e,t)}let F=e=>(t,i)=>async o=>{let s=await e.retryStrategy(),c=await e.maxAttempts();if(L(s)){s=s;let d=await s.acquireInitialRetryToken((i.partition_id??``)+(i.__retryLongPoll?`:longpoll`:``)),f=Error(),m=0,h=0,{request:g}=o,_=r.HttpRequest.isInstance(g);for(_&&(g.headers[n.INVOCATION_ID_HEADER]=a.v4());;)try{_&&(g.headers[n.REQUEST_HEADER]=`attempt=${m+1}; max=${c}`);let{response:e,output:r}=await t(o);return s.recordSuccess(d),r.$metadata.attempts=m+1,r.$metadata.totalRetryDelay=h,{response:e,output:r}}catch(t){let n=ee(t,e.logger);if(f=p(t),_&&u.isStreamingPayload(g))throw(i.logger instanceof l.NoOpLogger?console:i.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),f;try{d=await s.refreshRetryTokenForRetry(d,n)}catch(e){throw typeof e.$backoff==`number`&&await I(e.$backoff),f.$metadata||={},f.$metadata.attempts=m+1,f.$metadata.totalRetryDelay=h,f}m=d.getRetryCount();let r=d.getRetryDelay();h+=r,await I(r)}}else return s=s,s?.mode&&(i.userAgent=[...i.userAgent||[],[`cfg/retry-mode`,s.mode]]),s.retry(t,o)},I=e=>new Promise(t=>setTimeout(t,e)),L=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,ee=(e,t)=>{let n={error:e,errorType:R(e)},r=N(e.$response,t);return r&&(n.retryAfterHint=r),n},R=e=>i.isThrottlingError(e)?`THROTTLING`:i.isTransientError(e)?`TRANSIENT`:i.isServerError(e)?`SERVER_ERROR`:`CLIENT_ERROR`,z={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0};t.AdaptiveRetryStrategy=b,t.CONFIG_MAX_ATTEMPTS=S,t.CONFIG_RETRY_MODE=O,t.ENV_MAX_ATTEMPTS=x,t.ENV_RETRY_MODE=T,t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=C,t.NODE_RETRY_MODE_CONFIG_OPTIONS=k,t.StandardRetryStrategy=_,t.defaultDelayDecider=h,t.defaultRetryDecider=g,t.getOmitRetryHeadersPlugin=M,t.getRetryAfterHint=P,t.getRetryPlugin=e=>({applyToStack:t=>{t.add(F(e),z)}}),t.omitRetryHeadersMiddleware=A,t.omitRetryHeadersMiddlewareOptions=j,t.resolveRetryConfig=w,t.retryMiddleware=F,t.retryMiddlewareOptions=z})),ti,ni,ri=n((()=>{ti=s(),ni=e=>ti.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0})),ii,ai=n((()=>{ii=e=>new Date(Date.now()+e)})),oi,si=n((()=>{ai(),oi=(e,t)=>Math.abs(ii(t).getTime()-e)>=3e5})),ci,li=n((()=>{si(),ci=(e,t)=>{let n=Date.parse(e);return oi(n,t)?n-Date.now():t}})),ui=n((()=>{ri(),ai(),li()})),di,fi,pi,mi,hi,gi=n((()=>{di=s(),ui(),fi=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},pi=async e=>{let t=fi(`context`,e.context),n=fi(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await fi(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},mi=class{async sign(e,t,n){if(!di.HttpRequest.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await pi(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:ii(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??ni(t.$response);if(n){let r=fi(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=ci(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=ni(e);if(n){let e=fi(`config`,t.config);e.systemClockOffset=ci(n,e.systemClockOffset)}}},hi=mi})),_i,vi,yi=n((()=>{_i=s(),ui(),gi(),vi=class extends mi{async sign(e,t,n){if(!_i.HttpRequest.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await pi(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:ii(r.systemClockOffset),signingRegion:c,signingService:s})}}})),bi,xi=n((()=>{bi=e=>typeof e==`string`&&e.length>0?e.split(`,`).map(e=>e.trim()):[]})),Si,Ci=n((()=>{Si=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,`_`).toUpperCase()}`})),wi,Ti,Ei,Di=n((()=>{xi(),Ci(),wi=`AWS_AUTH_SCHEME_PREFERENCE`,Ti=`auth_scheme_preference`,Ei={environmentVariableSelector:(e,t)=>{if(t?.signingName&&Si(t.signingName)in e)return[`httpBearerAuth`];if(wi in e)return bi(e[wi])},configFileSelector:e=>{if(Ti in e)return bi(e[Ti])},default:[]}})),Oi,ki,Ai,ji=n((()=>{Ur(),Oi=se(),ki=e=>(e.sigv4aSigningRegionSet=mr(e.sigv4aSigningRegionSet),e),Ai={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(`,`).map(e=>e.trim());throw new Oi.ProviderError(`AWS_SIGV4A_SIGNING_REGION_SET not set in env.`,{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??``).split(`,`).map(e=>e.trim());throw new Oi.ProviderError(`sigv4a_signing_region_set not set in profile.`,{tryNextLink:!0})},default:void 0}}));function Mi(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:zr(t,Lr,Rr):n?mr(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ni(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Pi,Fi,Ii,Li=n((()=>{l(),Ur(),Pi=Bn(),Fi=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=Ni(e,Mi(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?u(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:o}=e,s;return s=e.signer?mr(e.signer):e.regionInfoProvider?()=>mr(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let s={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Pi.SignatureV4)(s)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await mr(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:i};return new(e.signerConstructor||Pi.SignatureV4)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:s})},Ii=Fi})),Ri=n((()=>{gi(),yi(),Di(),ji(),Li()})),zi=i({AWSSDKSigV4Signer:()=>hi,AwsSdkSigV4ASigner:()=>vi,AwsSdkSigV4Signer:()=>mi,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ei,NODE_SIGV4A_CONFIG_OPTIONS:()=>Ai,getBearerTokenEnvKey:()=>Si,resolveAWSSDKSigV4Config:()=>Ii,resolveAwsSdkSigV4AConfig:()=>ki,resolveAwsSdkSigV4Config:()=>Fi,validateSigningProperties:()=>pi}),Bi=n((()=>{Ri(),Ci()})),Vi=a((e=>{var n=t(`node:os`),r=t(`node:process`),i=Vn(),a=t(`node:fs/promises`),o=t(`node:path`),s=Kr();let c=()=>{for(let e of[`deno`,`bun`,`llrt`])if(r.versions[e])return[`md/${e}`,r.versions[e]];return[`md/nodejs`,r.versions.node]},l=e=>{let t=process.cwd();if(!e)return[t];let n=o.normalize(e),r=n.split(o.sep),i=r.indexOf(`node_modules`),a=i===-1?n:r.slice(0,i).join(o.sep);return t===a?[t]:[a,t]},u=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,d=(e=``)=>{let t=e.match(u);if(!t)return;let[n,r,i,a]=[t[1],t[2],t[3],t[4]];return a?`${n}.${r}.${i}-${a}`:`${n}.${r}.${i}`},f=[`^`,`~`,`>=`,`<=`,`>`,`<`],p=[`latest`,`beta`,`dev`,`rc`,`insiders`,`next`],m=(e=``)=>{if(p.includes(e))return e;let t=f.find(t=>e.startsWith(t))??``,n=d(e.slice(t.length));if(n)return`${t}${n}`},h,g=o.join(`node_modules`,`typescript`,`package.json`),_=async()=>{if(h===null)return;if(typeof h==`string`)return[`md/tsc`,h];let e=!1;try{e=i.booleanSelector(process.env,`AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED`,i.SelectorType.ENV)||!1}catch{}if(e){h=null;return}let t=l(typeof __dirname<`u`?__dirname:void 0),n;for(let e of t)try{let t=o.join(e,`package.json`),r=await a.readFile(t,`utf-8`),{dependencies:i,devDependencies:s}=JSON.parse(r),c=s?.typescript??i?.typescript;if(typeof c!=`string`)continue;n=c;break}catch{}if(!n){h=null;return}let r;for(let e of t)try{let t=o.join(e,g),n=await a.readFile(t,`utf-8`),{version:i}=JSON.parse(n),s=d(i);if(typeof s!=`string`)continue;r=s;break}catch{}if(r)return h=r,[`md/tsc`,h];let s=m(n);if(typeof s!=`string`){h=null;return}return h=`dev_${s}`,[`md/tsc`,h]},v={isCrtAvailable:!1},y=()=>v.isCrtAvailable?[`md/crt-avail`]:null,b=({serviceId:e,clientVersion:t})=>{let i=c();return async a=>{let o=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${n.platform()}`,n.release()],[`lang/js`],i],s=await _();s&&o.push(s);let c=y();c&&o.push(c),e&&o.push([`api/${e}`,t]),r.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${r.env.AWS_EXECUTION_ENV}`]);let l=await a?.userAgentAppId?.();return l?[...o,[`app/${l}`]]:[...o]}},x=b,S=`AWS_SDK_UA_APP_ID`,C=`sdk_ua_app_id`;e.NODE_APP_ID_CONFIG_OPTIONS={environmentVariableSelector:e=>e[S],configFileSelector:e=>e[C]??e[`sdk-ua-app-id`],default:s.DEFAULT_UA_APP_ID},e.UA_APP_ID_ENV_NAME=S,e.UA_APP_ID_INI_NAME=C,e.createDefaultUserAgentProvider=b,e.crtAvailability=v,e.defaultUserAgent=x})),Hi=a((e=>{var n=p(),r=h(),i=t(`buffer`),a=t(`crypto`),o=class{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(r.toUint8Array(s(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?a.createHmac(this.algorithmIdentifier,s(this.secret)):a.createHash(this.algorithmIdentifier)}};function s(e,t){return i.Buffer.isBuffer(e)?e:typeof e==`string`?n.fromString(e,t):ArrayBuffer.isView(e)?n.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):n.fromArrayBuffer(e)}e.Hash=o})),Ui=a((e=>{var n=t(`node:fs`);e.calculateBodyLength=e=>{if(!e)return 0;if(typeof e==`string`)return Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(e instanceof n.ReadStream){if(e.path!=null)return n.lstatSync(e.path).size;if(typeof e.fd==`number`)return n.fstatSync(e.fd).size}throw Error(`Body Length computation failed for ${e}`)}})),Wi=a((e=>{var t=qr(),n=le(),i=se();let a=`AWS_REGION`,o=`AWS_DEFAULT_REGION`,s=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],c={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:`legacy`},l=({region:e=n.loadConfig(t.NODE_REGION_CONFIG_OPTIONS),defaultsMode:r=n.loadConfig(c)}={})=>i.memoize(async()=>{let t=typeof r==`function`?await r():r;switch(t?.toLowerCase()){case`auto`:return u(e);case`in-region`:case`cross-region`:case`mobile`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${s.join(`, `)}, got ${t}`)}}),u=async e=>{if(e){let t=typeof e==`function`?await e():e,n=await d();return n?t===n?`in-region`:`cross-region`:`standard`}return`standard`},d=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[a]||process.env[o]))return process.env[a]??process.env[o];if(!process.env.AWS_EC2_METADATA_DISABLED)try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await import(`./dist-cjs-sKez7UTL.js`).then(e=>r(e.default));return(await t({...await e(),path:`/latest/meta-data/placement/region`})).toString()}catch{}};e.resolveDefaultsModeConfig=l})),Gi=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.warning=void 0,e.stsRegionDefaultResolver=r;let t=qr(),n=le();function r(r={}){return(0,n.loadConfig)({...t.NODE_REGION_CONFIG_OPTIONS,async default(){return e.warning.silence||console.warn(`@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.`),`us-east-1`}},{...t.NODE_REGION_CONFIG_FILE_OPTIONS,...r})}e.warning={silence:!1}})),Ki=a((e=>{var t=Gi(),n=qr();e.NODE_REGION_CONFIG_FILE_OPTIONS=n.NODE_REGION_CONFIG_FILE_OPTIONS,e.NODE_REGION_CONFIG_OPTIONS=n.NODE_REGION_CONFIG_OPTIONS,e.REGION_ENV_NAME=n.REGION_ENV_NAME,e.REGION_INI_NAME=n.REGION_INI_NAME,e.resolveRegionConfig=n.resolveRegionConfig,e.getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}}),e.resolveAwsRegionExtensionConfiguration=e=>({region:e.region()}),Object.prototype.hasOwnProperty.call(t,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:t.__proto__}),Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])})}));export{Cr as A,yn as B,Kr as C,Ur as D,Hr as E,$n as F,de as G,en as H,Vn as I,ue as K,Bn as L,dr as M,fr as N,Mr as O,Qn as P,zn as R,qr as S,Wr as T,tn as U,bn as V,xe as W,mi as _,Vi as a,Qr as b,Li as c,ji as d,ki as f,yi as g,vi as h,Hi as i,wr as j,Nr as k,Fi as l,Di as m,Wi as n,zi as o,Ei as p,Ui as r,Bi as s,Ki as t,Ai as u,gi as v,Gr as w,Jr as x,ei as y,Rn as z}; \ No newline at end of file diff --git a/dist/dist-cjs-Da76Axwc.js b/dist/dist-cjs-Da76Axwc.js deleted file mode 100644 index ad9d8826..00000000 --- a/dist/dist-cjs-Da76Axwc.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{t as r}from"./dist-cjs-Qh8tJqb7.js";import{n as i,t as a}from"./client-BGPX0p_V.js";import{B as o,Q as s,V as c,t as l}from"./dist-cjs-B_LTzHDO.js";import{D as u,E as ee,I as d,L as f,R as p,z as m}from"./dist-cjs-D0bofO8q.js";var h=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toStream=r;let n=t(`node:stream`);function r(e){return n.Readable.from(Buffer.from(e))}})),g=n((e=>{e.build=e=>{let{partition:t=`aws`,service:n,region:r,accountId:i,resource:a}=e;if([n,r,i,a].some(e=>typeof e!=`string`))throw Error(`Input ARN object is invalid`);return`arn:${t}:${n}:${r}:${i}:${a}`},e.parse=e=>{let t=e.split(`:`);if(t.length<6||t[0]!==`arn`)throw Error(`Malformed ARN`);let[,n,r,i,a,...o]=t;return{partition:n,service:r,region:i,accountId:a,resource:o.join(`:`)}},e.validate=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6})),_=n((t=>{var n=r(),_=l(),v=h(),te=g(),y=(p(),e(m)),b=(o(),e(c)),x=f(),S=d(),C=(i(),e(a)),w=(u(),e(ee)),ne=s();function T(){return(e,t)=>async r=>{let{request:i}=r;if(n.HttpRequest.isInstance(i)&&!(`content-length`in i.headers)&&!(`x-amz-decoded-content-length`in i.headers)){let e=`Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`;typeof t?.logger?.warn==`function`&&!(t.logger instanceof _.NoOpLogger)?t.logger.warn(e):console.warn(e)}return e({...r})}}let E={step:`finalizeRequest`,tags:[`CHECK_CONTENT_LENGTH_HEADER`],name:`getCheckContentLengthHeaderPlugin`,override:!0},D=e=>({applyToStack:e=>{e.add(T(),E)}}),O=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},k={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function A(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}let j={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},re=e=>({applyToStack:t=>{t.add(A(e),j),t.addRelativeTo(O(e),k)}}),M=e=>(e,t)=>async r=>{let i=await e(r),{response:a}=i;if(n.HttpResponse.isInstance(a)&&a.headers.expires){a.headers.expiresstring=a.headers.expires;try{_.parseRfc7231DateTime(a.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${a.headers.expires}): ${e}`),delete a.headers.expires}}return i},N={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},ie=e=>({applyToStack:e=>{e.addRelativeTo(M(),N)}});var P=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new F(Promise.resolve(e)))})),t)):i.set(r,new F(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}};let L=`X-Amz-S3session-Token`,R=`x-amz-s3session-token`,z={environmentVariableSelector:e=>S.booleanSelector(e,`AWS_S3_DISABLE_EXPRESS_SESSION_AUTH`,S.SelectorType.ENV),configFileSelector:e=>S.booleanSelector(e,`s3_disable_express_session_auth`,S.SelectorType.CONFIG),default:!1};var B=class extends x.SignatureV4{async signWithCredentials(e,t,n){let r=V(t);e.headers[R]=t.sessionToken;let i=this;return H(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=V(t);return delete e.headers[R],e.headers[L]=t.sessionToken,e.query=e.query??{},e.query[L]=t.sessionToken,H(this,r),this.presign(e,n)}};function V(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function H(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}let U=e=>(t,r)=>async i=>{if(r.endpointV2){let t=r.endpointV2,a=t.properties?.authSchemes?.[0]?.name===`sigv4-s3express`;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(C.setFeature(r,`S3_EXPRESS_BUCKET`,`J`),r.isS3ExpressBucket=!0),a){let t=i.input.Bucket;if(t){let a=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});r.s3ExpressIdentity=a,n.HttpRequest.isInstance(i.request)&&a.sessionToken&&(i.request.headers[R]=a.sessionToken)}}}return t(i)},W={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},G=e=>({applyToStack:t=>{t.add(U(e),W)}}),K=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},q=e=>e=>{throw e},J=(e,t)=>{},ae=w.httpSigningMiddlewareOptions,Y=e=>(t,r)=>async i=>{if(!n.HttpRequest.isInstance(i.request))return t(i);let a=ne.getSmithyContext(r).selectedHttpAuthScheme;if(!a)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:o={}},identity:s,signer:c}=a,l;l=r.s3ExpressIdentity?await K(r.s3ExpressIdentity,o,i.request,await e.signer()):await c.sign(i.request,s,o);let u=await t({...i,request:l}).catch((c.errorHandler||q)(o));return(c.successHandler||J)(u.response,o),u},oe=e=>({applyToStack:t=>{t.addRelativeTo(Y(e),w.httpSigningMiddlewareOptions)}}),se=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new I(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:u??2097152})},ce={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},X=e=>(t,r)=>async i=>{let a=await t(i),{response:o}=a;if(!n.HttpResponse.isInstance(o))return a;let{statusCode:s,body:c}=o;if(s<200||s>=300)return a;let l=await le(c,e);if(o.body=v.toStream(l),l.length===0&&ce[r.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let u=e.utf8Encoder(l.subarray(l.length-16));return u&&u.endsWith(``)&&(o.statusCode=503),a},le=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Z={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},ue=e=>({applyToStack:t=>{t.addRelativeTo(X(e),Z)}});function de(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}let fe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function Q({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!te.validate(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}let $={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},pe=e=>({applyToStack:t=>{t.add(Q(e),$),t.addRelativeTo(de(e),fe)}});var me=class extends y.AwsRestXmlProtocol{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=b.NormalizedSchema.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};t.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=z,t.S3ExpressIdentityCache=P,t.S3ExpressIdentityCacheEntry=F,t.S3ExpressIdentityProviderImpl=I,t.S3RestXmlProtocol=me,t.SignatureV4S3Express=B,t.checkContentLengthHeader=T,t.checkContentLengthHeaderMiddlewareOptions=E,t.getCheckContentLengthHeaderPlugin=D,t.getRegionRedirectMiddlewarePlugin=re,t.getS3ExpiresMiddlewarePlugin=ie,t.getS3ExpressHttpSigningPlugin=oe,t.getS3ExpressPlugin=G,t.getThrow200ExceptionsPlugin=ue,t.getValidateBucketNamePlugin=pe,t.regionRedirectEndpointMiddleware=O,t.regionRedirectEndpointMiddlewareOptions=k,t.regionRedirectMiddleware=A,t.regionRedirectMiddlewareOptions=j,t.resolveS3Config=se,t.s3ExpiresMiddleware=M,t.s3ExpiresMiddlewareOptions=N,t.s3ExpressHttpSigningMiddleware=Y,t.s3ExpressHttpSigningMiddlewareOptions=ae,t.s3ExpressMiddleware=U,t.s3ExpressMiddlewareOptions=W,t.throw200ExceptionsMiddleware=X,t.throw200ExceptionsMiddlewareOptions=Z,t.validateBucketNameMiddleware=Q,t.validateBucketNameMiddlewareOptions=$})),v=n((e=>{var t=_(),n=f();let r={CrtSignerV4:null};e.SignatureV4MultiRegion=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof r.CrtSignerV4==`function`?`crt`:typeof n.signatureV4aContainer.SignatureV4a==`function`?`js`:`none`}constructor(e){this.sigv4Signer=new t.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let i=this.getSigv4aSigner(),a=r.CrtSignerV4;if(a&&i instanceof a)return i.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),i=r.CrtSignerV4;if(i&&n instanceof i)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=r.CrtSignerV4,t=n.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}},e.signatureV4CrtContainer=r}));export{_ as n,g as r,v as t}; \ No newline at end of file diff --git a/dist/dist-cjs-DeiB7zug.js b/dist/dist-cjs-DeiB7zug.js deleted file mode 100644 index 8a148903..00000000 --- a/dist/dist-cjs-DeiB7zug.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./client-BGPX0p_V.js";import{t as a}from"./dist-cjs-BjeBHYpU.js";import{t as o}from"./dist-cjs-Vc3Nkab2.js";import{n as s,t as c}from"./sts-C5iilKLd.js";var l=n((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=e(t),o=0;oasync n=>{t.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromWebToken`);let{roleArn:r,roleSessionName:a,webIdentityToken:o,providerId:l,policyArns:u,policy:d,durationSeconds:f}=t,{roleAssumerWithWebIdentity:p}=t;if(!p){let{getDefaultRoleAssumerWithWebIdentity:r}=await Promise.resolve().then(()=>i((c(),e(s))));p=r({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return p({RoleArn:r,RoleSessionName:a??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:l,PolicyArns:u,Policy:d,DurationSeconds:f})}})),u=n((n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.fromTokenFile=void 0;let s=(r(),e(i)),c=a(),u=o(),d=t(`node:fs`),f=l(),p=`AWS_WEB_IDENTITY_TOKEN_FILE`;n.fromTokenFile=(e={})=>async t=>{e.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromTokenFile`);let n=e?.webIdentityTokenFile??process.env[p],r=e?.roleArn??process.env.AWS_ROLE_ARN,i=e?.roleSessionName??process.env.AWS_ROLE_SESSION_NAME;if(!n||!r)throw new c.CredentialsProviderError(`Web identity configuration not specified`,{logger:e.logger});let a=await(0,f.fromWebToken)({...e,webIdentityToken:u.externalDataInterceptor?.getTokenRecord?.()[n]??(0,d.readFileSync)(n,{encoding:`ascii`}),roleArn:r,roleSessionName:i})(t);return n===process.env[p]&&(0,s.setCredentialFeature)(a,`CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN`,`h`),a}})),d=n((e=>{var t=u(),n=l();Object.prototype.hasOwnProperty.call(t,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:t.__proto__}),Object.keys(t).forEach(function(n){n!==`default`&&!Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t[n])}),Object.prototype.hasOwnProperty.call(n,`__proto__`)&&!Object.prototype.hasOwnProperty.call(e,`__proto__`)&&Object.defineProperty(e,"__proto__",{enumerable:!0,value:n.__proto__}),Object.keys(n).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n[t])})}));export default d();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-DyHnqsGQ.js b/dist/dist-cjs-DyHnqsGQ.js new file mode 100644 index 00000000..633ba37e --- /dev/null +++ b/dist/dist-cjs-DyHnqsGQ.js @@ -0,0 +1 @@ +import{t as e}from"./dist-cjs-GUGn02Xj.js";export default e();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-DyeqKkmv.js b/dist/dist-cjs-DyeqKkmv.js deleted file mode 100644 index 70f73d46..00000000 --- a/dist/dist-cjs-DyeqKkmv.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-BTyA9uPd.js";var t=e((e=>{e.HttpAuthLocation=void 0,(function(e){e.HEADER=`header`,e.QUERY=`query`})(e.HttpAuthLocation||={}),e.HttpApiKeyAuthLocation=void 0,(function(e){e.HEADER=`header`,e.QUERY=`query`})(e.HttpApiKeyAuthLocation||={}),e.EndpointURLScheme=void 0,(function(e){e.HTTP=`http`,e.HTTPS=`https`})(e.EndpointURLScheme||={}),e.AlgorithmId=void 0,(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(e.AlgorithmId||={});let t=t=>{let n=[];return t.sha256!==void 0&&n.push({algorithmId:()=>e.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&n.push({algorithmId:()=>e.AlgorithmId.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}},n=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t};e.FieldPosition=void 0,(function(e){e[e.HEADER=0]=`HEADER`,e[e.TRAILER=1]=`TRAILER`})(e.FieldPosition||={}),e.IniSectionType=void 0,(function(e){e.PROFILE=`profile`,e.SSO_SESSION=`sso-session`,e.SERVICES=`services`})(e.IniSectionType||={}),e.RequestHandlerProtocol=void 0,(function(e){e.HTTP_0_9=`http/0.9`,e.HTTP_1_0=`http/1.0`,e.TDS_8_0=`tds/8.0`})(e.RequestHandlerProtocol||={}),e.SMITHY_CONTEXT_KEY=`__smithy_context`,e.getDefaultClientConfiguration=e=>t(e),e.resolveDefaultRuntimeConfig=e=>n(e)}));export{t}; \ No newline at end of file diff --git a/dist/dist-cjs-DzDz58I_.js b/dist/dist-cjs-DzDz58I_.js deleted file mode 100644 index a7d5d762..00000000 --- a/dist/dist-cjs-DzDz58I_.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,t}from"./chunk-BTyA9uPd.js";import{n,t as r}from"./client-BGPX0p_V.js";import{t as i}from"./dist-cjs-BjeBHYpU.js";var a=t((t=>{var a=(n(),e(r)),o=i();let s=`AWS_ACCESS_KEY_ID`,c=`AWS_SECRET_ACCESS_KEY`,l=`AWS_SESSION_TOKEN`,u=`AWS_CREDENTIAL_EXPIRATION`,d=`AWS_CREDENTIAL_SCOPE`,f=`AWS_ACCOUNT_ID`;t.ENV_ACCOUNT_ID=f,t.ENV_CREDENTIAL_SCOPE=d,t.ENV_EXPIRATION=u,t.ENV_KEY=s,t.ENV_SECRET=c,t.ENV_SESSION=l,t.fromEnv=e=>async()=>{e?.logger?.debug(`@aws-sdk/credential-provider-env - fromEnv`);let t=process.env[s],n=process.env[c],r=process.env[l],i=process.env[u],p=process.env[d],m=process.env[f];if(t&&n){let e={accessKeyId:t,secretAccessKey:n,...r&&{sessionToken:r},...i&&{expiration:new Date(i)},...p&&{credentialScope:p},...m&&{accountId:m}};return a.setCredentialFeature(e,`CREDENTIALS_ENV_VARS`,`g`),e}throw new o.CredentialsProviderError(`Unable to find environment variable credentials.`,{logger:e?.logger})}}));export{a as t}; \ No newline at end of file diff --git a/dist/dist-cjs-GIhSYq7f.js b/dist/dist-cjs-GIhSYq7f.js deleted file mode 100644 index 76bf950a..00000000 --- a/dist/dist-cjs-GIhSYq7f.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,t}from"./chunk-BTyA9uPd.js";var n=t((e=>{e.isArrayBuffer=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`})),r=t((t=>{var r=n(),i=e(`buffer`);t.fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!r.isArrayBuffer(e))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return i.Buffer.from(e,t,n)},t.fromString=(e,t)=>{if(typeof e!=`string`)throw TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?i.Buffer.from(e,t):i.Buffer.from(e)}})),i=t((e=>{var t=r();let n=e=>{let n=t.fromString(e,`utf8`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};e.fromUtf8=n,e.toUint8Array=e=>typeof e==`string`?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),e.toUtf8=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return t.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString(`utf8`)}}));export{r as n,n as r,i as t}; \ No newline at end of file diff --git a/dist/dist-cjs-GUGn02Xj.js b/dist/dist-cjs-GUGn02Xj.js new file mode 100644 index 00000000..f2fa1b8e --- /dev/null +++ b/dist/dist-cjs-GUGn02Xj.js @@ -0,0 +1 @@ +import{a as e,t}from"./chunk-BTyA9uPd.js";import{n,t as r}from"./client-CtZmAvVy.js";import{A as i,j as a}from"./serde-Bngt0OLn.js";var o=t((t=>{var o=(n(),e(r)),s=(a(),e(i));let c=`AWS_ACCESS_KEY_ID`,l=`AWS_SECRET_ACCESS_KEY`,u=`AWS_SESSION_TOKEN`,d=`AWS_CREDENTIAL_EXPIRATION`,f=`AWS_CREDENTIAL_SCOPE`,p=`AWS_ACCOUNT_ID`;t.ENV_ACCOUNT_ID=p,t.ENV_CREDENTIAL_SCOPE=f,t.ENV_EXPIRATION=d,t.ENV_KEY=c,t.ENV_SECRET=l,t.ENV_SESSION=u,t.fromEnv=e=>async()=>{e?.logger?.debug(`@aws-sdk/credential-provider-env - fromEnv`);let t=process.env[c],n=process.env[l],r=process.env[u],i=process.env[d],a=process.env[f],m=process.env[p];if(t&&n){let e={accessKeyId:t,secretAccessKey:n,...r&&{sessionToken:r},...i&&{expiration:new Date(i)},...a&&{credentialScope:a},...m&&{accountId:m}};return o.setCredentialFeature(e,`CREDENTIALS_ENV_VARS`,`g`),e}throw new s.CredentialsProviderError(`Unable to find environment variable credentials.`,{logger:e?.logger})}}));export{o as t}; \ No newline at end of file diff --git a/dist/dist-cjs-H7yYXifd.js b/dist/dist-cjs-H7yYXifd.js new file mode 100644 index 00000000..3540ca89 --- /dev/null +++ b/dist/dist-cjs-H7yYXifd.js @@ -0,0 +1 @@ +import{a as e,i as t,t as n}from"./chunk-BTyA9uPd.js";import{n as r,t as i}from"./client-CtZmAvVy.js";import{A as a,j as o}from"./serde-Bngt0OLn.js";var s=n((n=>{var s=(o(),e(a)),c=t(`node:child_process`),l=t(`node:util`),u=(r(),e(i));let d=(e,t,n)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration){let r=t[e];if(t[e]){let i=r.credential_process;if(i!==void 0){let r=l.promisify(s.externalDataInterceptor?.getTokenRecord?.().exec??c.exec);try{let{stdout:n}=await r(i),a;try{a=JSON.parse(n.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return d(e,a,t)}catch(e){throw new s.CredentialsProviderError(e.message,{logger:n})}}else throw new s.CredentialsProviderError(`Profile ${e} did not contain credential_process.`,{logger:n})}else throw new s.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`,{logger:n})};n.fromProcess=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-process - fromProcess`);let n=await s.parseKnownFiles(e);return f(s.getProfileName({profile:e.profile??t?.profile}),n,e.logger)}}));export default s();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-Qh8tJqb7.js b/dist/dist-cjs-Qh8tJqb7.js deleted file mode 100644 index faa0f4a5..00000000 --- a/dist/dist-cjs-Qh8tJqb7.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-BTyA9uPd.js";import{t}from"./dist-cjs-DyeqKkmv.js";var n=e((e=>{var n=t();let r=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),i=e=>({httpHandler:e.httpHandler()});var a=class{name;kind;values;constructor({name:e,kind:t=n.FieldPosition.HEADER,values:r=[]}){this.name=e,this.kind=t,this.values=r}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(t=>t!==e)}toString(){return this.values.map(e=>e.includes(`,`)||e.includes(` `)?`"${e}"`:e).join(`, `)}get(){return this.values}},o=class{entries={};encoding;constructor({fields:e=[],encoding:t=`utf-8`}){e.forEach(this.setField.bind(this)),this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(t=>t.kind===e)}},s=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=c(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function c(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var l=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}};function u(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}e.Field=a,e.Fields=o,e.HttpRequest=s,e.HttpResponse=l,e.getHttpHandlerExtensionConfiguration=r,e.isValidHostname=u,e.resolveHttpHandlerRuntimeConfig=i}));export{n as t}; \ No newline at end of file diff --git a/dist/dist-cjs-Vc3Nkab2.js b/dist/dist-cjs-Vc3Nkab2.js deleted file mode 100644 index 4e381ca2..00000000 --- a/dist/dist-cjs-Vc3Nkab2.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,t}from"./chunk-BTyA9uPd.js";import{t as n}from"./dist-cjs-DyeqKkmv.js";var r=t((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHomeDir=void 0;let n=e(`os`),r=e(`path`),i={},a=()=>process&&process.geteuid?`${process.geteuid()}`:`DEFAULT`;t.getHomeDir=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:s=`C:${r.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${s}${o}`;let c=a();return i[c]||(i[c]=(0,n.homedir)()),i[c]}})),i=t((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSSOTokenFilepath=void 0;let n=e(`crypto`),i=e(`path`),a=r();t.getSSOTokenFilepath=e=>{let t=(0,n.createHash)(`sha1`).update(e).digest(`hex`);return(0,i.join)((0,a.getHomeDir)(),`.aws`,`sso`,`cache`,`${t}.json`)}})),a=t((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSSOTokenFromFile=t.tokenIntercept=void 0;let n=e(`fs/promises`),r=i();t.tokenIntercept={},t.getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e])return t.tokenIntercept[e];let i=(0,r.getSSOTokenFilepath)(e),a=await(0,n.readFile)(i,`utf8`);return JSON.parse(a)}})),o=t((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=t.fileIntercept=t.filePromises=void 0;let n=e(`node:fs/promises`);t.filePromises={},t.fileIntercept={},t.readFile=(e,r)=>t.fileIntercept[e]===void 0?((!t.filePromises[e]||r?.ignoreCache)&&(t.filePromises[e]=(0,n.readFile)(e,`utf8`)),t.filePromises[e]):t.fileIntercept[e]})),s=t((t=>{var s=r(),c=i(),l=a(),u=e(`path`),d=n(),f=o();let p=`AWS_PROFILE`,m=`default`,h=e=>e.profile||process.env[p]||m,g=e=>Object.entries(e).filter(([e])=>{let t=e.indexOf(`.`);return t===-1?!1:Object.values(d.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,n])=>{let r=t.indexOf(`.`),i=t.substring(0,r)===d.IniSectionType.PROFILE?t.substring(r+1):t;return e[i]=n,e},{...e.default&&{default:e.default}}),_=()=>process.env.AWS_CONFIG_FILE||u.join(s.getHomeDir(),`.aws`,`config`),v=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||u.join(s.getHomeDir(),`.aws`,`credentials`),y=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,b=[`__proto__`,`profile __proto__`],x=e=>{let t={},n,r;for(let i of e.split(/\r?\n/)){let e=i.split(/(^|\s)[;#]/)[0].trim();if(e[0]===`[`&&e[e.length-1]===`]`){n=void 0,r=void 0;let t=e.substring(1,e.length-1),i=y.exec(t);if(i){let[,e,,t]=i;Object.values(d.IniSectionType).includes(e)&&(n=[e,t].join(`.`))}else n=t;if(b.includes(t))throw Error(`Found invalid profile name "${t}"`)}else if(n){let a=e.indexOf(`=`);if(![0,-1].includes(a)){let[o,s]=[e.substring(0,a).trim(),e.substring(a+1).trim()];if(s===``)r=o;else{r&&i.trimStart()===i&&(r=void 0),t[n]=t[n]||{};let e=r?[r,o].join(`.`):o;t[n][e]=s}}}}return t},S=()=>({}),C=async(e={})=>{let{filepath:t=v(),configFilepath:n=_()}=e,r=s.getHomeDir(),i=t;t.startsWith(`~/`)&&(i=u.join(r,t.slice(2)));let a=n;n.startsWith(`~/`)&&(a=u.join(r,n.slice(2)));let o=await Promise.all([f.readFile(a,{ignoreCache:e.ignoreCache}).then(x).then(g).catch(S),f.readFile(i,{ignoreCache:e.ignoreCache}).then(x).catch(S)]);return{configFile:o[0],credentialsFile:o[1]}},w=e=>Object.entries(e).filter(([e])=>e.startsWith(d.IniSectionType.SSO_SESSION+`.`)).reduce((e,[t,n])=>({...e,[t.substring(t.indexOf(`.`)+1)]:n}),{}),T=()=>({}),E=async(e={})=>f.readFile(e.configFilepath??_()).then(x).then(w).catch(T),D=(...e)=>{let t={};for(let n of e)for(let[e,r]of Object.entries(n))t[e]===void 0?t[e]=r:Object.assign(t[e],r);return t};t.getSSOTokenFromFile=l.getSSOTokenFromFile,t.readFile=f.readFile,t.CONFIG_PREFIX_SEPARATOR=`.`,t.DEFAULT_PROFILE=m,t.ENV_PROFILE=p,t.externalDataInterceptor={getFileRecord(){return f.fileIntercept},interceptFile(e,t){f.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return l.tokenIntercept},interceptToken(e,t){l.tokenIntercept[e]=t}},t.getProfileName=h,t.loadSharedConfigFiles=C,t.loadSsoSessionData=E,t.parseKnownFiles=async e=>{let t=await C(e);return D(t.configFile,t.credentialsFile)},Object.prototype.hasOwnProperty.call(s,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:s.__proto__}),Object.keys(s).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=s[e])}),Object.prototype.hasOwnProperty.call(c,`__proto__`)&&!Object.prototype.hasOwnProperty.call(t,`__proto__`)&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:c.__proto__}),Object.keys(c).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=c[e])})}));export{s as t}; \ No newline at end of file diff --git a/dist/dist-cjs-f34ATqxg.js b/dist/dist-cjs-f34ATqxg.js deleted file mode 100644 index 70e7f3d6..00000000 --- a/dist/dist-cjs-f34ATqxg.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,o as n,t as r}from"./chunk-BTyA9uPd.js";import{t as i}from"./dist-cjs-Qh8tJqb7.js";import{n as a,t as o}from"./client-BGPX0p_V.js";import{t as s}from"./dist-cjs-BjeBHYpU.js";import{t as c}from"./dist-cjs-Vc3Nkab2.js";var l=r((n=>{var r=(a(),e(o)),l=s(),u=c(),d=i(),f=t(`node:crypto`),p=t(`node:fs`),m=t(`node:os`),h=t(`node:path`),g=class e{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,t,n){this.profileData=e,this.init=t,this.callerClientConfig=n}async loadCredentials(){let t=await this.loadToken();if(!t)throw new l.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=t.accessToken,r=Date.now();return new Date(n.expiresAt).getTime()-r<=e.REFRESH_THRESHOLD?this.refresh(t):{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:t,CreateOAuth2TokenCommand:n}=await import(`./signin-DC-Ylpwg.js`),{logger:r,userAgentAppId:i}=this.callerClientConfig??{},a=(e=>e?.metadata?.handlerProtocol===`h2`)(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,o=new t({credentials:{accessKeyId:``,secretAccessKey:``},region:this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,requestHandler:a,logger:r,userAgentAppId:i,...this.init?.clientConfig});this.createDPoPInterceptor(o.middlewareStack);let s={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:`refresh_token`}};try{let t=await o.send(new n(s)),{accessKeyId:r,secretAccessKey:i,sessionToken:a}=t.tokenOutput?.accessToken??{},{refreshToken:c,expiresIn:u}=t.tokenOutput??{};if(!r||!i||!a||!c)throw new l.CredentialsProviderError(`Token refresh response missing required fields`,{logger:this.logger,tryNextLink:!1});let d=(u??900)*1e3,f=new Date(Date.now()+d),p={...e,accessToken:{...e.accessToken,accessKeyId:r,secretAccessKey:i,sessionToken:a,expiresAt:f.toISOString()},refreshToken:c};await this.saveToken(p);let m=p.accessToken;return{accessKeyId:m.accessKeyId,secretAccessKey:m.secretAccessKey,sessionToken:m.sessionToken,accountId:m.accountId,expiration:f}}catch(e){if(e.name===`AccessDeniedException`){let t=e.error,n;switch(t){case`TOKEN_EXPIRED`:n=`Your session has expired. Please reauthenticate.`;break;case`USER_CREDENTIALS_CHANGED`:n=`Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.`;break;case`INSUFFICIENT_PERMISSIONS`:n=`Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.`;break;default:n=`Failed to refresh token: ${String(e)}. Please re-authenticate using \`aws login\``}throw new l.CredentialsProviderError(n,{logger:this.logger,tryNextLink:!1})}throw new l.CredentialsProviderError(`Failed to refresh token: ${String(e)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t;try{t=await u.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{t=await p.promises.readFile(e,`utf8`)}let n=JSON.parse(t),r=[`accessToken`,`clientId`,`refreshToken`,`dpopKey`].filter(e=>!n[e]);if(n.accessToken?.accountId||r.push(`accountId`),r.length>0)throw new l.CredentialsProviderError(`Token validation failed, missing fields: ${r.join(`, `)}`,{logger:this.logger,tryNextLink:!1});return n}catch(t){throw new l.CredentialsProviderError(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),n=h.dirname(t);try{await p.promises.mkdir(n,{recursive:!0})}catch{}await p.promises.writeFile(t,JSON.stringify(e,null,2),`utf8`)}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??h.join(m.homedir(),`.aws`,`login`,`cache`),t=Buffer.from(this.loginSession,`utf8`),n=f.createHash(`sha256`).update(t).digest(`hex`);return h.join(e,`${n}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw Error(`Invalid DER signature`);t++;let n=e[t++],r=e.subarray(t,t+n);if(t+=n,e[t]!==2)throw Error(`Invalid DER signature`);t++;let i=e[t++],a=e.subarray(t,t+i);r=r[0]===0?r.subarray(1):r,a=a[0]===0?a.subarray(1):a;let o=Buffer.concat([Buffer.alloc(32-r.length),r]),s=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([o,s])}createDPoPInterceptor(e){e.add(e=>async t=>{if(d.HttpRequest.isInstance(t.request)){let e=t.request,n=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:``}${e.path}`,r=await this.generateDpop(e.method,n);e.headers={...e.headers,DPoP:r}}return e(t)},{step:`finalizeRequest`,name:`dpopInterceptor`,override:!0})}async generateDpop(e=`POST`,t){let n=await this.loadToken();try{let r=f.createPrivateKey({key:n.dpopKey,format:`pem`,type:`sec1`}),i=f.createPublicKey(r).export({format:`der`,type:`spki`}),a=-1;for(let e=0;easync({callerClientConfig:t}={})=>{e?.logger?.debug?.(`@aws-sdk/credential-providers - fromLoginCredentials`);let n=await u.parseKnownFiles(e||{}),i=u.getProfileName({profile:e?.profile??t?.profile}),a=n[i];if(!a?.login_session)throw new l.CredentialsProviderError(`Profile ${i} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let o=await new g(a,e,t).loadCredentials();return r.setCredentialFeature(o,`CREDENTIALS_LOGIN`,`AD`)}})),u=r((t=>{var r=c(),i=s(),u=(a(),e(o)),d=l();let f=(e,t,r)=>{let a={EcsContainer:async e=>{let{fromHttp:t}=await import(`./dist-cjs-CuhA-p5Q.js`).then(e=>n(e.default)),{fromContainerMetadata:a}=await import(`./dist-cjs-sKez7UTL.js`).then(e=>n(e.default));return r?.debug(`@aws-sdk/credential-provider-ini - credential_source is EcsContainer`),async()=>i.chain(t(e??{}),a(e))().then(p)},Ec2InstanceMetadata:async e=>{r?.debug(`@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata`);let{fromInstanceMetadata:t}=await import(`./dist-cjs-sKez7UTL.js`).then(e=>n(e.default));return async()=>t(e)().then(p)},Environment:async e=>{r?.debug(`@aws-sdk/credential-provider-ini - credential_source is Environment`);let{fromEnv:t}=await import(`./dist-cjs-C6TMHN_x.js`).then(e=>n(e.default));return async()=>t(e)().then(p)}};if(e in a)return a[e];throw new i.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},p=e=>u.setCredentialFeature(e,`CREDENTIALS_PROFILE_NAMED_PROVIDER`,`p`),m=(e,{profile:t=`default`,logger:n}={})=>!!e&&typeof e==`object`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1&&[`undefined`,`string`].indexOf(typeof e.external_id)>-1&&[`undefined`,`string`].indexOf(typeof e.mfa_serial)>-1&&(h(e,{profile:t,logger:n})||g(e,{profile:t,logger:n})),h=(e,{profile:t,logger:n})=>{let r=typeof e.source_profile==`string`&&e.credential_source===void 0;return r&&n?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),r},g=(e,{profile:t,logger:n})=>{let r=typeof e.credential_source==`string`&&e.source_profile===void 0;return r&&n?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),r},_=async(e,t,n,a,o={},s)=>{n.logger?.debug(`@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)`);let c=t[e],{source_profile:l,region:d}=c;if(!n.roleAssumer){let{getDefaultRoleAssumer:e}=await import(`./sts-CEHgKmja.js`);n.roleAssumer=e({...n.clientConfig,credentialProviderLogger:n.logger,parentClientConfig:{...a,...n?.parentClientConfig,region:d??n?.parentClientConfig?.region??a?.region}},n.clientPlugins)}if(l&&l in o)throw new i.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${r.getProfileName(n)}. Profiles visited: `+Object.keys(o).join(`, `),{logger:n.logger});n.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${l?`source_profile=[${l}]`:`profile=[${e}]`}`);let p=l?s(l,t,n,a,{...o,[l]:!0},v(t[l]??{})):(await f(c.credential_source,e,n.logger)(n))();if(v(c))return p.then(e=>u.setCredentialFeature(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`));{let t={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id,DurationSeconds:parseInt(c.duration_seconds||`3600`,10)},{mfa_serial:r}=c;if(r){if(!n.mfaCodeProvider)throw new i.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:n.logger,tryNextLink:!1});t.SerialNumber=r,t.TokenCode=await n.mfaCodeProvider(r)}let a=await p;return n.roleAssumer(a,t).then(e=>u.setCredentialFeature(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`))}},v=e=>!e.role_arn&&!!e.credential_source,y=e=>!!(e&&e.login_session),b=async(e,t,n)=>{let r=await d.fromLoginCredentials({...t,profile:e})({callerClientConfig:n});return u.setCredentialFeature(r,`CREDENTIALS_PROFILE_LOGIN`,`AC`)},x=e=>!!e&&typeof e==`object`&&typeof e.credential_process==`string`,S=async(e,t)=>import(`./dist-cjs-BgrAoXL3.js`).then(e=>n(e.default)).then(({fromProcess:n})=>n({...e,profile:t})().then(e=>u.setCredentialFeature(e,`CREDENTIALS_PROFILE_PROCESS`,`v`))),C=async(e,t,r={},i)=>{let{fromSSO:a}=await import(`./dist-cjs-Bd7-ZKWb.js`).then(e=>n(e.default));return a({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:i}).then(e=>t.sso_session?u.setCredentialFeature(e,`CREDENTIALS_PROFILE_SSO`,`r`):u.setCredentialFeature(e,`CREDENTIALS_PROFILE_SSO_LEGACY`,`t`))},w=e=>e&&(typeof e.sso_start_url==`string`||typeof e.sso_account_id==`string`||typeof e.sso_session==`string`||typeof e.sso_region==`string`||typeof e.sso_role_name==`string`),T=e=>!!e&&typeof e==`object`&&typeof e.aws_access_key_id==`string`&&typeof e.aws_secret_access_key==`string`&&[`undefined`,`string`].indexOf(typeof e.aws_session_token)>-1&&[`undefined`,`string`].indexOf(typeof e.aws_account_id)>-1,E=async(e,t)=>{t?.logger?.debug(`@aws-sdk/credential-provider-ini - resolveStaticCredentials`);let n={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return u.setCredentialFeature(n,`CREDENTIALS_PROFILE`,`n`)},D=e=>!!e&&typeof e==`object`&&typeof e.web_identity_token_file==`string`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1,O=async(e,t,r)=>import(`./dist-cjs-DeiB7zug.js`).then(e=>n(e.default)).then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r}).then(e=>u.setCredentialFeature(e,`CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN`,`q`))),k=async(e,t,n,r,a={},o=!1)=>{let s=t[e];if(Object.keys(a).length>0&&T(s))return E(s,n);if(o||m(s,{profile:e,logger:n.logger}))return _(e,t,n,r,a,k);if(T(s))return E(s,n);if(D(s))return O(s,n,r);if(x(s))return S(n,e);if(w(s))return await C(e,s,n,r);if(y(s))return b(e,n,r);throw new i.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:n.logger})};t.fromIni=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-ini - fromIni`);let n=await r.parseKnownFiles(e);return k(r.getProfileName({profile:e.profile??t?.profile}),n,e,t)}}));export default u();export{}; \ No newline at end of file diff --git a/dist/dist-cjs-sKez7UTL.js b/dist/dist-cjs-sKez7UTL.js deleted file mode 100644 index 10dee84d..00000000 --- a/dist/dist-cjs-sKez7UTL.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,t}from"./chunk-BTyA9uPd.js";import{t as n}from"./dist-cjs-CKxbtVku.js";import{t as r}from"./dist-cjs-BjeBHYpU.js";import{t as i}from"./dist-cjs-BWu9uV-R.js";var a=t((t=>{var a=r(),o=e(`url`),s=e(`buffer`),c=e(`http`),l=i(),u=n();function d(e){return new Promise((t,n)=>{let r=c.request({method:`GET`,...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,`$1`)});r.on(`error`,e=>{n(Object.assign(new a.ProviderError(`Unable to connect to instance metadata service`),e)),r.destroy()}),r.on(`timeout`,()=>{n(new a.ProviderError(`TimeoutError from instance metadata service`)),r.destroy()}),r.on(`response`,e=>{let{statusCode:i=400}=e;(i<200||300<=i)&&(n(Object.assign(new a.ProviderError(`Error response received from instance metadata service`),{statusCode:i})),r.destroy());let o=[];e.on(`data`,e=>{o.push(e)}),e.on(`end`,()=>{t(s.Buffer.concat(o)),r.destroy()})}),r.end()})}let f=e=>!!e&&typeof e==`object`&&typeof e.AccessKeyId==`string`&&typeof e.SecretAccessKey==`string`&&typeof e.Token==`string`&&typeof e.Expiration==`string`,p=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}}),m=1e3,h=({maxRetries:e=0,timeout:t=m})=>({maxRetries:e,timeout:t}),g=(e,t)=>{let n=e();for(let r=0;r{let{timeout:t,maxRetries:n}=h(e);return()=>g(async()=>{let n=await w({logger:e.logger}),r=JSON.parse(await x(t,n));if(!f(r))throw new a.CredentialsProviderError(`Invalid response received from instance metadata service.`,{logger:e.logger});return p(r)},n)},x=async(e,t)=>(process.env[y]&&(t.headers={...t.headers,Authorization:process.env[y]}),(await d({...t,timeout:e})).toString()),S={localhost:!0,"127.0.0.1":!0},C={"http:":!0,"https:":!0},w=async({logger:e})=>{if(process.env[v])return{hostname:`169.254.170.2`,path:process.env[v]};if(process.env[_]){let t=o.parse(process.env[_]);if(!t.hostname||!(t.hostname in S))throw new a.CredentialsProviderError(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!(t.protocol in C))throw new a.CredentialsProviderError(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{...t,port:t.port?parseInt(t.port,10):void 0}}throw new a.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${v} or ${_} environment variable is set`,{tryNextLink:!1,logger:e})};var T=class e extends a.CredentialsProviderError{tryNextLink;name=`InstanceMetadataV1FallbackError`;constructor(t,n=!0){super(t,n),this.tryNextLink=n,Object.setPrototypeOf(this,e.prototype)}};t.Endpoint=void 0,(function(e){e.IPv4=`http://169.254.169.254`,e.IPv6=`http://[fd00:ec2::254]`})(t.Endpoint||={});let E={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var D;(function(e){e.IPv4=`IPv4`,e.IPv6=`IPv6`})(D||={});let O={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:D.IPv4},k=async()=>u.parseUrl(await A()||await j()),A=async()=>l.loadConfig(E)(),j=async()=>{let e=await l.loadConfig(O)();switch(e){case D.IPv4:return t.Endpoint.IPv4;case D.IPv6:return t.Endpoint.IPv6;default:throw Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(D)}`)}},M=(e,t)=>{let n=300+Math.floor(Math.random()*300),r=new Date(Date.now()+n*1e3);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(r)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let i=e.originalExpiration??e.expiration;return{...e,...i?{originalExpiration:i}:{},expiration:r}},N=(e,t={})=>{let n=t?.logger||console,r;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()N(z(e),{logger:e.logger}),z=(e={})=>{let t=!1,{logger:n,profile:r}=e,{timeout:i,maxRetries:o}=h(e),s=async(n,i)=>{if(t||i.headers?.[L]==null){let t=!1,n=!1,i=await l.loadConfig({environmentVariableSelector:t=>{let r=t[F];if(n=!!r&&r!==`false`,r===void 0)throw new a.CredentialsProviderError(`${F} not set in env, checking config file next.`,{logger:e.logger});return n},configFileSelector:e=>{let n=e[I];return t=!!n&&n!==`false`,t},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||i){let r=[];throw e.ec2MetadataV1Disabled&&r.push(`credential provider initialization (runtime option ec2MetadataV1Disabled)`),t&&r.push(`config file profile (${I})`),n&&r.push(`process environment variable (${F})`),new T(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${r.join(`, `)}].`)}}let o=(await g(async()=>{let e;try{e=await V(i)}catch(e){throw e.statusCode===401&&(t=!1),e}return e},n)).trim();return g(async()=>{let n;try{n=await H(o,i,e)}catch(e){throw e.statusCode===401&&(t=!1),e}return n},n)};return async()=>{let e=await k();if(t)return n?.debug(`AWS SDK Instance Metadata`,`using v1 fallback (no token fetch)`),s(o,{...e,timeout:i});{let r;try{r=(await B({...e,timeout:i})).toString()}catch(r){if(r?.statusCode===400)throw Object.assign(r,{message:`EC2 Metadata token request returned error`});return(r.message===`TimeoutError`||[403,404,405].includes(r.statusCode))&&(t=!0),n?.debug(`AWS SDK Instance Metadata`,`using v1 fallback (initial)`),s(o,{...e,timeout:i})}return s(o,{...e,headers:{[L]:r},timeout:i})}}},B=async e=>d({...e,path:`/latest/api/token`,method:`PUT`,headers:{"x-aws-ec2-metadata-token-ttl-seconds":`21600`}}),V=async e=>(await d({...e,path:P})).toString(),H=async(e,t,n)=>{let r=JSON.parse((await d({...t,path:P+e})).toString());if(!f(r))throw new a.CredentialsProviderError(`Invalid response received from instance metadata service.`,{logger:n.logger});return p(r)};t.DEFAULT_MAX_RETRIES=0,t.DEFAULT_TIMEOUT=m,t.ENV_CMDS_AUTH_TOKEN=y,t.ENV_CMDS_FULL_URI=_,t.ENV_CMDS_RELATIVE_URI=v,t.fromContainerMetadata=b,t.fromInstanceMetadata=R,t.getInstanceMetadataEndpoint=k,t.httpRequest=d,t.providerConfigFromInit=h}));export default a();export{}; \ No newline at end of file diff --git a/dist/es5-DkAJ-1lB.js b/dist/es5-DkAJ-1lB.js new file mode 100644 index 00000000..06d89702 --- /dev/null +++ b/dist/es5-DkAJ-1lB.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-BTyA9uPd.js";var t=e(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.bowser=r():n.bowser=r()})(e,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18);t.default=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||``},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||``},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case`NT`:return`NT`;case`XP`:return`XP`;case`NT 5.0`:return`2000`;case`NT 5.1`:return`XP`;case`NT 5.2`:return`2003`;case`NT 6.0`:return`Vista`;case`NT 6.1`:return`7`;case`NT 6.2`:return`8`;case`NT 6.3`:return`8.1`;case`NT 10.0`:return`10`;default:return}},e.getMacOSVersionName=function(e){var t=e.split(`.`).splice(0,2).map((function(e){return parseInt(e,10)||0}));t.push(0);var n=t[0],r=t[1];if(n===10)switch(r){case 5:return`Leopard`;case 6:return`Snow Leopard`;case 7:return`Lion`;case 8:return`Mountain Lion`;case 9:return`Mavericks`;case 10:return`Yosemite`;case 11:return`El Capitan`;case 12:return`Sierra`;case 13:return`High Sierra`;case 14:return`Mojave`;case 15:return`Catalina`;default:return}switch(n){case 11:return`Big Sur`;case 12:return`Monterey`;case 13:return`Ventura`;case 14:return`Sonoma`;case 15:return`Sequoia`;default:return}},e.getAndroidVersionName=function(e){var t=e.split(`.`).splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?`Cupcake`:t[0]===1&&t[1]>=6?`Donut`:t[0]===2&&t[1]<2?`Eclair`:t[0]===2&&t[1]===2?`Froyo`:t[0]===2&&t[1]>2?`Gingerbread`:t[0]===3?`Honeycomb`:t[0]===4&&t[1]<1?`Ice Cream Sandwich`:t[0]===4&&t[1]<4?`Jelly Bean`:t[0]===4&&t[1]>=4?`KitKat`:t[0]===5?`Lollipop`:t[0]===6?`Marshmallow`:t[0]===7?`Nougat`:t[0]===8?`Oreo`:t[0]===9?`Pie`:void 0},e.getVersionPrecision=function(e){return e.split(`.`).length},e.compareVersions=function(t,n,r){r===void 0&&(r=!1);var i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,c=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+Array(n+1).join(`.0`);return e.map(r.split(`.`),(function(e){return Array(20-e.length).join(`0`)+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),--o;o>=s;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===s)return 0;--o}else if(c[0][o]1?i-1:0),o=1;o0){var o=Object.keys(n),c=s.default.find(o,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(l!==void 0)return l}var u=s.default.find(o,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(n[u]);if(d!==void 0)return d}}if(a>0){var f=Object.keys(i),p=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(p!==void 0)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){t===void 0&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if(typeof i==`string`)return e[0]===`>`||e[0]===`<`?(n=e.substr(1),e[1]===`=`?(r=!0,n=e.substr(2)):t=[],e[0]===`>`?t.push(1):t.push(-1)):e[0]===`=`?n=e.substr(1):e[0]===`~`&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return t===void 0&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return e===void 0&&(e=[]),e.some((function(e){return t.is(e)}))},e}(),e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/gptbot/i],describe:function(e){var t={name:`GPTBot`},n=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:`ChatGPT-User`},n=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:`OAI-SearchBot`},n=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:`ClaudeBot`},n=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:`Omgilibot`},n=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/diffbot/i],describe:function(e){var t={name:`Diffbot`},n=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:`PerplexityBot`},n=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:`Perplexity-User`},n=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/youbot/i],describe:function(e){var t={name:`YouBot`},n=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:`Meta-WebIndexer`},n=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:`Meta-ExternalAds`},n=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:`Meta-ExternalAgent`},n=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:`Meta-ExternalFetcher`},n=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/googlebot/i],describe:function(e){var t={name:`Googlebot`},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/linespider/i],describe:function(e){var t={name:`Linespider`},n=i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/amazonbot/i],describe:function(e){var t={name:`AmazonBot`},n=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/bingbot/i],describe:function(e){var t={name:`BingCrawler`},n=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/baiduspider/i],describe:function(e){var t={name:`BaiduSpider`},n=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:`DuckDuckBot`},n=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:`InternetArchiveCrawler`},n=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:`FacebookExternalHit`}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:`SlackBot`},n=i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:`YahooSlurp`}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:`YandexBot`}}},{test:[/pingdom/i],describe:function(){return{name:`PingdomBot`}}},{test:[/opera/i],describe:function(e){var t={name:`Opera`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:`Opera`},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:`Samsung Internet for Android`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:`NAVER Whale Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:`Pale Moon`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:`MZ Browser`},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:`Focus`},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:`Swing`},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:`Opera Coast`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:`Opera Touch`},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:`Yandex Browser`},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:`UC Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:`Maxthon`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:`Epiphany`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:`Puffin`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:`Sleipnir`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:`K-Meleon`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:`WeChat`},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?`QQ Browser Lite`:`QQ Browser`},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:`Internet Explorer`},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:`Microsoft Edge`},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:`Microsoft Edge`},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:`Vivaldi`},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:`SeaMonkey`},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:`Sailfish`},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:`Amazon Silk`},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:`PhantomJS`},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:`SlimerJS`},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:`BlackBerry`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:`WebOS Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:`Bada`},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:`Tizen`},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:`QupZilla`},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/librewolf/i],describe:function(e){var t={name:`LibreWolf`},n=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:`Firefox`},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:`Electron`},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:`Sogou Browser`},n=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),a=i.default.getFirstMatch(/se ([\d.]+)x/i,e),o=n||r||a;return o&&(t.version=o),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:`Miui`},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return!!e.hasBrand(`DuckDuckGo`)||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var n={name:`DuckDuckGo`};if(t){var r=t.getBrandVersion(`DuckDuckGo`);if(r)return n.version=r,n}var a=i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return a&&(n.version=a),n}},{test:function(e){return e.hasBrand(`Brave`)},describe:function(e,t){var n={name:`Brave`};if(t){var r=t.getBrandVersion(`Brave`);if(r)return n.version=r,n}return n}},{test:[/chromium/i],describe:function(e){var t={name:`Chromium`},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:`Chrome`},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:`Google Search`},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:`Android Browser`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:`PlayStation 4`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:`Safari`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=e.search(`\\(`)===-1?/^(.*)\/(.*) /:/^(.*)\/(.*)[ \t]\((.*)/;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,`.`),n=i.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,`.`);return{name:a.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:a.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}],e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Google`}}},{test:[/linespider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Line`}}},{test:[/amazonbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Amazon`}}},{test:[/gptbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`OpenAI`}}},{test:[/chatgpt-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`OpenAI`}}},{test:[/oai-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`OpenAI`}}},{test:[/baiduspider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Baidu`}}},{test:[/bingbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Bing`}}},{test:[/duckduckbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`DuckDuckGo`}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Anthropic`}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Webz.io`}}},{test:[/diffbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Diffbot`}}},{test:[/perplexitybot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Perplexity AI`}}},{test:[/perplexity-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Perplexity AI`}}},{test:[/youbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`You.com`}}},{test:[/ia_archiver/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Internet Archive`}}},{test:[/meta-webindexer/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Meta`}}},{test:[/meta-externalads/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Meta`}}},{test:[/meta-externalagent/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Meta`}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Meta`}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Meta`}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Slack`}}},{test:[/yahoo/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Yahoo`}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Yandex`}}},{test:[/pingdom/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:`Pingdom`}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&`Nova`,n={type:a.PLATFORMS_MAP.mobile,vendor:`Huawei`};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Nexus`}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Apple`,model:`iPad`}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Apple`,model:`iPad`}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Amazon`,model:`Kindle Fire HD 7`}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Amazon`}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:`Apple`,model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`Nexus`}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:a.PLATFORMS_MAP.mobile,vendor:`Nokia`};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName(!0)===`blackberry`},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`BlackBerry`}}},{test:function(e){return e.getBrowserName(!0)===`bada`},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName()===`windows phone`},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`Microsoft`}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(`.`)[0]);return e.getOSName(!0)===`android`&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return e.getOSName(!0)===`android`},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return e.getOSName(!0)===`macos`},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:`Apple`}}},{test:function(e){return e.getOSName(!0)===`windows`},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)===`linux`},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)===`playstation 4`},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return e.getOSName(!0)===`roku`},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:function(e){return e.getBrowserName(!0)===`microsoft edge`},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],e.exports=t.default}})}))}));export default t();export{}; \ No newline at end of file diff --git a/dist/event-streams-CNnKJLt8.js b/dist/event-streams-CNnKJLt8.js new file mode 100644 index 00000000..01520192 --- /dev/null +++ b/dist/event-streams-CNnKJLt8.js @@ -0,0 +1 @@ +import{a as e,i as t,n,r,t as i}from"./chunk-BTyA9uPd.js";import{Mt as a,at as o,kt as s,r as c,rt as l}from"./serde-Bngt0OLn.js";import{n as u,t as d}from"./tslib.es6-Bl8O1Dl_.js";import{Readable as f}from"node:stream";var p=i(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>n(e,`name`,{value:t,configurable:!0}),s=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},l=e=>c(n({},`__esModule`,{value:!0}),e),u={};s(u,{isArrayBuffer:()=>d}),t.exports=l(u);var d=o(e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`,`isArrayBuffer`)})),m=i(((e,n)=>{var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>r(e,`name`,{value:t,configurable:!0}),c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!o.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},u=e=>l(r({},`__esModule`,{value:!0}),e),d={};c(d,{fromArrayBuffer:()=>h,fromString:()=>ee}),n.exports=u(d);var f=p(),m=t(`buffer`),h=s((e,t=0,n=e.byteLength-t)=>{if(!(0,f.isArrayBuffer)(e))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return m.Buffer.from(e,t,n)},`fromArrayBuffer`),ee=s((e,t)=>{if(typeof e!=`string`)throw TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?m.Buffer.from(e,t):m.Buffer.from(e)},`fromString`)})),h=i(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>n(e,`name`,{value:t,configurable:!0}),s=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},l=e=>c(n({},`__esModule`,{value:!0}),e),u={};s(u,{fromUtf8:()=>f,toUint8Array:()=>p,toUtf8:()=>h}),t.exports=l(u);var d=m(),f=o(e=>{let t=(0,d.fromString)(e,`utf8`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},`fromUtf8`),p=o(e=>typeof e==`string`?f(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),`toUint8Array`),h=o(e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return(0,d.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString(`utf8`)},`toUtf8`)})),ee=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertToBuffer=void 0;var t=h(),n=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:t.fromUtf8;function r(e){return e instanceof Uint8Array?e:typeof e==`string`?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}e.convertToBuffer=r})),te=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyData=void 0;function t(e){return typeof e==`string`?e.length===0:e.byteLength===0}e.isEmptyData=t})),ne=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}e.numToUint8=t})),re=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n{Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=ee();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var n=te();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return n.isEmptyData}});var r=ne();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var i=re();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return i.uint32ArrayFrom}})})),ie=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=(d(),e(u)),r=g(),i=_();t.AwsCrc32=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,r.isEmptyData)(e)||this.crc32.update((0,r.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,(0,r.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new i.Crc32},e}()})),_=i((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=(d(),e(u)),r=g();function i(e){return new a().update(e).digest()}t.crc32=i;var a=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();t.Crc32=a;var o=(0,r.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=ie();Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})}));function ae(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var v,y=n((()=>{c(),v=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&ae(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&ae(e),parseInt(o(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}})),b,oe,x,S,se,ce,le,C,w,T,E,ue,D=n((()=>{c(),y(),b=class{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let u=new Uint8Array(9);return u[0]=8,u.set(v.fromNumber(e.value.valueOf()).bytes,1),u;case`uuid`:if(!ue.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let d=new Uint8Array(17);return d[0]=9,d.set(l(e.value.replace(/\-/g,``)),1),d}}parse(e){let t={},n=0;for(;n{fe=_(),O=4,k=O*2,A=4,pe=16})),he,j,M=n((()=>{he=_(),D(),me(),j=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new b(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let n=this.headerMarshaller.format(e),r=n.byteLength+t.byteLength+16,i=new Uint8Array(r),a=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new he.Crc32;return a.setUint32(0,r,!1),a.setUint32(4,n.byteLength,!1),a.setUint32(8,o.update(i.subarray(0,8)).digest(),!1),i.set(n,12),i.set(t,n.byteLength+12),a.setUint32(r-4,o.update(i.subarray(8,r-4)).digest(),!1),i}decode(e){let{headers:t,body:n}=de(e);return{headers:this.headerMarshaller.parse(t),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}})),N,P=n((()=>{N=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}})),F,I=n((()=>{F=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array)}}})),L,R=n((()=>{L=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);t!==void 0&&(yield t)}}}})),z,B=n((()=>{z=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}}));function V(e){let t=0,n=0,r=null,i=null,a=e=>{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l{}));function ge(e,t){let n=U(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let r of e){let e=await n(t.eventStreamCodec.decode(r));e!==void 0&&(yield e)}}}}function U(e,t){return async function(n){let{value:r}=n.headers[`:message-type`];if(r===`error`){let e=Error(n.headers[`:error-message`].value||`UnknownError`);throw e.name=n.headers[`:error-code`].value,e}else if(r===`exception`){let r=n.headers[`:exception-type`].value,i=await e({[r]:n});if(i.$unknown){let e=Error(t(n.body));throw e.name=r,e}throw i[r]}else if(r===`event`){let t=await e({[n.headers[`:event-type`].value]:n});return t.$unknown?void 0:t}else throw Error(`Unrecognizable event type: ${n.headers[`:event-type`].value}`)}}var W=n((()=>{})),G,K,q=n((()=>{M(),P(),I(),R(),B(),H(),W(),G=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new j(e,t),this.utfEncoder=e}deserialize(e,t){return new L({messageStream:new N({inputStream:V(e),decoder:this.eventStreamCodec}),deserializer:U(t,this.utfEncoder)})}serialize(e,t){return new F({messageStream:new z({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},K=e=>new G(e)}));async function*_e(e){let t=!1,n=!1,r=[];for(e.on(`error`,e=>{if(t||=!0,e)throw e}),e.on(`data`,e=>{r.push(e)}),e.on(`end`,()=>{t=!0});!n;){let e=await new Promise(e=>setTimeout(()=>e(r.shift()),0));e&&(yield e),n=t&&r.length===0}}var J,Y,ve=n((()=>{q(),J=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new G({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=typeof e[Symbol.asyncIterator]==`function`?e:_e(e);return this.universalMarshaller.deserialize(n,t)}serialize(e,t){return f.from(this.universalMarshaller.serialize(e,t))}},Y=e=>new J(e)})),X,Z,ye=n((()=>{X=e=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),Z=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})}})),Q,be=n((()=>{Q=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})})),$,xe=n((()=>{c(),$=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i).getMemberSchemas(),o=Symbol(`initialResponseMarker`),c=r.deserialize(e.body,async e=>{let n=``;for(let t in e)if(t!==`__type`){n=t;break}let r=e[n].body;if(n===`initial-response`){let e=await this.deserializer.read(t,r);return delete e[i],{[o]:!0,...e}}else if(n in a){let t=a[n];if(t.isStructSchema()){let i={},a=!1;for(let[o,c]of t.structIterator()){let{eventHeader:t,eventPayload:l}=c.getMergedTraits();if(a||=!!(t||l),l)c.isBlobSchema()?i[o]=r:c.isStringSchema()?i[o]=(this.serdeContext?.utf8Encoder??s)(r):c.isStructSchema()&&(i[o]=await this.deserializer.read(c,r));else if(t){let t=e[n].headers[o]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?i[o]=BigInt(t.toString()):i[o]=Number(t):i[o]=t)}}if(a)return{[n]:i};if(r.byteLength===0)return{[n]:{}}}return{[n]:await this.deserializer.read(t,r)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[o]){if(!t)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)n[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[o]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,t,n){let r=this.serializer,i=e,o=null,s,c=t.getSchema()[4].includes(e),l={};if(c){let i=t.getMemberSchema(e);if(i.isStructSchema()){for(let[t,r]of i.structIterator()){let{eventHeader:i,eventPayload:a}=r.getMergedTraits();if(a)o=t;else if(i){let i=n[e][t],a=`binary`;r.isNumericSchema()?a=(-2)**31<=i&&i<=2**31-1?`integer`:`long`:r.isTimestampSchema()?a=`timestamp`:r.isStringSchema()?a=`string`:r.isBooleanSchema()&&(a=`boolean`),i!=null&&(l[t]={type:a,value:i},delete n[e][t])}}if(o!==null){let t=i.getMemberSchema(o);t.isBlobSchema()?s=`application/octet-stream`:t.isStringSchema()&&(s=`text/plain`),r.write(t,n[e][o])}else r.write(i,n[e])}else if(i.isUnitSchema())r.write(i,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[t,a]=n[e];i=t,r.write(15,a)}let u=r.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??a)(u):u,eventType:i,explicitPayloadContentType:s,additionalHeaders:l}}}})),Se=r({EventStreamCodec:()=>j,EventStreamMarshaller:()=>J,EventStreamSerde:()=>$,HeaderMarshaller:()=>b,Int64:()=>v,MessageDecoderStream:()=>N,MessageEncoderStream:()=>F,SmithyMessageDecoderStream:()=>L,SmithyMessageEncoderStream:()=>z,UniversalEventStreamMarshaller:()=>G,eventStreamSerdeProvider:()=>Y,getChunkedStream:()=>V,getMessageUnmarshaller:()=>U,getUnmarshalledStream:()=>ge,iterableToReadableStream:()=>Z,readableStreamToIterable:()=>X,resolveEventStreamSerdeConfig:()=>Q,universalEventStreamSerdeProvider:()=>K}),Ce=n((()=>{M(),D(),y(),P(),I(),R(),B(),ve(),ye(),q(),H(),W(),be(),xe()}));export{M as A,L as C,N as D,I as E,_ as F,g as I,D as M,v as N,P as O,y as P,B as S,F as T,ge as _,be as a,H as b,Z as c,Y as d,ve as f,U as g,q as h,xe as i,b as j,j as k,X as l,K as m,Ce as n,Q as o,G as p,$ as r,ye as s,Se as t,J as u,W as v,R as w,z as x,V as y}; \ No newline at end of file diff --git a/dist/event-streams-CS62lFqe.js b/dist/event-streams-CS62lFqe.js new file mode 100644 index 00000000..42be4c31 --- /dev/null +++ b/dist/event-streams-CS62lFqe.js @@ -0,0 +1 @@ +import{n as e,r as t}from"./event-streams-CNnKJLt8.js";e();export{t as EventStreamSerde}; \ No newline at end of file diff --git a/dist/event-streams-CTAMtwD0.js b/dist/event-streams-CTAMtwD0.js deleted file mode 100644 index b087084b..00000000 --- a/dist/event-streams-CTAMtwD0.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./chunk-BTyA9uPd.js";import{t}from"./dist-cjs-GIhSYq7f.js";var n,r,i=e((()=>{n=t(),r=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){let i=this.marshaller,a=t.getEventStreamMember(),o=t.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(e.body,async e=>{let r=``;for(let t in e)if(t!==`__type`){r=t;break}let i=e[r].body;if(r===`initial-response`){let e=await this.deserializer.read(t,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let t=o[r];if(t.isStructSchema()){let a={},o=!1;for(let[s,c]of t.structIterator()){let{eventHeader:t,eventPayload:l}=c.getMergedTraits();if(o||=!!(t||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??n.toUtf8)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(t){let t=e[r].headers[s]?.value;t!=null&&(c.isNumericSchema()?t&&typeof t==`object`&&`bytes`in t?a[s]=BigInt(t.toString()):a[s]=Number(t):a[s]=t)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(t,i)}}else return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!t)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,t,r){let i=this.serializer,a=e,o=null,s,c=t.getSchema()[4].includes(e),l={};if(c){let n=t.getMemberSchema(e);if(n.isStructSchema()){for(let[t,i]of n.structIterator()){let{eventHeader:n,eventPayload:a}=i.getMergedTraits();if(a)o=t;else if(n){let n=r[e][t],a=`binary`;i.isNumericSchema()?a=(-2)**31<=n&&n<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),n!=null&&(l[t]={type:a,value:n},delete r[e][t])}}if(o!==null){let t=n.getMemberSchema(o);t.isBlobSchema()?s=`application/octet-stream`:t.isStringSchema()&&(s=`text/plain`),i.write(t,r[e][o])}else i.write(n,r[e])}else if(n.isUnitSchema())i.write(n,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[t,n]=r[e];a=t,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??n.fromUtf8)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}}}));e((()=>{i()}))();export{r as EventStreamSerde}; \ No newline at end of file diff --git a/dist/httpAuthSchemes-D66OtRTv.js b/dist/httpAuthSchemes-D66OtRTv.js new file mode 100644 index 00000000..e7ab0e80 --- /dev/null +++ b/dist/httpAuthSchemes-D66OtRTv.js @@ -0,0 +1,19 @@ +import{a as e,n as t,r as n,t as r}from"./chunk-BTyA9uPd.js";import{C as i,S as a,Z as o,b as s,k as c,n as l,y as u}from"./client-CtZmAvVy.js";import{Bt as d,Ct as f,Dn as p,Et as m,It as h,Lt as g,Mt as _,Pt as ee,Tt as te,Xt as v,Z as y,ct as b,fn as x,i as ne,in as S,j as re,jn as ie,jt as C,kn as ae,kt as w,n as T,nn as E,on as D,ot as O,pt as oe,r as k,wt as se,xt as A,yt as j}from"./serde-Bngt0OLn.js";import{E as ce,O as M,S as N,b as P,f as le,g as F,m as ue,n as I,t as L,u as R,w as z}from"./protocols-D7c0rc_2.js";function B(e){return typeof Buffer<`u`?Buffer.alloc(e):new Uint8Array(e)}function de(e){return e[V]=!0,e}var V,fe=t((()=>{V=Symbol(`@smithy/core/cbor::tagSymbol`)}));function pe(e){W=e,G=new DataView(W.buffer,W.byteOffset,W.byteLength)}function H(e,t){if(e>=t)throw Error(`unexpected end of (decode) payload.`);let n=(W[e]&224)>>5,r=W[e]&31;switch(n){case 0:case 1:case 6:let i,a;if(r<24)i=r,a=1;else switch(r){case 24:case 25:case 26:case 27:let n=Ae[r],o=n+1;if(a=o,t-e>7,r=(e&124)>>2,i=(e&3)<<8|t,a=n===0?1:-1,o,s;if(r===0){if(i===0)return 0;o=2**-14,s=0}else if(r===31)return i===0?a*(1/0):NaN;else o=2**(r-15),s=1;return s+=i/1024,o*s*a}function _e(e,t){let n=W[e]&31;if(n<24)return K=1,n;if(n===24||n===25||n===26||n===27){let r=Ae[n];if(K=r+1,t-e>5,a=W[e]&31;if(i!==3)throw Error(`unexpected major type ${i} in indefinite string.`);if(a===31)throw Error(`nested indefinite string.`);let o=be(e,t);e+=K;for(let e=0;e>5,a=W[e]&31;if(i!==2)throw Error(`unexpected major type ${i} in indefinite string.`);if(a===31)throw Error(`nested indefinite string.`);let o=be(e,t);e+=K;for(let e=0;e=t)throw Error(`unexpected end of map payload.`);let n=(W[e]&224)>>5;if(n!==3)throw Error(`unexpected major type ${n} for map key at index ${e}.`);let r=H(e,t);e+=K;let i=H(e,t);e+=K,a[r]=i}return K=r+(e-i),a}function we(e,t){e+=1;let n=e,r={};for(;e=t)throw Error(`unexpected end of map payload.`);if(W[e]===255)return K=e-n+2,r;let i=(W[e]&224)>>5;if(i!==3)throw Error(`unexpected major type ${i} for map key.`);let a=H(e,t);e+=K;let o=H(e,t);e+=K,r[a]=o}throw Error(`expected break marker.`)}function Te(e,t){let n=W[e]&31;switch(n){case 21:case 20:return K=1,n===21;case 22:return K=1,null;case 23:return K=1,null;case 25:if(t-e<3)throw Error(`incomplete float16 at end of buf.`);return K=3,ge(W[e+1],W[e+2]);case 26:if(t-e<5)throw Error(`incomplete float32 at end of buf.`);return K=5,G.getFloat32(e+1);case 27:if(t-e<9)throw Error(`incomplete float64 at end of buf.`);return K=9,G.getFloat64(e+1);default:throw Error(`unexpected minor value ${n}.`)}}function Ee(e){if(typeof e==`number`)return e;let t=Number(e);return-(2**53-1)<=t&&t<=2**53-1?t:e}var De,Oe,W,G,ke,K,Ae,je=t((()=>{k(),fe(),De=typeof TextDecoder<`u`,Oe=typeof Buffer<`u`,W=B(0),G=new DataView(W.buffer,W.byteOffset,W.byteLength),ke=De?new TextDecoder:null,K=0,Ae={24:1,25:2,26:4,27:8}}));function Me(e){J.byteLength-X=0,n=+!t,r=t?e:-e-1;r<24?J[X++]=n<<5|r:r<256?(J[X++]=n<<5|24,J[X++]=r):r<65536?(J[X++]=n<<5|25,J[X++]=r>>8,J[X++]=r):r<4294967296?(J[X++]=n<<5|26,Y.setUint32(X,r),X+=4):(J[X++]=n<<5|27,Y.setBigUint64(X,BigInt(r)),X+=8);continue}J[X++]=251,Y.setFloat64(X,e),X+=8;continue}else if(typeof e==`bigint`){let t=e>=0,n=+!t,r=t?e:-e-BigInt(1),i=Number(r);if(i<24)J[X++]=n<<5|i;else if(i<256)J[X++]=n<<5|24,J[X++]=i;else if(i<65536)J[X++]=n<<5|25,J[X++]=i>>8,J[X++]=i&255;else if(i<4294967296)J[X++]=n<<5|26,Y.setUint32(X,i),X+=4;else if(r=0;)n[n.byteLength-a]=Number(i&BigInt(255)),i>>=BigInt(8);Me(n.byteLength*2),J[X++]=t?194:195,Ie?q(2,Buffer.byteLength(n)):q(2,n.byteLength),J.set(n,X),X+=n.byteLength}continue}else if(e===null){J[X++]=246;continue}else if(typeof e==`boolean`){J[X++]=224|(e?21:20);continue}else if(e===void 0)throw Error(`@smithy/core/cbor: client may not serialize undefined value.`);else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n)t.push(e[n]);q(4,e.length);continue}else if(typeof e.byteLength==`number`){Me(e.length*2),q(2,e.length),J.set(e,X),X+=e.byteLength;continue}else if(typeof e==`object`){if(e instanceof O){let n=e.string.indexOf(`.`),r=n===-1?0:n-e.string.length+1,i=BigInt(e.string.replace(`.`,``));J[X++]=196,t.push(i),t.push(r),q(4,2);continue}if(e[V])if(`tag`in e&&`value`in e){t.push(e.value),q(6,e.tag);continue}else throw Error(`tag encountered with missing fields, need 'tag' and 'value', found: `+JSON.stringify(e));let n=Object.keys(e);for(let r=n.length-1;r>=0;--r){let i=n[r];t.push(e[i]),t.push(i)}q(5,n.length);continue}throw Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}var Ie,J,Y,X,Le=t((()=>{k(),fe(),Ie=typeof Buffer<`u`,J=B(2048),Y=new DataView(J.buffer,J.byteOffset,J.byteLength),X=0})),Z,Re=t((()=>{je(),Le(),Z={deserialize(e){return pe(e),H(0,e.length)},serialize(e){try{return Fe(e),Ne()}catch(e){throw Ne(),e}},resizeEncodingBuffer(e){Pe(e)}}})),ze,Be,Ve=t((()=>{fe(),ze=e=>de({tag:1,value:e.getTime()/1e3}),Be=(e,t)=>{let n=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t};if(t.__type!==void 0)return n(t.__type);let r;for(let e in t)if(e.toLowerCase()===`code`){r=e;break}if(r&&t[r]!==void 0)return n(t[r])}})),He,Ue,We,Ge=t((()=>{L(),E(),k(),Re(),Ve(),He=class extends z{createSerializer(){let e=new Ue;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new We;return e.setSerdeContext(this.serdeContext),e}},Ue=class extends z{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){let n=D.of(e);if(t==null)return n.isIdempotencyToken()?T():t;if(n.isBlobSchema())return typeof t==`string`?(this.serdeContext?.base64Decoder??ee)(t):t;if(n.isTimestampSchema())return ze(typeof t==`number`||typeof t==`bigint`?new Date(Number(t)/1e3|0):t);if(typeof t==`function`||typeof t==`object`){let e=t;if(n.isListSchema()&&Array.isArray(e)){let t=!!n.getMergedTraits().sparse,r=[],i=0;for(let a of e){let e=this.serialize(n.getValueSchema(),a);(e!=null||t)&&(r[i++]=e)}return r}if(e instanceof Date)return ze(e);let r={};if(n.isMapSchema()){let t=!!n.getMergedTraits().sparse;for(let i in e){let a=this.serialize(n.getValueSchema(),e[i]);(a!=null||t)&&(r[i]=a)}}else if(n.isStructSchema()){for(let[t,i]of n.structIterator()){let n=this.serialize(i,e[t]);n!=null&&(r[t]=n)}if(n.isUnionSchema()&&Array.isArray(e.$unknown)){let[t,n]=e.$unknown;r[t]=n}else if(typeof e.__type==`string`)for(let t in e)t in r||(r[t]=this.serialize(15,e[t]))}else if(n.isDocumentSchema())for(let t in e)r[t]=this.serialize(n.getValueSchema(),e[t]);else if(n.isBigDecimalSchema())return e;return r}return t}flush(){let e=Z.serialize(this.value);return this.value=void 0,e}},We=class extends z{read(e,t){let n=Z.deserialize(t);return this.readValue(e,n)}readValue(e,t){let n=D.of(e);if(n.isTimestampSchema()){if(typeof t==`number`)return oe(t);if(typeof t==`object`&&t.tag===1&&`value`in t)return oe(t.value)}if(n.isBlobSchema())return typeof t==`string`?(this.serdeContext?.base64Decoder??ee)(t):t;if(t===void 0||typeof t==`boolean`||typeof t==`number`||typeof t==`string`||typeof t==`bigint`||typeof t==`symbol`)return t;if(typeof t==`object`){if(t===null)return null;if(`byteLength`in t||t instanceof Date||n.isDocumentSchema())return t;if(n.isListSchema()){let e=[],r=n.getValueSchema();for(let n of t){let t=this.readValue(r,n);e.push(t)}return e}let e={};if(n.isMapSchema()){let r=n.getValueSchema();for(let n in t)e[n]=this.readValue(r,t[n])}else if(n.isStructSchema()){let r=n.isUnionSchema(),i;if(r){i=new Set;for(let e in t)e!==`__type`&&i.add(e)}for(let[a,o]of n.structIterator())r&&i.delete(a),t[a]!=null&&(e[a]=this.readValue(o,t[a]));if(r&&i?.size===1){let n=!0;for(let t in e){n=!1;break}if(n){let n=i.values().next().value;e.$unknown=[n,t[n]]}}else if(typeof t.__type==`string`)for(let n in t)n in e||(e[n]=t[n])}else if(t instanceof O)return t;return e}else return t}}})),Ke,qe=t((()=>{g(),L(),E(),Ge(),Ve(),Ke=class extends P{codec=new He;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return`smithy.protocols#rpcv2Cbor`}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);if(Object.assign(r.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":`rpc-v2-cbor`,accept:this.getDefaultContentType()}),x(e.input)===`unit`)delete r.body,delete r.headers[`content-type`];else{r.body||=(this.serializer.write(15,{}),this.serializer.flush());try{r.headers[`content-length`]=String(r.body.byteLength)}catch{}}let{service:i,operation:a}=ie(n),o=`/service/${i}/operation/${a}`;return r.path.endsWith(`/`)?r.path+=o.slice(1):r.path+=o,r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Be(n,r)??`Unknown`,o={$metadata:i,$fault:n.statusCode<=500?`client`:`server`},s=this.options.defaultNamespace;a.includes(`#`)&&([s]=a.split(`#`));let c=this.compositeErrorRegistry,l=S.for(s);c.copyFrom(l);let u;try{u=c.getSchema(a)}catch{r.Message&&(r.message=r.Message);let e=S.for(`smithy.ts.sdk.synthetic.`+s);c.copyFrom(e);let t=c.getBaseException();if(t){let e=c.getErrorCtor(t);throw Object.assign(new e({name:a}),o,r)}throw Object.assign(Error(a),o,r)}let d=D.of(u),f=c.getErrorCtor(u),p=r.message??r.Message??`Unknown`,m=new f({}),h={};for(let[e,t]of d.structIterator())h[e]=this.deserializer.readValue(t,r[e]);throw Object.assign(m,o,{$fault:d.getMergedTraits().error,message:p},h)}getDefaultContentType(){return`application/cbor`}}})),Je=t((()=>{Re(),fe(),Ve(),qe(),Ge()})),Ye,Xe=t((()=>{g(),E(),Ye=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=S.for(r),a=S.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=v(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return v(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;tD.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}})),Ze,Qe=t((()=>{Je(),E(),Xe(),Ze=class extends Ke{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t}),this.awsQueryCompatible=!!n,this.mixin=new Ye(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),r}async handleError(e,t,n,r,i){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);let a=(()=>{let e=n.headers[`x-amzn-query-error`];return e&&this.awsQueryCompatible?e.split(`;`)[0]:Be(n,r)??`Unknown`})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),c=D.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({}),d={};for(let[e,t]of c.structIterator())r[e]!=null&&(d[e]=this.deserializer.readValue(t,r[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,d),this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}}})),$e,et,tt,nt=t((()=>{$e=e=>{if(e==null)return e;if(typeof e==`number`||typeof e==`bigint`){let t=Error(`Received number ${e} where a string was expected.`);return t.name=`Warning`,console.warn(t),String(e)}if(typeof e==`boolean`){let t=Error(`Received boolean ${e} where a string was expected.`);return t.name=`Warning`,console.warn(t),String(e)}return e},et=e=>{if(e==null)return e;if(typeof e==`string`){let t=e.toLowerCase();if(e!==``&&t!==`false`&&t!==`true`){let t=Error(`Received string "${e}" where a boolean was expected.`);t.name=`Warning`,console.warn(t)}return e!==``&&t!==`false`}return e},tt=e=>{if(e==null)return e;if(typeof e==`string`){let t=Number(e);if(t.toString()!==e){let t=Error(`Received string "${e}" where a number was expected.`);return t.name=`Warning`,console.warn(t),e}return t}return e}})),Q,rt=t((()=>{Q=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}})),it,at=t((()=>{it=class{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),r=new Set(n);r.delete(`__type`),this.keys=r}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}}));function ot(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new O(e,`bigDecimal`):BigInt(e)}return t}var st=t((()=>{k()})),ct,lt=t((()=>{L(),k(),ct=(e,t)=>M(e,t).then(e=>(t?.utf8Encoder??w)(e))})),ut,dt,ft,pt,mt,ht,gt,_t=t((()=>{lt(),ut=(e,t)=>ct(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),dt=async(e,t)=>{let n=await ut(e,t);return n.message=n.message??n.Message,n},ft=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),pt=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},mt=(e,t)=>gt(e,t,[`header`,`code`,`type`]),ht=(e,t,n=!1)=>gt(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),gt=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=ft(e??{},`x-amzn-errortype`);if(n!==void 0)return pt(e[n]);break;case`code`:let r=ft(t??{},`code`);if(r&&t[r]!==void 0)return pt(t[r]);break;case`type`:if(t?.__type!==void 0)return pt(t.__type);break}}})),vt,yt=t((()=>{L(),E(),k(),rt(),at(),st(),_t(),vt=class extends Q{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,ot):await ut(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=D.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new it(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return ee(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?j.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(F(r,this.settings)){case 5:return se(t);case 6:return te(t);case 7:return f(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof O)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new O(e.string,e.type):new O(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof O?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}}})),bt,xt=t((()=>{k(),bt=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof O){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}}})),St,Ct=t((()=>{L(),E(),k(),rt(),xt(),St=class extends Q{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=D.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new bt;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=D.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=D.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??C)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(F(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return A(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof O&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return T();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?j.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??C)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof O?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}}})),wt,Tt=t((()=>{rt(),yt(),Ct(),wt=class extends Q{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new St(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new vt(this.settings);return e.setSerdeContext(this.serdeContext),e}}})),Et,Dt=t((()=>{L(),E(),Xe(),Tt(),_t(),Et=class extends P{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new wt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Ye(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(x(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=ht(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=D.of(s),u=r.message??r.Message??`UnknownError`,d=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),f={},p=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(f[e]=p.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,f),this.mixin.decorateServiceException(Object.assign(d,c,{$fault:l.getMergedTraits().error,message:u},f),r)}}})),Ot,kt=t((()=>{Dt(),Ot=class extends Et{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_0`}getJsonRpcVersion(){return`1.0`}getDefaultContentType(){return`application/x-amz-json-1.0`}}})),At,jt=t((()=>{Dt(),At=class extends Et{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}}})),Mt,Nt=t((()=>{L(),E(),Xe(),Tt(),_t(),Mt=class extends N{serializer;deserializer;codec;mixin=new Ye;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new wt(n),this.serializer=new R(this.codec.createSerializer(),n),this.deserializer=new le(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=D.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=D.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=mt(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=D.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;d[e]=f.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/json`}}})),Pt,Ft=t((()=>{k(),Pt=e=>{if(e!=null)return typeof e==`object`&&`__type`in e&&delete e.__type,m(e)}})),It=r(((e,t)=>{(()=>{var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{XMLBuilder:()=>Ve,XMLParser:()=>je,XMLValidator:()=>He});let r=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function i(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!te(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,_(`InvalidTag`,t,v(e,a))}let l=p(e,a);if(!1===l)return _(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,v(e,a));let m=l.value;if(a=l.index,m[m.length-1]===`/`){let n=a-m.length;m=m.substring(0,m.length-1);let i=h(m,t);if(!0!==i)return _(i.err.code,i.err.msg,v(e,n+i.err.line));r=!0}else if(s){if(!l.tagClosed)return _(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,v(e,a));if(m.trim().length>0)return _(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,v(e,o));if(n.length===0)return _(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,v(e,o));{let t=n.pop();if(c!==t.tagName){let n=v(e,t.tagStartPos);return _(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,v(e,o))}n.length==0&&(i=!0)}}else{let s=h(m,t);if(!0!==s)return _(s.err.code,s.err.msg,v(e,a-m.length+s.err.line));if(!0===i)return _(`InvalidXml`,`Multiple possible root nodes found.`,v(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0)||_(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):_(`InvalidXml`,`Start tag expected.`,1)}function u(e){return e===` `||e===` `||e===` +`||e===`\r`}function d(e,t){let n=t;for(;t5&&r===`xml`)return _(`InvalidXml`,`XML declaration allowed only at the start of the document.`,v(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}continue}return t}function f(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function p(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``&&{value:n,index:t,tagClosed:i}}let m=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function h(e,t){let n=i(e,m),r={};for(let e=0;eo.includes(e)?`__`+e:e,x={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:b};function ne(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(o.some(e=>n===e.toLowerCase())||s.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function S(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:S(!0)}let re=function(e){let t=Object.assign({},x,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&ne(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=b),t.processEntities=S(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t},ie;ie=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;class C{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][ie]={startIndex:t})}static getMetaDataSymbol(){return ie}}class ae{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]!==`O`||e[t+4]!==`C`||e[t+5]!==`T`||e[t+6]!==`Y`||e[t+7]!==`P`||e[t+8]!==`E`)throw Error(`Invalid Tag instead of DOCTYPE`);{t+=9;let i=1,a=!1,o=!1,s=``;for(;t`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];else{if(a&&T(e,`!ENTITY`,t)){let i,a;if(t+=7,[i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),a.indexOf(`&`)===-1){if(!1!==this.options.enabled&&this.options.maxEntityCount!=null&&r>=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&T(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&T(e,`!ATTLIST`,t))t+=8;else if(a&&T(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!T(e,`!--`,t))throw Error(`Invalid DOCTYPE`);o=!0}i++,s=``}if(i!==0)throw Error(`Unclosed DOCTYPE`)}return{entities:n,i:t}}readEntityExp(e,t){let n=t=w(e,t);for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[r,i,--t]}readNotationExp(e,t){let n=t=w(e,t);for(;t{for(;t0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class A{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new se(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&!0===t){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length!==0&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}}class j{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n`,lt:`<`,quot:`"`},P={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},le=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function F(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(le.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function ue(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}let I=`external`,L=`base`,R=Object.freeze({allow:0,leave:1,remove:2,throw:3}),z=new Set([9,10,13]);class B{constructor(e={}){var t;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=(t=this._limit.applyLimitsTo??I)&&t!==I?t===`all`?new Set([`all`]):t===L?new Set([L]):Array.isArray(t)?new Set(t):new Set([I]):new Set([I]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=ue(N,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let n=function(e){if(!e)return{xmlVersion:1,onLevel:R.allow,nullLevel:R.remove};let t=e.xmlVersion===1.1?1.1:1,n=R[e.onNCR]??R.allow,r=R[e.nullNCR]??R.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,R.remove)}}(e.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))F(t);this._externalMap=ue(e)}addExternalEntity(e,t){F(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=ue(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=I);else{if(this._leaveSet.has(l)){a++;continue}if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=L}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}}if(u!==void 0){if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else a++}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!z.has(e)?R.remove:-1}_applyNCRAction(e,t,n){switch(e){case R.allow:return String.fromCodePoint(n);case R.remove:return``;case R.leave:return;case R.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}class fe{constructor(e,t){var n;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ge,this.parseTextData=pe,this.resolveNameSpace=H,this.buildAttributesMap=he,this.isItStopNode=be,this.replaceEntitiesValue=ve,this.readStopNodeData=Ce,this.saveTextToParentTag=ye,this.addChild=_e,this.ignoreAttributesFn=typeof(n=this.options.ignoreAttributes)==`function`?n:Array.isArray(n)?e=>{for(let t of n)if(typeof t==`string`&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let r={...N};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?r=this.options.htmlEntities:!0===this.options.htmlEntities&&(r={...P,...M}),this.entityDecoder=new B({namedEntities:{...r,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new A,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new ce;let i=this.options.stopNodes;if(i&&i.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?we(e,s.parseTagValue,s.numberParseOptions):e}}function H(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}let me=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function he(e,t,n,r=!1){let a=this.options;if(!0===r||!0!==a.ignoreAttributes&&typeof e==`string`){let r=i(e,me),o=r.length,s={},c=Array(o),l=!1,u={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=Te(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Se(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new C(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==i.ignoreAttributes&&(e[`:@`]=a),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=U(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=U(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Se(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=Te(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h,g=null;h=V(l),c!==t.tagname&&this.matcher.push(c,{},h),c!==u&&d&&(g=this.buildAttributesMap(u,this.matcher,c),g&&de(g,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new C(c);g&&(r[`:@`]=g),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=Te(i.transformTagName,c,u,i));let e=new C(c);g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(i.unpairedTagsSet.has(c)){let e=new C(c);g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}{let e=new C(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),g&&(e[`:@`]=g),this.addChild(n,e,this.readonlyMatcher,_),n=e}}r=``,s=f}}}else r+=e[s];return t.child};function _e(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);!1===a||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function ve(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function ye(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[`:@`]&&Object.keys(t[`:@`]).length!==0,r))!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function be(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function U(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i+t.length-1}function xe(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i}function Se(e,t,n,r=`>`){let i=function(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=U(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=U(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=U(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Se(e,n,`>`);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function we(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`||t!==`false`&&function(e,t={}){if(t=Object.assign({},oe,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`)return 0;if(t.hex&&D.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}(n);if(isFinite(n)){if(n.includes(`e`)||n.includes(`E`))return function(e,t,n){if(!n.eNotation)return e;let r=t.match(k);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:(o.length!==1||!r[3].startsWith(`.${a}`)&&r[3][0]!==a)&&o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}return e}(e,n,t);{let i=O.exec(n);if(i){let a=i[1]||``,o=i[2],s=((r=i[3])&&r.indexOf(`.`)!==-1&&((r=r.replace(/0+$/,``))===`.`?r=`0`:r[0]===`.`?r=`0`+r:r[r.length-1]===`.`&&(r=r.substring(0,r.length-1))),r),c=a?e[o.length+1]===`.`:e[o.length]===`.`;if(!t.leadingZeros&&(o.length>1||o.length===1&&!c))return e;{let r=Number(n),i=String(r);if(r===0)return r;if(i.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return i===`0`||i===s||i===`${a}${s}`?r:e;let c=o?s:n;return o?c===i||a+c===i?r:e:c===i||c===a+i?r:e}}return e}}var r;return function(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}(e,Number(n),t)}(e,n)}return e===void 0?``:e}function Te(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return{tagName:t=Ee(t,r),tagExp:n}}function Ee(e,t){if(s.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return o.includes(e)?t.onDangerousProperty(e):e}let De=C.getMetaDataSymbol();function Oe(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function W(e,t,n,r){return G(e,t,n,r)}function G(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function ke(e){let t=Object.keys(e);for(let e=0;e0&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=X(n,t),n}return``}for(let s=0;s/g,`]]]]>`)}]]>`,o=!1,r.pop();continue}if(l===t.commentPropName){let e=c[l][0][t.textNodeName];a+=n+`\x3c!--${String(e).replace(/--/g,`- -`).replace(/-$/,`- `)}--\x3e`,o=!0,r.pop();continue}if(l[0]===`?`){let e=J(c[`:@`],t,d),i=l===`?xml`?``:n,s=c[l][0][t.textNodeName];s=s.length===0?``:` `+s,a+=i+`<${l}${s}${e}?>`,o=!0,r.pop();continue}let f=n;f!==``&&(f+=t.indentBy);let p=n+`<${l}${J(c[`:@`],t,d)}`,m;m=d?q(c[l],t):Ne(c[l],t,f,r,i),t.unpairedTags.indexOf(l)===-1?m&&m.length!==0||!t.suppressEmptyNode?m&&m.endsWith(`>`)?a+=p+`>${m}${n}`:(a+=p+`>`,m&&n!==``&&(m.includes(`/>`)||m.includes(``):a+=p+`/>`:t.suppressUnpairedNode?a+=p+`>`:a+=p+`/>`,o=!0,r.pop()}return a}function Pe(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],r=!0);return r?n:null}function q(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r${r}`:n+=`<${a}${e}/>`}}}return n}function Fe(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];!0===i&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function Ie(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Z(e){if(this.options=Object.assign({},Le,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e{for(let n of t)if(typeof n==`string`&&e===n||n instanceof RegExp&&n.test(e))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Be),this.processTextOrObjNode=Re,this.options.format?(this.indentate=ze,this.tagEndChar=`> +`,this.newLine=` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function Re(e,t,n,r){let i=this.extractAttributes(e);if(r.push(t,i),this.checkStopNode(r)){let i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(i,t,a,n)}let a=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,a.attrStr,n,r):this.buildObjectNode(a.val,t,a.attrStr,n)}function ze(e){return this.options.indentBy.repeat(e)}function Be(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Z.prototype.build=function(e){if(this.options.preserveOrder)return Me(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new A;return this.j2x(e,0,t).val}},Z.prototype.j2x=function(e,t,n){let r=``,i=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let a=this.options.jPath?n.toString():n,o=this.checkStopNode(n);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(e[s]===void 0)this.isAttribute(s)&&(i+=``);else if(e[s]===null)this.isAttribute(s)||s===this.options.cdataPropName?i+=``:s[0]===`?`?i+=this.indentate(t)+`<`+s+`?`+this.tagEndChar:i+=this.indentate(t)+`<`+s+`/`+this.tagEndChar;else if(e[s]instanceof Date)i+=this.buildTextValNode(e[s],s,``,t,n);else if(typeof e[s]!=`object`){let c=this.isAttribute(s);if(c&&!this.ignoreAttributesFn(c,a))r+=this.buildAttrPairStr(c,``+e[s],o);else if(!c)if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,``+e[s]);i+=this.replaceEntitiesValue(t)}else{n.push(s);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[s];i+=n===``?this.indentate(t)+`<`+s+this.closeTag(s)+this.tagEndChar:this.indentate(t)+`<`+s+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=r===``?`<${n}${i}/>`:`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);t+=e===``?`<${n}${i}/>`:`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},Z.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];!0===i&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];!0===i&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},Z.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;{let i=``+e+i}},Z.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>/g,`]]]]>`);return this.indentate(r)+``+this.newLine}if(!1!==this.options.commentPropName&&t===this.options.commentPropName){let t=String(e).replace(/--/g,`- -`).replace(/-$/,`- `);return this.indentate(r)+`\x3c!--${t}--\x3e`+this.newLine}if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.EntityDecoderImpl=e.CURRENCY=e.COMMON_HTML=e.XML=void 0,e.XML={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},e.COMMON_HTML={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},e.CURRENCY={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`};let t=new Set(`!?\\/[]$%{}^&*()<>|+`);function n(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let n of e)if(t.has(n))throw Error(`[EntityReplacer] Invalid character '${n}' in entity name: "${e}"`);return e}function r(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}let i=`external`,a=`base`;function o(e){return!e||e===i?new Set([i]):e===`all`?new Set([`all`]):e===a?new Set([a]):Array.isArray(e)?new Set(e):new Set([i])}let s=Object.freeze({allow:0,leave:1,remove:2,throw:3}),c=new Set([9,10,13]);function l(e){if(!e)return{xmlVersion:1,onLevel:s.allow,nullLevel:s.remove};let t=e.xmlVersion===1.1?1.1:1,n=s[e.onNCR??`allow`]??s.allow,r=s[e.nullNCR??`remove`]??s.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,s.remove)}}e.EntityDecoderImpl=class{_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;constructor(t={}){this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck==`function`?t.postCheck:e=>e,this._limitTiers=o(this._limit.applyLimitsTo??i),this._numericAllowed=t.numericAllowed??!0,this._baseMap=r(e.XML,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let n=l(t.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))n(t);this._externalMap=r(e)}addExternalEntity(e,t){n(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=r(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===`1.1`||e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,o=0,s=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;s=r||e.charCodeAt(t)!==59){s++;continue}let d=e.slice(s+1,t);if(d.length===0){s++;continue}let f,p;if(this._removeSet.has(d))f=``,p===void 0&&(p=i);else if(this._leaveSet.has(d)){s++;continue}else if(d.charCodeAt(0)===35){let e=this._resolveNCR(d);if(e===void 0){s++;continue}f=e,p=a}else{let e=this._resolveName(d);f=e?.value,p=e?.tier}if(f===void 0){s++;continue}if(s>o&&n.push(e.slice(o,s)),n.push(f),o=t+1,s=o,u&&this._tierCounts(p)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let e=f.length-(d.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!c.has(e)?s.remove:-1}_applyNCRAction(e,t,n){switch(e){case s.allow:return String.fromCodePoint(n);case s.remove:return``;case s.leave:return;case s.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r{Object.defineProperty(e,"__esModule",{value:!0}),e.parseXML=a;let t=It(),n=Lt(),r=new n.EntityDecoderImpl({namedEntities:{...n.XML,...n.COMMON_HTML,...n.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),i=new t.XMLParser({attributeNamePrefix:``,processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:e=>{r.setExternalEntities(e)},addInputEntities:e=>{r.addInputEntities(e)},reset:()=>{r.reset()},decode:e=>r.decode(e),setXmlVersion:e=>void 0},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>t.trim()===``&&t.includes(` +`)?``:void 0,maxNestedTags:1/0});function a(e){return i.parse(e,!0)}})),zt=r((e=>{var t=Rt();let n=/[&<>"]/g,r={"&":`&`,"<":`<`,">":`>`,'"':`"`};function i(e){return e.replace(n,e=>r[e])}let a=/[&"'<>\r\n\u0085\u2028]/g,o={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function s(e){return e.replace(a,e=>o[e])}var c=class{value;constructor(e){this.value=e}toString(){return s(``+this.value)}},l=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new c(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${i(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}};e.parseXML=t.parseXML,e.XmlNode=l,e.XmlText=c})),Bt,Vt,Ht=t((()=>{Bt=zt(),g(),L(),E(),k(),rt(),at(),Vt=class extends Q{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new ue(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=D.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??w)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=D.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new it(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=(0,Bt.parseXML)(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),d(i)}return{}}}})),Ut,Wt=t((()=>{L(),E(),k(),rt(),Ut=class extends Q{settings;buffer;constructor(e){super(),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=D.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??C)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(T())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof O?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),F(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(A(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error(`@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.`);let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${ce(e)}=`}writeValue(e){this.buffer+=ce(e)}}})),Gt,Kt=t((()=>{L(),E(),Xe(),Ht(),Wt(),Gt=class extends P{options;serializer;deserializer;mixin=new Ye;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Ut(t),this.deserializer=new Vt(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(x(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=D.of(e.output),a={};if(n.statusCode>=300){let i=await M(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await M(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=D.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)({}),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}}})),qt,Jt=t((()=>{Kt(),qt=class extends Gt{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}}})),Yt=t((()=>{})),Xt,Zt,Qt,$t,en=t((()=>{Xt=zt(),g(),lt(),Zt=(e,t)=>ct(e,t).then(e=>{if(e.length){let t;try{t=(0,Xt.parseXML)(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),d(i)}return{}}),Qt=async(e,t)=>{let n=await Zt(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},$t=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`}})),$,tn,nn=t((()=>{$=zt(),L(),E(),k(),rt(),tn=class extends Q{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=D.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??ee)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=$.XmlNode.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=$.XmlNode.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=$.XmlNode.of(e);if(typeof n!=`string`)if(t instanceof $.XmlNode||t instanceof $.XmlText)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,u]=this.getXmlnsAttribute(e,r),d=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,u);else if(a.isMapSchema())this.writeMap(a,n,t,u);else if(a.isStructSchema()){let r=this.writeStruct(a,n,u);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=$.XmlNode.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,u),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&d(n,e);else{let r=$.XmlNode.of(i.xmlName??e.getMemberName());u&&r.addAttribute(l,u);for(let e of t)(s||e!=null)&&d(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),u=l.xmlName??`value`,d=!!l.sparse,f=!!a.xmlFlattened,[p,m]=this.getXmlnsAttribute(e,r),h=(e,t,n)=>{let r=$.XmlNode.of(s,t),[i,a]=this.getXmlnsAttribute(o,m);a&&r.addAttribute(i,a),e.addChildNode(r);let l=$.XmlNode.of(u);c.isListSchema()?this.writeList(c,n,l,m):c.isMapSchema()?this.writeMap(c,n,l,m,!0):c.isStructSchema()?l=this.writeStruct(c,n,m):this.writeSimpleInto(c,n,l,m),e.addChildNode(l)};if(f)for(let r in t){let i=t[r];if(d||i!=null){let t=$.XmlNode.of(a.xmlName??e.getMemberName());h(t,r,i),n.addChildNode(t)}}else{let r;i||(r=$.XmlNode.of(a.xmlName??e.getMemberName()),m&&r.addAttribute(p,m),n.addChildNode(r));for(let e in t){let a=t[e];if(d||a!=null){let t=$.XmlNode.of(`entry`);h(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=D.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??C)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(F(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=A(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=A(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof O?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?T():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=D.of(e),o=new $.XmlText(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}}})),rn,an=t((()=>{rt(),Ht(),nn(),rn=class extends Q{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new tn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Vt(this.settings);return e.setSerdeContext(this.serdeContext),e}}})),on,sn=t((()=>{L(),E(),Xe(),en(),an(),on=class extends N{codec;serializer;deserializer;mixin=new Ye;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new rn(t),this.serializer=new R(this.codec.createSerializer(),t),this.deserializer=new le(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=D.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=$t(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=D.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];d[e]=f.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}}})),cn=n({AwsEc2QueryProtocol:()=>qt,AwsJson1_0Protocol:()=>Ot,AwsJson1_1Protocol:()=>At,AwsJsonRpcProtocol:()=>Et,AwsQueryProtocol:()=>Gt,AwsRestJsonProtocol:()=>Mt,AwsRestXmlProtocol:()=>on,AwsSmithyRpcV2CborProtocol:()=>Ze,JsonCodec:()=>wt,JsonShapeDeserializer:()=>vt,JsonShapeSerializer:()=>St,QueryShapeSerializer:()=>Ut,XmlCodec:()=>rn,XmlShapeDeserializer:()=>Vt,XmlShapeSerializer:()=>tn,_toBool:()=>et,_toNum:()=>tt,_toStr:()=>$e,awsExpectUnion:()=>Pt,loadJsonRpcErrorCode:()=>ht,loadRestJsonErrorCode:()=>mt,loadRestXmlErrorCode:()=>$t,parseJsonBody:()=>ut,parseJsonErrorBody:()=>dt,parseXmlBody:()=>Zt,parseXmlErrorBody:()=>Qt}),ln=t((()=>{Qe(),nt(),kt(),jt(),Dt(),Nt(),Tt(),yt(),Ct(),Ft(),_t(),Jt(),Kt(),Yt(),Wt(),sn(),an(),Ht(),nn(),en()})),un=r((t=>{var n=(k(),e(ne)),r=(g(),e(h)),i=(L(),e(I)),a=class{format(e){let t=[];for(let r of Object.keys(e)){let i=n.fromUtf8(r);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of t)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case`long`:let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case`binary`:let a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(a.buffer);return o.set(e.value,3),o;case`string`:let l=n.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+l.byteLength));u.setUint8(0,7),u.setUint16(1,l.byteLength,!1);let d=new Uint8Array(u.buffer);return d.set(l,3),d;case`timestamp`:let f=new Uint8Array(9);return f[0]=8,f.set(c.fromNumber(e.value.valueOf()).bytes,1),f;case`uuid`:if(!s.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(n.fromHex(e.value.replace(/\-/g,``)),1),p}}},o;(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(o||={});let s=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var c=class e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&l(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&l(e),parseInt(n.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function l(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}let u=`X-Amz-Algorithm`,d=`X-Amz-Credential`,f=`X-Amz-Date`,p=`X-Amz-SignedHeaders`,m=`X-Amz-Expires`,_=`X-Amz-Signature`,ee=`X-Amz-Security-Token`,te=`authorization`,v=`x-amz-date`,y=`date`,b=[te,v,y],x=`x-amz-signature`,S=`x-amz-content-sha256`,re=`x-amz-security-token`,ie={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},C=/^proxy-/,ae=/^sec-/,w=[/^proxy-/i,/^sec-/i],T=`AWS4-HMAC-SHA256`,E=`AWS4-HMAC-SHA256-PAYLOAD`,D=`UNSIGNED-PAYLOAD`,O=`aws4_request`,oe=3600*24*7,se=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===x)continue;let a=i.escapeUri(r);t.push(a);let o=e[r];typeof o==`string`?n[a]=`${a}=${i.escapeUri(o)}`:Array.isArray(o)&&(n[a]=o.slice(0).reduce((e,t)=>e.concat([`${a}=${i.escapeUri(t)}`]),[]).sort().join(`&`))}return t.sort().map(e=>n[e]).filter(e=>e).join(`&`)},A=e=>j(e).toISOString().replace(/\.\d{3}Z$/,`Z`),j=e=>typeof e==`number`?new Date(e*1e3):typeof e==`string`?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var ce=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:i,sha256:a,uriEscapePath:o=!0}){this.service=i,this.sha256=a,this.uriEscapePath=o,this.applyChecksum=typeof e==`boolean`?e:!0,this.regionProvider=r.normalizeProvider(n),this.credentialProvider=r.normalizeProvider(t)}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method} +${this.getCanonicalPath(e)} +${se(e)} +${r.map(e=>`${e}:${t[e]}`).join(` +`)} + +${r.join(`;`)} +${n}`}async createStringToSign(e,t,r,i){let a=new this.sha256;a.update(n.toUint8Array(r));let o=await a.digest();return`${i} +${e} +${t} +${n.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split(`/`))n?.length!==0&&n!==`.`&&(n===`..`?t.pop():t.push(n));let n=`${e?.startsWith(`/`)?`/`:``}${t.join(`/`)}${t.length>0&&e?.endsWith(`/`)?`/`:``}`;return i.escapeUri(n).replace(/%2F/g,`/`)}return e}validateResolvedCredentials(e){if(typeof e!=`object`||typeof e.accessKeyId!=`string`||typeof e.secretAccessKey!=`string`)throw Error(`Resolved credential object is not valid`)}formatDate(e){let t=A(e).replace(/[\-:]/g,``);return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(`;`)}};let M={},N=[],P=(e,t,n)=>`${e}/${t}/${n}/${O}`,le=async(e,t,r,i,a)=>{let o=await ue(e,t.secretAccessKey,t.accessKeyId),s=`${r}:${i}:${a}:${n.toHex(o)}:${t.sessionToken}`;if(s in M)return M[s];for(N.push(s);N.length>50;)delete M[N.shift()];let c=`AWS4${t.secretAccessKey}`;for(let t of[r,i,a,O])c=await ue(e,c,t);return M[s]=c},F=()=>{N.length=0,Object.keys(M).forEach(e=>{delete M[e]})},ue=(e,t,r)=>{let i=new e(t);return i.update(n.toUint8Array(r)),i.digest()},R=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(e[i]==null)continue;let a=i.toLowerCase();(a in ie||t?.has(a)||C.test(a)||ae.test(a))&&(!n||n&&!n.has(a))||(r[a]=e[i].trim().replace(/\s+/g,` `))}return r},z=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===S)return e[t];if(t==null)return`e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`;if(typeof t==`string`||ArrayBuffer.isView(t)||n.isArrayBuffer(t)){let e=new r;return e.update(n.toUint8Array(t)),n.toHex(await e.digest())}return D},B=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},de=(e,t={})=>{let{headers:n,query:r={}}=i.HttpRequest.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();(i.slice(0,6)===`x-amz-`&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}},V=e=>{e=i.HttpRequest.clone(e);for(let t of Object.keys(e.headers))b.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var fe=class extends ce{headerFormatter=new a;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:a})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:s,signingRegion:c,signingService:l}=t,h=await this.credentialProvider();this.validateResolvedCredentials(h);let g=c??await this.regionProvider(),{longDate:te,shortDate:v}=this.formatDate(n);if(r>oe)return Promise.reject(`Signature version 4 presigned URLs must have an expiration date less than one week in the future`);let y=P(v,g,l??this.service),b=de(V(e),{unhoistableHeaders:a,hoistableHeaders:s});h.sessionToken&&(b.query[ee]=h.sessionToken),b.query[u]=T,b.query[d]=`${h.accessKeyId}/${y}`,b.query[f]=te,b.query[m]=r.toString(10);let x=R(b,i,o);return b.query[p]=this.getCanonicalHeaderList(x),b.query[_]=await this.getSignature(te,y,this.getSigningKey(h,g,v,l),this.createCanonicalRequest(b,x,await z(e,this.sha256))),b}async sign(e,t){return typeof e==`string`?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:i,signingRegion:a,signingService:o,eventStreamCredentials:s}){let c=a??await this.regionProvider(),{shortDate:l,longDate:u}=this.formatDate(r),d=P(l,c,o??this.service),f=await z({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);let m=[E,u,d,i,n.toHex(await p.digest()),f].join(` +`);return this.signString(m,{signingDate:r,signingRegion:c,signingService:o,eventStreamCredentials:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:i,eventStreamCredentials:a}={}){let o=a??await this.credentialProvider();this.validateResolvedCredentials(o);let s=r??await this.regionProvider(),{shortDate:c}=this.formatDate(t),l=new this.sha256(await this.getSigningKey(o,s,c,i));return l.update(n.toUint8Array(e)),n.toHex(await l.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:a}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let s=i??await this.regionProvider(),c=V(e),{longDate:l,shortDate:u}=this.formatDate(t),d=P(u,s,a??this.service);c.headers[v]=l,o.sessionToken&&(c.headers[re]=o.sessionToken);let f=await z(c,this.sha256);!B(S,c.headers)&&this.applyChecksum&&(c.headers[S]=f);let p=R(c,r,n),m=await this.getSignature(l,d,this.getSigningKey(o,s,u,a),this.createCanonicalRequest(c,p,f));return c.headers[te]=`${T} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${m}`,c}async getSignature(e,t,r,i){let a=await this.createStringToSign(e,t,i,T),o=new this.sha256(await r);return o.update(n.toUint8Array(a)),n.toHex(await o.digest())}getSigningKey(e,t,n,r){return le(this.sha256,e,n,t,r||this.service)}};t.ALGORITHM_IDENTIFIER=T,t.ALGORITHM_IDENTIFIER_V4A=`AWS4-ECDSA-P256-SHA256`,t.ALGORITHM_QUERY_PARAM=u,t.ALWAYS_UNSIGNABLE_HEADERS=ie,t.AMZ_DATE_HEADER=v,t.AMZ_DATE_QUERY_PARAM=f,t.AUTH_HEADER=te,t.CREDENTIAL_QUERY_PARAM=d,t.DATE_HEADER=y,t.EVENT_ALGORITHM_IDENTIFIER=E,t.EXPIRES_QUERY_PARAM=m,t.GENERATED_HEADERS=b,t.HOST_HEADER=`host`,t.KEY_TYPE_IDENTIFIER=O,t.MAX_CACHE_SIZE=50,t.MAX_PRESIGNED_TTL=oe,t.PROXY_HEADER_PATTERN=C,t.REGION_SET_PARAM=`X-Amz-Region-Set`,t.SEC_HEADER_PATTERN=ae,t.SHA256_HEADER=S,t.SIGNATURE_HEADER=x,t.SIGNATURE_QUERY_PARAM=_,t.SIGNED_HEADERS_QUERY_PARAM=p,t.SignatureV4=fe,t.SignatureV4Base=ce,t.TOKEN_HEADER=re,t.TOKEN_QUERY_PARAM=ee,t.UNSIGNABLE_PATTERNS=w,t.UNSIGNED_PAYLOAD=D,t.clearCredentialCache=F,t.createScope=P,t.getCanonicalHeaders=R,t.getCanonicalQuery=se,t.getPayloadHash=z,t.getSigningKey=le,t.hasHeader=B,t.moveHeadersToQuery=de,t.prepareRequest=V,t.signatureV4aContainer={SignatureV4a:null}})),dn,fn=t((()=>{L(),dn=e=>p.isInstance(e)?e.headers?.date??e.headers?.Date:void 0})),pn,mn=t((()=>{pn=e=>new Date(Date.now()+e)})),hn,gn=t((()=>{mn(),hn=(e,t)=>Math.abs(pn(t).getTime()-e)>=3e5})),_n,vn=t((()=>{gn(),_n=(e,t)=>{let n=Date.parse(e);return hn(n,t)?n-Date.now():t}})),yn=t((()=>{fn(),mn(),vn()})),bn,xn,Sn,Cn,wn=t((()=>{L(),yn(),bn=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},xn=async e=>{let t=bn(`context`,e.context),n=bn(`config`,e.config),r=t.endpointV2?.properties?.authSchemes?.[0];return{config:n,signer:await bn(`signer`,n.signer)(r),signingRegion:e?.signingRegion,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}},Sn=class{async sign(e,t,n){if(!ae.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await xn(n),{config:i,signer:a}=r,{signingRegion:o,signingName:s}=r,c=n.context;if(c?.authSchemes?.length??!1){let[e,t]=c.authSchemes;e?.name===`sigv4a`&&t?.name===`sigv4`&&(o=t?.signingRegion??o,s=t?.signingName??s)}return await a.sign(e,{signingDate:pn(i.systemClockOffset),signingRegion:o,signingService:s})}errorHandler(e){return t=>{let n=t.ServerTime??dn(t.$response);if(n){let r=bn(`config`,e.config),i=r.systemClockOffset;r.systemClockOffset=_n(n,r.systemClockOffset),r.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let n=dn(e);if(n){let e=bn(`config`,t.config);e.systemClockOffset=_n(n,e.systemClockOffset)}}},Cn=Sn})),Tn,En=t((()=>{L(),yn(),wn(),Tn=class extends Sn{async sign(e,t,n){if(!ae.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:i,signingRegion:a,signingRegionSet:o,signingName:s}=await xn(n),c=(await r.sigv4aSigningRegionSet?.()??o??[a]).join(`,`);return await i.sign(e,{signingDate:pn(r.systemClockOffset),signingRegion:c,signingService:s})}}})),Dn,On=t((()=>{Dn=e=>typeof e==`string`&&e.length>0?e.split(`,`).map(e=>e.trim()):[]})),kn,An=t((()=>{kn=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,`_`).toUpperCase()}`})),jn,Mn,Nn,Pn=t((()=>{On(),An(),jn=`AWS_AUTH_SCHEME_PREFERENCE`,Mn=`auth_scheme_preference`,Nn={environmentVariableSelector:(e,t)=>{if(t?.signingName&&kn(t.signingName)in e)return[`httpBearerAuth`];if(jn in e)return Dn(e[jn])},configFileSelector:e=>{if(Mn in e)return Dn(e[Mn])},default:[]}})),Fn,In,Ln=t((()=>{u(),re(),Fn=e=>(e.sigv4aSigningRegionSet=c(e.sigv4aSigningRegionSet),e),In={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(`,`).map(e=>e.trim());throw new y(`AWS_SIGV4A_SIGNING_REGION_SET not set in env.`,{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??``).split(`,`).map(e=>e.trim());throw new y(`sigv4a_signing_region_set not set in profile.`,{tryNextLink:!0})},default:void 0}}));function Rn(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:i(t,a,s):n?c(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function zn(e,t){if(t.configBound)return t;let n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var Bn,Vn,Hn,Un=t((()=>{l(),u(),Bn=un(),Vn=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(i){i&&i!==t&&i!==r&&(n=!0),t=i;let a=zn(e,Rn(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}));if(n&&!a.attributed){let e=typeof t==`object`&&!!t;r=async t=>{let n=await a(t);return e&&(!n.$source||Object.keys(n.$source).length===0)?o(n,`CREDENTIALS_CODE`,`e`):n},r.memoized=a.memoized,r.configBound=a.configBound,r.attributed=!0}else r=a},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:i=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:s}=e,l;return l=e.signer?c(e.signer):e.regionInfoProvider?()=>c(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{let{signingRegion:r,signingService:a}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||a||e.serviceId;let o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:i};return new(e.signerConstructor||Bn.SignatureV4)(o)}):async t=>{t=Object.assign({},{name:`sigv4`,signingName:e.signingName||e.defaultSigningName,signingRegion:await c(e.region)(),properties:{}},t);let n=t.signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;let a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:i};return new(e.signerConstructor||Bn.SignatureV4)(a)},Object.assign(e,{systemClockOffset:a,signingEscapePath:i,signer:l})},Hn=Vn})),Wn=t((()=>{wn(),En(),Pn(),Ln(),Un()})),Gn=n({AWSSDKSigV4Signer:()=>Cn,AwsSdkSigV4ASigner:()=>Tn,AwsSdkSigV4Signer:()=>Sn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Nn,NODE_SIGV4A_CONFIG_OPTIONS:()=>In,getBearerTokenEnvKey:()=>kn,resolveAWSSDKSigV4Config:()=>Hn,resolveAwsSdkSigV4AConfig:()=>Fn,resolveAwsSdkSigV4Config:()=>Vn,validateSigningProperties:()=>xn}),Kn=t((()=>{Wn(),An()}));export{Gt as _,In as a,Nt as b,Nn as c,En as d,Sn as f,cn as g,ln as h,Vn as i,Pn as l,un as m,Kn as n,Ln as o,wn as p,Un as r,Fn as s,Gn as t,Tn as u,Kt as v,Mt as y}; \ No newline at end of file diff --git a/dist/licenses.txt b/dist/licenses.txt index 87f44438..b9b05e63 100644 --- a/dist/licenses.txt +++ b/dist/licenses.txt @@ -1556,7 +1556,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/client-s3@3.1045.0 +@aws-sdk/client-s3@3.1054.0 Apache-2.0 Apache License Version 2.0, January 2004 @@ -1761,7 +1761,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/core@3.974.8 +@aws-sdk/core@3.974.15 Apache-2.0 Apache License Version 2.0, January 2004 @@ -1965,7 +1965,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/crc64-nvme@3.972.7 +@aws-sdk/crc64-nvme@3.972.9 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2169,7 +2169,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-env@3.972.34 +@aws-sdk/credential-provider-env@3.972.41 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2373,11 +2373,11 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-http@3.972.36 +@aws-sdk/credential-provider-http@3.972.43 Apache-2.0 Apache-2.0 -@aws-sdk/credential-provider-ini@3.972.38 +@aws-sdk/credential-provider-ini@3.972.46 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2581,11 +2581,11 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-login@3.972.38 +@aws-sdk/credential-provider-login@3.972.45 Apache-2.0 Apache-2.0 -@aws-sdk/credential-provider-node@3.972.39 +@aws-sdk/credential-provider-node@3.972.47 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2789,7 +2789,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-process@3.972.34 +@aws-sdk/credential-provider-process@3.972.41 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2993,7 +2993,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-sso@3.972.38 +@aws-sdk/credential-provider-sso@3.972.45 Apache-2.0 Apache License Version 2.0, January 2004 @@ -3197,7 +3197,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/credential-provider-web-identity@3.972.38 +@aws-sdk/credential-provider-web-identity@3.972.45 Apache-2.0 Apache License Version 2.0, January 2004 @@ -3401,7 +3401,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/middleware-bucket-endpoint@3.972.10 +@aws-sdk/middleware-bucket-endpoint@3.972.17 Apache-2.0 Apache License Version 2.0, January 2004 @@ -3606,7 +3606,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-expect-continue@3.972.10 +@aws-sdk/middleware-expect-continue@3.972.14 Apache-2.0 Apache License Version 2.0, January 2004 @@ -3811,7 +3811,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-flexible-checksums@3.974.16 +@aws-sdk/middleware-flexible-checksums@3.974.23 Apache-2.0 Apache License Version 2.0, January 2004 @@ -4016,7 +4016,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-host-header@3.972.10 +@aws-sdk/middleware-location-constraint@3.972.11 Apache-2.0 Apache License Version 2.0, January 2004 @@ -4206,7 +4206,7 @@ Apache-2.0 same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -4221,7 +4221,7 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-location-constraint@3.972.10 +@aws-sdk/middleware-sdk-s3@3.972.44 Apache-2.0 Apache License Version 2.0, January 2004 @@ -4411,7 +4411,7 @@ Apache-2.0 same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -4426,9 +4426,9 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-logger@3.972.10 +@aws-sdk/middleware-ssec@3.972.11 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -4616,7 +4616,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -4630,7 +4630,12 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/middleware-recursion-detection@3.972.11 + +@aws-sdk/nested-clients@3.997.13 +Apache-2.0 +Apache-2.0 + +@aws-sdk/signature-v4-multi-region@3.996.30 Apache-2.0 Apache License Version 2.0, January 2004 @@ -4835,9 +4840,9 @@ Apache-2.0 limitations under the License. -@aws-sdk/middleware-sdk-s3@3.972.37 +@aws-sdk/token-providers@3.1056.0 Apache-2.0 - Apache License +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -5025,7 +5030,7 @@ Apache-2.0 same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -5039,10 +5044,9 @@ Apache-2.0 See the License for the specific language governing permissions and limitations under the License. - -@aws-sdk/middleware-ssec@3.972.10 +@aws-sdk/types@3.973.9 Apache-2.0 - Apache License +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -5244,10 +5248,9 @@ Apache-2.0 See the License for the specific language governing permissions and limitations under the License. - -@aws-sdk/middleware-user-agent@3.972.38 +@aws-sdk/util-locate-window@3.965.5 Apache-2.0 - Apache License +Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -5435,7 +5438,7 @@ Apache-2.0 same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -5449,12 +5452,7 @@ Apache-2.0 See the License for the specific language governing permissions and limitations under the License. - -@aws-sdk/nested-clients@3.997.6 -Apache-2.0 -Apache-2.0 - -@aws-sdk/region-config-resolver@3.972.13 +@aws-sdk/xml-builder@3.972.26 Apache-2.0 Apache License Version 2.0, January 2004 @@ -5658,9 +5656,10 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@aws-sdk/signature-v4-multi-region@3.996.25 +@aws/lambda-invoke-store@0.2.4 Apache-2.0 - Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -5835,10459 +5834,346 @@ Apache-2.0 incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. +@azure/abort-controller@2.1.2 +MIT +The MIT License (MIT) - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +Copyright (c) 2020 Microsoft - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - http://www.apache.org/licenses/LICENSE-2.0 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +@azure/core-auth@1.10.1 +MIT +Copyright (c) Microsoft Corporation. -@aws-sdk/token-providers@3.1041.0 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +MIT License - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 1. Definitions. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +@azure/core-client@1.10.1 +MIT +Copyright (c) Microsoft Corporation. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +MIT License - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +@azure/core-http-compat@2.3.2 +MIT +Copyright (c) Microsoft Corporation. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +MIT License - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +@azure/core-lro@2.7.2 +MIT +The MIT License (MIT) - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +Copyright (c) 2020 Microsoft - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws-sdk/types@3.973.8 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws-sdk/util-arn-parser@3.972.3 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws-sdk/util-endpoints@3.996.8 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws-sdk/util-locate-window@3.965.5 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws-sdk/util-user-agent-browser@3.972.10 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@aws-sdk/util-user-agent-node@3.973.24 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@aws-sdk/xml-builder@3.972.22 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@aws/lambda-invoke-store@0.2.4 -Apache-2.0 - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - -@azure/abort-controller@2.1.2 -MIT -The MIT License (MIT) - -Copyright (c) 2020 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-auth@1.10.1 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-client@1.10.1 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-http-compat@2.3.2 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-lro@2.7.2 -MIT -The MIT License (MIT) - -Copyright (c) 2020 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-paging@1.6.2 -MIT -The MIT License (MIT) - -Copyright (c) 2020 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-rest-pipeline@1.23.0 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-tracing@1.3.1 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-util@1.13.1 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/core-xml@1.5.0 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/logger@1.3.0 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/storage-blob@12.31.0 -MIT -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@azure/storage-common@12.3.0 -MIT -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -@bfra.me/es@0.1.0 -MIT -MIT - -@bufbuild/protobuf@2.11.0 -(Apache-2.0 AND BSD-3-Clause) -(Apache-2.0 AND BSD-3-Clause) - -@bufbuild/protoplugin@2.11.0 -Apache-2.0 -Apache-2.0 - -@discordjs/builders@1.14.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2021 Noel Buechler - Copyright 2021 Vlad Frangu - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@discordjs/collection@2.1.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2021 Noel Buechler - Copyright 2015 Amish Shah - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@discordjs/formatters@0.6.2 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2021 Noel Buechler - Copyright 2021 Vlad Frangu - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@discordjs/rest@2.6.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -Copyright 2021 Noel Buechler -Copyright 2021 Vlad Frangu -Copyright 2021 Aura Román - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - - -@discordjs/util@1.2.0 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2022 Noel Buechler - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@discordjs/ws@1.2.3 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2022 Noel Buechler - Copyright 2022 Denis Cristea - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@hono/node-server@1.19.14 -MIT -MIT License - -Copyright (c) 2022 - present, Yusuke Wada and Hono contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@isaacs/cliui@8.0.2 -ISC -Copyright (c) 2015, Contributors - -Permission to use, copy, modify, and/or distribute this software -for any purpose with or without fee is hereby granted, provided -that the above copyright notice and this permission notice -appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - - -@nodable/entities@2.1.0 -MIT -MIT - -@octokit/auth-app@8.2.0 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/auth-oauth-app@9.0.3 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/auth-oauth-device@8.0.3 -MIT -MIT License - -Copyright (c) 2021 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/auth-oauth-user@6.0.2 -MIT -MIT License - -Copyright (c) 2021 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/auth-token@6.0.0 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/core@7.0.6 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/endpoint@11.0.3 -MIT -The MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/graphql@9.0.3 -MIT -The MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/oauth-authorization-url@8.0.0 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/oauth-methods@6.0.2 -MIT -MIT License - -Copyright (c) 2021 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/openapi-types@27.0.0 -MIT -Copyright (c) GitHub 2025 - Licensed as MIT. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/plugin-paginate-rest@14.0.0 -MIT -MIT License Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/plugin-request-log@6.0.0 -MIT -MIT License Copyright (c) 2020 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/plugin-rest-endpoint-methods@17.0.0 -MIT -MIT License Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@octokit/plugin-retry@8.1.0 -MIT -MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@octokit/request@10.0.8 -MIT -The MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/request-error@7.1.0 -MIT -The MIT License - -Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@octokit/types@16.0.0 -MIT -MIT License Copyright (c) 2019 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -@opencode-ai/sdk@1.14.41 -MIT -MIT - -@pkgjs/parseargs@0.11.0 -MIT - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@protobuf-ts/plugin@2.11.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - -@protobuf-ts/protoc@2.11.1 -Apache-2.0 -Apache-2.0 - -@protobuf-ts/runtime@2.11.1 -(Apache-2.0 AND BSD-3-Clause) - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - -@protobuf-ts/runtime-rpc@2.11.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - -@sapphire/async-queue@1.5.5 -MIT -MIT - -@sapphire/shapeshift@4.0.0 -MIT -# The MIT License (MIT) - -Copyright © `2021` `The Sapphire Community and its contributors` - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the “Software”), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - - -@sapphire/snowflake@3.5.5 -MIT -MIT - -@smithy/chunked-blob-reader@5.2.2 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/chunked-blob-reader-native@4.2.3 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/config-resolver@4.4.17 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/core@3.23.17 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/credential-provider-imds@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/eventstream-codec@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/eventstream-serde-browser@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/eventstream-serde-config-resolver@4.3.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/eventstream-serde-node@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/eventstream-serde-universal@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/fetch-http-handler@5.3.17 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/hash-blob-browser@4.2.15 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/hash-node@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/hash-stream-node@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/invalid-dependency@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/is-array-buffer@4.2.2 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/md5-js@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/middleware-content-length@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/middleware-endpoint@4.4.32 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/middleware-retry@4.5.7 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/middleware-serde@4.2.20 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/middleware-stack@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/node-config-provider@4.3.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/node-http-handler@4.6.1 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/property-provider@4.2.14 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/protocol-http@5.3.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/querystring-builder@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - -@smithy/querystring-parser@4.2.14 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +@azure/core-paging@1.6.2 +MIT +The MIT License (MIT) - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +Copyright (c) 2020 Microsoft - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +@azure/core-rest-pipeline@1.23.0 +MIT +Copyright (c) Microsoft Corporation. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +MIT License - END OF TERMS AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - APPENDIX: How to apply the Apache License to your work. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +@azure/core-tracing@1.3.1 +MIT +Copyright (c) Microsoft Corporation. - http://www.apache.org/licenses/LICENSE-2.0 +MIT License - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -@smithy/service-error-classification@4.3.1 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 1. Definitions. +@azure/core-util@1.13.1 +MIT +Copyright (c) Microsoft Corporation. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +MIT License - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +@azure/core-xml@1.5.0 +MIT +Copyright (c) Microsoft Corporation. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +MIT License - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +@azure/logger@1.3.0 +MIT +Copyright (c) Microsoft Corporation. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +MIT License - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +@azure/storage-blob@12.31.0 +MIT +Copyright (c) Microsoft Corporation. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +MIT License - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS +@azure/storage-common@12.3.0 +MIT +The MIT License (MIT) - APPENDIX: How to apply the Apache License to your work. +Copyright (c) 2018 Microsoft - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - http://www.apache.org/licenses/LICENSE-2.0 +@bfra.me/es@0.1.0 +MIT +MIT - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +@bufbuild/protobuf@2.11.0 +(Apache-2.0 AND BSD-3-Clause) +(Apache-2.0 AND BSD-3-Clause) +@bufbuild/protoplugin@2.11.0 +Apache-2.0 +Apache-2.0 -@smithy/shared-ini-file-loader@4.4.9 +@discordjs/builders@1.14.1 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -16464,18 +6350,8 @@ Apache License END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2021 Noel Buechler + Copyright 2021 Vlad Frangu Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16489,9 +6365,10 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/signature-v4@5.3.14 + +@discordjs/collection@2.1.1 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -16668,18 +6545,8 @@ Apache License END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2021 Noel Buechler + Copyright 2015 Amish Shah Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16693,9 +6560,10 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/smithy-client@4.12.13 + +@discordjs/formatters@0.6.2 Apache-2.0 - Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -16870,37 +6738,223 @@ Apache-2.0 incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS + + Copyright 2021 Noel Buechler + Copyright 2021 Vlad Frangu + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +@discordjs/rest@2.6.1 +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. - APPENDIX: How to apply the Apache License to your work. +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +END OF TERMS AND CONDITIONS - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright 2021 Noel Buechler +Copyright 2021 Vlad Frangu +Copyright 2021 Aura Román - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. -@smithy/types@4.14.1 +@discordjs/util@1.2.0 Apache-2.0 - Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -17077,18 +7131,7 @@ Apache-2.0 END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2022 Noel Buechler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17103,9 +7146,9 @@ Apache-2.0 limitations under the License. -@smithy/url-parser@4.2.14 +@discordjs/ws@1.2.3 Apache-2.0 - Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -17282,18 +7325,8 @@ Apache-2.0 END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2022 Noel Buechler + Copyright 2022 Denis Cristea Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17308,621 +7341,404 @@ Apache-2.0 limitations under the License. -@smithy/util-base64@4.3.2 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +@hono/node-server@1.19.14 +MIT +MIT License - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +Copyright (c) 2022 - present, Yusuke Wada and Hono contributors - 1. Definitions. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +@isaacs/cliui@8.0.2 +ISC +Copyright (c) 2015, Contributors - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Permission to use, copy, modify, and/or distribute this software +for any purpose with or without fee is hereby granted, provided +that the above copyright notice and this permission notice +appear in all copies. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +@nodable/entities@2.1.0 +MIT +MIT - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +@octokit/auth-app@8.2.0 +MIT +The MIT License - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +Copyright (c) 2019 Octokit contributors - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/auth-oauth-app@9.0.3 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@octokit/auth-oauth-device@8.0.3 +MIT +MIT License + +Copyright (c) 2021 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +@octokit/auth-oauth-user@6.0.2 +MIT +MIT License - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +Copyright (c) 2021 Octokit contributors - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +@octokit/auth-token@6.0.0 +MIT +The MIT License - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +Copyright (c) 2019 Octokit contributors - END OF TERMS AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - APPENDIX: How to apply the Apache License to your work. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +@octokit/core@7.0.6 +MIT +The MIT License - http://www.apache.org/licenses/LICENSE-2.0 +Copyright (c) 2019 Octokit contributors - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -@smithy/util-body-length-browser@4.2.2 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - 1. Definitions. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +@octokit/endpoint@11.0.3 +MIT +The MIT License - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +Copyright (c) 2018 Octokit contributors - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +@octokit/graphql@9.0.3 +MIT +The MIT License - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +Copyright (c) 2018 Octokit contributors - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +@octokit/oauth-authorization-url@8.0.0 +MIT +The MIT License + +Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +@octokit/oauth-methods@6.0.2 +MIT +MIT License - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +Copyright (c) 2021 Octokit contributors - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +@octokit/openapi-types@27.0.0 +MIT +Copyright (c) GitHub 2025 - Licensed as MIT. - END OF TERMS AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - APPENDIX: How to apply the Apache License to your work. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +@octokit/plugin-paginate-rest@14.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors - http://www.apache.org/licenses/LICENSE-2.0 +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. -@smithy/util-body-length-node@4.2.3 -Apache-2.0 -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - 1. Definitions. +@octokit/plugin-request-log@6.0.0 +MIT +MIT License Copyright (c) 2020 Octokit contributors - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +@octokit/plugin-rest-endpoint-methods@17.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +@octokit/plugin-retry@8.1.0 +MIT +MIT License - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +Copyright (c) 2018 Octokit contributors - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +@octokit/request@10.0.8 +MIT +The MIT License + +Copyright (c) 2018 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +@octokit/request-error@7.1.0 +MIT +The MIT License - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +Copyright (c) 2019 Octokit contributors - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. - END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. +@octokit/types@16.0.0 +MIT +MIT License Copyright (c) 2019 Octokit contributors - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +@opencode-ai/sdk@1.14.41 +MIT +MIT -@smithy/util-buffer-from@4.2.2 -Apache-2.0 -Apache License +@pkgjs/parseargs@0.11.0 +MIT + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -18102,7 +7918,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -18110,7 +7926,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18124,9 +7940,10 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-config-provider@4.2.2 + +@protobuf-ts/plugin@2.11.1 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -18301,35 +8118,13 @@ Apache License incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -@smithy/util-defaults-mode-browser@4.3.49 +@protobuf-ts/protoc@2.11.1 Apache-2.0 +Apache-2.0 + +@protobuf-ts/runtime@2.11.1 +(Apache-2.0 AND BSD-3-Clause) Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -18505,35 +8300,8 @@ Apache-2.0 incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -@smithy/util-defaults-mode-node@4.2.54 +@protobuf-ts/runtime-rpc@2.11.1 Apache-2.0 Apache License Version 2.0, January 2004 @@ -18710,37 +8478,46 @@ Apache-2.0 incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. +@sapphire/async-queue@1.5.5 +MIT +MIT - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +@sapphire/shapeshift@4.0.0 +MIT +# The MIT License (MIT) - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Copyright © `2021` `The Sapphire Community and its contributors` - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: - http://www.apache.org/licenses/LICENSE-2.0 +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +@sapphire/snowflake@3.5.5 +MIT +MIT -@smithy/util-endpoints@3.4.2 +@smithy/core@3.24.5 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -18928,7 +8705,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18942,7 +8719,8 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-hex-encoding@4.2.2 + +@smithy/credential-provider-imds@4.3.6 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19146,7 +8924,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-middleware@4.2.14 +@smithy/fetch-http-handler@5.4.5 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19336,7 +9114,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19350,7 +9128,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-retry@4.3.6 +@smithy/is-array-buffer@2.2.0 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19540,7 +9318,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19554,7 +9332,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-stream@4.5.25 +@smithy/node-http-handler@4.7.5 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19758,7 +9536,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-uri-escape@4.2.2 +@smithy/signature-v4@5.4.5 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19962,9 +9740,9 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-utf8@4.2.2 +@smithy/types@4.14.2 Apache-2.0 -Apache License + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -20152,7 +9930,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20166,7 +9944,8 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/util-waiter@4.3.0 + +@smithy/util-buffer-from@2.2.0 Apache-2.0 Apache License Version 2.0, January 2004 @@ -20370,7 +10149,7 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -@smithy/uuid@1.1.2 +@smithy/util-utf8@2.3.0 Apache-2.0 Apache License Version 2.0, January 2004 diff --git a/dist/main.js b/dist/main.js index bcf31216..3b693283 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,4 +1,4 @@ -import{o as e}from"./chunk-BTyA9uPd.js";import{$ as t,A as n,B as r,C as i,Ct as a,D as o,E as s,F as c,G as l,H as u,I as d,J as f,K as p,L as m,M as h,N as g,O as _,P as v,Q as y,R as b,S as x,St as S,T as C,U as w,V as T,W as ee,X as te,Y as ne,Z as E,_ as re,_t as ie,a as ae,at as D,bt as O,c as oe,d as k,dt as A,et as se,f as j,ft as M,g as ce,gt as N,h as le,ht as ue,i as P,it as de,k as fe,l as pe,lt as me,m as he,mt as ge,n as _e,nt as ve,o as ye,ot as F,p as be,pt as I,q as xe,r as Se,rt as Ce,s as we,st as L,t as Te,tt as Ee,u as De,ut as Oe,v as ke,vt as Ae,w as je,xt as Me,yt as Ne,z as Pe}from"./artifact-D6HNowC1.js";import R from"node:process";import*as Fe from"os";import*as Ie from"crypto";import*as z from"fs";import*as B from"path";import{ok as Le}from"assert";import*as Re from"util";import{Buffer as ze}from"node:buffer";import*as Be from"node:crypto";import{createHash as Ve}from"node:crypto";import{pathToFileURL as He}from"node:url";import*as V from"node:fs/promises";import Ue,{mkdir as We,readFile as Ge,writeFile as Ke}from"node:fs/promises";import*as H from"node:path";import U,{join as qe}from"node:path";import*as Je from"node:os";import Ye,{homedir as Xe}from"node:os";import*as Ze from"stream";const Qe=e=>typeof e==`object`&&!!e,W=e=>typeof e==`string`?e:null,$e=e=>typeof e==`number`?e:null;function et(e){if(Array.isArray(e))return e.filter(Qe).map(e=>({file:W(e.file)??``,additions:$e(e.additions)??0,deletions:$e(e.deletions)??0}))}function tt(e){return{id:e.id,version:e.version,projectID:e.projectID,directory:e.directory,parentID:e.parentID,title:e.title,time:{created:e.time.created,updated:e.time.updated,compacting:e.time.compacting,archived:e.time.archived},summary:e.summary==null?void 0:{additions:e.summary.additions,deletions:e.summary.deletions,files:e.summary.files,diffs:et(e.summary.diffs)},share:e.share?.url==null?void 0:{url:e.share.url},permission:e.permission==null?void 0:{rules:e.permission.rules},revert:e.revert==null?void 0:{messageID:e.revert.messageID,partID:e.revert.partID,snapshot:e.revert.snapshot,diff:e.revert.diff}}}function nt(e){let t=U.resolve(U.normalize(e));return t.endsWith(U.sep)&&t.length>1?t.slice(0,-1):t}async function rt(e,t){let n=await e.project.list();if(n.error!=null||n.data==null)return t.warning(`SDK project list failed`,{error:String(n.error)}),[];if(!Array.isArray(n.data))return[];let r=[];for(let e of n.data){if(!Qe(e))continue;let t=W(e.id),n=W(e.worktree),i=W(e.path);t==null||n==null||i==null||r.push({id:t,worktree:n,path:i,vcs:`git`,time:{created:0,updated:0}})}return r}async function it(e,t,n){let r=nt(t),i=await rt(e,n);for(let e of i){if(nt(e.worktree)===r)return e;let t=W(e.path);if(t!=null&&nt(t)===r)return e}return null}function at(e){return e.status===`running`?{status:`running`,input:e.input,time:{start:e.time.start}}:e.status===`error`?{status:`error`,input:e.input,error:e.error,time:{start:e.time.start,end:e.time.end}}:e.status===`pending`?{status:`pending`}:{status:`completed`,input:e.input,output:e.output,title:e.title,metadata:e.metadata,time:{start:e.time.start,end:e.time.end,compacted:e.time.compacted},attachments:void 0}}function ot(e){let t={id:e.id,sessionID:e.sessionID,messageID:e.messageID};if(e.type===`text`)return{...t,type:`text`,text:e.text,synthetic:e.synthetic,ignored:e.ignored,time:e.time,metadata:e.metadata};if(e.type===`reasoning`)return{...t,type:`reasoning`,reasoning:e.reasoning??e.text,time:e.time};if(e.type===`tool`)return{...t,type:`tool`,callID:e.callID,tool:e.tool,state:at(e.state),metadata:e.metadata};if(e.type!==`step-finish`)return{...t,type:`text`,text:`text`in e?e.text:``};let n=e;return{...t,type:`step-finish`,reason:n.reason,snapshot:n.snapshot,cost:n.cost,tokens:{input:n.tokens.input,output:n.tokens.output,reasoning:n.tokens.reasoning,cache:{read:n.tokens.cache.read,write:n.tokens.cache.write}}}}function st(e){if(e.role===`user`){let t=e;return{id:t.id,sessionID:t.sessionID,role:`user`,time:{created:t.time.created},summary:t.summary==null?void 0:{title:t.summary.title,body:t.summary.body,diffs:et(t.summary.diffs)??[]},agent:t.agent,model:{providerID:t.model.providerID,modelID:t.model.modelID},system:t.system,tools:t.tools,variant:t.variant}}let t=e;return{id:t.id,sessionID:t.sessionID,role:`assistant`,time:{created:t.time.created,completed:t.time.completed},parentID:t.parentID,modelID:t.modelID,providerID:t.providerID,mode:t.mode,agent:t.agent??``,path:{cwd:t.path.cwd,root:t.path.root},summary:t.summary,cost:t.cost,tokens:{input:t.tokens.input,output:t.tokens.output,reasoning:t.tokens.reasoning,cache:{read:t.tokens.cache.read,write:t.tokens.cache.write}},finish:t.finish,error:t.error?{name:t.error.name,message:W(t.error.data.message)??``}:void 0}}function ct(e){return[...e.map(e=>{let t=st(`info`in e?e.info:e),n=`parts`in e?e.parts.map(ot):void 0;return n==null||n.length===0?t:{...t,parts:n}})].sort((e,t)=>e.time.created-t.time.created)}async function lt(e,t,n){let r=await e.session.list({query:{directory:t}});return r.error==null&&r.data!=null?Array.isArray(r.data)?r.data.map(tt):[]:(n.warning(`SDK session list failed`,{error:String(r.error)}),[])}async function ut(e,t,n){let r=await e.session.messages({path:{id:t}});return r.error==null&&r.data!=null?ct(r.data):(n.warning(`SDK session messages failed`,{error:String(r.error)}),[])}async function dt(e,t,n,r){let i=await e.session.list({query:{directory:t,start:n,roots:!0,limit:10}});if(i.error!=null||i.data==null)return r.warning(`SDK session list failed`,{error:String(i.error)}),null;if(!Array.isArray(i.data)||i.data.length===0)return null;let a=i.data.map(tt);if(a.length===0)return null;let o=a.reduce((e,t)=>t.time.created>e.time.created?t:e);return{projectID:o.projectID,session:o}}async function ft(e,t,n){let r=await e.session.delete({path:{id:t}});if(r.error!=null){n.warning(`SDK session delete failed`,{sessionID:t,error:String(r.error)});return}n.debug(`Deleted session via SDK`,{sessionID:t})}function G(e,t){return{key:`${e}-${t}`,entityType:e,entityId:t}}function pt(e){return Ve(`sha256`).update(e).digest(`hex`).slice(0,8)}function mt(e){if(e.eventType===`unsupported`)return null;if(e.eventType===`schedule`){let t=typeof e.raw==`object`&&e.raw!=null&&`event`in e.raw?e.raw.event:void 0,n=typeof t==`object`&&t&&`type`in t&&t.type===`schedule`&&`schedule`in t&&typeof t.schedule==`string`?t.schedule:void 0;return G(`schedule`,pt((n!=null&&n.trim().length>0?n:e.action)??`default`))}return e.eventType===`workflow_dispatch`?G(`dispatch`,String(e.runId)):e.target==null?null:e.eventType===`issue_comment`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):e.target.kind===`pr`?G(`pr`,String(e.target.number)):null:e.eventType===`discussion_comment`?e.target.kind===`discussion`?G(`discussion`,String(e.target.number)):null:e.eventType===`issues`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):null:(e.eventType===`pull_request`||e.eventType===`pull_request_review_comment`)&&e.target.kind===`pr`?G(`pr`,String(e.target.number)):null}function ht(e){return`fro-bot: ${e.key}`}function gt(e,t){let n=e.filter(e=>e.title===t);return n.length===0?null:n.reduce((e,t)=>t.time.updated>e.time.updated?t:e)}function _t(e){let t=H.resolve(e);return t.endsWith(H.sep)&&t.length>1?t.slice(0,-1):t}async function vt(e,t,n,r){try{let i=await lt(e,t,r),a=ht(n),o=_t(t),s=gt(i.filter(e=>_t(e.directory)===o),a);if(s==null){let e=gt(i,a);return e!=null&&r.warning(`Session continuity: matching session has different workspace directory, ignoring`,{sessionId:e.id,sessionDirectory:e.directory,workspacePath:t}),{status:`not-found`}}return s.time.archived!=null||s.time.compacting!=null?{status:`not-found`}:{status:`found`,session:s}}catch(e){return{status:`error`,error:e instanceof Error?e.message:String(e)}}}const yt={maxSessions:50,maxAgeDays:30};async function bt(e,n,r,i){let{maxSessions:a,maxAgeDays:o}=r;if(i.info(`Starting session pruning`,{workspacePath:n,maxSessions:a,maxAgeDays:o}),await it(e,n,i)==null)return i.debug(`No project found for pruning`,{workspacePath:n}),{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let s=await lt(e,n,i),c=s.filter(e=>e.parentID==null);if(c.length===0)return{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let l=[...c].sort((e,t)=>t.time.updated-e.time.updated),u=new Date;u.setDate(u.getDate()-o);let d=u.getTime(),f=new Set;for(let e of l)e.time.updated>=d&&f.add(e.id);for(let e=0;e!f.has(e.id)),m=new Set;for(let e of p){m.add(e.id);for(let t of s)t.parentID===e.id&&m.add(t.id)}if(m.size===0)return i.info(`No sessions to prune`),{prunedCount:0,prunedSessionIds:[],remainingCount:c.length,freedBytes:0};let h=[];for(let n of m)try{await ft(e,n,i),h.push(n),i.debug(`Pruned session`,{sessionId:n})}catch(e){i.warning(`Failed to prune session`,{sessionId:n,error:t(e)})}let g=c.length-p.length;return i.info(`Session pruning complete`,{prunedCount:h.length,remainingCount:g}),{prunedCount:h.length,prunedSessionIds:h,remainingCount:g,freedBytes:0}}async function xt(e,t,n,r){let{limit:i,fromDate:a,toDate:o}=n;r.debug(`Listing sessions`,{directory:t,limit:i});let s=[...(await lt(e,t,r)).filter(e=>!(e.parentID!=null||a!=null&&e.time.createdo.getTime()))].sort((e,t)=>t.time.updated-e.time.updated),c=[],l=i==null?s:s.slice(0,i);for(let t of l){let n=await ut(e,t.id,r),i=St(n);c.push({id:t.id,projectID:t.projectID,directory:t.directory,title:t.title,createdAt:t.time.created,updatedAt:t.time.updated,messageCount:n.length,agents:i,isChild:!1})}return r.info(`Listed sessions`,{count:c.length,directory:t}),c}function St(e){let t=new Set;for(let n of e)n.agent!=null&&t.add(n.agent);return[...t]}async function Ct(e,t,n,r,i){let{limit:a=20,caseSensitive:o=!1,sessionId:s}=r;i.debug(`Searching sessions`,{query:e,directory:n,limit:a,caseSensitive:o});let c=o?e:e.toLowerCase(),l=[],u=0;if(s!=null){let e=await wt(t,s,c,o,i);return e.length>0&&l.push({sessionId:s,matches:e.slice(0,a)}),l}let d=await xt(t,n,{},i);for(let e of d){if(u>=a)break;let n=await wt(t,e.id,c,o,i);if(n.length>0){let t=a-u;l.push({sessionId:e.id,matches:n.slice(0,t)}),u+=Math.min(n.length,t)}}return i.info(`Session search complete`,{query:e,resultCount:l.length,totalMatches:u}),l}async function wt(e,t,n,r,i){let a=await ut(e,t,i),o=[];for(let e of a){let t=e.parts??[];for(let i of t){let t=Tt(i);if(t==null)continue;let a=r?t:t.toLowerCase();if(a.includes(n)){let r=a.indexOf(n),s=Math.max(0,r-50),c=Math.min(t.length,r+n.length+50),l=t.slice(s,c);o.push({messageId:e.id,partId:i.id,excerpt:`...${l}...`,role:e.role,agent:e.agent})}}}return o}function Tt(e){switch(e.type){case`text`:return e.text;case`reasoning`:return e.reasoning;case`tool`:return e.state.status===`completed`?`${e.tool}: ${e.state.output}`:null;case`step-finish`:return null}}async function Et(e,t,n,r){if(n!=null)try{let i=await e.session.update({path:{id:t},body:{title:n}});i.error!=null&&r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:String(i.error)})}catch(e){r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:e instanceof Error?e.message:String(e)})}}function Dt(e){let t=[`--- Fro Bot Run Summary ---`,`Event: ${e.eventType}`,`Repo: ${e.repo}`,`Ref: ${e.ref}`,`Run ID: ${e.runId}`,`Cache: ${e.cacheStatus}`,`Duration: ${e.duration}s`];return e.sessionIds.length>0&&t.push(`Sessions used: ${e.sessionIds.join(`, `)}`),e.logicalKey!=null&&t.push(`Logical Thread: ${e.logicalKey}`),e.createdPRs.length>0&&t.push(`PRs created: ${e.createdPRs.join(`, `)}`),e.createdCommits.length>0&&t.push(`Commits: ${e.createdCommits.join(`, `)}`),e.tokenUsage!=null&&t.push(`Tokens: ${e.tokenUsage.input} in / ${e.tokenUsage.output} out`),t.join(` +import{o as e}from"./chunk-BTyA9uPd.js";import{$ as t,A as n,B as r,C as i,Ct as a,D as o,E as s,F as c,G as l,H as u,I as d,J as f,K as p,L as m,M as h,N as g,O as _,P as v,Q as y,R as b,S as x,St as S,T as C,U as w,V as T,W as ee,X as te,Y as ne,Z as E,_ as re,_t as ie,a as ae,at as D,bt as O,c as oe,d as k,dt as A,et as se,f as j,ft as M,g as ce,gt as N,h as le,ht as ue,i as P,it as de,k as fe,l as pe,lt as me,m as he,mt as ge,n as _e,nt as ve,o as ye,ot as F,p as be,pt as I,q as xe,r as Se,rt as Ce,s as we,st as L,t as Te,tt as Ee,u as De,ut as Oe,v as ke,vt as Ae,w as je,xt as Me,yt as Ne,z as Pe}from"./artifact-EjsFCUSD.js";import R from"node:process";import*as Fe from"os";import*as Ie from"crypto";import*as z from"fs";import*as B from"path";import{ok as Le}from"assert";import*as Re from"util";import{Buffer as ze}from"node:buffer";import*as Be from"node:crypto";import{createHash as Ve}from"node:crypto";import{pathToFileURL as He}from"node:url";import*as V from"node:fs/promises";import Ue,{mkdir as We,readFile as Ge,writeFile as Ke}from"node:fs/promises";import*as H from"node:path";import U,{join as qe}from"node:path";import*as Je from"node:os";import Ye,{homedir as Xe}from"node:os";import*as Ze from"stream";const Qe=e=>typeof e==`object`&&!!e,W=e=>typeof e==`string`?e:null,$e=e=>typeof e==`number`?e:null;function et(e){if(Array.isArray(e))return e.filter(Qe).map(e=>({file:W(e.file)??``,additions:$e(e.additions)??0,deletions:$e(e.deletions)??0}))}function tt(e){return{id:e.id,version:e.version,projectID:e.projectID,directory:e.directory,parentID:e.parentID,title:e.title,time:{created:e.time.created,updated:e.time.updated,compacting:e.time.compacting,archived:e.time.archived},summary:e.summary==null?void 0:{additions:e.summary.additions,deletions:e.summary.deletions,files:e.summary.files,diffs:et(e.summary.diffs)},share:e.share?.url==null?void 0:{url:e.share.url},permission:e.permission==null?void 0:{rules:e.permission.rules},revert:e.revert==null?void 0:{messageID:e.revert.messageID,partID:e.revert.partID,snapshot:e.revert.snapshot,diff:e.revert.diff}}}function nt(e){let t=U.resolve(U.normalize(e));return t.endsWith(U.sep)&&t.length>1?t.slice(0,-1):t}async function rt(e,t){let n=await e.project.list();if(n.error!=null||n.data==null)return t.warning(`SDK project list failed`,{error:String(n.error)}),[];if(!Array.isArray(n.data))return[];let r=[];for(let e of n.data){if(!Qe(e))continue;let t=W(e.id),n=W(e.worktree),i=W(e.path);t==null||n==null||i==null||r.push({id:t,worktree:n,path:i,vcs:`git`,time:{created:0,updated:0}})}return r}async function it(e,t,n){let r=nt(t),i=await rt(e,n);for(let e of i){if(nt(e.worktree)===r)return e;let t=W(e.path);if(t!=null&&nt(t)===r)return e}return null}function at(e){return e.status===`running`?{status:`running`,input:e.input,time:{start:e.time.start}}:e.status===`error`?{status:`error`,input:e.input,error:e.error,time:{start:e.time.start,end:e.time.end}}:e.status===`pending`?{status:`pending`}:{status:`completed`,input:e.input,output:e.output,title:e.title,metadata:e.metadata,time:{start:e.time.start,end:e.time.end,compacted:e.time.compacted},attachments:void 0}}function ot(e){let t={id:e.id,sessionID:e.sessionID,messageID:e.messageID};if(e.type===`text`)return{...t,type:`text`,text:e.text,synthetic:e.synthetic,ignored:e.ignored,time:e.time,metadata:e.metadata};if(e.type===`reasoning`)return{...t,type:`reasoning`,reasoning:e.reasoning??e.text,time:e.time};if(e.type===`tool`)return{...t,type:`tool`,callID:e.callID,tool:e.tool,state:at(e.state),metadata:e.metadata};if(e.type!==`step-finish`)return{...t,type:`text`,text:`text`in e?e.text:``};let n=e;return{...t,type:`step-finish`,reason:n.reason,snapshot:n.snapshot,cost:n.cost,tokens:{input:n.tokens.input,output:n.tokens.output,reasoning:n.tokens.reasoning,cache:{read:n.tokens.cache.read,write:n.tokens.cache.write}}}}function st(e){if(e.role===`user`){let t=e;return{id:t.id,sessionID:t.sessionID,role:`user`,time:{created:t.time.created},summary:t.summary==null?void 0:{title:t.summary.title,body:t.summary.body,diffs:et(t.summary.diffs)??[]},agent:t.agent,model:{providerID:t.model.providerID,modelID:t.model.modelID},system:t.system,tools:t.tools,variant:t.variant}}let t=e;return{id:t.id,sessionID:t.sessionID,role:`assistant`,time:{created:t.time.created,completed:t.time.completed},parentID:t.parentID,modelID:t.modelID,providerID:t.providerID,mode:t.mode,agent:t.agent??``,path:{cwd:t.path.cwd,root:t.path.root},summary:t.summary,cost:t.cost,tokens:{input:t.tokens.input,output:t.tokens.output,reasoning:t.tokens.reasoning,cache:{read:t.tokens.cache.read,write:t.tokens.cache.write}},finish:t.finish,error:t.error?{name:t.error.name,message:W(t.error.data.message)??``}:void 0}}function ct(e){return[...e.map(e=>{let t=st(`info`in e?e.info:e),n=`parts`in e?e.parts.map(ot):void 0;return n==null||n.length===0?t:{...t,parts:n}})].sort((e,t)=>e.time.created-t.time.created)}async function lt(e,t,n){let r=await e.session.list({query:{directory:t}});return r.error==null&&r.data!=null?Array.isArray(r.data)?r.data.map(tt):[]:(n.warning(`SDK session list failed`,{error:String(r.error)}),[])}async function ut(e,t,n){let r=await e.session.messages({path:{id:t}});return r.error==null&&r.data!=null?ct(r.data):(n.warning(`SDK session messages failed`,{error:String(r.error)}),[])}async function dt(e,t,n,r){let i=await e.session.list({query:{directory:t,start:n,roots:!0,limit:10}});if(i.error!=null||i.data==null)return r.warning(`SDK session list failed`,{error:String(i.error)}),null;if(!Array.isArray(i.data)||i.data.length===0)return null;let a=i.data.map(tt);if(a.length===0)return null;let o=a.reduce((e,t)=>t.time.created>e.time.created?t:e);return{projectID:o.projectID,session:o}}async function ft(e,t,n){let r=await e.session.delete({path:{id:t}});if(r.error!=null){n.warning(`SDK session delete failed`,{sessionID:t,error:String(r.error)});return}n.debug(`Deleted session via SDK`,{sessionID:t})}function G(e,t){return{key:`${e}-${t}`,entityType:e,entityId:t}}function pt(e){return Ve(`sha256`).update(e).digest(`hex`).slice(0,8)}function mt(e){if(e.eventType===`unsupported`)return null;if(e.eventType===`schedule`){let t=typeof e.raw==`object`&&e.raw!=null&&`event`in e.raw?e.raw.event:void 0,n=typeof t==`object`&&t&&`type`in t&&t.type===`schedule`&&`schedule`in t&&typeof t.schedule==`string`?t.schedule:void 0;return G(`schedule`,pt((n!=null&&n.trim().length>0?n:e.action)??`default`))}return e.eventType===`workflow_dispatch`?G(`dispatch`,String(e.runId)):e.target==null?null:e.eventType===`issue_comment`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):e.target.kind===`pr`?G(`pr`,String(e.target.number)):null:e.eventType===`discussion_comment`?e.target.kind===`discussion`?G(`discussion`,String(e.target.number)):null:e.eventType===`issues`?e.target.kind===`issue`?G(`issue`,String(e.target.number)):null:(e.eventType===`pull_request`||e.eventType===`pull_request_review_comment`)&&e.target.kind===`pr`?G(`pr`,String(e.target.number)):null}function ht(e){return`fro-bot: ${e.key}`}function gt(e,t){let n=e.filter(e=>e.title===t);return n.length===0?null:n.reduce((e,t)=>t.time.updated>e.time.updated?t:e)}function _t(e){let t=H.resolve(e);return t.endsWith(H.sep)&&t.length>1?t.slice(0,-1):t}async function vt(e,t,n,r){try{let i=await lt(e,t,r),a=ht(n),o=_t(t),s=gt(i.filter(e=>_t(e.directory)===o),a);if(s==null){let e=gt(i,a);return e!=null&&r.warning(`Session continuity: matching session has different workspace directory, ignoring`,{sessionId:e.id,sessionDirectory:e.directory,workspacePath:t}),{status:`not-found`}}return s.time.archived!=null||s.time.compacting!=null?{status:`not-found`}:{status:`found`,session:s}}catch(e){return{status:`error`,error:e instanceof Error?e.message:String(e)}}}const yt={maxSessions:50,maxAgeDays:30};async function bt(e,n,r,i){let{maxSessions:a,maxAgeDays:o}=r;if(i.info(`Starting session pruning`,{workspacePath:n,maxSessions:a,maxAgeDays:o}),await it(e,n,i)==null)return i.debug(`No project found for pruning`,{workspacePath:n}),{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let s=await lt(e,n,i),c=s.filter(e=>e.parentID==null);if(c.length===0)return{prunedCount:0,prunedSessionIds:[],remainingCount:0,freedBytes:0};let l=[...c].sort((e,t)=>t.time.updated-e.time.updated),u=new Date;u.setDate(u.getDate()-o);let d=u.getTime(),f=new Set;for(let e of l)e.time.updated>=d&&f.add(e.id);for(let e=0;e!f.has(e.id)),m=new Set;for(let e of p){m.add(e.id);for(let t of s)t.parentID===e.id&&m.add(t.id)}if(m.size===0)return i.info(`No sessions to prune`),{prunedCount:0,prunedSessionIds:[],remainingCount:c.length,freedBytes:0};let h=[];for(let n of m)try{await ft(e,n,i),h.push(n),i.debug(`Pruned session`,{sessionId:n})}catch(e){i.warning(`Failed to prune session`,{sessionId:n,error:t(e)})}let g=c.length-p.length;return i.info(`Session pruning complete`,{prunedCount:h.length,remainingCount:g}),{prunedCount:h.length,prunedSessionIds:h,remainingCount:g,freedBytes:0}}async function xt(e,t,n,r){let{limit:i,fromDate:a,toDate:o}=n;r.debug(`Listing sessions`,{directory:t,limit:i});let s=[...(await lt(e,t,r)).filter(e=>!(e.parentID!=null||a!=null&&e.time.createdo.getTime()))].sort((e,t)=>t.time.updated-e.time.updated),c=[],l=i==null?s:s.slice(0,i);for(let t of l){let n=await ut(e,t.id,r),i=St(n);c.push({id:t.id,projectID:t.projectID,directory:t.directory,title:t.title,createdAt:t.time.created,updatedAt:t.time.updated,messageCount:n.length,agents:i,isChild:!1})}return r.info(`Listed sessions`,{count:c.length,directory:t}),c}function St(e){let t=new Set;for(let n of e)n.agent!=null&&t.add(n.agent);return[...t]}async function Ct(e,t,n,r,i){let{limit:a=20,caseSensitive:o=!1,sessionId:s}=r;i.debug(`Searching sessions`,{query:e,directory:n,limit:a,caseSensitive:o});let c=o?e:e.toLowerCase(),l=[],u=0;if(s!=null){let e=await wt(t,s,c,o,i);return e.length>0&&l.push({sessionId:s,matches:e.slice(0,a)}),l}let d=await xt(t,n,{},i);for(let e of d){if(u>=a)break;let n=await wt(t,e.id,c,o,i);if(n.length>0){let t=a-u;l.push({sessionId:e.id,matches:n.slice(0,t)}),u+=Math.min(n.length,t)}}return i.info(`Session search complete`,{query:e,resultCount:l.length,totalMatches:u}),l}async function wt(e,t,n,r,i){let a=await ut(e,t,i),o=[];for(let e of a){let t=e.parts??[];for(let i of t){let t=Tt(i);if(t==null)continue;let a=r?t:t.toLowerCase();if(a.includes(n)){let r=a.indexOf(n),s=Math.max(0,r-50),c=Math.min(t.length,r+n.length+50),l=t.slice(s,c);o.push({messageId:e.id,partId:i.id,excerpt:`...${l}...`,role:e.role,agent:e.agent})}}}return o}function Tt(e){switch(e.type){case`text`:return e.text;case`reasoning`:return e.reasoning;case`tool`:return e.state.status===`completed`?`${e.tool}: ${e.state.output}`:null;case`step-finish`:return null}}async function Et(e,t,n,r){if(n!=null)try{let i=await e.session.update({path:{id:t},body:{title:n}});i.error!=null&&r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:String(i.error)})}catch(e){r.warning(`Best-effort session title re-assertion failed`,{sessionId:t,sessionTitle:n,error:e instanceof Error?e.message:String(e)})}}function Dt(e){let t=[`--- Fro Bot Run Summary ---`,`Event: ${e.eventType}`,`Repo: ${e.repo}`,`Ref: ${e.ref}`,`Run ID: ${e.runId}`,`Cache: ${e.cacheStatus}`,`Duration: ${e.duration}s`];return e.sessionIds.length>0&&t.push(`Sessions used: ${e.sessionIds.join(`, `)}`),e.logicalKey!=null&&t.push(`Logical Thread: ${e.logicalKey}`),e.createdPRs.length>0&&t.push(`PRs created: ${e.createdPRs.join(`, `)}`),e.createdCommits.length>0&&t.push(`Commits: ${e.createdCommits.join(`, `)}`),e.tokenUsage!=null&&t.push(`Tokens: ${e.tokenUsage.input} in / ${e.tokenUsage.output} out`),t.join(` `)}async function Ot(e,n,r,i){let a=Dt(n);try{let t=await r.session.prompt({path:{id:e},body:{noReply:!0,parts:[{type:`text`,text:a}]}});if(t.error!=null){i.warning(`SDK prompt writeback failed`,{sessionId:e,error:String(t.error)});return}i.info(`Session summary written via SDK`,{sessionId:e})}catch(n){i.warning(`SDK prompt writeback failed`,{sessionId:e,error:t(n)})}}function kt(e){if(e.storeAdapter.conditionalPut==null)throw Error(`Object store adapter does not support conditionalPut`);return e.storeAdapter.conditionalPut}function At(e){if(e.storeAdapter.conditionalDelete==null)throw Error(`Object store adapter does not support conditionalDelete`);return e.storeAdapter.conditionalDelete}function jt(e){if(e.storeAdapter.getObject==null)throw Error(`Object store adapter does not support getObject`);return e.storeAdapter.getObject}function Mt(e){try{return s(kt(e))}catch(e){return C(e instanceof Error?e:Error(String(e)))}}function Nt(e){try{return s(At(e))}catch(e){return C(e instanceof Error?e:Error(String(e)))}}function Pt(e){try{return s(jt(e))}catch(e){return C(e instanceof Error?e:Error(String(e)))}}function Ft(e,t){let n=ce(e.storeConfig,`coordination`,t,`locks`,`repo.json`);return n.success===!1?C(n.error):s(n.data)}function It(e){return/pre-?condition/.test(e.message.toLowerCase())}function Lt(e,t){return new Date(e.acquired_at).getTime()+e.ttl_seconds*1e3<=t.getTime()}function Rt(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.repo==`string`&&typeof t.holder_id==`string`&&(t.surface===`github`||t.surface===`discord`)&&typeof t.acquired_at==`string`&&typeof t.ttl_seconds==`number`&&Number.isFinite(t.ttl_seconds)&&typeof t.run_id==`string`}function zt(e){try{let t=JSON.parse(e);return Rt(t)===!1?C(Error(`Invalid lock record payload`)):s(t)}catch(e){return C(e instanceof Error?e:Error(String(e)))}}function Bt(e,t,n,r,i,a){return{repo:e,holder_id:t,surface:n,acquired_at:a,ttl_seconds:i,run_id:r}}async function Vt(e,t,n,r,i,a){let o=Ft(e,t);if(o.success===!1)return C(o.error);let c=new Date().toISOString(),l=Bt(t,n,r,i,e.lockTtlSeconds,c),u=Mt(e);if(u.success===!1)return C(u.error);let d=Pt(e);if(d.success===!1)return C(d.error);a.debug(`Attempting lock acquisition`,{key:o.data,repo:t,runId:i,surface:r});let f=await u.data(o.data,JSON.stringify(l),{ifNoneMatch:`*`});if(f.success===!0)return s({acquired:!0,etag:f.data.etag,holder:null});if(It(f.error)===!1)return C(f.error);let p=await d.data(o.data);if(p.success===!1)return C(p.error);let m=zt(p.data.data);if(m.success===!1)return C(m.error);if(Lt(m.data,new Date(c))===!1)return s({acquired:!1,etag:null,holder:m.data});let h=await u.data(o.data,JSON.stringify(l),{ifMatch:p.data.etag});return h.success===!1?It(h.error)===!0?s({acquired:!1,etag:null,holder:null}):C(h.error):s({acquired:!0,etag:h.data.etag,holder:null})}async function Ht(e,t,n,r){let i=Ft(e,t);if(i.success===!1)return C(i.error);let a=Nt(e);return a.success===!1?C(a.error):(r.debug(`Releasing lock`,{key:i.data,repo:t}),a.data(i.data,{ifMatch:n}))}const Ut=6e4,Wt={todowrite:[`Todo`,`\x1B[33m\x1B[1m`],todoread:[`Todo`,`\x1B[33m\x1B[1m`],bash:[`Bash`,`\x1B[31m\x1B[1m`],edit:[`Edit`,`\x1B[32m\x1B[1m`],glob:[`Glob`,`\x1B[34m\x1B[1m`],grep:[`Grep`,`\x1B[34m\x1B[1m`],list:[`List`,`\x1B[34m\x1B[1m`],read:[`Read`,`\x1B[35m\x1B[1m`],write:[`Write`,`\x1B[32m\x1B[1m`],websearch:[`Search`,`\x1B[2m\x1B[1m`]},Gt=`\x1B[0m`;function Kt(){return R.env.NO_COLOR==null}function qt(e,t){let[n,r]=Wt[e.toLowerCase()]??[e,`\x1B[36m\x1B[1m`],i=n.padEnd(10,` `);Kt()?R.stdout.write(`\n${r}|${Gt} ${i} ${Gt}${t}\n`):R.stdout.write(`\n| ${i} ${t}\n`)}function Jt(e){R.stdout.write(`\n${e}\n`)}function Yt(e){switch(e){case`hit`:return`✅ hit`;case`miss`:return`🆕 miss`;case`corrupted`:return`⚠️ corrupted (clean start)`}}function Xt(e){let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`}async function Zt(e,n){let{eventType:r,repo:i,ref:a,runId:o,runUrl:s,metrics:c,agent:l,resolvedOutputMode:u}=e;try{if(S.addHeading(`Fro Bot Agent Run`,2).addTable([[{data:`Field`,header:!0},{data:`Value`,header:!0}],[`Event`,r],[`Repository`,i],[`Ref`,a],[`Run ID`,`[${o}](${s})`],[`Agent`,l],[`Output Mode`,u??`N/A`],[`Cache Status`,Yt(c.cacheStatus)],[`Duration`,c.duration==null?`N/A`:Xt(c.duration)]]),(c.sessionsUsed.length>0||c.sessionsCreated.length>0)&&(S.addHeading(`Sessions`,3),c.sessionsUsed.length>0&&S.addRaw(`**Used:** ${c.sessionsUsed.join(`, `)}\n`),c.sessionsCreated.length>0&&S.addRaw(`**Created:** ${c.sessionsCreated.join(`, `)}\n`)),c.tokenUsage!=null&&(S.addHeading(`Token Usage`,3),S.addTable([[{data:`Metric`,header:!0},{data:`Count`,header:!0}],[`Input`,c.tokenUsage.input.toLocaleString()],[`Output`,c.tokenUsage.output.toLocaleString()],[`Reasoning`,c.tokenUsage.reasoning.toLocaleString()],[`Cache Read`,c.tokenUsage.cache.read.toLocaleString()],[`Cache Write`,c.tokenUsage.cache.write.toLocaleString()]]),c.model!=null&&S.addRaw(`**Model:** ${c.model}\n`),c.cost!=null&&S.addRaw(`**Cost:** $${c.cost.toFixed(4)}\n`)),(c.prsCreated.length>0||c.commitsCreated.length>0||c.commentsPosted>0)&&(S.addHeading(`Created Artifacts`,3),c.prsCreated.length>0&&S.addList([...c.prsCreated]),c.commitsCreated.length>0&&S.addList(c.commitsCreated.map(e=>`Commit \`${e.slice(0,7)}\``)),c.commentsPosted>0&&S.addRaw(`**Comments Posted:** ${c.commentsPosted}\n`)),c.errors.length>0){S.addHeading(`Errors`,3);for(let e of c.errors){let t=e.recoverable?`🔄 Recovered`:`❌ Failed`;S.addRaw(`- **${e.type}** (${t}): ${e.message}\n`)}}await S.write(),n.debug(`Wrote job summary`)}catch(e){let r=t(e);n.warning(`Failed to write job summary`,{error:r}),ue(`Failed to write job summary: ${r}`)}}function Qt(){let e=0,t=null,n=`miss`,r=null,i=[],a=[],o=[],s=[],c=0,l=null,u=null,d=null,f=[];return{start(){e=Date.now()},end(){t=Date.now()},setCacheStatus(e){n=e},setCacheSource(e){r=e},addSessionUsed(e){i.includes(e)||i.push(e)},addSessionCreated(e){a.includes(e)||a.push(e)},addPRCreated(e){o.includes(e)||o.push(e)},addCommitCreated(e){s.includes(e)||s.push(e)},incrementComments(){c++},setTokenUsage(e,t,n){l=e,u=t,d=n},recordError(e,t,n){f.push({timestamp:new Date().toISOString(),type:e,message:t,recoverable:n})},getMetrics(){let p=t==null?Date.now()-e:t-e;return Object.freeze({startTime:e,endTime:t,duration:p,cacheStatus:n,cacheSource:r,sessionsUsed:Object.freeze([...i]),sessionsCreated:Object.freeze([...a]),prsCreated:Object.freeze([...o]),commitsCreated:Object.freeze([...s]),commentsPosted:c,tokenUsage:l,model:u,cost:d,errors:Object.freeze([...f])})}}}function $t(e){I(`session-id`,e.sessionId??``),I(`resolved-output-mode`,e.resolvedOutputMode??``),I(`cache-status`,e.cacheStatus),I(`duration`,e.duration)}function K(e){let[t,n]=e.split(`/`);if(t==null||n==null||t.length===0||n.length===0)throw Error(`Invalid repository string: ${e}`);return{owner:t,repo:n}}async function en(e,n,r,i,a){try{let{owner:t,repo:o}=K(n),{data:s}=await e.rest.reactions.createForIssueComment({owner:t,repo:o,comment_id:r,content:i});return a.debug(`Created comment reaction`,{commentId:r,content:i,reactionId:s.id}),{id:s.id}}catch(e){return a.warning(`Failed to create comment reaction`,{commentId:r,content:i,error:t(e)}),null}}async function tn(e,n,r,i){try{let{owner:t,repo:i}=K(n),{data:a}=await e.rest.reactions.listForIssueComment({owner:t,repo:i,comment_id:r,per_page:100});return a.map(e=>({id:e.id,content:e.content,userLogin:e.user?.login??null}))}catch(e){return i.warning(`Failed to list comment reactions`,{commentId:r,error:t(e)}),[]}}async function nn(e,n,r,i,a){try{let{owner:t,repo:o}=K(n);return await e.rest.reactions.deleteForIssueComment({owner:t,repo:o,comment_id:r,reaction_id:i}),a.debug(`Deleted comment reaction`,{commentId:r,reactionId:i}),!0}catch(e){return a.warning(`Failed to delete comment reaction`,{commentId:r,reactionId:i,error:t(e)}),!1}}async function rn(e,n,r,i,a,o){let{owner:s,repo:c}=K(n);try{return await e.rest.issues.createLabel({owner:s,repo:c,name:r,color:i,description:a}),o.debug(`Created label`,{name:r,color:i}),!0}catch(e){return e instanceof Error&&`status`in e&&e.status===422?(o.debug(`Label already exists`,{name:r}),!0):(o.warning(`Failed to create label`,{name:r,error:t(e)}),!1)}}async function an(e,n,r,i,a){try{let{owner:t,repo:o}=K(n);return await e.rest.issues.addLabels({owner:t,repo:o,issue_number:r,labels:[...i]}),a.debug(`Added labels to issue`,{issueNumber:r,labels:i}),!0}catch(e){return a.warning(`Failed to add labels to issue`,{issueNumber:r,labels:i,error:t(e)}),!1}}async function on(e,n,r,i,a){try{let{owner:t,repo:o}=K(n);return await e.rest.issues.removeLabel({owner:t,repo:o,issue_number:r,name:i}),a.debug(`Removed label from issue`,{issueNumber:r,label:i}),!0}catch(e){return e instanceof Error&&`status`in e&&e.status===404?(a.debug(`Label was not present on issue`,{issueNumber:r,label:i}),!0):(a.warning(`Failed to remove label from issue`,{issueNumber:r,label:i,error:t(e)}),!1)}}async function sn(e,n,r){try{let{owner:t,repo:r}=K(n),{data:i}=await e.rest.repos.get({owner:t,repo:r});return i.default_branch}catch(e){return r.warning(`Failed to get default branch`,{repo:n,error:t(e)}),`main`}}const cn={admin:`OWNER`,maintain:`MEMBER`,write:`COLLABORATOR`,triage:`COLLABORATOR`};async function ln(e,n,r,i,a){try{let{data:t}=await e.rest.repos.getCollaboratorPermissionLevel({owner:n,repo:r,username:i}),o=cn[t.permission]??null;return a.debug(`Resolved sender permission`,{username:i,permission:t.permission,association:o}),o}catch(e){return a.warning(`Failed to resolve sender permission`,{username:i,error:t(e)}),null}}async function un(e,n,r){try{let{data:t}=await e.rest.users.getByUsername({username:n});return{id:t.id,login:t.login}}catch(e){return r.debug(`Failed to get user by username`,{username:n,error:t(e)}),null}}const dn={maxComments:50,maxCommits:100,maxFiles:100,maxReviews:100,maxBodyBytes:10*1024,maxTotalBytes:100*1024},fn=`…[truncated]`;function pn(e,t){if(e.length===0)return{text:``,truncated:!1};let n=new TextEncoder,r=n.encode(e);if(r.length<=t)return{text:e,truncated:!1};let i=t-n.encode(fn).length;if(i<=0)return{text:fn,truncated:!0};let a=r.slice(0,i),o=new TextDecoder(`utf-8`,{fatal:!1}).decode(a);for(;o.length>0&&o.charCodeAt(o.length-1)===65533;)a=a.slice(0,-1),o=new TextDecoder(`utf-8`,{fatal:!1}).decode(a);return{text:o+fn,truncated:!0}}async function mn(e,n,r,i,a,o){try{let[t,o]=await Promise.all([e.rest.issues.get({owner:n,repo:r,issue_number:i}),e.rest.issues.listComments({owner:n,repo:r,issue_number:i,per_page:a.maxComments})]),s=t.data,c=pn(s.body??``,a.maxBodyBytes),l=o.data.slice(0,a.maxComments).map(e=>({id:e.node_id??String(e.id),author:e.user?.login??null,body:e.body??``,createdAt:e.created_at,authorAssociation:e.author_association,isMinimized:!1})),u=(s.labels??[]).filter(e=>typeof e==`object`&&!!e&&`name`in e).map(e=>({name:e.name??``,color:e.color})),d=(s.assignees??[]).map(e=>({login:e?.login??``}));return{type:`issue`,number:s.number,title:s.title,body:c.text,bodyTruncated:c.truncated,state:s.state,author:s.user?.login??null,createdAt:s.created_at,labels:u,assignees:d,comments:l,commentsTruncated:o.data.length>=a.maxComments,totalComments:o.data.length}}catch(e){return o.warning(`REST issue fallback failed`,{owner:n,repo:r,number:i,error:t(e)}),null}}async function hn(e,n,r,i,a,o){try{let[s,c,l,u,d]=await Promise.all([e.rest.pulls.get({owner:n,repo:r,pull_number:i}),e.rest.pulls.listCommits({owner:n,repo:r,pull_number:i,per_page:a.maxCommits}),e.rest.pulls.listFiles({owner:n,repo:r,pull_number:i,per_page:a.maxFiles}),e.rest.pulls.listReviews({owner:n,repo:r,pull_number:i,per_page:a.maxReviews}),e.rest.issues.listComments({owner:n,repo:r,issue_number:i,per_page:a.maxComments})]),f=await e.rest.pulls.listRequestedReviewers({owner:n,repo:r,pull_number:i}).catch(e=>(o.warning(`Failed to fetch requested reviewers, defaulting to empty`,{owner:n,repo:r,number:i,error:t(e)}),{data:{users:[],teams:[]}})),p=s.data,m=pn(p.body??``,a.maxBodyBytes),h=p.base.repo?.owner.login,g=p.head.repo?.owner.login,_=g==null||h!==g,v=d.data.slice(0,a.maxComments).map(e=>({id:e.node_id??String(e.id),author:e.user?.login??null,body:e.body??``,createdAt:e.created_at,authorAssociation:e.author_association,isMinimized:!1})),y=c.data.slice(0,a.maxCommits).map(e=>({oid:e.sha,message:e.commit.message,author:e.commit.author?.name??null})),b=l.data.slice(0,a.maxFiles).map(e=>({path:e.filename,additions:e.additions,deletions:e.deletions,status:e.status})),x=u.data.slice(0,a.maxReviews).map(e=>({author:e.user?.login??null,state:e.state,body:e.body??``,createdAt:e.submitted_at??``,comments:[]})),S=(p.labels??[]).map(e=>({name:e.name??``,color:e.color})),C=(p.assignees??[]).map(e=>({login:e?.login??``})),w=(f.data.users??[]).map(e=>e.login),T=(f.data.teams??[]).map(e=>e.name);return{type:`pull_request`,number:p.number,title:p.title,body:m.text,bodyTruncated:m.truncated,state:p.state,author:p.user?.login??null,createdAt:p.created_at,baseBranch:p.base.ref,headBranch:p.head.ref,isFork:_,labels:S,assignees:C,comments:v,commentsTruncated:d.data.length>=a.maxComments,totalComments:d.data.length,commits:y,commitsTruncated:c.data.length>=a.maxCommits,totalCommits:c.data.length,files:b,filesTruncated:l.data.length>=a.maxFiles,totalFiles:l.data.length,reviews:x,reviewsTruncated:u.data.length>=a.maxReviews,totalReviews:u.data.length,authorAssociation:p.author_association,requestedReviewers:w,requestedReviewerTeams:T}}catch(e){return o.warning(`REST pull request fallback failed`,{owner:n,repo:r,number:i,error:t(e)}),null}}async function gn(e,n,r,i,a,o){try{return await e.graphql(` query GetIssue($owner: String!, $repo: String!, $number: Int!, $maxComments: Int!) { repository(owner: $owner, name: $repo) { diff --git a/dist/package-1vOVG41v.js b/dist/package-1vOVG41v.js deleted file mode 100644 index 65a67c44..00000000 --- a/dist/package-1vOVG41v.js +++ /dev/null @@ -1 +0,0 @@ -var e=`3.997.6`;export{e as t}; \ No newline at end of file diff --git a/dist/package-CWUbVncD.js b/dist/package-CWUbVncD.js new file mode 100644 index 00000000..81606430 --- /dev/null +++ b/dist/package-CWUbVncD.js @@ -0,0 +1 @@ +var e=`3.997.13`;export{e as t}; \ No newline at end of file diff --git a/dist/post.js b/dist/post.js index 6efc972e..7d839dbd 100644 --- a/dist/post.js +++ b/dist/post.js @@ -1 +1 @@ -import{$ as e,B as t,F as n,I as r,L as i,M as a,N as o,a as s,ct as c,d as l,f as u,h as d,j as f,m as p,n as m,p as h,t as g}from"./artifact-D6HNowC1.js";function _(e){let t=c(e);return t.length>0?t:void 0}function v(){let e=_(l.S3_ENABLED),t=_(l.S3_BUCKET),n=_(l.S3_PREFIX);if(e==null||t==null||n==null)return;let r=_(l.S3_REGION)??``,i=_(l.S3_ENDPOINT),a=_(l.S3_EXPECTED_BUCKET_OWNER),o=_(l.S3_ALLOW_INSECURE_ENDPOINT),s=_(l.S3_SSE_ENCRYPTION),c=_(l.S3_SSE_KMS_KEY_ID);return{enabled:e===`true`,bucket:t,region:r,prefix:n,endpoint:i,expectedBucketOwner:a,allowInsecureEndpoint:o===`true`,sseEncryption:s===`aws:kms`||s===`AES256`?s:void 0,sseKmsKeyId:c}}async function y(_={}){let y=_.logger??u({phase:`post`}),b=c(l.SHOULD_SAVE_CACHE),x=c(l.CACHE_SAVED),S=c(l.SESSION_ID)||null,C=c(l.OPENCODE_VERSION)||null,w=v();if(y.debug(`Post-action state`,{shouldSaveCache:b,cacheSaved:x,sessionId:S,opencodeVersion:C,hasStoreConfig:w!=null}),b!==`true`){y.info(`Skipping post-action: event was not processed`,{shouldSaveCache:b});return}if(x===`true`)y.info(`Skipping post-action: cache already saved by main action`,{cacheSaved:x});else{let t=String(o());try{await m({components:s(),runId:o(),logger:y,storagePath:i(),authPath:n(),opencodeVersion:C,...w==null?{}:{storeConfig:w}})?y.info(`Post-action cache saved`,{sessionId:S}):y.info(`Post-action: no cache content to save`,{sessionId:S})}catch(t){y.warning(`Post-action cache save failed (non-fatal)`,{error:e(t)})}if(w?.enabled===!0)try{let e=u({phase:`post-object-store`}),n=h(w,e),i=f(),o=a();await d(n,w,`github`,i,t,{runId:t,timestamp:new Date().toISOString(),cleanupSkipped:!0,runAttempt:o},e),await p(n,w,`github`,i,t,r(),e)}catch(t){y.warning(`Post-action object store sync failed (non-fatal)`,{error:e(t)})}}if(t()&&c(l.ARTIFACT_UPLOADED)!==`true`)try{let e=u({phase:`post-artifact-upload`});await g({logPath:r(),runId:o(),runAttempt:a(),logger:e})}catch(t){y.warning(`Post-action artifact upload failed (non-fatal)`,{error:e(t)})}}await y();export{}; \ No newline at end of file +import{$ as e,B as t,F as n,I as r,L as i,M as a,N as o,a as s,ct as c,d as l,f as u,h as d,j as f,m as p,n as m,p as h,t as g}from"./artifact-EjsFCUSD.js";function _(e){let t=c(e);return t.length>0?t:void 0}function v(){let e=_(l.S3_ENABLED),t=_(l.S3_BUCKET),n=_(l.S3_PREFIX);if(e==null||t==null||n==null)return;let r=_(l.S3_REGION)??``,i=_(l.S3_ENDPOINT),a=_(l.S3_EXPECTED_BUCKET_OWNER),o=_(l.S3_ALLOW_INSECURE_ENDPOINT),s=_(l.S3_SSE_ENCRYPTION),c=_(l.S3_SSE_KMS_KEY_ID);return{enabled:e===`true`,bucket:t,region:r,prefix:n,endpoint:i,expectedBucketOwner:a,allowInsecureEndpoint:o===`true`,sseEncryption:s===`aws:kms`||s===`AES256`?s:void 0,sseKmsKeyId:c}}async function y(_={}){let y=_.logger??u({phase:`post`}),b=c(l.SHOULD_SAVE_CACHE),x=c(l.CACHE_SAVED),S=c(l.SESSION_ID)||null,C=c(l.OPENCODE_VERSION)||null,w=v();if(y.debug(`Post-action state`,{shouldSaveCache:b,cacheSaved:x,sessionId:S,opencodeVersion:C,hasStoreConfig:w!=null}),b!==`true`){y.info(`Skipping post-action: event was not processed`,{shouldSaveCache:b});return}if(x===`true`)y.info(`Skipping post-action: cache already saved by main action`,{cacheSaved:x});else{let t=String(o());try{await m({components:s(),runId:o(),logger:y,storagePath:i(),authPath:n(),opencodeVersion:C,...w==null?{}:{storeConfig:w}})?y.info(`Post-action cache saved`,{sessionId:S}):y.info(`Post-action: no cache content to save`,{sessionId:S})}catch(t){y.warning(`Post-action cache save failed (non-fatal)`,{error:e(t)})}if(w?.enabled===!0)try{let e=u({phase:`post-object-store`}),n=h(w,e),i=f(),o=a();await d(n,w,`github`,i,t,{runId:t,timestamp:new Date().toISOString(),cleanupSkipped:!0,runAttempt:o},e),await p(n,w,`github`,i,t,r(),e)}catch(t){y.warning(`Post-action object store sync failed (non-fatal)`,{error:e(t)})}}if(t()&&c(l.ARTIFACT_UPLOADED)!==`true`)try{let e=u({phase:`post-artifact-upload`});await g({logPath:r(),runId:o(),runAttempt:a(),logger:e})}catch(t){y.warning(`Post-action artifact upload failed (non-fatal)`,{error:e(t)})}}await y();export{}; \ No newline at end of file diff --git a/dist/protocols-D7c0rc_2.js b/dist/protocols-D7c0rc_2.js new file mode 100644 index 00000000..c1d1940c --- /dev/null +++ b/dist/protocols-D7c0rc_2.js @@ -0,0 +1 @@ +import{n as e,r as t}from"./chunk-BTyA9uPd.js";import{Dn as n,Mt as r,Nn as i,Pt as a,bn as o,ft as s,gn as c,ht as l,in as u,jt as d,kn as f,kt as p,ln as ee,mt as m,n as te,nn as h,on as g,ot as ne,pt as re,r as _,s as ie,t as v,ut as ae,vn as oe,vt as se,wn as ce,xt as le,yt as ue}from"./serde-Bngt0OLn.js";var y,b=e((()=>{_(),y=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return v.mutate(e);if(!e)return v.mutate(new Uint8Array);let n=t.streamCollector(e);return v.mutate(await n)}}));function x(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}var S=e((()=>{})),C,w=e((()=>{C=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}})),T,E=e((()=>{h(),c(),w(),T=class extends C{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=u.for(e.defaultNamespace);for(let t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return f}getResponseType(){return n}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(`url`in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||={};for(let[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(let n in t.headers)e.headers[n]=t.headers[n].join(`, `);return e}else{if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(let n in t.headers)e.headers[n]=t.headers[n];return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;let r=g.of(t.input),i=ee(t.traits??{});if(i.endpoint){let t=i.endpoint?.[0];if(typeof t==`string`){for(let[e,i]of r.structIterator()){if(!i.getMergedTraits().hostLabel)continue;let r=n[e];if(typeof r!=`string`)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await import(`./event-streams-CS62lFqe.js`);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,i){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error(`@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.`);return e.eventStreamMarshaller}}})),D,O=e((()=>{h(),_(),c(),E(),b(),S(),D=class extends T{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=g.of(e?.input),l=[],u=[],d=!1,p,m=new f({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(m,s),this.setHostPrefix(m,e,r);let t=ee(e.traits);if(t.http){m.method=t.http[0];let[e,n]=t.http[1].split(`?`);m.path==`/`?m.path=e:m.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(m.path.includes(`{${e}+}`)||m.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(p=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):p=s:(i.write(t,s),p=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();m.path.includes(`{${e}+}`)?m.path=m.path.replace(`{${e}+}`,n.split(`/`).map(x).join(`/`)):m.path.includes(`{${e}}`)&&(m.path=m.path.replace(`{${e}}`,x(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(d=!0,l.push(e),u.push(t))}if(d&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,u,void 0];n?a[6]=n:a.pop(),i.write(a,r),p=i.flush()}return m.headers=o,m.query=a,m.body=p,m}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=g.of(e.output),a={};if(n.statusCode>=300){let i=await y(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await y(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await y(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,c=this.deserializer,l=g.of(e),u=[];for(let[e,r]of l.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:l}):a[e]=ie(n.body);else if(n.body){let i=await y(n.body,t);i.byteLength>0&&(a[e]=await c.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?s(o,`,`,2):ae(o);let l=[];for(let e of i)l.push(await c.read(n,e.trim()));a[e]=l}else a[e]=await c.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],s=r.getValueSchema();s.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await c.read(s,o)}}else i.httpResponseCode?a[e]=n.statusCode:u.push(e)}return u.discardResponseBody=o,u}}})),k,A=e((()=>{h(),c(),E(),b(),k=class extends T{async serializeRequest(e,t,n){let r=this.serializer,i={},a={},o=await n.endpoint(),s=g.of(e?.input),c=s.getSchema(),l,u=t&&typeof t==`object`?t:{},d=new f({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:i,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(d,o),this.setHostPrefix(d,e,u)),u){let e=s.getEventStreamMember();if(e){if(u[e]){let t={};for(let[n,i]of s.structIterator())n!==e&&u[n]&&(r.write(i,u[n]),t[n]=r.flush());l=await this.serializeEventStream({eventStream:u[e],requestSchema:s,initialRequest:t})}}else r.write(c,u),l=r.flush()}return d.headers=Object.assign(d.headers,a),d.query=i,d.body=l,d.method=`POST`,d}async deserializeResponse(e,t,n){let r=this.deserializer,i=g.of(e.output),a={};if(n.statusCode>=300){let i=await y(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=i.getEventStreamMember();if(o)a[o]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:a});else{let e=await y(n.body,t);e.byteLength>0&&Object.assign(a,await r.read(i,e))}return a.$metadata=this.deserializeMetadata(n),a}}})),j,de=e((()=>{S(),j=(e,t,n,r,i,a)=>{if(t!=null&&t[n]!==void 0){let t=r();if(t==null||t.length<=0)throw Error(`Empty value provided for input HTTP label: `+n+`.`);e=e.replace(i,a?t.split(`/`).map(e=>x(e)).join(`/`):x(t))}else throw Error(`No value provided for input HTTP label: `+n+`.`);return e}}));function fe(e,t){return new M(e,t)}var M,pe=e((()=>{c(),de(),M=class{input;context;query={};method=``;headers={};path=``;body=null;hostname=``;resolvePathStack=[];constructor(e,t){this.input=e,this.context=t}async build(){let{hostname:e,protocol:t=`https`,port:n,path:r}=await this.context.endpoint();this.path=r;for(let e of this.resolvePathStack)e(this.path);return new f({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(t=>{this.path=`${t?.endsWith(`/`)?t.slice(0,-1):t||``}`+e}),this}p(e,t,n,r){return this.resolvePathStack.push(i=>{this.path=j(i,this.input,e,t,n,r)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}}));function N(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:n,httpPrefixHeaders:r,httpHeader:i,httpQuery:a}=e.getMergedTraits();return(t.httpBindings?typeof r==`string`||i?6:a||n?5:void 0:void 0)??t.timestampFormat.default}var P=e((()=>{})),F,I=e((()=>{h(),_(),w(),P(),F=class extends C{settings;constructor(e){super(),this.settings=e}read(e,t){let n=g.of(e);if(n.isListSchema())return ae(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??a)(t);if(n.isTimestampSchema())switch(N(n,this.settings)){case 5:return m(t);case 6:return l(t);case 7:return re(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(n.isStringSchema()){let e=n.getMergedTraits().mediaType,r=t;if(e)return n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r)),(e===`application/json`||e.endsWith(`+json`))&&(r=ue.from(r)),r}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new ne(t,`bigDecimal`):n.isBooleanSchema()?String(t).toLowerCase()===`true`:t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??p)((this.serdeContext?.base64Decoder??a)(e))}}})),L,R=e((()=>{h(),_(),w(),I(),L=class extends C{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new F(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=g.of(e),i=n.getMergedTraits(),a=this.serdeContext?.utf8Encoder??p;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(n,a(t));if(i.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??r;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?a(t):t}return this.codecDeserializer.read(n,t)}}})),z,B=e((()=>{h(),_(),w(),P(),z=class extends C{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=g.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(N(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=le(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??d)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:se(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=ue.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??d)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=te():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}}})),V,H=e((()=>{h(),B(),V=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new z(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=g.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}})),U,W,me=e((()=>{U=i(),W=class{name;kind;values;constructor({name:e,kind:t=U.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=t,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(t=>t!==e)}toString(){return this.values.map(e=>e.includes(`,`)||e.includes(` `)?`"${e}"`:e).join(`, `)}get(){return this.values}}})),G,he=e((()=>{G=class{entries={};encoding;constructor({fields:e=[],encoding:t=`utf-8`}){e.forEach(this.setField.bind(this)),this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(t=>t.kind===e)}}})),K,q,ge=e((()=>{K=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),q=e=>({httpHandler:e.httpHandler()})}));function _e(e){return t=>async n=>{let r=n.request;if(f.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(J)===-1)try{let n=e(t);r.headers={...r.headers,[J]:String(n)}}catch{}}return t({...n,request:r})}}var J,Y,X,ve=e((()=>{c(),J=`content-length`,Y={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},X=e=>({applyToStack:t=>{t.add(_e(e.bodyLengthChecker),Y)}})})),Z,ye,Q=e((()=>{Z=e=>encodeURIComponent(e).replace(/[!'()*]/g,ye),ye=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`})),be,xe=e((()=>{Q(),be=e=>e.split(`/`).map(Z).join(`/`)}));function Se(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Z(n),Array.isArray(r))for(let e=0,i=r.length;e{Q()})),Ce=t({Field:()=>W,Fields:()=>G,FromStringShapeDeserializer:()=>F,HttpBindingProtocol:()=>D,HttpInterceptingShapeDeserializer:()=>L,HttpInterceptingShapeSerializer:()=>V,HttpProtocol:()=>T,HttpRequest:()=>f,HttpResponse:()=>n,RequestBuilder:()=>M,RpcProtocol:()=>k,SerdeContext:()=>C,ToStringShapeSerializer:()=>z,buildQueryString:()=>Se,collectBody:()=>y,contentLengthMiddleware:()=>_e,contentLengthMiddlewareOptions:()=>Y,determineTimestampFormat:()=>N,escapeUri:()=>Z,escapeUriPath:()=>be,extendedEncodeURIComponent:()=>x,getContentLengthPlugin:()=>X,getHttpHandlerExtensionConfiguration:()=>K,isValidHostname:()=>ce,parseQueryString:()=>o,parseUrl:()=>oe,requestBuilder:()=>fe,resolveHttpHandlerRuntimeConfig:()=>q,resolvedPath:()=>j}),we=e((()=>{b(),S(),O(),E(),A(),pe(),de(),I(),R(),H(),B(),P(),w(),me(),he(),c(),ge(),ve(),Q(),xe(),$()}));export{O as C,S as D,x as E,y as O,D as S,w as T,P as _,X as a,k as b,ge as c,H as d,L as f,N as g,I as h,$ as i,b as k,q as l,F as m,Ce as n,ve as o,R as p,Se as r,K as s,we as t,V as u,pe as v,C as w,A as x,fe as y}; \ No newline at end of file diff --git a/dist/serde-Bngt0OLn.js b/dist/serde-Bngt0OLn.js new file mode 100644 index 00000000..4a2e3625 --- /dev/null +++ b/dist/serde-Bngt0OLn.js @@ -0,0 +1,11 @@ +import{n as e,r as t,t as n}from"./chunk-BTyA9uPd.js";import{Duplex as r,PassThrough as i,Readable as a,Writable as o}from"node:stream";import{createHash as s,createHmac as c,getRandomValues as l}from"node:crypto";import{readFile as u}from"node:fs/promises";import{join as d,sep as f}from"node:path";import{homedir as ee}from"node:os";import{ReadStream as te,fstatSync as ne,lstatSync as re}from"node:fs";var p,m,h,ie,ae,oe=e((()=>{p=(e,t)=>{let n=[];if(e&&n.push(e),t)for(let e of t)n.push(e);return n},m=(e,t)=>`${e||`anonymous`}${t&&t.length>0?` (a.k.a. ${t.join(`,`)})`:``}`,h=()=>{let e=[],t=[],n=!1,r=new Set,i=e=>e.sort((e,t)=>ie[t.step]-ie[e.step]||ae[t.priority||`normal`]-ae[e.priority||`normal`]),a=n=>{let i=!1,a=e=>{let t=p(e.name,e.aliases);if(t.includes(n)){i=!0;for(let e of t)r.delete(e);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},o=n=>{let i=!1,a=e=>{if(e.middleware===n){i=!0;for(let t of p(e.name,e.aliases))r.delete(t);return!1}return!0};return e=e.filter(a),t=t.filter(a),i},s=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(u.identifyOnResolve()),n),c=e=>{let t=[];return e.before.forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t.push(e),e.after.reverse().forEach(e=>{e.before.length===0&&e.after.length===0?t.push(e):t.push(...c(e))}),t},l=(n=!1)=>{let r=[],a=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of p(t.name,t.aliases))o[e]=t;r.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of p(t.name,t.aliases))o[e]=t;a.push(t)}),a.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(t===void 0){if(n)return;throw Error(`${e.toMiddleware} is not found when adding ${m(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}e.relation===`after`&&t.after.push(e),e.relation===`before`&&t.before.push(e)}}),i(r).map(c).reduce((e,t)=>(e.push(...t),e),[])},u={add:(t,n={})=>{let{name:i,override:a,aliases:o}=n,s={step:`initialize`,priority:`normal`,middleware:t,...n},c=p(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${m(i,o)}'`);for(let t of c){let n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(n===-1)continue;let r=e[n];if(r.step!==s.step||s.priority!==r.priority)throw Error(`"${m(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${m(i,o)}" middleware with ${s.priority} priority in ${s.step} step.`);e.splice(n,1)}}for(let e of c)r.add(e)}e.push(s)},addRelativeTo:(e,n)=>{let{name:i,override:a,aliases:o}=n,s={middleware:e,...n},c=p(i,o);if(c.length>0){if(c.some(e=>r.has(e))){if(!a)throw Error(`Duplicate middleware name '${m(i,o)}'`);for(let e of c){let n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(n===-1)continue;let r=t[n];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw Error(`"${m(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${m(i,o)}" middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(n,1)}}for(let e of c)r.add(e)}t.push(s)},clone:()=>s(h()),use:e=>{e.applyToStack(u)},remove:e=>typeof e==`string`?a(e):o(e),removeByTag:n=>{let i=!1,a=e=>{let{tags:t,name:a,aliases:o}=e;if(t&&t.includes(n)){let e=p(a,o);for(let t of e)r.delete(t);return i=!0,!1}return!0};return e=e.filter(a),t=t.filter(a),i},concat:e=>{let t=s(h());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>l(!0).map(e=>{let t=e.step??e.relation+` `+e.toMiddleware;return m(e.name,e.aliases)+` - `+t}),identifyOnResolve(e){return typeof e==`boolean`&&(n=e),n},resolve:(e,t)=>{for(let n of l().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(u.identify()),e}};return u},ie={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ae={high:3,normal:2,low:1}})),g=n((e=>{e.HttpAuthLocation=void 0,(function(e){e.HEADER=`header`,e.QUERY=`query`})(e.HttpAuthLocation||={}),e.HttpApiKeyAuthLocation=void 0,(function(e){e.HEADER=`header`,e.QUERY=`query`})(e.HttpApiKeyAuthLocation||={}),e.EndpointURLScheme=void 0,(function(e){e.HTTP=`http`,e.HTTPS=`https`})(e.EndpointURLScheme||={}),e.AlgorithmId=void 0,(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(e.AlgorithmId||={});let t=t=>{let n=[];return t.sha256!==void 0&&n.push({algorithmId:()=>e.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&n.push({algorithmId:()=>e.AlgorithmId.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}},n=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t};e.FieldPosition=void 0,(function(e){e[e.HEADER=0]=`HEADER`,e[e.TRAILER=1]=`TRAILER`})(e.FieldPosition||={}),e.IniSectionType=void 0,(function(e){e.PROFILE=`profile`,e.SSO_SESSION=`sso-session`,e.SERVICES=`services`})(e.IniSectionType||={}),e.RequestHandlerProtocol=void 0,(function(e){e.HTTP_0_9=`http/0.9`,e.HTTP_1_0=`http/1.0`,e.TDS_8_0=`tds/8.0`})(e.RequestHandlerProtocol||={}),e.SMITHY_CONTEXT_KEY=`__smithy_context`,e.getDefaultClientConfiguration=e=>t(e),e.resolveDefaultRuntimeConfig=e=>n(e)})),se,_,ce=e((()=>{se=g(),_=e=>e[se.SMITHY_CONTEXT_KEY]||(e[se.SMITHY_CONTEXT_KEY]={})}));function le(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}var ue,de=e((()=>{ue=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(t){let n=new e({...t,headers:{...t.headers}});return n.query&&=le(n.query),n}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}}})),fe,pe=e((()=>{fe=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}}})),me,v,he=e((()=>{me=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),v=(e,t=!1)=>{if(!t)return me.test(e);let n=e.split(`.`);for(let e of n)if(!v(e))return!1;return!0}}));function ge(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}var _e=e((()=>{})),y,ve=e((()=>{y=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t}}));function ye(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var be=e((()=>{})),xe,Se=e((()=>{be(),xe=e=>{if(typeof e==`string`)return xe(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ye(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}}})),b,Ce=e((()=>{Se(),b=e=>{if(typeof e==`object`){if(`url`in e){let t=xe(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return xe(e)}})),x=e((()=>{ce(),de(),pe(),he(),_e(),ve(),be(),Se(),Ce()})),we,Te=e((()=>{we=e=>()=>{throw Error(e)}})),Ee,De=e((()=>{Ee=e=>()=>Promise.reject(e)})),Oe,ke=e((()=>{Oe=()=>{let e=new WeakSet;return(t,n)=>{if(typeof n==`object`&&n){if(e.has(n))return`[Circular]`;e.add(n)}return n}}})),Ae,je=e((()=>{Ae=e=>new Promise(t=>setTimeout(t,e*1e3))})),Me,S,Ne,Pe=e((()=>{ke(),Me={minDelay:2,maxDelay:120},(function(e){e.ABORTED=`ABORTED`,e.FAILURE=`FAILURE`,e.SUCCESS=`SUCCESS`,e.RETRY=`RETRY`,e.TIMEOUT=`TIMEOUT`})(S||={}),Ne=e=>{if(e.state===S.ABORTED){let t=Error(`${JSON.stringify({...e,reason:`Request was aborted`},Oe())}`);throw t.name=`AbortError`,t}else if(e.state===S.TIMEOUT){let t=Error(`${JSON.stringify({...e,reason:`Waiter has timed out`},Oe())}`);throw t.name=`TimeoutError`,t}else if(e.state!==S.SUCCESS)throw Error(`${JSON.stringify(e,Oe())}`);return e}})),Fe,Ie,Le,Re,ze,Be=e((()=>{ke(),je(),Pe(),Fe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:a},o,s)=>{let c={},[l,u]=[e*1e3,t*1e3],d=0,f=Date.now()+n*1e3,ee=Date.now()+6e4,te=!1;for(;;){if(d>0){let e=Re(l,u,d,f);if(r?.signal?.aborted||a?.aborted){let e=`AbortController signal aborted.`;return c[e]|=0,c[e]+=1,{state:S.ABORTED,observedResponses:c}}if(Date.now()+e>f)return{state:S.TIMEOUT,observedResponses:c};await Ae(e/1e3)}let{state:e,reason:t}=await s(i,o);if(t){let e=Le(t);c[e]|=0,c[e]+=1}if(e!==S.RETRY)return{state:e,reason:t,final:t,observedResponses:c};d+=1,!te&&Date.now()>=ee&&(Ie(c,i),te=!0)}},Ie=(e={},t)=>{let n=Object.keys(e),r=0,i=0;for(let t of n){let n=e[t]|0;r=Math.max(n,r),t.startsWith(`403:`)&&(i+=n)}let a=t?.config?.logger,o=typeof a?.warn==`function`&&!a.constructor?.name?.includes?.(`NoOpLogger`)?a:console;(i>=3||n[n.length-1]?.startsWith(`403:`))&&o.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`)},Le=e=>{let t=e?.$response?.statusCode??e?.$metadata?.httpStatusCode;return e?.$responseBodyText?`${t?t+`: `:``}Deserialization error for body: ${e.$responseBodyText}`:t?e?.$response||e?.message?`${t??`Unknown`}: ${e?.message}`:`${t}: OK`:String(e?.message??JSON.stringify(e,Oe())??`Unknown`)},Re=(e,t,n,r)=>{if(n>Math.log(t/e)/Math.log(2)+1)return t;let i=e*2**(n-1),a=ze(e,Math.min(i,t));if(Date.now()+a>r){let e=r-Date.now();return Math.max(0,e-500)}return a},ze=(e,t)=>e+Math.random()*(t-e)})),Ve,He=e((()=>{Ve=e=>{if(e.maxWaitTime<=0)throw Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);if(e.minDelay<=0)throw Error(`WaiterConfiguration.minDelay must be greater than 0`);if(e.maxDelay<=0)throw Error(`WaiterConfiguration.maxDelay must be greater than 0`);if(e.maxWaitTime<=e.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay{Be(),He(),Pe(),Ue=e=>{let t;return{clearListener(){typeof e.removeEventListener==`function`&&e.removeEventListener(`abort`,t)},aborted:new Promise(n=>{t=()=>n({state:S.ABORTED}),typeof e.addEventListener==`function`?e.addEventListener(`abort`,t):e.onabort=t})}},We=async(e,t,n)=>{let r={...Me,...e};Ve(r);let i=[Fe(r,t,n)],a=[];if(e.abortSignal){let{aborted:t,clearListener:n}=Ue(e.abortSignal);a.push(n),i.push(t)}if(e.abortController?.signal){let{aborted:t,clearListener:n}=Ue(e.abortController.signal);a.push(n),i.push(t)}return Promise.race(i).then(e=>{for(let e of a)e();return e})}})),Ke,qe=e((()=>{oe(),Ke=class{config;middlewareStack=h();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:n}=e;n&&typeof t==`function`&&(e.protocol=new t(n))}send(e,t,n){let r=typeof t==`function`?void 0:t,i=typeof t==`function`?t:n,a=r===void 0&&this.config.cacheMiddleware===!0,o;if(a){this.handlers||=new WeakMap;let t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(i)o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{});else return o(e).then(e=>e.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}})),C,Je=e((()=>{C=e=>typeof e==`function`?e():e})),Ye,Xe=e((()=>{Ye=(e,t,n,r,i)=>({name:t,namespace:e,traits:n,input:r,output:i})})),Ze,Qe,$e=e((()=>{x(),Xe(),Ze=e=>(t,n)=>async r=>{let{response:i}=await t(r),{operationSchema:a}=_(n),[,o,s,c,l,u]=a??[];try{return{response:i,output:await e.protocol.deserializeResponse(Ye(o,s,c,l,u),{...e,...n},i)}}catch(e){if(Object.defineProperty(e,"$response",{value:i,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!n.logger||n.logger?.constructor?.name===`NoOpLogger`?console.warn(t):n.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(fe.isInstance(i)){let{headers:t={},statusCode:n}=i,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:Qe(/^x-[\w-]+-request-?id$/,r),extendedRequestId:Qe(/^x-[\w-]+-id-2$/,r),cfId:Qe(/^x-[\w-]+-cf-id$/,r)}}}catch{}}throw e}},Qe=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]})),et,tt=e((()=>{x(),Xe(),et=e=>(t,n)=>async r=>{let{operationSchema:i}=_(n),[,a,o,s,c,l]=i??[],u=n.endpointV2?async()=>b(n.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(Ye(a,o,s,c,l),r.input,{...e,...n,endpoint:u});return t({...r,request:d})}}));function nt(e){return{applyToStack:t=>{t.add(et(e),it),t.add(Ze(e),rt),e.protocol.setSerdeContext(e)}}}var rt,it,at=e((()=>{$e(),tt(),rt={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},it={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}})),w,T=e((()=>{w=class{name;namespace;traits;static assign(e,t){return Object.assign(e,t)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}getName(){return this.namespace+`#`+this.name}}})),ot,st,ct=e((()=>{T(),ot=class e extends w{static symbol=Symbol.for(`@smithy/lis`);name;traits;valueSchema;symbol=e.symbol},st=(e,t,n,r)=>w.assign(new ot,{name:t,namespace:e,traits:n,valueSchema:r})})),lt,ut,dt=e((()=>{T(),lt=class e extends w{static symbol=Symbol.for(`@smithy/map`);name;traits;keySchema;valueSchema;symbol=e.symbol},ut=(e,t,n,r,i)=>w.assign(new lt,{name:t,namespace:e,traits:n,keySchema:r,valueSchema:i})})),ft,pt,mt=e((()=>{T(),ft=class e extends w{static symbol=Symbol.for(`@smithy/ope`);name;traits;input;output;symbol=e.symbol},pt=(e,t,n,r,i)=>w.assign(new ft,{name:t,namespace:e,traits:n,input:r,output:i})})),ht,gt,_t=e((()=>{T(),ht=class e extends w{static symbol=Symbol.for(`@smithy/str`);name;traits;memberNames;memberList;symbol=e.symbol},gt=(e,t,n,r,i)=>w.assign(new ht,{name:t,namespace:e,traits:n,memberNames:r,memberList:i})})),vt,yt,bt=e((()=>{T(),_t(),vt=class e extends ht{static symbol=Symbol.for(`@smithy/err`);ctor;symbol=e.symbol},yt=(e,t,n,r,i,a)=>w.assign(new vt,{name:t,namespace:e,traits:n,memberNames:r,memberList:i,ctor:null})}));function E(e){if(typeof e==`object`)return e;if(e|=0,xt[e])return xt[e];let t={},n=0;for(let r of[`httpLabel`,`idempotent`,`idempotencyToken`,`sensitive`,`httpPayload`,`httpResponseCode`,`httpQueryParams`])(e>>n++&1)==1&&(t[r]=1);return xt[e]=t}var xt,St=e((()=>{xt=[]}));function Ct(e,t){return e instanceof Et?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new Et(e,t)}var D,wt,Tt,Et,Dt,Ot,kt=e((()=>{Je(),St(),D={it:Symbol.for(`@smithy/nor-struct-it`),ns:Symbol.for(`@smithy/ns`)},wt=[],Tt={},Et=class e{ref;memberName;static symbol=Symbol.for(`@smithy/nor`);symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,n){this.ref=t,this.memberName=n;let r=[],i=t,a=t;for(this._isMemberSchema=!1;Dt(i);)r.push(i[1]),i=i[0],a=C(i),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,E(t))}}else this.memberTraits=0;if(a instanceof e){let e=this.memberTraits;Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=n??a.memberName;return}if(this.schema=C(a),Ot(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!n)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return!t&&typeof e==`object`&&e?e.symbol===this.symbol:t}static of(t){let n=typeof t==`function`||typeof t==`object`&&!!t;if(typeof t==`number`){if(wt[t])return wt[t]}else if(typeof t==`string`){if(Tt[t])return Tt[t]}else if(n&&t[D.ns])return t[D.ns];let r=C(t);if(r instanceof e)return r;if(Dt(r)){let[n,i]=r;if(n instanceof e)return Object.assign(n.getMergedTraits(),E(i)),n;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let i=new e(r);return n?t[D.ns]=i:typeof r==`string`?Tt[r]=i:typeof r==`number`?wt[r]=i:i}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes(`#`)?t.split(`#`)[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e==`number`?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e==`number`?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!=`object`)return!1;let t=e[0];return t===3||t===-3||t===4}isUnionSchema(){let e=this.getSchema();return typeof e==`object`?e[0]===4:!1}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e==`number`&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()===`unit`}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??={...this.getOwnTraits(),...this.getMemberTraits()}}getMemberTraits(){return E(this.memberTraits)}getOwnTraits(){return E(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema();return Ct([e?15:n[4]??0,0],`key`)}getValueSchema(){let e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e==`number`?63&e:e&&typeof e==`object`&&(n||r)?e[3+e[0]]:t?15:void 0;if(i!=null)return Ct([i,0],n?`value`:`member`);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let n=t[4].indexOf(e),r=t[5][n];return Ct(Dt(r)?r:[r,0],e)}if(this.isDocumentSchema())return Ct([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,n]of this.structIterator())e[t]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return``}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error(`@smithy/core/schema - cannot iterate non-struct schema.`);let e=this.getSchema(),t=e[4].length,n=e[D.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let r=0;rArray.isArray(e)&&e.length===2,Ot=e=>Array.isArray(e)&&e.length>=5})),At,jt,Mt,Nt=e((()=>{T(),At=class e extends w{static symbol=Symbol.for(`@smithy/sim`);name;schemaRef;traits;symbol=e.symbol},jt=(e,t,n,r)=>w.assign(new At,{name:t,namespace:e,traits:r,schemaRef:n}),Mt=(e,t,n,r)=>w.assign(new At,{name:t,namespace:e,traits:n,schemaRef:r})})),Pt,Ft=e((()=>{Pt={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}})),It,Lt=e((()=>{It=class e{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){let{schemas:t,exceptions:n}=this;for(let[n,r]of e.schemas)t.has(n)||t.set(n,r);for(let[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(t,n){let r=this.normalizeShapeId(t);for(let t of[this,e.for(r.split(`#`)[0])])t.schemas.set(r,n)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes(`#`)){let t=`#`+e,n=[];for(let[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(n.length===1)return n[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(t,n){let r=t,i=r[1];for(let t of[this,e.for(i)])t.schemas.set(i+`#`+r[2],r),t.exceptions.set(r,n)}getErrorCtor(t){let n=t;return this.exceptions.has(n)?this.exceptions.get(n):e.for(n[1]).exceptions.get(n)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,n]=e,r=t+`#`+n;if(r.startsWith(`smithy.ts.sdk.synthetic.`)&&r.endsWith(`ServiceException`))return e}}find(e){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes(`#`)?e:this.namespace+`#`+e}}})),Rt=t({ErrorSchema:()=>vt,ListSchema:()=>ot,MapSchema:()=>lt,NormalizedSchema:()=>Et,OperationSchema:()=>ft,SCHEMA:()=>Pt,Schema:()=>w,SimpleSchema:()=>At,StructureSchema:()=>ht,TypeRegistry:()=>It,deref:()=>C,deserializerMiddlewareOption:()=>rt,error:()=>yt,getSchemaSerdePlugin:()=>nt,isStaticSchema:()=>Ot,list:()=>st,map:()=>ut,op:()=>pt,operation:()=>Ye,serializerMiddlewareOption:()=>it,sim:()=>jt,simAdapter:()=>Mt,simpleSchemaCacheN:()=>wt,simpleSchemaCacheS:()=>Tt,struct:()=>gt,traitsCache:()=>xt,translateTraits:()=>E}),zt=e((()=>{Je(),at(),ct(),dt(),mt(),Xe(),bt(),kt(),T(),Nt(),_t(),Ft(),St(),Lt()}));function Bt(e,t){if(t==null)return t;let n=Et.of(e);if(n.getMergedTraits().sensitive)return Vt;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return Vt}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return Vt}else if(n.isStructSchema()&&typeof t==`object`){let e=t,r={};for(let[t,i]of n.structIterator())e[t]!=null&&(r[t]=Bt(i,e[t]));return r}return t}var Vt,Ht=e((()=>{zt(),Vt=`***SensitiveInformation***`})),Ut,Wt,Gt,Kt=e((()=>{Ut=g(),oe(),Ht(),Wt=class{middlewareStack=h();schema;static classBuilder(){return new Gt}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let i of r.bind(this)(u,e,t,n))this.middlewareStack.use(i);let d=e.concat(this.middlewareStack),{logger:f}=t,ee={logger:f,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:s,[Ut.SMITHY_CONTEXT_KEY]:{commandInstance:this,...c},...l},{requestHandler:te}=t,ne=n??{};return c.eventStream&&(ne={isEventStream:!0,...ne}),d.resolve(e=>te.handle(e.request,ne),ee)}},Gt=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName=``;_clientName=``;_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,t;return t=class extends Wt{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,i){let a=e._operationSchema,o=a?.[4]??a?.input,s=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Bt.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Bt.bind(null,s):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}})),qt,Jt=e((()=>{qt=`***SensitiveInformation***`})),Yt,Xt=e((()=>{Yt=(e,t,n)=>{for(let[n,r]of Object.entries(e)){let e=async function(e,t,n){let i=new r(e);if(typeof t==`function`)this.send(i,t);else if(typeof n==`function`){if(typeof t!=`object`)throw Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else return this.send(i,t)},i=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,``);t.prototype[i]=e}let{paginators:r={},waiters:i={}}=n??{};for(let[e,n]of Object.entries(r))t.prototype[e]===void 0&&(t.prototype[e]=function(e={},t,...r){return n({...t,client:this},e,...r)});for(let[e,n]of Object.entries(i))t.prototype[e]===void 0&&(t.prototype[e]=async function(e={},t,...r){let i=t;return typeof t==`number`&&(i={maxWaitTime:t}),n({...i,client:this},e,...r)})}})),Zt,Qt,$t=e((()=>{Zt=class e extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(t){if(!t)return!1;let n=t;return e.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault===`client`||n.$fault===`server`)}static[Symbol.hasInstance](t){if(!t)return!1;let n=t;return this===e?e.isInstance(t):e.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}},Qt=(e,t={})=>(Object.entries(t).filter(([,e])=>e!==void 0).forEach(([t,n])=>{(e[t]==null||e[t]===``)&&(e[t]=n)}),e.message=e.message||e.Message||`UnknownError`,delete e.Message,e)})),en,tn,nn,rn=e((()=>{$t(),en=({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{let i=nn(e),a=i.httpStatusCode?i.httpStatusCode+``:void 0;throw Qt(new n({name:t?.code||t?.Code||r||a||`UnknownError`,$fault:`client`,$metadata:i}),t)},tn=e=>({output:t,parsedBody:n,errorCode:r})=>{en({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},nn=e=>({httpStatusCode:e.statusCode,requestId:e.headers[`x-amzn-requestid`]??e.headers[`x-amzn-request-id`]??e.headers[`x-amz-request-id`],extendedRequestId:e.headers[`x-amz-id-2`],cfId:e.headers[`x-amz-cf-id`]})})),an,on=e((()=>{an=e=>{switch(e){case`standard`:return{retryMode:`standard`,connectionTimeout:3100};case`in-region`:return{retryMode:`standard`,connectionTimeout:1100};case`cross-region`:return{retryMode:`standard`,connectionTimeout:3100};case`mobile`:return{retryMode:`standard`,connectionTimeout:3e4};default:return{}}}})),sn,cn,ln=e((()=>{sn=!1,cn=e=>{e&&!sn&&parseInt(e.substring(1,e.indexOf(`.`)))<16&&(sn=!0)}})),un,dn,fn,pn,mn=e((()=>{un=g(),dn=Object.values(un.AlgorithmId),fn=e=>{let t=[];for(let n in un.AlgorithmId){let r=un.AlgorithmId[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}for(let[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};let r=n.algorithmId(),i=n.checksumConstructor();dn.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms(){return t}}},pn=e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let n=e.algorithmId();dn.includes(n)&&(t[n]=e.checksumConstructor())}),t}})),hn,gn,_n=e((()=>{hn=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),gn=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t}})),vn,yn,bn,xn=e((()=>{mn(),_n(),vn=e=>Object.assign(fn(e),hn(e)),yn=vn,bn=e=>Object.assign(pn(e),gn(e))})),Sn,Cn=e((()=>{Sn=e=>Array.isArray(e)?e:[e]})),wn,Tn=e((()=>{wn=e=>{let t=`#text`;for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]==`object`&&e[n]!==null&&(e[n]=wn(e[n]));return e}})),En,Dn=e((()=>{En=e=>e!=null})),On,kn=e((()=>{On=class{trace(){}debug(){}info(){}warn(){}error(){}}}));function An(e,t,n){let r,i,a;if(t===void 0&&n===void 0)r={},a=e;else{if(r=e,typeof t==`function`)return i=t,a=n,Nn(r,i,a);a=t}for(let e of Object.keys(a)){if(!Array.isArray(a[e])){r[e]=a[e];continue}Pn(r,null,a,e)}return r}var jn,Mn,Nn,Pn,Fn,In,Ln=e((()=>{jn=e=>{let t={};for(let[n,r]of Object.entries(e||{}))t[n]=[,r];return t},Mn=(e,t)=>{let n={};for(let r in t)Pn(n,e,t,r);return n},Nn=(e,t,n)=>An(e,Object.entries(n).reduce((e,[n,r])=>(Array.isArray(r)?e[n]=r:typeof r==`function`?e[n]=[t,r()]:e[n]=[t,r],e),{})),Pn=(e,t,n,r)=>{if(t!==null){let i=n[r];typeof i==`function`&&(i=[,i]);let[a=Fn,o=In,s=r]=i;(typeof a==`function`&&a(t[s])||typeof a!=`function`&&a)&&(e[r]=o(t[s]));return}let[i,a]=n[r];if(typeof a==`function`){let t,n=i===void 0&&(t=a())!=null,o=typeof i==`function`&&!!i(void 0)||typeof i!=`function`&&!!i;n?e[r]=t:o&&(e[r]=a())}else{let t=i===void 0&&a!=null,n=typeof i==`function`&&!!i(a)||typeof i!=`function`&&!!i;(t||n)&&(e[r]=a)}},Fn=e=>e!=null,In=e=>e})),Rn,zn,Bn=e((()=>{Rn=e=>{if(e!==e)return`NaN`;switch(e){case 1/0:return`Infinity`;case-1/0:return`-Infinity`;default:return e}},zn=e=>e.toISOString().replace(`.000Z`,`Z`)})),Vn,Hn=e((()=>{Vn=e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(e=>e!=null).map(Vn);if(typeof e==`object`){let t={};for(let n of Object.keys(e))e[n]!=null&&(t[n]=Vn(e[n]));return t}return e}})),Un=t({AlgorithmId:()=>un.AlgorithmId,Client:()=>Ke,Command:()=>Wt,NoOpLogger:()=>On,SENSITIVE_STRING:()=>qt,ServiceException:()=>Zt,WaiterState:()=>S,_json:()=>Vn,checkExceptions:()=>Ne,constructStack:()=>h,convertMap:()=>jn,createAggregatedClient:()=>Yt,createWaiter:()=>We,decorateServiceException:()=>Qt,emitWarningIfUnsupportedVersion:()=>cn,getArrayIfSingleItem:()=>Sn,getChecksumConfiguration:()=>fn,getDefaultClientConfiguration:()=>yn,getDefaultExtensionConfiguration:()=>vn,getRetryConfiguration:()=>hn,getSmithyContext:()=>_,getValueFromTextNode:()=>wn,invalidFunction:()=>we,invalidProvider:()=>Ee,isSerializableHeaderValue:()=>En,loadConfigsForDefaultMode:()=>an,map:()=>An,normalizeProvider:()=>y,resolveChecksumRuntimeConfig:()=>pn,resolveDefaultRuntimeConfig:()=>bn,resolveRetryRuntimeConfig:()=>gn,schemaLogFilter:()=>Bt,serializeDateTime:()=>zn,serializeFloat:()=>Rn,take:()=>Mn,throwDefaultError:()=>en,waiterServiceDefaults:()=>Me,withBaseException:()=>tn}),Wn=e((()=>{oe(),x(),Te(),De(),Ge(),Pe(),qe(),Kt(),Jt(),Xt(),rn(),on(),ln(),$t(),xn(),mn(),_n(),Cn(),Tn(),Dn(),kn(),Ln(),Ht(),Bn(),Hn()})),Gn,Kn=e((()=>{Gn=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`})),O,qn,k=e((()=>{Kn(),O=(e,t=0,n=e.byteLength-t)=>{if(!Gn(e))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Buffer.from(e,t,n)},qn=(e,t)=>{if(typeof e!=`string`)throw TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Buffer.from(e,t):Buffer.from(e)}})),Jn,Yn,Xn=e((()=>{k(),Jn=/^[A-Za-z0-9+/]*={0,2}$/,Yn=e=>{if(e.length*3%4!=0)throw TypeError(`Incorrect padding on base64 string.`);if(!Jn.exec(e))throw TypeError(`Invalid base64 string.`);let t=qn(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}})),A,Zn=e((()=>{k(),A=e=>{let t=qn(e,`utf8`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}})),Qn,$n=e((()=>{k(),Zn(),Qn=e=>{let t;if(t=typeof e==`string`?A(e):e,typeof t!=`object`||typeof t.byteOffset!=`number`||typeof t.byteLength!=`number`)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);return O(t.buffer,t.byteOffset,t.byteLength).toString(`base64`)}}));function er(e,t,n,r){return class i extends Uint8Array{static fromString(e,n=`utf-8`){if(typeof e==`string`)return n===`base64`?i.mutate(r(e)):i.mutate(t(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,i.prototype),e}transformToString(t=`utf-8`){return t===`base64`?n(this):e(this)}}}var tr=e((()=>{})),nr,rr=e((()=>{k(),nr=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return O(e.buffer,e.byteOffset,e.byteLength).toString(`utf8`)}}));function ir(e){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,j[t[0]]+j[t[1]]+j[t[2]]+j[t[3]]+`-`+j[t[4]]+j[t[5]]+`-`+j[t[6]]+j[t[7]]+`-`+j[t[8]]+j[t[9]]+`-`+j[t[10]]+j[t[11]]+j[t[12]]+j[t[13]]+j[t[14]]+j[t[15]]}}var j,ar=e((()=>{j=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`))})),or,sr=e((()=>{or=(e,t,n=e=>e)=>e})),cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,M,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,N,Ir,Lr,P,Rr=e((()=>{cr=e=>{switch(e){case`true`:return!0;case`false`:return!1;default:throw Error(`Unable to parse boolean value "${e}"`)}},lr=e=>{if(e!=null){if(typeof e==`number`){if((e===0||e===1)&&P.warn(Lr(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e==`string`){let t=e.toLowerCase();if((t===`false`||t===`true`)&&P.warn(Lr(`Expected boolean, got ${typeof e}: ${e}`)),t===`false`)return!1;if(t===`true`)return!0}if(typeof e==`boolean`)return e;throw TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},ur=e=>{if(e!=null){if(typeof e==`string`){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&P.warn(Lr(`Expected number but observed string: ${e}`)),t}if(typeof e==`number`)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},dr=Math.ceil(2**127*(2-2**-23)),fr=e=>{let t=ur(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>dr)throw TypeError(`Expected 32-bit float, got ${e}`);return t},pr=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}},mr=pr,hr=e=>vr(e,32),gr=e=>vr(e,16),_r=e=>vr(e,8),vr=(e,t)=>{let n=pr(e);if(n!==void 0&&yr(n,t)!==n)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return n},yr=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},br=(e,t)=>{if(e==null)throw TypeError(t?`Expected a non-null value for ${t}`:`Expected a non-null value`);return e},xr=e=>{if(e!=null){if(typeof e==`object`&&!Array.isArray(e))return e;throw TypeError(`Expected object, got ${Array.isArray(e)?`array`:typeof e}: ${e}`)}},Sr=e=>{if(e!=null){if(typeof e==`string`)return e;if([`boolean`,`number`,`bigint`].includes(typeof e))return P.warn(Lr(`Expected string, got ${typeof e}: ${e}`)),String(e);throw TypeError(`Expected string, got ${typeof e}: ${e}`)}},Cr=e=>{if(e==null)return;let t=xr(e),n=[];for(let e in t)t[e]!=null&&n.push(e);if(n.length===0)throw TypeError(`Unions must have exactly one non-null member. None were found.`);if(n.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},wr=e=>ur(typeof e==`string`?M(e):e),Tr=wr,Er=e=>fr(typeof e==`string`?M(e):e),Dr=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M=e=>{let t=e.match(Dr);if(t===null||t[0].length!==e.length)throw TypeError(`Expected real number, got implicit NaN`);return parseFloat(e)},Or=e=>typeof e==`string`?Mr(e):ur(e),kr=Or,Ar=Or,jr=e=>typeof e==`string`?Mr(e):fr(e),Mr=e=>{switch(e){case`NaN`:return NaN;case`Infinity`:return 1/0;case`-Infinity`:return-1/0;default:throw Error(`Unable to parse float value: ${e}`)}},Nr=e=>pr(typeof e==`string`?M(e):e),Pr=Nr,Fr=e=>hr(typeof e==`string`?M(e):e),N=e=>gr(typeof e==`string`?M(e):e),Ir=e=>_r(typeof e==`string`?M(e):e),Lr=e=>String(TypeError(e).stack||e).split(` +`).slice(0,5).filter(e=>!e.includes(`stackTraceWarning`)).join(` +`),P={warn:console.warn}}));function zr(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),a=e.getUTCHours(),o=e.getUTCMinutes(),s=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=a<10?`0${a}`:`${a}`,u=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`;return`${Br[r]}, ${c} ${Vr[n]} ${t} ${l}:${u}:${d} GMT`}var Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,F,Zr,Qr,$r,ei,ti,ni,ri,I,ii,ai,L,oi=e((()=>{Rr(),Br=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Vr=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Hr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ur=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=Hr.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l]=t;return F(N(L(r)),I(i,`month`,1,12),I(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l})},Wr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Gr=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-3339 date-times must be expressed as strings`);let t=Wr.exec(e);if(!t)throw TypeError(`Invalid RFC-3339 date-time value`);let[n,r,i,a,o,s,c,l,u]=t,d=F(N(L(r)),I(i,`month`,1,12),I(a,`day`,1,31),{hours:o,minutes:s,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!=`Z`&&d.setTime(d.getTime()-ai(u)),d},Kr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),qr=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Jr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Yr=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC-7231 date-times must be expressed as strings`);let t=Kr.exec(e);if(t){let[e,n,r,i,a,o,s,c]=t;return F(N(L(i)),ei(r),I(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c})}if(t=qr.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return $r(F(Zr(i),ei(r),I(n,`day`,1,31),{hours:a,minutes:o,seconds:s,fractionalMilliseconds:c}))}if(t=Jr.exec(e),t){let[e,n,r,i,a,o,s,c]=t;return F(N(L(c)),ei(n),I(r.trimLeft(),`day`,1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:s})}throw TypeError(`Invalid RFC-7231 date-time value`)},Xr=e=>{if(e==null)return;let t;if(typeof e==`number`)t=e;else if(typeof e==`string`)t=wr(e);else if(typeof e==`object`&&e.tag===1)t=e.value;else throw TypeError(`Epoch timestamps must be expressed as floating point numbers or their string representation`);if(Number.isNaN(t)||t===1/0||t===-1/0)throw TypeError(`Epoch timestamps must be valid, non-Infinite, non-NaN numerics`);return new Date(Math.round(t*1e3))},F=(e,t,n,r)=>{let i=t-1;return ni(e,i,n),new Date(Date.UTC(e,i,n,I(r.hours,`hour`,0,23),I(r.minutes,`minute`,0,59),I(r.seconds,`seconds`,0,60),ii(r.fractionalMilliseconds)))},Zr=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+N(L(e));return ne.getTime()-new Date().getTime()>Qr?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,ei=e=>{let t=Vr.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},ti=[31,28,31,30,31,30,31,31,30,31,30,31],ni=(e,t,n)=>{let r=ti[t];if(t===1&&ri(e)&&(r=29),n>r)throw TypeError(`Invalid day for ${Vr[t]} in ${e}: ${n}`)},ri=e=>e%4==0&&(e%100!=0||e%400==0),I=(e,t,n,r)=>{let i=Ir(L(e));if(ir)throw TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},ii=e=>e==null?0:Er(`0.`+e)*1e3,ai=e=>{let t=e[0],n=1;if(t==`+`)n=1;else if(t==`-`)n=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);let r=Number(e.substring(1,3)),i=Number(e.substring(4,6));return n*(r*60+i)*60*1e3},L=e=>{let t=0;for(;t{R=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},R.from=e=>e&&typeof e==`object`&&(e instanceof R||`deserializeJSON`in e)?e:typeof e==`string`||Object.getPrototypeOf(e)===String.prototype?R(String(e)):R(JSON.stringify(e)),R.fromObject=R.from}));function ci(e){return(e.includes(`,`)||e.includes(`"`))&&(e=`"${e.replace(/"/g,`\\"`)}"`),e}var li=e((()=>{}));function z(e,t,n){let r=Number(e);if(rn)throw Error(`Value ${r} out of range [${t}, ${n}]`)}var ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci=e((()=>{ui=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`,di=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`,fi=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`,pi=`(\\d?\\d)`,mi=`(\\d{4})`,hi=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),gi=RegExp(`^${ui}, ${pi} ${di} ${mi} ${fi} GMT$`),_i=RegExp(`^${ui}, ${pi}-${di}-(\\d\\d) ${fi} GMT$`),vi=RegExp(`^${ui} ${di} ( [1-9]|\\d\\d) ${fi} ${mi}$`),yi=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],bi=e=>{if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`string`){if(!/^-?\d*\.?\d+$/.test(e))throw TypeError(`parseEpochTimestamp - numeric string invalid.`);t=Number.parseFloat(e)}else typeof e==`object`&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw TypeError(`Epoch timestamps must be valid finite numbers.`);return new Date(Math.round(t*1e3))},xi=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC3339 timestamps must be strings`);let t=hi.exec(e);if(!t)throw TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,n,r,i,a,o,s,,c,l]=t;z(r,1,12),z(i,1,31),z(a,0,23),z(o,0,59),z(s,0,60);let u=new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(a),Number(o),Number(s),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(u.setUTCFullYear(Number(n)),l.toUpperCase()!=`Z`){let[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,`+`,0,0],r=e===`-`?1:-1;u.setTime(u.getTime()+r*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return u},Si=e=>{if(e==null)return;if(typeof e!=`string`)throw TypeError(`RFC7231 timestamps must be strings.`);let t,n,r,i,a,o,s,c;if((c=gi.exec(e))?[,t,n,r,i,a,o,s]=c:(c=_i.exec(e))?([,t,n,r,i,a,o,s]=c,r=(Number(r)+1900).toString()):(c=vi.exec(e))&&([,n,t,i,a,o,s,r]=c),r&&o){let e=Date.UTC(Number(r),yi.indexOf(n),Number(t),Number(i),Number(a),Number(o),s?Math.round(parseFloat(`0.${s}`)*1e3):0);z(t,1,31),z(i,0,23),z(a,0,59),z(o,0,60);let c=new Date(e);return c.setUTCFullYear(Number(r)),c}throw TypeError(`Invalid RFC7231 date-time value ${e}.`)}}));function wi(e,t,n){if(n<=0||!Number.isInteger(n))throw Error(`Invalid number of delimiters (`+n+`) for splitEvery.`);let r=e.split(t);if(n===1)return r;let i=[],a=``;for(let e=0;e{})),Ei,Di=e((()=>{Ei=e=>{let t=e.length,n=[],r=!1,i,a=0;for(let o=0;o{e=e.trim();let t=e.length;return t<2?e:(e[0]===`"`&&e[t-1]===`"`&&(e=e.slice(1,t-1)),e.replace(/\\"/g,`"`))})}}));function Oi(e){return new Ai(String(e),`bigDecimal`)}var ki,Ai,ji=e((()=>{ki=/^-?\d*(\.\d+)?$/,Ai=class e{string;type;constructor(e,t){if(this.string=e,this.type=t,!ki.test(e))throw Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=`object`)return!1;let n=t;return e.prototype.isPrototypeOf(t)||n.type===`bigDecimal`&&ki.test(n.string)}}}));function Mi(e){if(e.length%2!=0)throw Error(`Hex encoded strings must have an even number length`);let t=new Uint8Array(e.length/2);for(let n=0;n{Pi={},Fi={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Pi[e]=t,Fi[t]=e}})),Li,Ri=e((()=>{Li=e=>{if(!e)return 0;if(typeof e==`string`)return Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(e instanceof te){if(e.path!=null)return re(e.path).size;if(typeof e.fd==`number`)return ne(e.fd).size}throw Error(`Body Length computation failed for ${e}`)}})),zi,Bi=e((()=>{Zn(),zi=e=>typeof e==`string`?A(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)})),Vi,Hi,Ui=e((()=>{x(),Vi=(e,t)=>(n,r)=>async i=>{let{response:a}=await n(i);try{return{response:a,output:await t(a,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:a,enumerable:!1,writable:!1,configurable:!1}),!(`$metadata`in e)){let t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+=` + Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch{!r.logger||r.logger?.constructor?.name===`NoOpLogger`?console.warn(t):r.logger?.warn?.(t)}e.$responseBodyText!==void 0&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(fe.isInstance(a)){let{headers:t={}}=a,n=Object.entries(t);e.$metadata={httpStatusCode:a.statusCode,requestId:Hi(/^x-[\w-]+-request-?id$/,n),extendedRequestId:Hi(/^x-[\w-]+-id-2$/,n),cfId:Hi(/^x-[\w-]+-cf-id$/,n)}}}catch{}}throw e}},Hi=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]})),B,Wi=e((()=>{B=class e extends Error{name=`ProviderError`;tryNextLink;constructor(t,n=!0){let r,i=!0;typeof n==`boolean`?(r=void 0,i=n):typeof n==`object`&&n&&(r=n.logger,i=n.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,e.prototype),r?.debug?.(`@smithy/property-provider ${i?`->`:`(!)`} ${t}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}})),Gi,Ki=e((()=>{Wi(),Gi=class e extends B{name=`CredentialsProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}}})),qi,Ji=e((()=>{Wi(),qi=class e extends B{name=`TokenProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}}})),Yi,Xi=e((()=>{Wi(),Yi=(...e)=>async()=>{if(e.length===0)throw new B(`No providers in chain`);let t;for(let n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}})),Zi,Qi=e((()=>{Zi=e=>()=>Promise.resolve(e)})),$i,ea=e((()=>{$i=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))}})),V,ta=e((()=>{V=(e,t,n)=>{if(t in e){if(e[t]===`true`)return!0;if(e[t]===`false`)return!1;throw Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}}})),na,ra=e((()=>{na=(e,t,n)=>{if(!(t in e))return;let r=parseInt(e[t],10);if(Number.isNaN(r))throw TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`);return r}})),H,ia=e((()=>{(function(e){e.ENV=`env`,e.CONFIG=`shared config entry`})(H||={})})),aa,oa,U,sa=e((()=>{aa={},oa=()=>process&&process.geteuid?`${process.geteuid()}`:`DEFAULT`,U=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${f}`}=process.env;if(e)return e;if(t)return t;if(n)return`${r}${n}`;let i=oa();return aa[i]||(aa[i]=ee()),aa[i]}})),ca,la,ua,da=e((()=>{ca=`AWS_PROFILE`,la=`default`,ua=e=>e.profile||process.env.AWS_PROFILE||`default`})),fa,pa=e((()=>{sa(),fa=e=>{let t=s(`sha1`).update(e).digest(`hex`);return d(U(),`.aws`,`sso`,`cache`,`${t}.json`)}})),ma,ha,ga=e((()=>{pa(),ma={},ha=async e=>{if(ma[e])return ma[e];let t=await u(fa(e),`utf8`);return JSON.parse(t)}})),_a=e((()=>{})),va,ya,ba=e((()=>{va=g(),_a(),ya=e=>Object.entries(e).filter(([e])=>{let t=e.indexOf(`.`);return t===-1?!1:Object.values(va.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,n])=>{let r=t.indexOf(`.`),i=t.substring(0,r)===va.IniSectionType.PROFILE?t.substring(r+1):t;return e[i]=n,e},{...e.default&&{default:e.default}})})),xa,Sa=e((()=>{sa(),xa=()=>process.env.AWS_CONFIG_FILE||d(U(),`.aws`,`config`)})),Ca,wa=e((()=>{sa(),Ca=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||d(U(),`.aws`,`credentials`)})),Ta,Ea,Da,Oa,ka=e((()=>{Ta=g(),_a(),Ea=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Da=[`__proto__`,`profile __proto__`],Oa=e=>{let t={},n,r;for(let i of e.split(/\r?\n/)){let e=i.split(/(^|\s)[;#]/)[0].trim();if(e[0]===`[`&&e[e.length-1]===`]`){n=void 0,r=void 0;let t=e.substring(1,e.length-1),i=Ea.exec(t);if(i){let[,e,,t]=i;Object.values(Ta.IniSectionType).includes(e)&&(n=[e,t].join(`.`))}else n=t;if(Da.includes(t))throw Error(`Found invalid profile name "${t}"`)}else if(n){let a=e.indexOf(`=`);if(![0,-1].includes(a)){let[o,s]=[e.substring(0,a).trim(),e.substring(a+1).trim()];if(s===``)r=o;else{r&&i.trimStart()===i&&(r=void 0),t[n]=t[n]||{};let e=r?[r,o].join(`.`):o;t[n][e]=s}}}}return t}})),Aa,ja,Ma,Na=e((()=>{Aa={},ja={},Ma=(e,t)=>ja[e]===void 0?((!Aa[e]||t?.ignoreCache)&&(Aa[e]=u(e,`utf8`)),Aa[e]):ja[e]})),Pa,Fa,Ia=e((()=>{ba(),Sa(),wa(),sa(),ka(),Na(),_a(),Pa=()=>({}),Fa=async(e={})=>{let{filepath:t=Ca(),configFilepath:n=xa()}=e,r=U(),i=t;t.startsWith(`~/`)&&(i=d(r,t.slice(2)));let a=n;n.startsWith(`~/`)&&(a=d(r,n.slice(2)));let o=await Promise.all([Ma(a,{ignoreCache:e.ignoreCache}).then(Oa).then(ya).catch(Pa),Ma(i,{ignoreCache:e.ignoreCache}).then(Oa).catch(Pa)]);return{configFile:o[0],credentialsFile:o[1]}}})),La,Ra,za=e((()=>{La=g(),Ia(),Ra=e=>Object.entries(e).filter(([e])=>e.startsWith(La.IniSectionType.SSO_SESSION+`.`)).reduce((e,[t,n])=>({...e,[t.substring(t.indexOf(`.`)+1)]:n}),{})})),Ba,Va,Ha=e((()=>{Sa(),za(),ka(),Na(),Ba=()=>({}),Va=async(e={})=>Ma(e.configFilepath??xa()).then(Oa).then(Ra).catch(Ba)})),Ua,Wa=e((()=>{Ua=(...e)=>{let t={};for(let n of e)for(let[e,r]of Object.entries(n))t[e]===void 0?t[e]=r:Object.assign(t[e],r);return t}})),Ga,Ka=e((()=>{Ia(),Wa(),Ga=async e=>{let t=await Fa(e);return Ua(t.configFile,t.credentialsFile)}})),qa,Ja=e((()=>{ga(),Na(),qa={getFileRecord(){return ja},interceptFile(e,t){ja[e]=Promise.resolve(t)},getTokenRecord(){return ma},interceptToken(e,t){ma[e]=t}}}));function Ya(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete(`CONFIG`),t.delete(`CONFIG_PREFIX_SEPARATOR`),t.delete(`ENV`),[...t].join(`, `)}catch{return e}}var Xa=e((()=>{})),Za,Qa=e((()=>{Ki(),Xa(),Za=(e,t)=>async()=>{try{let n=e(process.env,t);if(n===void 0)throw Error();return n}catch(n){throw new Gi(n.message||`Not found in ENV: ${Ya(e.toString())}`,{logger:t?.logger})}}})),$a,eo=e((()=>{Ki(),da(),Ia(),Xa(),$a=(e,{preferredFile:t=`config`,...n}={})=>async()=>{let r=ua(n),{configFile:i,credentialsFile:a}=await Fa(n),o=a[r]||{},s=i[r]||{},c=t===`config`?{...o,...s}:{...s,...o};try{let n=e(c,t===`config`?i:a);if(n===void 0)throw Error();return n}catch(t){throw new Gi(t.message||`Not found in config files w/ profile [${r}]: ${Ya(e.toString())}`,{logger:n.logger})}}})),to,no,ro=e((()=>{Qi(),to=e=>typeof e==`function`,no=e=>to(e)?async()=>await e():Zi(e)})),W,io=e((()=>{Xi(),ea(),Qa(),eo(),ro(),W=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>{let{signingName:i,logger:a}=r;return $i(Yi(Za(e,{signingName:i,logger:a}),$a(t,r),no(n)))}})),ao,oo,so,co,lo=e((()=>{ta(),ia(),ao=`AWS_USE_DUALSTACK_ENDPOINT`,oo=`use_dualstack_endpoint`,so={environmentVariableSelector:e=>V(e,ao,H.ENV),configFileSelector:e=>V(e,oo,H.CONFIG),default:!1},co={environmentVariableSelector:e=>V(e,ao,H.ENV),configFileSelector:e=>V(e,oo,H.CONFIG),default:void 0}})),uo,fo,po,mo,ho=e((()=>{ta(),ia(),uo=`AWS_USE_FIPS_ENDPOINT`,fo=`use_fips_endpoint`,po={environmentVariableSelector:e=>V(e,uo,H.ENV),configFileSelector:e=>V(e,fo,H.CONFIG),default:!1},mo={environmentVariableSelector:e=>V(e,uo,H.ENV),configFileSelector:e=>V(e,fo,H.CONFIG),default:void 0}})),go,_o=e((()=>{Wn(),go=e=>{let{tls:t,endpoint:n,urlParser:r,useDualstackEndpoint:i}=e;return Object.assign(e,{tls:t??!0,endpoint:y(typeof n==`string`?r(n):n),isCustomEndpoint:!0,useDualstackEndpoint:y(i??!1)})}})),vo,yo=e((()=>{vo=async e=>{let{tls:t=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw Error(`Invalid region in client config`);let r=await e.useDualstackEndpoint(),i=await e.useFipsEndpoint(),{hostname:a}=await e.regionInfoProvider(n,{useDualstackEndpoint:r,useFipsEndpoint:i})??{};if(!a)throw Error(`Cannot resolve hostname from client config`);return e.urlParser(`${t?`https:`:`http:`}//${a}`)}})),bo,xo=e((()=>{Wn(),yo(),bo=e=>{let t=y(e.useDualstackEndpoint??!1),{endpoint:n,useFipsEndpoint:r,urlParser:i,tls:a}=e;return Object.assign(e,{tls:a??!0,endpoint:n?y(typeof n==`string`?i(n):n):()=>vo({...e,useDualstackEndpoint:t,useFipsEndpoint:r}),isCustomEndpoint:!!n,useDualstackEndpoint:t})}})),So,Co,wo,To,Eo=e((()=>{So=`AWS_REGION`,Co=`region`,wo={environmentVariableSelector:e=>e[So],configFileSelector:e=>e[Co],default:()=>{throw Error(`Region is missing`)}},To={preferredFile:`credentials`}})),Do,Oo,ko=e((()=>{x(),Do=new Set,Oo=(e,t=v)=>{if(!Do.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Do.add(e)}})),Ao,jo=e((()=>{Ao=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`))})),Mo,No=e((()=>{jo(),Mo=e=>Ao(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e})),Po,Fo=e((()=>{ko(),No(),jo(),Po=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=Mo(typeof t==`function`?await t():t);return Oo(e),e},useFipsEndpoint:async()=>Ao(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})}})),Io,Lo=e((()=>{Io=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find(({tags:e})=>t===e.includes(`fips`)&&n===e.includes(`dualstack`))?.hostname})),Ro,zo=e((()=>{Ro=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace(`{region}`,e):void 0)})),Bo,Vo=e((()=>{Bo=(e,{partitionHash:t})=>Object.keys(t||{}).find(n=>t[n].regions.includes(e))??`aws`})),Ho,Uo=e((()=>{Ho=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let t=n.replace(`\\\\`,`\\`).replace(/^\^/g,`\\.`).replace(/\$$/g,`\\.`),r=e.match(t);if(r)return r[0].slice(1,-1)}}})),Wo,Go=e((()=>{Lo(),zo(),Vo(),Uo(),Wo=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:a})=>{let o=Bo(e,{partitionHash:a}),s=e in i?e:a[o]?.endpoint??e,c={useFipsEndpoint:t,useDualstackEndpoint:n},l=Ro(s,{regionHostname:Io(i[s]?.variants,c),partitionHostname:Io(a[o]?.variants,c)});if(l===void 0)throw Error(`Endpoint resolution failed for: [object Object]`);let u=Ho(l,{signingRegion:i[s]?.signingRegion,regionRegex:a[o].regionRegex,useFipsEndpoint:t});return{partition:o,signingService:r,hostname:l,...u&&{signingRegion:u},...i[s]?.signingService&&{signingService:i[s].signingService}}}})),Ko,qo,Jo=e((()=>{Ko=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],qo=`/latest/meta-data/placement/region`})),Yo,Xo,Zo,Qo=e((()=>{Yo=`AWS_DEFAULTS_MODE`,Xo=`defaults_mode`,Zo={environmentVariableSelector:e=>e[Yo],configFileSelector:e=>e[Xo],default:`legacy`}})),$o,es,ts,ns,rs,is=e((()=>{Eo(),io(),ea(),Jo(),Qo(),$o=({region:e=W(wo),defaultsMode:t=W(Zo)}={})=>$i(async()=>{let n=typeof t==`function`?await t():t;switch(n?.toLowerCase()){case`auto`:return es(e);case`in-region`:case`cross-region`:case`mobile`:case`standard`:case`legacy`:return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${Ko.join(`, `)}, got ${n}`)}}),es=async e=>{if(e){let t=typeof e==`function`?await e():e,n=await ts();return n?t===n?`in-region`:`cross-region`:`standard`}return`standard`},ts=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION))return process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION;if(!process.env.AWS_EC2_METADATA_DISABLED)try{return(await rs({hostname:(await ns()).hostname,path:qo})).toString()}catch{}},ns=async()=>{let e=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(e){let t=new URL(e);return{hostname:t.hostname,path:t.pathname}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE===`IPv6`?{hostname:`fd00:ec2::254`,path:`/`}:{hostname:`169.254.169.254`,path:`/`}},rs=async({hostname:e,path:t})=>{let{request:n}=await import(`node:http`);return new Promise((r,i)=>{let a=n({method:`GET`,hostname:e.replace(/^\[(.+)]$/,`$1`),path:t,timeout:1e3,signal:AbortSignal.timeout(1e3)});a.on(`error`,e=>{i(e),a.destroy()}),a.on(`timeout`,()=>{i(Error(`TimeoutError from instance metadata service`)),a.destroy()}),a.on(`response`,e=>{let{statusCode:t=400}=e;if(t<200||300<=t){i(Object.assign(Error(`Error response received from instance metadata service`),{statusCode:t})),a.destroy();return}let n=[];e.on(`data`,e=>n.push(e)),e.on(`end`,()=>{r(Buffer.concat(n)),a.destroy()})}),a.end()})}})),as=t({CONFIG_PREFIX_SEPARATOR:()=>`.`,CONFIG_USE_DUALSTACK_ENDPOINT:()=>oo,CONFIG_USE_FIPS_ENDPOINT:()=>fo,CredentialsProviderError:()=>Gi,DEFAULT_PROFILE:()=>la,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>!1,DEFAULT_USE_FIPS_ENDPOINT:()=>!1,ENV_PROFILE:()=>ca,ENV_USE_DUALSTACK_ENDPOINT:()=>ao,ENV_USE_FIPS_ENDPOINT:()=>uo,NODE_REGION_CONFIG_FILE_OPTIONS:()=>To,NODE_REGION_CONFIG_OPTIONS:()=>wo,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>so,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>po,ProviderError:()=>B,REGION_ENV_NAME:()=>So,REGION_INI_NAME:()=>Co,SelectorType:()=>H,TokenProviderError:()=>qi,booleanSelector:()=>V,chain:()=>Yi,externalDataInterceptor:()=>qa,fromStatic:()=>no,fromValue:()=>Zi,getHomeDir:()=>U,getProfileName:()=>ua,getRegionInfo:()=>Wo,getSSOTokenFilepath:()=>fa,getSSOTokenFromFile:()=>ha,loadConfig:()=>W,loadSharedConfigFiles:()=>Fa,loadSsoSessionData:()=>Va,memoize:()=>$i,nodeDualstackConfigSelectors:()=>co,nodeFipsConfigSelectors:()=>mo,numberSelector:()=>na,parseKnownFiles:()=>Ga,readFile:()=>Ma,resolveCustomEndpointsConfig:()=>go,resolveDefaultsModeConfig:()=>$o,resolveEndpointsConfig:()=>bo,resolveRegionConfig:()=>Po}),os=e((()=>{Wi(),Ki(),Ji(),Xi(),Qi(),ea(),ta(),ra(),ia(),sa(),da(),pa(),ga(),_a(),Ia(),Ha(),Ka(),Ja(),Na(),io(),ro(),lo(),ho(),_o(),xo(),Eo(),Fo(),Go(),is()})),ss,cs,ls,us=e((()=>{os(),ss=`AWS_ENDPOINT_URL`,cs=`endpoint_url`,ls=e=>({environmentVariableSelector:t=>{let n=t[[ss,...e.split(` `).map(e=>e.toUpperCase())].join(`_`)];if(n)return n;let r=t[ss];if(r)return r},configFileSelector:(t,n)=>{if(n&&t.services){let r=n[[`services`,t.services].join(`.`)];if(r){let t=r[[e.split(` `).map(e=>e.toLowerCase()).join(`_`),cs].join(`.`)];if(t)return t}}let r=t[cs];if(r)return r},default:void 0})})),ds,fs=e((()=>{os(),us(),ds=async e=>W(ls(e??``))()})),ps,ms,hs,gs,_s,vs,ys=e((()=>{ps=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),vs(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!_s(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},ms=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,hs=/(\d+\.){3}\d+/,gs=/\.\./,_s=e=>ms.test(e)&&!hs.test(e)&&!gs.test(e),vs=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o}})),bs=e((()=>{ys()})),xs,Ss=e((()=>{xs=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i}})),Cs=e((()=>{x()}));function ws(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(b(t)),r.isCustomEndpoint=!0)}let a=await Ts(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var Ts,Es=e((()=>{bs(),Ss(),Cs(),Ts=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await xs(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await ps(r),r}}));function Ds(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function Os(e){let t=ws(e);return({config:e,instructions:n})=>(r,i)=>async a=>{e.isCustomEndpoint&&Ds(i,`ENDPOINT_OVERRIDE`,`N`);let o=await t(a.input,{getEndpointParameterInstructions(){return n}},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let s=i.authSchemes?.[0];if(s){i.signing_region=s.signingRegion,i.signing_service=s.signingName;let e=_(i)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...a})}}var ks=e((()=>{Wn(),Es()}));function As(e){let t=Os(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),Ms)}})}var js,Ms,Ns=e((()=>{ks(),js={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0},Ms={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:js.name}}));function Ps(e){return t=>{let n=t.tls??!0,{endpoint:r,useDualstackEndpoint:i,useFipsEndpoint:a}=t,o=Object.assign(t,{endpoint:r==null?void 0:async()=>b(await y(r)()),tls:n,isCustomEndpoint:!!r,useDualstackEndpoint:y(i??!1),useFipsEndpoint:y(a??!1)}),s;return o.serviceConfiguredEndpoint=async()=>(t.serviceId&&!s&&(s=e(t.serviceId)),s),o}}var Fs=e((()=>{x(),Cs()})),Is,Ls=e((()=>{Is=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}}})),Rs,zs=e((()=>{Rs=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}}})),G,Bs=e((()=>{G=class extends Error{constructor(e){super(e),this.name=`EndpointError`}}})),Vs=e((()=>{})),Hs=e((()=>{})),Us=e((()=>{})),Ws=e((()=>{})),Gs=e((()=>{})),Ks=e((()=>{})),K=e((()=>{Bs(),Vs(),Hs(),Us(),Ws(),Gs(),Ks()})),q,qs=e((()=>{q=`endpoints`}));function J(e){return typeof e!=`object`||!e?e:`ref`in e?`$${J(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(J).join(`, `)})`:JSON.stringify(e,null,2)}var Js=e((()=>{})),Ys=e((()=>{qs(),Js()})),Xs,Zs=e((()=>{Xs={}})),Qs,$s=e((()=>{Qs=(e,t)=>e===t}));function ec(...e){for(let t of e)if(t!=null)return t}var tc=e((()=>{})),nc,rc=e((()=>{K(),nc=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new G(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new G(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n}})),ic,ac=e((()=>{K(),rc(),ic=(e,t)=>nc(t).reduce((n,r)=>{if(typeof n!=`object`)throw new G(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e)})),oc,sc=e((()=>{oc=e=>e!=null}));function cc(e,t,n){return e?t:n}var lc=e((()=>{})),uc,dc=e((()=>{uc=e=>!e})),fc,pc,mc=e((()=>{fc=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),pc=e=>fc.test(e)||e.startsWith(`[`)&&e.endsWith(`]`)})),hc,gc,_c,vc=e((()=>{hc=g(),mc(),gc={[hc.EndpointURLScheme.HTTP]:80,[hc.EndpointURLScheme.HTTPS]:443},_c=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==`object`&&`hostname`in e){let{hostname:t,port:n,protocol:r=``,path:i=``,query:a={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let n=t.href,{host:r,hostname:i,pathname:a,protocol:o,search:s}=t;if(s)return null;let c=o.slice(0,-1);if(!Object.values(hc.EndpointURLScheme).includes(c))return null;let l=pc(i);return{scheme:c,authority:`${r}${n.includes(`${r}:${gc[c]}`)||typeof e==`string`&&e.includes(`${r}:${gc[c]}`)?`:${gc[c]}`:``}`,path:a,normalizedPath:a.endsWith(`/`)?a:`${a}/`,isIp:l}}}));function yc(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var bc=e((()=>{})),xc,Sc=e((()=>{xc=(e,t)=>e===t})),Cc,wc=e((()=>{Cc=(e,t,n,r)=>e==null||t>=n||e.length{Tc=e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)})),Dc=e((()=>{$s(),tc(),ac(),sc(),x(),lc(),dc(),vc(),bc(),Sc(),wc(),Ec()})),Oc,kc=e((()=>{Dc(),Oc={booleanEquals:Qs,coalesce:ec,getAttr:ic,isSet:oc,isValidHostLabel:v,ite:cc,not:uc,parseURL:_c,split:yc,stringEquals:xc,substring:Cc,uriEncode:Tc}})),Ac,jc=e((()=>{Dc(),Ac=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;a{Mc=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e]})),Y,Pc,Fc,Ic=e((()=>{K(),Zs(),kc(),jc(),Nc(),Y=(e,t,n)=>{if(typeof e==`string`)return Ac(e,n);if(e.fn)return Fc.callFunction(e,n);if(e.ref)return Mc(e,n);throw new G(`'${t}': ${String(e)} is not a string, function or reference.`)},Pc=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e{Ic()})),Rc,zc=e((()=>{Ys(),K(),Lc(),Rc=(e,t)=>{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new G(`'${n}' is already defined in Reference Record.`);let r=Pc(e,t);t.logger?.debug?.(`${q} evaluateCondition: ${J(e)} = ${J(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}}})),Bc,Vc=e((()=>{K(),Ic(),Bc=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=Y(e,`Header value entry`,t);if(typeof r!=`string`)throw new G(`Header '${n}' value '${r}' is not a string`);return r}),e),{})})),Hc,Uc,Wc,Gc=e((()=>{K(),jc(),Hc=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=Wc.getEndpointProperty(r,t),e),{}),Uc=(e,t)=>{if(Array.isArray(e))return e.map(e=>Uc(e,t));switch(typeof e){case`string`:return Ac(e,t);case`object`:if(e===null)throw new G(`Unexpected endpoint property: ${e}`);return Wc.getEndpointProperties(e,t);case`boolean`:return e;default:throw new G(`Unexpected endpoint property type: ${typeof e}`)}},Wc={getEndpointProperty:Uc,getEndpointProperties:Hc}})),Kc,qc=e((()=>{K(),Ic(),Kc=(e,t)=>{let n=Y(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new G(`Endpoint URL must be a string, got ${typeof n}`)}})),Jc,Yc,Xc=e((()=>{K(),zc(),Ic(),Vc(),Gc(),qc(),Jc=1e8,Yc=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o=0===f.result?r:i}if(o>=Jc){let e=i[o-Jc];if(e[0]===-1){let[,t]=e;throw new G(Y(t,`Error`,c))}let[t,n,r]=e;return{url:Kc(t,c),properties:Hc(n,c),headers:Bc(r??{},c)}}throw new G(`No matching endpoint.`)}})),Zc,Qc=e((()=>{Ys(),zc(),Zc=(e=[],t)=>{let n={},r={...t,referenceRecord:{...t.referenceRecord}},i=!1;for(let a of e){let{result:e,toAssign:o}=Rc(a,r);if(!e)return{result:e};o&&(i=!0,n[o.name]=o.value,r.referenceRecord[o.name]=o.value,t.logger?.debug?.(`${q} assign: ${o.name} := ${J(o.value)}`))}return i?{result:!0,referenceRecord:n}:{result:!0}}})),$c,el=e((()=>{Ys(),Qc(),Vc(),Gc(),qc(),$c=(e,t)=>{let{conditions:n,endpoint:r}=e,{result:i,referenceRecord:a}=Zc(n,t);if(!i)return;let o=a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t,{url:s,properties:c,headers:l}=r;t.logger?.debug?.(`${q} Resolving endpoint from template: ${J(r)}`);let u={url:Kc(s,o)};return l!=null&&(u.headers=Bc(l,o)),c!=null&&(u.properties=Hc(c,o)),u}})),tl,nl=e((()=>{K(),Qc(),Ic(),tl=(e,t)=>{let{conditions:n,error:r}=e,{result:i,referenceRecord:a}=Zc(n,t);if(i)throw new G(Y(r,`Error`,a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t))}})),rl,il,al,ol=e((()=>{K(),Qc(),el(),nl(),rl=(e,t)=>{for(let n of e)if(n.type===`endpoint`){let e=$c(n,t);if(e)return e}else if(n.type===`error`)tl(n,t);else if(n.type===`tree`){let e=al.evaluateTreeRule(n,t);if(e)return e}else throw new G(`Unknown endpoint rule: ${n}`);throw new G(`Rules evaluation failed`)},il=(e,t)=>{let{conditions:n,rules:r}=e,{result:i,referenceRecord:a}=Zc(n,t);if(!i)return;let o=a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t;return al.evaluateRules(r,o)},al={evaluateRules:rl,evaluateTreeRule:il}})),sl=e((()=>{Zs(),ol()})),cl,ll=e((()=>{Ys(),K(),sl(),cl=(e,t)=>{let{endpointParams:n,logger:r}=t,{parameters:i,rules:a}=e;t.logger?.debug?.(`${q} Initial EndpointParams: ${J(n)}`);for(let e in i){let t=i[e],r=n[e];if(r==null&&t.default!=null){n[e]=t.default;continue}if(t.required&&r==null)throw new G(`Missing required parameter: '${e}'`)}let o=rl(a,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${q} Resolved endpoint: ${J(o)}`),o}})),ul,dl=e((()=>{ul=e=>{let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>{throw Error(`@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.`)}),e}})),fl=t({BinaryDecisionDiagram:()=>Is,EndpointCache:()=>Rs,EndpointError:()=>G,customEndpointFunctions:()=>Xs,decideEndpoint:()=>Yc,endpointMiddleware:()=>hl,endpointMiddlewareOptions:()=>Ms,getEndpointFromInstructions:()=>pl,getEndpointPlugin:()=>gl,isIpAddress:()=>pc,isValidHostLabel:()=>v,middlewareEndpointToEndpointV1:()=>b,resolveEndpoint:()=>cl,resolveEndpointConfig:()=>ml,resolveEndpointRequiredConfig:()=>ul,resolveParams:()=>Ts,toEndpointV1:()=>b}),pl,ml,hl,gl,_l=e((()=>{fs(),Es(),ks(),Ns(),Fs(),x(),Ls(),zs(),Xc(),mc(),Zs(),ll(),K(),Cs(),dl(),pl=ws(ds),ml=Ps(ds),hl=Os(ds),gl=As(ds)})),vl,yl=e((()=>{_l(),vl=(e,t)=>(n,r)=>async i=>{let a=e,o=r.endpointV2?async()=>b(r.endpointV2):a.endpoint;if(!o)throw Error(`No valid endpoint provider available.`);let s=await t(i.input,{...e,endpoint:o});return n({...i,request:s})}}));function bl(e,t,n){return{applyToStack:r=>{r.add(Vi(e,n),xl),r.add(vl(e,t),Sl)}}}var xl,Sl,Cl=e((()=>{Ui(),yl(),xl={name:`deserializerMiddleware`,step:`deserialize`,tags:[`DESERIALIZER`],override:!0},Sl={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}}));function wl(e,t){return Buffer.isBuffer(e)?e:typeof e==`string`?qn(e,t):ArrayBuffer.isView(e)?O(e.buffer,e.byteOffset,e.byteLength):O(e)}var Tl,El=e((()=>{k(),Bi(),Tl=class{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(zi(wl(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?c(this.algorithmIdentifier,wl(this.secret)):s(this.algorithmIdentifier)}}})),Dl,Ol=e((()=>{$n(),Dl=class extends r{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i}){if(super(),typeof n.pipe==`function`)this.source=n;else throw Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.base64Encoder=i??Qn,this.expectedChecksum=e,this.checksum=t,this.checksumSourceLocation=r,this.source.pipe(this)}_read(e){if(this.pendingCallback){let e=this.pendingCallback;this.pendingCallback=null,e()}}_write(e,t,n){try{if(this.checksum.update(e),!this.push(e)){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{let t=await this.checksum.digest(),n=this.base64Encoder(t);if(this.expectedChecksum!==n)return e(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}" in response header "${this.checksumSourceLocation}".`))}catch(t){return e(t)}return this.push(null),e()}}})),X,kl,Z=e((()=>{X=e=>typeof ReadableStream==`function`&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),kl=e=>typeof Blob==`function`&&(e?.constructor?.name===Blob.name||e instanceof Blob)})),Al,jl=e((()=>{Al=e=>new TextEncoder().encode(e)})),Ml,Nl,Pl,Fl=e((()=>{Ml=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Nl=Object.entries(Ml).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),Pl=Ml.split(``)}));function Il(e){let t;t=typeof e==`string`?Al(e):e;let n=typeof t==`object`&&typeof t.length==`number`,r=typeof t==`object`&&typeof t.byteOffset==`number`&&typeof t.byteLength==`number`;if(!n&&!r)throw Error(`@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.`);let i=``;for(let e=0;e>t]}i+=`==`.slice(0,4-a)}return i}var Ll=e((()=>{jl(),Fl()})),Rl,zl,Bl=e((()=>{Rl=typeof ReadableStream==`function`?ReadableStream:function(){},zl=class extends Rl{}})),Vl,Hl=e((()=>{Ll(),Z(),Bl(),Vl=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:i})=>{if(!X(n))throw Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);let a=i??Il;if(typeof TransformStream!=`function`)throw Error(`@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.`);let o=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){let i=a(await t.digest());if(e!==i){let t=Error(`Checksum mismatch: expected "${e}" but received "${i}" in response header "${r}".`);n.error(t)}else n.terminate()}});n.pipeThrough(o);let s=o.readable;return Object.setPrototypeOf(s,zl.prototype),s}}));function Ul(e){return typeof ReadableStream==`function`&&X(e.source)?Vl(e):new Dl(e)}var Wl=e((()=>{Z(),Ol(),Hl()})),Gl,Kl=e((()=>{Gl=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let e=this.byteArrays[0];return this.reset(),e}let e=this.allocByteArray(this.byteLength),t=0;for(let n=0;nnew Uint8Array(e))],s=-1,c=async e=>{let{value:l,done:u}=await r.read(),d=l;if(u){if(s!==-1){let t=Q(o,s);$(t)>0&&e.enqueue(t)}e.close()}else{let r=Yl(d,!1);if(s!==r&&(s>=0&&e.enqueue(Q(o,s)),s=r),s===-1){e.enqueue(d);return}let l=$(d);a+=l;let u=$(o[s]);if(l>=t&&u===0)e.enqueue(d);else{let r=Jl(o,s,d);!i&&a>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(Q(o,s)):await c(e)}}};return new ReadableStream({pull:c})}function Jl(e,t,n){switch(t){case 0:return e[0]+=n,$(e[0]);case 1:case 2:return e[t].push(n),$(e[t])}}function Q(e,t){switch(t){case 0:let n=e[0];return e[0]=``,n;case 1:case 2:return e[t].flush()}throw Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function $(e){return e?.byteLength??e?.length??0}function Yl(e,t=!0){return t&&typeof Buffer<`u`&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e==`string`?0:-1}var Xl=e((()=>{Kl()}));function Zl(e,t,n){if(X(e))return ql(e,t,n);let r=new a({read(){}}),i=!1,o=0,s=[``,new Gl(e=>new Uint8Array(e)),new Gl(e=>Buffer.from(new Uint8Array(e)))],c=-1;return e.on(`data`,e=>{let a=Yl(e,!0);if(c!==a&&(c>=0&&r.push(Q(s,c)),c=a),c===-1){r.push(e);return}let l=$(e);o+=l;let u=$(s[c]);if(l>=t&&u===0)r.push(e);else{let a=Jl(s,c,e);!i&&o>t*2&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${l} is below threshold of ${t}, automatically buffering.`)),a>=t&&r.push(Q(s,c))}}),e.on(`end`,()=>{if(c!==-1){let e=Q(s,c);$(e)>0&&r.push(e)}r.push(null)}),r}var Ql=e((()=>{Kl(),Xl(),Z()})),$l,eu=e((()=>{$l=(e,t)=>{let{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:o}=t,s=n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0,c=s?o(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await l.read();if(i){if(e.enqueue(`0\r +`),s){let t=n(await c);e.enqueue(`${a}:${t}\r\n`),e.enqueue(`\r +`)}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})}}));function tu(e,t){let n=e,r=e;if(X(r))return $l(r,t);let{base64Encoder:i,bodyLengthChecker:o,checksumAlgorithmFn:s,checksumLocationName:c,streamHasher:l}=t,u=i!==void 0&&s!==void 0&&c!==void 0&&l!==void 0,d=u?l(s,n):void 0,f=new a({read:()=>{}});return n.on(`data`,e=>{let t=o(e)||0;t!==0&&(f.push(`${t.toString(16)}\r\n`),f.push(e),f.push(`\r +`))}),n.on(`end`,async()=>{if(f.push(`0\r +`),u){let e=i(await d);f.push(`${c}:${e}\r\n`),f.push(`\r +`)}f.push(null)}),f}var nu=e((()=>{eu(),Z()}));async function ru(e,t){let n=0,r=[],i=e.getReader(),a=!1;for(;!a;){let{done:e,value:o}=await i.read();if(o&&(r.push(o),n+=o?.byteLength??0),n>=t)break;a=e}i.releaseLock();let o=new Uint8Array(Math.min(t,n)),s=0;for(let e of r){if(e.byteLength>o.byteLength-s){o.set(e.subarray(0,o.byteLength-s),s);break}else o.set(e,s);s+=e.length}return o}var iu=e((()=>{})),au,ou,su=e((()=>{iu(),Z(),au=(e,t)=>X(e)?ru(e,t):new Promise((n,r)=>{let i=new ou;i.limit=t,e.pipe(i),e.on(`error`,e=>{i.end(),r(e)}),i.on(`error`,r),i.on(`finish`,function(){n(new Uint8Array(Buffer.concat(this.buffers)))})}),ou=class extends o{buffers=[];limit=1/0;bytesBuffered=0;_write(e,t,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let e=this.bytesBuffered-this.limit,t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e),this.emit(`finish`)}n()}}})),cu,lu=e((()=>{cu=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)}})),uu,du=e((()=>{Fl(),uu=e=>{let t=e.length/4*3;e.slice(-2)===`==`?t-=2:e.slice(-1)===`=`&&t--;let n=new ArrayBuffer(t),r=new DataView(n);for(let t=0;t>=6;let a=t/4*3;n>>=i%8;let o=Math.floor(i/8);for(let e=0;e>t)}}return new Uint8Array(n)}}));async function fu(e){let t=uu(await mu(e));return new Uint8Array(t)}async function pu(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}function mu(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(Error(`Reader aborted too early`));let e=r.result??``,i=e.indexOf(`,`),a=i>-1?i+1:e.length;t(e.substring(a))},r.onabort=()=>n(Error(`Read aborted`)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var hu,gu=e((()=>{du(),hu=async e=>typeof Blob==`function`&&e instanceof Blob||e.constructor?.name===`Blob`?Blob.prototype.arrayBuffer===void 0?fu(e):new Uint8Array(await e.arrayBuffer()):pu(e)})),_u,vu,yu,bu=e((()=>{Ll(),Ii(),lu(),gu(),Z(),_u=`The stream has already been transformed.`,vu=e=>{if(!yu(e)&&!X(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(_u);return t=!0,await hu(e)},r=e=>{if(typeof e.stream!=`function`)throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return e.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();if(e===`base64`)return Il(t);if(e===`hex`)return Ni(t);if(e===void 0||e===`utf8`||e===`utf-8`)return cu(t);if(typeof TextDecoder==`function`)return new TextDecoder(e).decode(t);throw Error(`TextDecoder is not available, please make sure polyfill is provided.`)},transformToWebStream:()=>{if(t)throw Error(_u);if(t=!0,yu(e))return r(e);if(X(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},yu=e=>typeof Blob==`function`&&e instanceof Blob}));async function xu(e){let t=[],n=e.getReader(),r=!1,i=0;for(;!r;){let{done:e,value:a}=await n.read();a&&(t.push(a),i+=a.length),r=e}let a=new Uint8Array(i),o=0;for(let e of t)a.set(e,o),o+=e.length;return a}var Su,Cu,wu,Tu=e((()=>{Su=class extends o{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}},Cu=e=>typeof ReadableStream==`function`&&e instanceof ReadableStream,wu=e=>Cu(e)?xu(e):new Promise((t,n)=>{let r=new Su;e.pipe(r),e.on(`error`,e=>{r.end(),n(e)}),r.on(`error`,n),r.on(`finish`,function(){t(new Uint8Array(Buffer.concat(this.bufferedBytes)))})})})),Eu,Du,Ou=e((()=>{k(),bu(),Tu(),Eu=`The stream has already been transformed.`,Du=e=>{if(!(e instanceof a))try{return vu(e)}catch{let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${t}`)}let t=!1,n=async()=>{if(t)throw Error(Eu);return t=!0,await wu(e)};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{let t=await n();return e===void 0||Buffer.isEncoding(e)?O(t.buffer,t.byteOffset,t.byteLength).toString(e):new TextDecoder(e).decode(t)},transformToWebStream:()=>{if(t)throw Error(Eu);if(e.readableFlowing!==null)throw Error(`The stream has been consumed by other callbacks.`);if(typeof a.toWeb!=`function`)throw Error(`Readable.toWeb() is not supported. Please ensure a polyfill is available.`);return t=!0,a.toWeb(e)}})}}));async function ku(e){return typeof e.stream==`function`&&(e=e.stream()),e.tee()}var Au=e((()=>{}));async function ju(e){if(X(e)||kl(e))return ku(e);let t=new i,n=new i;return e.pipe(t),e.pipe(n),[t,n]}var Mu=e((()=>{Au(),Z()})),Nu=t({ChecksumStream:()=>Dl,Hash:()=>Tl,LazyJsonString:()=>R,NumericValue:()=>Ai,Uint8ArrayBlobAdapter:()=>Pu,_parseEpochTimestamp:()=>bi,_parseRfc3339DateTimeWithOffset:()=>xi,_parseRfc7231DateTime:()=>Si,calculateBodyLength:()=>Li,copyDocumentWithTransform:()=>or,createBufferedReadable:()=>Zl,createChecksumStream:()=>Ul,dateToUtcString:()=>zr,deserializerMiddleware:()=>Vi,deserializerMiddlewareOption:()=>xl,expectBoolean:()=>lr,expectByte:()=>_r,expectFloat32:()=>fr,expectInt:()=>mr,expectInt32:()=>hr,expectLong:()=>pr,expectNonNull:()=>br,expectNumber:()=>ur,expectObject:()=>xr,expectShort:()=>gr,expectString:()=>Sr,expectUnion:()=>Cr,fromArrayBuffer:()=>O,fromBase64:()=>Yn,fromHex:()=>Mi,fromString:()=>qn,fromUtf8:()=>A,generateIdempotencyToken:()=>Lu,getAwsChunkedEncodingStream:()=>tu,getSerdePlugin:()=>bl,handleFloat:()=>kr,headStream:()=>au,isArrayBuffer:()=>Gn,isBlob:()=>kl,isReadableStream:()=>X,limitedParseDouble:()=>Or,limitedParseFloat:()=>Ar,limitedParseFloat32:()=>jr,logger:()=>P,nv:()=>Oi,parseBoolean:()=>cr,parseEpochTimestamp:()=>Xr,parseRfc3339DateTime:()=>Ur,parseRfc3339DateTimeWithOffset:()=>Gr,parseRfc7231DateTime:()=>Yr,quoteHeader:()=>ci,sdkStreamMixin:()=>Du,serializerMiddleware:()=>vl,serializerMiddlewareOption:()=>Sl,splitEvery:()=>wi,splitHeader:()=>Ei,splitStream:()=>ju,strictParseByte:()=>Ir,strictParseDouble:()=>wr,strictParseFloat:()=>Tr,strictParseFloat32:()=>Er,strictParseInt:()=>Pr,strictParseInt32:()=>Fr,strictParseLong:()=>Nr,strictParseShort:()=>N,toBase64:()=>Qn,toHex:()=>Ni,toUint8Array:()=>zi,toUtf8:()=>nr,v4:()=>Iu}),Pu,Fu,Iu,Lu,Ru=e((()=>{Xn(),$n(),tr(),Zn(),rr(),ar(),sr(),oi(),si(),Rr(),li(),Ci(),Ti(),Di(),ji(),Ii(),Ri(),Bi(),k(),Kn(),Ui(),Cl(),yl(),El(),Ol(),Wl(),Ql(),nu(),su(),Ou(),Mu(),Z(),Pu=class extends er(nr,A,Qn,Yn){},Fu=l,Iu=ir(Fu),Lu=Iu}));export{Bi as $,Xt as $t,as as A,de as An,$n as At,Eo as B,wn as Bt,Bs as C,_e as Cn,Xr as Ct,Ls as D,fe as Dn,Rr as Dt,Is as E,v as En,Cr as Et,Po as F,Xn as Ft,io as G,cn as Gt,ho as H,vn as Ht,To as I,Un as It,ia as J,an as Jt,W as K,ln as Kt,wo as L,Wn as Lt,is as M,ce as Mn,A as Mt,$o as N,g as Nn,Zn as Nt,Es as O,pe as On,rr as Ot,Fo as P,Yn as Pt,Wi as Q,Yt as Qt,So as R,On as Rt,G as S,y as Sn,oi as St,zs as T,he as Tn,Yr as Tt,so as U,xn as Ut,po as V,Tn as Vt,lo as W,bn as Wt,ta as X,Qt as Xt,V as Y,Zt as Yt,B as Z,$t as Zt,Xc as _,Se as _n,li as _t,Iu as a,Lt as an,Ni as at,Xs as b,ye as bn,si as bt,Tl as c,St as cn,Oi as ct,gl as d,at as dn,Ti as dt,Wt as en,zi as et,_l as f,C as fn,wi as ft,Yc as g,x as gn,Ci as gt,cl as h,qe as hn,Si as ht,Nu as i,It as in,Ii as it,os as j,_ as jn,Qn as jt,Ts as k,ue as kn,nr as kt,El as l,E as ln,Di as lt,ll as m,Ke as mn,xi as mt,Lu as n,zt as nn,Ri as nt,Ou as o,Et as on,Ai as ot,ml as p,Je as pn,bi as pt,H as q,on as qt,Ru as r,Rt as rn,Mi as rt,Du as s,kt as sn,ji as st,Pu as t,Kt as tn,Li as tt,fl as u,nt as un,Ei as ut,mc as v,xe as vn,ci as vt,Rs as w,ge as wn,Gr as wt,Zs as x,ve as xn,zr as xt,pc as y,be as yn,R as yt,Co as z,kn as zt}; \ No newline at end of file diff --git a/dist/signin-DC-Ylpwg.js b/dist/signin-DC-Ylpwg.js deleted file mode 100644 index baba5e25..00000000 --- a/dist/signin-DC-Ylpwg.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./chunk-BTyA9uPd.js";import{t}from"./dist-cjs-Qh8tJqb7.js";import{n,r,s as ee}from"./client-BGPX0p_V.js";import{t as i}from"./dist-cjs-GIhSYq7f.js";import{B as te,H as ne,K as re,Q as ie,at as ae,rt as oe,t as a}from"./dist-cjs-B_LTzHDO.js";import{A as se,C as ce,D as le,G as ue,H as de,K as fe,M as pe,O as me,P as he,R as ge,S as _e,T as ve,W as ye,_ as be,a as xe,b as Se,i as Ce,l as we,n as Te,p as Ee,r as De,s as o,t as Oe,w as ke,x as Ae,y as je}from"./dist-cjs-D0bofO8q.js";import{t as Me}from"./dist-cjs-CKxbtVku.js";import{t as Ne}from"./dist-cjs-BWu9uV-R.js";import{t as Pe}from"./package-1vOVG41v.js";function Fe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`signin`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Ie(e){return{schemeId:`smithy.api#noAuth`}}var s,Le,Re,ze,Be=e((()=>{o(),s=ie(),Le=async(e,t,n)=>({operation:(0,s.getSmithyContext)(t).operation,region:await(0,s.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Re=e=>{let t=[];switch(e.operation){case`CreateOAuth2Token`:t.push(Ie(e));break;default:t.push(Fe(e))}return t},ze=e=>{let t=we(e);return Object.assign(t,{authSchemePreference:(0,s.normalizeProvider)(e.authSchemePreference??[])})}})),Ve,He,Ue=e((()=>{Ve=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`signin`}),He={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),We,c,l,u,d,Ge,f,p,m,h,g,_,v,y,Ke,qe,Je,Ye,Xe=e((()=>{We=ve(),c=`ref`,l=-1,u=!0,d=`isSet`,Ge=`PartitionResult`,f=`booleanEquals`,p=`getAttr`,m=`stringEquals`,h={[c]:`Endpoint`},g={[c]:Ge},_={fn:p,argv:[g,`name`]},v={},y=[{[c]:`Region`}],Ke={conditions:[[d,[h]],[d,y],[`aws.partition`,y,Ge],[f,[{[c]:`UseFIPS`},u]],[f,[{[c]:`UseDualStack`},u]],[f,[{fn:p,argv:[g,`supportsDualStack`]},u]],[f,[{fn:p,argv:[g,`supportsFIPS`]},u]],[m,[_,`aws`]],[m,[_,`aws-cn`]],[m,[_,`aws-us-gov`]]],results:[[l],[l,`Invalid Configuration: FIPS and custom endpoint are not supported`],[l,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[h,v],[`https://{Region}.signin.aws.amazon.com`,v],[`https://{Region}.signin.amazonaws.cn`,v],[`https://{Region}.signin.amazonaws-us-gov.com`,v],[`https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,v],[l,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://signin-fips.{Region}.{PartitionResult#dnsSuffix}`,v],[l,`FIPS is enabled but this partition does not support FIPS`],[`https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}`,v],[l,`DualStack is enabled but this partition does not support DualStack`],[`https://signin.{Region}.{PartitionResult#dnsSuffix}`,v],[l,`Invalid Configuration: Missing Region`]]},qe=2,Je=new Int32Array([-1,1,-1,0,15,3,1,4,100000014,2,5,100000014,3,11,6,4,10,7,7,100000004,8,8,100000005,9,9,100000006,100000013,5,100000011,100000012,4,13,12,6,100000009,100000010,5,14,100000008,6,100000007,100000008,3,100000001,16,4,100000002,100000003]),Ye=We.BinaryDecisionDiagram.from(Je,qe,Ke.conditions,Ke.results)})),Ze,b,Qe,$e,et=e((()=>{Ze=ke(),b=ve(),Xe(),Qe=new b.EndpointCache({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),$e=(e,t={})=>Qe.get(e,()=>(0,b.decideEndpoint)(Ye,{endpointParams:e,logger:t.logger})),b.customEndpointFunctions.aws=Ze.awsEndpointFunctions})),tt,x,S=e((()=>{tt=a(),x=class e extends tt.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),nt,rt,it,at,ot=e((()=>{S(),nt=class e extends x{name=`AccessDeniedException`;$fault=`client`;error;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},rt=class e extends x{name=`InternalServerException`;$fault=`server`;error;constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},it=class e extends x{name=`TooManyRequestsError`;$fault=`client`;error;constructor(t){super({name:`TooManyRequestsError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},at=class e extends x{name=`ValidationException`;$fault=`client`;error;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}}})),st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,C,w,T,E,D,vt,O,k,A,yt,j,M,N,P,F,I,L,R,z,bt,xt,St,B,V,H,Ct,U,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,W=e((()=>{te(),ot(),S(),st=`AccessDeniedException`,ct=`AccessToken`,lt=`CreateOAuth2Token`,ut=`CreateOAuth2TokenRequest`,dt=`CreateOAuth2TokenRequestBody`,ft=`CreateOAuth2TokenResponseBody`,pt=`CreateOAuth2TokenResponse`,mt=`InternalServerException`,ht=`RefreshToken`,gt=`TooManyRequestsError`,_t=`ValidationException`,C=`accessKeyId`,w=`accessToken`,T=`client`,E=`clientId`,D=`codeVerifier`,vt=`code`,O=`error`,k=`expiresIn`,A=`grantType`,yt=`http`,j=`httpError`,M=`idToken`,N=`jsonName`,P=`message`,F=`refreshToken`,I=`redirectUri`,L=`smithy.ts.sdk.synthetic.com.amazonaws.signin`,R=`secretAccessKey`,z=`sessionToken`,bt=`server`,xt=`tokenInput`,St=`tokenOutput`,B=`tokenType`,V=`com.amazonaws.signin`,H=ne.for(L),Ct=[-3,L,`SigninServiceException`,0,[],[]],H.registerError(Ct,x),U=ne.for(V),wt=[-3,V,st,{[O]:T},[O,P],[0,0],2],U.registerError(wt,nt),Tt=[-3,V,mt,{[O]:bt,[j]:500},[O,P],[0,0],2],U.registerError(Tt,rt),Et=[-3,V,gt,{[O]:T,[j]:429},[O,P],[0,0],2],U.registerError(Et,it),Dt=[-3,V,_t,{[O]:T,[j]:400},[O,P],[0,0],2],U.registerError(Dt,at),Ot=[H,U],kt=[0,V,ht,8,0],At=[3,V,ct,8,[C,R,z],[[0,{[N]:C}],[0,{[N]:R}],[0,{[N]:z}]],3],jt=[3,V,ut,0,[xt],[[()=>Mt,16]],1],Mt=[3,V,dt,0,[E,A,vt,I,D,F],[[0,{[N]:E}],[0,{[N]:A}],0,[0,{[N]:I}],[0,{[N]:D}],[()=>kt,{[N]:F}]],2],Nt=[3,V,pt,0,[St],[[()=>Pt,16]],1],Pt=[3,V,ft,0,[w,B,k,F,M],[[()=>At,{[N]:w}],[0,{[N]:B}],[1,{[N]:k}],[()=>kt,{[N]:F}],[0,{[N]:M}]],4],Ft=[9,V,lt,{[yt]:[`POST`,`/v1/token`,200]},()=>jt,()=>Nt]})),It,Lt,G,K,Rt,zt=e((()=>{o(),ge(),le(),It=a(),Lt=Me(),G=ae(),K=i(),Be(),et(),W(),Rt=e=>({apiVersion:`2023-01-01`,base64Decoder:e?.base64Decoder??G.fromBase64,base64Encoder:e?.base64Encoder??G.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$e,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Re,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new be},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new me}],logger:e?.logger??new It.NoOpLogger,protocol:e?.protocol??de,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.signin`,errorTypeRegistries:Ot,version:`2023-01-01`,serviceTarget:`Signin`},serviceId:e?.serviceId??`Signin`,urlParser:e?.urlParser??Lt.parseUrl,utf8Decoder:e?.utf8Decoder??K.fromUtf8,utf8Encoder:e?.utf8Encoder??K.toUtf8})})),q,J,Bt,Y,X,Z,Q,Vt,Ht,Ut,Wt,Gt=e((()=>{n(),o(),q=xe(),J=_e(),Bt=Ce(),Y=je(),X=Ne(),Z=oe(),Q=a(),Vt=De(),Ht=Te(),Ut=r(),zt(),Wt=e=>{(0,Q.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Ht.resolveDefaultsModeConfig)(e),n=()=>t().then(Q.loadConfigsForDefaultMode),r=Rt(e);ee(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,X.loadConfig)(Ee,i),bodyLengthChecker:e?.bodyLengthChecker??Vt.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,q.createDefaultUserAgentProvider)({serviceId:r.serviceId,clientVersion:Pe}),maxAttempts:e?.maxAttempts??(0,X.loadConfig)(Y.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,X.loadConfig)(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:Z.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,X.loadConfig)({...Y.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||Ut.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Bt.Hash.bind(null,`sha256`),streamCollector:e?.streamCollector??Z.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,X.loadConfig)(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,X.loadConfig)(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,X.loadConfig)(q.NODE_APP_ID_CONFIG_OPTIONS,i)}}})),Kt,qt,Jt=e((()=>{Kt=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},qt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),Yt,$,Xt,Zt,Qt=e((()=>{Yt=Oe(),$=t(),Xt=a(),Jt(),Zt=(e,t)=>{let n=Object.assign((0,Yt.getAwsRegionExtensionConfiguration)(e),(0,Xt.getDefaultExtensionConfiguration)(e),(0,$.getHttpHandlerExtensionConfiguration)(e),Kt(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,Yt.resolveAwsRegionExtensionConfiguration)(n),(0,Xt.resolveDefaultRuntimeConfig)(n),(0,$.resolveHttpHandlerRuntimeConfig)(n),qt(n))}})),$t,en,tn,nn,rn,an,on,sn,cn,ln,un=e((()=>{$t=fe(),en=ue(),tn=ye(),nn=ce(),rn=_e(),le(),te(),an=Ae(),on=Se(),sn=je(),cn=a(),Be(),Ue(),Gt(),Qt(),ln=class extends cn.Client{config;constructor(...[e]){let t=Wt(e||{});super(t),this.initConfig=t;let n=Zt(ze((0,on.resolveEndpointConfig)((0,$t.resolveHostHeaderConfig)((0,rn.resolveRegionConfig)((0,sn.resolveRetryConfig)((0,nn.resolveUserAgentConfig)(Ve(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(re(this.config)),this.middlewareStack.use((0,nn.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,sn.getRetryPlugin)(this.config)),this.middlewareStack.use((0,an.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,$t.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,en.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,tn.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Le,identityProviderConfigProvider:async e=>new se({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(pe(this.config))}destroy(){super.destroy()}}})),dn,fn,pn,mn=e((()=>{dn=Se(),fn=a(),Ue(),W(),pn=class extends fn.Command.classBuilder().ep(He).m(function(e,t,n,r){return[(0,dn.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s(`Signin`,`CreateOAuth2Token`,{}).n(`SigninClient`,`CreateOAuth2TokenCommand`).sc(Ft).build(){}})),hn,gn,_n,vn=e((()=>{hn=a(),mn(),un(),gn={CreateOAuth2TokenCommand:pn},_n=class extends ln{},(0,hn.createAggregatedClient)(gn,_n)})),yn=e((()=>{mn()})),bn=e((()=>{})),xn=e((()=>{}));e((()=>{un(),vn(),yn(),W(),bn(),ot(),xn(),S()}))();export{pn as CreateOAuth2TokenCommand,ln as SigninClient}; \ No newline at end of file diff --git a/dist/signin-DsuSbn96.js b/dist/signin-DsuSbn96.js new file mode 100644 index 00000000..8bf3c81a --- /dev/null +++ b/dist/signin-DsuSbn96.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-BTyA9uPd.js";import{A as t,B as n,E as r,G as i,H as a,I as ee,J as te,M as ne,P as re,Q as ie,R as ae,V as oe,W as se,_ as ce,a as le,c as ue,f as de,m as fe,n as o,q as pe,r as me,u as he,w as ge,y as _e}from"./client-CtZmAvVy.js";import{E as ve,F as ye,Gt as be,Ht as xe,I as Se,Jt as Ce,K as s,L as we,Lt as c,Mt as Te,N as Ee,Pt as De,Qt as Oe,Rt as ke,Sn as Ae,U as je,V as Me,Wt as Ne,Yt as Pe,b as Fe,c as Ie,d as Le,en as Re,f as l,g as ze,in as Be,j as Ve,jn as He,jt as Ue,kt as We,mn as Ge,nn as Ke,p as qe,r as Je,tt as Ye,un as Xe,vn as Ze,w as Qe}from"./serde-Bngt0OLn.js";import{a as $e,l as et,s as tt,t as u}from"./protocols-D7c0rc_2.js";import{c as nt,f as rt,h as it,i as at,n as d,y as ot}from"./httpAuthSchemes-D66OtRTv.js";import{t as st}from"./dist-cjs-B33Pip5h.js";import{t as ct}from"./package-CWUbVncD.js";function lt(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`signin`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ut(e){return{schemeId:`smithy.api#noAuth`}}var dt,ft,pt,mt=e((()=>{d(),c(),dt=async(e,t,n)=>({operation:He(t).operation,region:await Ae(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),ft=e=>{let t=[];switch(e.operation){case`CreateOAuth2Token`:t.push(ut(e));break;default:t.push(lt(e))}return t},pt=e=>{let t=at(e);return Object.assign(t,{authSchemePreference:Ae(e.authSchemePreference??[])})}})),ht,gt,_t=e((()=>{ht=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`signin`}),gt={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),f,p,m,h,g,_,v,y,b,x,S,C,w,T,vt,yt,bt,xt=e((()=>{l(),f=`ref`,p=-1,m=!0,h=`isSet`,g=`PartitionResult`,_=`booleanEquals`,v=`getAttr`,y=`stringEquals`,b={[f]:`Endpoint`},x={[f]:g},S={fn:v,argv:[x,`name`]},C={},w=[{[f]:`Region`}],T={conditions:[[h,[b]],[h,w],[`aws.partition`,w,g],[_,[{[f]:`UseFIPS`},m]],[_,[{[f]:`UseDualStack`},m]],[_,[{fn:v,argv:[x,`supportsDualStack`]},m]],[_,[{fn:v,argv:[x,`supportsFIPS`]},m]],[y,[S,`aws`]],[y,[S,`aws-cn`]],[y,[S,`aws-us-gov`]]],results:[[p],[p,`Invalid Configuration: FIPS and custom endpoint are not supported`],[p,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[b,C],[`https://{Region}.signin.aws.amazon.com`,C],[`https://{Region}.signin.amazonaws.cn`,C],[`https://{Region}.signin.amazonaws-us-gov.com`,C],[`https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,C],[p,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://signin-fips.{Region}.{PartitionResult#dnsSuffix}`,C],[p,`FIPS is enabled but this partition does not support FIPS`],[`https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}`,C],[p,`DualStack is enabled but this partition does not support DualStack`],[`https://signin.{Region}.{PartitionResult#dnsSuffix}`,C],[p,`Invalid Configuration: Missing Region`]]},vt=2,yt=new Int32Array([-1,1,-1,0,15,3,1,4,100000014,2,5,100000014,3,11,6,4,10,7,7,100000004,8,8,100000005,9,9,100000006,100000013,5,100000011,100000012,4,13,12,6,100000009,100000010,5,14,100000008,6,100000007,100000008,3,100000001,16,4,100000002,100000003]),bt=ve.from(yt,vt,T.conditions,T.results)})),St,Ct,wt=e((()=>{o(),l(),xt(),St=new Qe({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Ct=(e,t={})=>St.get(e,()=>ze(bt,{endpointParams:e,logger:t.logger})),Fe.aws=ue})),E,D=e((()=>{c(),E=class e extends Pe{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Tt,Et,Dt,Ot,kt=e((()=>{D(),Tt=class e extends E{name=`AccessDeniedException`;$fault=`client`;error;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},Et=class e extends E{name=`InternalServerException`;$fault=`server`;error;constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},Dt=class e extends E{name=`TooManyRequestsError`;$fault=`client`;error;constructor(t){super({name:`TooManyRequestsError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},Ot=class e extends E{name=`ValidationException`;$fault=`client`;error;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}}})),At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,O,k,A,j,M,Vt,N,P,F,Ht,I,L,R,z,B,V,H,U,W,Ut,Wt,Gt,G,K,q,Kt,J,qt,Jt,Yt,Xt,Zt,Y,Qt,$t,en,tn,nn,rn,X=e((()=>{Ke(),kt(),D(),At=`AccessDeniedException`,jt=`AccessToken`,Mt=`CreateOAuth2Token`,Nt=`CreateOAuth2TokenRequest`,Pt=`CreateOAuth2TokenRequestBody`,Ft=`CreateOAuth2TokenResponseBody`,It=`CreateOAuth2TokenResponse`,Lt=`InternalServerException`,Rt=`RefreshToken`,zt=`TooManyRequestsError`,Bt=`ValidationException`,O=`accessKeyId`,k=`accessToken`,A=`client`,j=`clientId`,M=`codeVerifier`,Vt=`code`,N=`error`,P=`expiresIn`,F=`grantType`,Ht=`http`,I=`httpError`,L=`idToken`,R=`jsonName`,z=`message`,B=`refreshToken`,V=`redirectUri`,H=`smithy.ts.sdk.synthetic.com.amazonaws.signin`,U=`secretAccessKey`,W=`sessionToken`,Ut=`server`,Wt=`tokenInput`,Gt=`tokenOutput`,G=`tokenType`,K=`com.amazonaws.signin`,q=Be.for(H),Kt=[-3,H,`SigninServiceException`,0,[],[]],q.registerError(Kt,E),J=Be.for(K),qt=[-3,K,At,{[N]:A},[N,z],[0,0],2],J.registerError(qt,Tt),Jt=[-3,K,Lt,{[N]:Ut,[I]:500},[N,z],[0,0],2],J.registerError(Jt,Et),Yt=[-3,K,zt,{[N]:A,[I]:429},[N,z],[0,0],2],J.registerError(Yt,Dt),Xt=[-3,K,Bt,{[N]:A,[I]:400},[N,z],[0,0],2],J.registerError(Xt,Ot),Zt=[q,J],Y=[0,K,Rt,8,0],Qt=[3,K,jt,8,[O,U,W],[[0,{[R]:O}],[0,{[R]:U}],[0,{[R]:W}]],3],$t=[3,K,Nt,0,[Wt],[[()=>en,16]],1],en=[3,K,Pt,0,[j,F,Vt,V,M,B],[[0,{[R]:j}],[0,{[R]:F}],0,[0,{[R]:V}],[0,{[R]:M}],[()=>Y,{[R]:B}]],2],tn=[3,K,It,0,[Gt],[[()=>nn,16]],1],nn=[3,K,Ft,0,[k,G,P,B,L],[[()=>Qt,{[R]:k}],[0,{[R]:G}],[1,{[R]:P}],[()=>Y,{[R]:B}],[0,{[R]:L}]],4],rn=[9,K,Mt,{[Ht]:[`POST`,`/v1/token`,200]},()=>$t,()=>tn]})),an,on=e((()=>{d(),it(),_e(),c(),u(),Je(),mt(),wt(),X(),an=e=>({apiVersion:`2023-01-01`,base64Decoder:e?.base64Decoder??De,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ct,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ft,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new rt},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new ge}],logger:e?.logger??new ke,protocol:e?.protocol??ot,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.signin`,errorTypeRegistries:Zt,version:`2023-01-01`,serviceTarget:`Signin`},serviceId:e?.serviceId??`Signin`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??Te,utf8Encoder:e?.utf8Encoder??We})})),Z,sn,cn=e((()=>{o(),d(),c(),Ve(),a(),Je(),Z=st(),on(),sn=e=>{be(process.version);let t=Ee(e),n=()=>t().then(Ce),r=an(e);ie(process.version);let a={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??s(nt,a),bodyLengthChecker:e?.bodyLengthChecker??Ye,defaultUserAgentProvider:e?.defaultUserAgentProvider??de({serviceId:r.serviceId,clientVersion:ct}),maxAttempts:e?.maxAttempts??s(se,e),region:e?.region??s(we,{...Se,...a}),requestHandler:Z.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??s({...i,default:async()=>(await n()).retryMode||te},e),sha256:e?.sha256??Ie.bind(null,`sha256`),streamCollector:e?.streamCollector??Z.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??s(je,a),useFipsEndpoint:e?.useFipsEndpoint??s(Me,a),userAgentAppId:e?.userAgentAppId??s(he,a)}}})),ln,un,dn=e((()=>{ln=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},un=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),fn,pn=e((()=>{o(),c(),u(),dn(),fn=(e,t)=>{let n=Object.assign(me(e),xe(e),tt(e),ln(e));return t.forEach(e=>e.configure(n)),Object.assign(e,le(n),Ne(n),et(n),un(n))}})),Q,mn=e((()=>{o(),_e(),c(),Ve(),l(),u(),a(),Ke(),mt(),_t(),cn(),pn(),Q=class extends Ge{config;constructor(...[e]){let i=sn(e||{});super(i),this.initConfig=i;let a=fn(pt(qe(n(ye(pe(ce(ht(i))))))),e?.extensions||[]);this.config=a,this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(fe(this.config)),this.middlewareStack.use(oe(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(ne(this.config,{httpAuthSchemeParametersProvider:dt,identityProviderConfigProvider:async e=>new r({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(t(this.config))}destroy(){super.destroy()}}})),$,hn=e((()=>{c(),l(),_t(),X(),$=class extends Re.classBuilder().ep(gt).m(function(e,t,n,r){return[Le(n,e.getEndpointParameterInstructions())]}).s(`Signin`,`CreateOAuth2Token`,{}).n(`SigninClient`,`CreateOAuth2TokenCommand`).sc(rn).build(){}})),gn,_n,vn=e((()=>{c(),hn(),mn(),gn={CreateOAuth2TokenCommand:$},_n=class extends Q{},Oe(gn,_n)})),yn=e((()=>{hn()})),bn=e((()=>{})),xn=e((()=>{}));e((()=>{mn(),vn(),yn(),X(),bn(),kt(),xn(),D()}))();export{$ as CreateOAuth2TokenCommand,Q as SigninClient}; \ No newline at end of file diff --git a/dist/sso-oidc-BAXbMZ3t.js b/dist/sso-oidc-BAXbMZ3t.js new file mode 100644 index 00000000..28bb26ee --- /dev/null +++ b/dist/sso-oidc-BAXbMZ3t.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-BTyA9uPd.js";import{A as t,B as n,E as r,G as i,H as a,I as ee,J as te,M as ne,P as re,Q as ie,R as ae,V as oe,W as se,_ as ce,a as le,c as ue,f as de,m as fe,n as o,q as pe,r as me,u as he,w as ge,y as _e}from"./client-CtZmAvVy.js";import{E as ve,F as ye,Gt as be,Ht as xe,I as Se,Jt as Ce,K as s,L as we,Lt as c,Mt as Te,N as Ee,Pt as De,Qt as Oe,Rt as ke,Sn as Ae,U as je,V as Me,Wt as Ne,Yt as Pe,b as Fe,c as Ie,d as Le,en as Re,f as l,g as ze,in as u,j as d,jn as Be,jt as Ve,kt as He,mn as Ue,nn as f,p as We,r as p,tt as Ge,un as Ke,vn as qe,w as Je}from"./serde-Bngt0OLn.js";import{a as Ye,l as Xe,s as Ze,t as m}from"./protocols-D7c0rc_2.js";import{c as Qe,f as $e,h as et,i as tt,n as h,y as nt}from"./httpAuthSchemes-D66OtRTv.js";import{t as rt}from"./dist-cjs-B33Pip5h.js";import{t as it}from"./package-CWUbVncD.js";function at(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sso-oauth`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ot(e){return{schemeId:`smithy.api#noAuth`}}var g,_,v,y=e((()=>{h(),c(),g=async(e,t,n)=>({operation:Be(t).operation,region:await Ae(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),_=e=>{let t=[];switch(e.operation){case`CreateToken`:t.push(ot(e));break;default:t.push(at(e))}return t},v=e=>{let t=tt(e);return Object.assign(t,{authSchemePreference:Ae(e.authSchemePreference??[])})}})),b,x,S=e((()=>{b=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`sso-oauth`}),x={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),C,w,T,E,D,O,k,A,j,M,N,P,st,ct,lt,ut=e((()=>{l(),C=`ref`,w=-1,T=!0,E=`isSet`,D=`PartitionResult`,O=`booleanEquals`,k=`getAttr`,A={[C]:`Endpoint`},j={[C]:D},M={},N=[{[C]:`Region`}],P={conditions:[[E,[A]],[E,N],[`aws.partition`,N,D],[O,[{[C]:`UseFIPS`},T]],[O,[{[C]:`UseDualStack`},T]],[O,[{fn:k,argv:[j,`supportsDualStack`]},T]],[O,[{fn:k,argv:[j,`supportsFIPS`]},T]],[`stringEquals`,[{fn:k,argv:[j,`name`]},`aws-us-gov`]]],results:[[w],[w,`Invalid Configuration: FIPS and custom endpoint are not supported`],[w,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[A,M],[`https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,M],[w,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://oidc.{Region}.amazonaws.com`,M],[`https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}`,M],[w,`FIPS is enabled but this partition does not support FIPS`],[`https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}`,M],[w,`DualStack is enabled but this partition does not support DualStack`],[`https://oidc.{Region}.{PartitionResult#dnsSuffix}`,M],[w,`Invalid Configuration: Missing Region`]]},st=2,ct=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),lt=ve.from(ct,st,P.conditions,P.results)})),dt,ft,pt=e((()=>{o(),l(),ut(),dt=new Je({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),ft=(e,t={})=>dt.get(e,()=>ze(lt,{endpointParams:e,logger:t.logger})),Fe.aws=ue})),F,I=e((()=>{c(),F=class e extends Pe{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),mt,ht,gt,_t,vt,yt,bt,L,xt,St,Ct,wt=e((()=>{I(),mt=class e extends F{name=`AccessDeniedException`;$fault=`client`;error;reason;error_description;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},ht=class e extends F{name=`AuthorizationPendingException`;$fault=`client`;error;error_description;constructor(t){super({name:`AuthorizationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},gt=class e extends F{name=`ExpiredTokenException`;$fault=`client`;error;error_description;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},_t=class e extends F{name=`InternalServerException`;$fault=`server`;error;error_description;constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},vt=class e extends F{name=`InvalidClientException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},yt=class e extends F{name=`InvalidGrantException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidGrantException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},bt=class e extends F{name=`InvalidRequestException`;$fault=`client`;error;reason;error_description;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},L=class e extends F{name=`InvalidScopeException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidScopeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},xt=class e extends F{name=`SlowDownException`;$fault=`client`;error;error_description;constructor(t){super({name:`SlowDownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},St=class e extends F{name=`UnauthorizedClientException`;$fault=`client`;error;error_description;constructor(t){super({name:`UnauthorizedClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ct=class e extends F{name=`UnsupportedGrantTypeException`;$fault=`client`;error;error_description;constructor(t){super({name:`UnsupportedGrantTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}}})),Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,R,Gt,Kt,qt,Jt,Yt,z,Xt,B,Zt,Qt,V,$t,H,U,en,W,tn,nn,rn,G,K,an,q,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,J,Sn,Cn,wn,Y=e((()=>{f(),wt(),I(),Tt=`AccessDeniedException`,Et=`AuthorizationPendingException`,Dt=`AccessToken`,Ot=`ClientSecret`,kt=`CreateToken`,At=`CreateTokenRequest`,jt=`CreateTokenResponse`,Mt=`CodeVerifier`,Nt=`ExpiredTokenException`,Pt=`InvalidClientException`,Ft=`InvalidGrantException`,It=`InvalidRequestException`,Lt=`InternalServerException`,Rt=`InvalidScopeException`,zt=`IdToken`,Bt=`RefreshToken`,Vt=`SlowDownException`,Ht=`UnauthorizedClientException`,Ut=`UnsupportedGrantTypeException`,Wt=`accessToken`,R=`client`,Gt=`clientId`,Kt=`clientSecret`,qt=`codeVerifier`,Jt=`code`,Yt=`deviceCode`,z=`error`,Xt=`expiresIn`,B=`error_description`,Zt=`grantType`,Qt=`http`,V=`httpError`,$t=`idToken`,H=`reason`,U=`refreshToken`,en=`redirectUri`,W=`smithy.ts.sdk.synthetic.com.amazonaws.ssooidc`,tn=`scope`,nn=`server`,rn=`tokenType`,G=`com.amazonaws.ssooidc`,K=u.for(W),an=[-3,W,`SSOOIDCServiceException`,0,[],[]],K.registerError(an,F),q=u.for(G),on=[-3,G,Tt,{[z]:R,[V]:400},[z,H,B],[0,0,0]],q.registerError(on,mt),sn=[-3,G,Et,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(sn,ht),cn=[-3,G,Nt,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(cn,gt),ln=[-3,G,Lt,{[z]:nn,[V]:500},[z,B],[0,0]],q.registerError(ln,_t),un=[-3,G,Pt,{[z]:R,[V]:401},[z,B],[0,0]],q.registerError(un,vt),dn=[-3,G,Ft,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(dn,yt),fn=[-3,G,It,{[z]:R,[V]:400},[z,H,B],[0,0,0]],q.registerError(fn,bt),pn=[-3,G,Rt,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(pn,L),mn=[-3,G,Vt,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(mn,xt),hn=[-3,G,Ht,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(hn,St),gn=[-3,G,Ut,{[z]:R,[V]:400},[z,B],[0,0]],q.registerError(gn,Ct),_n=[K,q],vn=[0,G,Dt,8,0],yn=[0,G,Ot,8,0],bn=[0,G,Mt,8,0],xn=[0,G,zt,8,0],J=[0,G,Bt,8,0],Sn=[3,G,At,0,[Gt,Kt,Zt,Yt,Jt,U,tn,en,qt],[0,[()=>yn,0],0,0,0,[()=>J,0],64,0,[()=>bn,0]],3],Cn=[3,G,jt,0,[Wt,rn,Xt,U,$t],[[()=>vn,0],0,1,[()=>J,0],[()=>xn,0]]],wn=[9,G,kt,{[Qt]:[`POST`,`/token`,200]},()=>Sn,()=>Cn]})),Tn,En=e((()=>{h(),et(),_e(),c(),m(),p(),y(),pt(),Y(),Tn=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??De,base64Encoder:e?.base64Encoder??Ve,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ft,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new $e},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new ge}],logger:e?.logger??new ke,protocol:e?.protocol??nt,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ssooidc`,errorTypeRegistries:_n,version:`2019-06-10`,serviceTarget:`AWSSSOOIDCService`},serviceId:e?.serviceId??`SSO OIDC`,urlParser:e?.urlParser??qe,utf8Decoder:e?.utf8Decoder??Te,utf8Encoder:e?.utf8Encoder??He})})),X,Dn,On=e((()=>{o(),h(),c(),d(),a(),p(),X=rt(),En(),Dn=e=>{be(process.version);let t=Ee(e),n=()=>t().then(Ce),r=Tn(e);ie(process.version);let a={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??s(Qe,a),bodyLengthChecker:e?.bodyLengthChecker??Ge,defaultUserAgentProvider:e?.defaultUserAgentProvider??de({serviceId:r.serviceId,clientVersion:it}),maxAttempts:e?.maxAttempts??s(se,e),region:e?.region??s(we,{...Se,...a}),requestHandler:X.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??s({...i,default:async()=>(await n()).retryMode||te},e),sha256:e?.sha256??Ie.bind(null,`sha256`),streamCollector:e?.streamCollector??X.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??s(je,a),useFipsEndpoint:e?.useFipsEndpoint??s(Me,a),userAgentAppId:e?.userAgentAppId??s(he,a)}}})),kn,An,jn=e((()=>{kn=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},An=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),Mn,Nn=e((()=>{o(),c(),m(),jn(),Mn=(e,t)=>{let n=Object.assign(me(e),xe(e),Ze(e),kn(e));return t.forEach(e=>e.configure(n)),Object.assign(e,le(n),Ne(n),Xe(n),An(n))}})),Z,Pn=e((()=>{o(),_e(),c(),d(),l(),m(),a(),f(),y(),S(),On(),Nn(),Z=class extends Ue{config;constructor(...[e]){let i=Dn(e||{});super(i),this.initConfig=i;let a=Mn(v(We(n(ye(pe(ce(b(i))))))),e?.extensions||[]);this.config=a,this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(fe(this.config)),this.middlewareStack.use(oe(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(ne(this.config,{httpAuthSchemeParametersProvider:g,identityProviderConfigProvider:async e=>new r({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(t(this.config))}destroy(){super.destroy()}}})),Q,Fn=e((()=>{c(),l(),S(),Y(),Q=class extends Re.classBuilder().ep(x).m(function(e,t,n,r){return[Le(n,e.getEndpointParameterInstructions())]}).s(`AWSSSOOIDCService`,`CreateToken`,{}).n(`SSOOIDCClient`,`CreateTokenCommand`).sc(wn).build(){}})),In,$,Ln=e((()=>{c(),Fn(),Pn(),In={CreateTokenCommand:Q},$=class extends Z{},Oe(In,$)})),Rn=e((()=>{Fn()})),zn=e((()=>{})),Bn=e((()=>{}));e((()=>{Pn(),Ln(),Rn(),Y(),zn(),wt(),Bn(),I()}))();export{Q as CreateTokenCommand,Z as SSOOIDCClient}; \ No newline at end of file diff --git a/dist/sso-oidc-D-gXX4Oj.js b/dist/sso-oidc-D-gXX4Oj.js deleted file mode 100644 index f8e26016..00000000 --- a/dist/sso-oidc-D-gXX4Oj.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./chunk-BTyA9uPd.js";import{t}from"./dist-cjs-Qh8tJqb7.js";import{n,r,s as ee}from"./client-BGPX0p_V.js";import{t as i}from"./dist-cjs-GIhSYq7f.js";import{B as te,H as a,K as ne,Q as re,at as ie,rt as ae,t as o}from"./dist-cjs-B_LTzHDO.js";import{A as oe,C as se,D as ce,G as le,H as ue,K as de,M as fe,O as pe,P as me,R as he,S as ge,T as _e,W as ve,_ as ye,a as be,b as s,i as xe,l as Se,n as Ce,p as we,r as Te,s as c,t as Ee,w as De,x as Oe,y as ke}from"./dist-cjs-D0bofO8q.js";import{t as Ae}from"./dist-cjs-CKxbtVku.js";import{t as je}from"./dist-cjs-BWu9uV-R.js";import{t as Me}from"./package-1vOVG41v.js";function Ne(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sso-oauth`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Pe(e){return{schemeId:`smithy.api#noAuth`}}var l,Fe,Ie,Le,Re=e((()=>{c(),l=re(),Fe=async(e,t,n)=>({operation:(0,l.getSmithyContext)(t).operation,region:await(0,l.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Ie=e=>{let t=[];switch(e.operation){case`CreateToken`:t.push(Pe(e));break;default:t.push(Ne(e))}return t},Le=e=>{let t=Se(e);return Object.assign(t,{authSchemePreference:(0,l.normalizeProvider)(e.authSchemePreference??[])})}})),ze,Be,Ve=e((()=>{ze=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`sso-oauth`}),Be={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),He,u,d,f,p,m,h,g,_,v,y,b,x,Ue,We,Ge,Ke=e((()=>{He=_e(),u=`ref`,d=-1,f=!0,p=`isSet`,m=`PartitionResult`,h=`booleanEquals`,g=`getAttr`,_={[u]:`Endpoint`},v={[u]:m},y={},b=[{[u]:`Region`}],x={conditions:[[p,[_]],[p,b],[`aws.partition`,b,m],[h,[{[u]:`UseFIPS`},f]],[h,[{[u]:`UseDualStack`},f]],[h,[{fn:g,argv:[v,`supportsDualStack`]},f]],[h,[{fn:g,argv:[v,`supportsFIPS`]},f]],[`stringEquals`,[{fn:g,argv:[v,`name`]},`aws-us-gov`]]],results:[[d],[d,`Invalid Configuration: FIPS and custom endpoint are not supported`],[d,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[_,y],[`https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,y],[d,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://oidc.{Region}.amazonaws.com`,y],[`https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}`,y],[d,`FIPS is enabled but this partition does not support FIPS`],[`https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}`,y],[d,`DualStack is enabled but this partition does not support DualStack`],[`https://oidc.{Region}.{PartitionResult#dnsSuffix}`,y],[d,`Invalid Configuration: Missing Region`]]},Ue=2,We=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Ge=He.BinaryDecisionDiagram.from(We,Ue,x.conditions,x.results)})),qe,S,Je,Ye,Xe=e((()=>{qe=De(),S=_e(),Ke(),Je=new S.EndpointCache({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Ye=(e,t={})=>Je.get(e,()=>(0,S.decideEndpoint)(Ge,{endpointParams:e,logger:t.logger})),S.customEndpointFunctions.aws=qe.awsEndpointFunctions})),Ze,C,w=e((()=>{Ze=o(),C=class e extends Ze.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt=e((()=>{w(),Qe=class e extends C{name=`AccessDeniedException`;$fault=`client`;error;reason;error_description;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},$e=class e extends C{name=`AuthorizationPendingException`;$fault=`client`;error;error_description;constructor(t){super({name:`AuthorizationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},et=class e extends C{name=`ExpiredTokenException`;$fault=`client`;error;error_description;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},tt=class e extends C{name=`InternalServerException`;$fault=`server`;error;error_description;constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},nt=class e extends C{name=`InvalidClientException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},rt=class e extends C{name=`InvalidGrantException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidGrantException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},it=class e extends C{name=`InvalidRequestException`;$fault=`client`;error;reason;error_description;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},at=class e extends C{name=`InvalidScopeException`;$fault=`client`;error;error_description;constructor(t){super({name:`InvalidScopeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},ot=class e extends C{name=`SlowDownException`;$fault=`client`;error;error_description;constructor(t){super({name:`SlowDownException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},st=class e extends C{name=`UnauthorizedClientException`;$fault=`client`;error;error_description;constructor(t){super({name:`UnauthorizedClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},ct=class e extends C{name=`UnsupportedGrantTypeException`;$fault=`client`;error;error_description;constructor(t){super({name:`UnsupportedGrantTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}}})),ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,T,At,jt,Mt,Nt,Pt,E,Ft,D,It,Lt,O,k,A,j,Rt,M,zt,Bt,Vt,N,P,Ht,F,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,I,on,sn,cn,L=e((()=>{te(),lt(),w(),ut=`AccessDeniedException`,dt=`AuthorizationPendingException`,ft=`AccessToken`,pt=`ClientSecret`,mt=`CreateToken`,ht=`CreateTokenRequest`,gt=`CreateTokenResponse`,_t=`CodeVerifier`,vt=`ExpiredTokenException`,yt=`InvalidClientException`,bt=`InvalidGrantException`,xt=`InvalidRequestException`,St=`InternalServerException`,Ct=`InvalidScopeException`,wt=`IdToken`,Tt=`RefreshToken`,Et=`SlowDownException`,Dt=`UnauthorizedClientException`,Ot=`UnsupportedGrantTypeException`,kt=`accessToken`,T=`client`,At=`clientId`,jt=`clientSecret`,Mt=`codeVerifier`,Nt=`code`,Pt=`deviceCode`,E=`error`,Ft=`expiresIn`,D=`error_description`,It=`grantType`,Lt=`http`,O=`httpError`,k=`idToken`,A=`reason`,j=`refreshToken`,Rt=`redirectUri`,M=`smithy.ts.sdk.synthetic.com.amazonaws.ssooidc`,zt=`scope`,Bt=`server`,Vt=`tokenType`,N=`com.amazonaws.ssooidc`,P=a.for(M),Ht=[-3,M,`SSOOIDCServiceException`,0,[],[]],P.registerError(Ht,C),F=a.for(N),Ut=[-3,N,ut,{[E]:T,[O]:400},[E,A,D],[0,0,0]],F.registerError(Ut,Qe),Wt=[-3,N,dt,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Wt,$e),Gt=[-3,N,vt,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Gt,et),Kt=[-3,N,St,{[E]:Bt,[O]:500},[E,D],[0,0]],F.registerError(Kt,tt),qt=[-3,N,yt,{[E]:T,[O]:401},[E,D],[0,0]],F.registerError(qt,nt),Jt=[-3,N,bt,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Jt,rt),Yt=[-3,N,xt,{[E]:T,[O]:400},[E,A,D],[0,0,0]],F.registerError(Yt,it),Xt=[-3,N,Ct,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Xt,at),Zt=[-3,N,Et,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Zt,ot),Qt=[-3,N,Dt,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError(Qt,st),$t=[-3,N,Ot,{[E]:T,[O]:400},[E,D],[0,0]],F.registerError($t,ct),en=[P,F],tn=[0,N,ft,8,0],nn=[0,N,pt,8,0],rn=[0,N,_t,8,0],an=[0,N,wt,8,0],I=[0,N,Tt,8,0],on=[3,N,ht,0,[At,jt,It,Pt,Nt,j,zt,Rt,Mt],[0,[()=>nn,0],0,0,0,[()=>I,0],64,0,[()=>rn,0]],3],sn=[3,N,gt,0,[kt,Vt,Ft,j,k],[[()=>tn,0],0,1,[()=>I,0],[()=>an,0]]],cn=[9,N,mt,{[Lt]:[`POST`,`/token`,200]},()=>on,()=>sn]})),ln,un,R,z,dn,fn=e((()=>{c(),he(),ce(),ln=o(),un=Ae(),R=ie(),z=i(),Re(),Xe(),L(),dn=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??R.fromBase64,base64Encoder:e?.base64Encoder??R.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ye,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ie,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ye},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new pe}],logger:e?.logger??new ln.NoOpLogger,protocol:e?.protocol??ue,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ssooidc`,errorTypeRegistries:en,version:`2019-06-10`,serviceTarget:`AWSSSOOIDCService`},serviceId:e?.serviceId??`SSO OIDC`,urlParser:e?.urlParser??un.parseUrl,utf8Decoder:e?.utf8Decoder??z.fromUtf8,utf8Encoder:e?.utf8Encoder??z.toUtf8})})),B,V,pn,H,U,W,G,mn,hn,gn,_n,vn=e((()=>{n(),c(),B=be(),V=ge(),pn=xe(),H=ke(),U=je(),W=ae(),G=o(),mn=Te(),hn=Ce(),gn=r(),fn(),_n=e=>{(0,G.emitWarningIfUnsupportedVersion)(process.version);let t=(0,hn.resolveDefaultsModeConfig)(e),n=()=>t().then(G.loadConfigsForDefaultMode),r=dn(e);ee(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,U.loadConfig)(we,i),bodyLengthChecker:e?.bodyLengthChecker??mn.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,B.createDefaultUserAgentProvider)({serviceId:r.serviceId,clientVersion:Me}),maxAttempts:e?.maxAttempts??(0,U.loadConfig)(H.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,U.loadConfig)(V.NODE_REGION_CONFIG_OPTIONS,{...V.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:W.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,U.loadConfig)({...H.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||gn.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??pn.Hash.bind(null,`sha256`),streamCollector:e?.streamCollector??W.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,U.loadConfig)(V.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,U.loadConfig)(V.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,U.loadConfig)(B.NODE_APP_ID_CONFIG_OPTIONS,i)}}})),yn,bn,xn=e((()=>{yn=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},bn=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),K,q,J,Sn,Cn=e((()=>{K=Ee(),q=t(),J=o(),xn(),Sn=(e,t)=>{let n=Object.assign((0,K.getAwsRegionExtensionConfiguration)(e),(0,J.getDefaultExtensionConfiguration)(e),(0,q.getHttpHandlerExtensionConfiguration)(e),yn(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,K.resolveAwsRegionExtensionConfiguration)(n),(0,J.resolveDefaultRuntimeConfig)(n),(0,q.resolveHttpHandlerRuntimeConfig)(n),bn(n))}})),Y,wn,Tn,X,En,Dn,On,Z,kn,Q,An=e((()=>{Y=de(),wn=le(),Tn=ve(),X=se(),En=ge(),ce(),te(),Dn=Oe(),On=s(),Z=ke(),kn=o(),Re(),Ve(),vn(),Cn(),Q=class extends kn.Client{config;constructor(...[e]){let t=_n(e||{});super(t),this.initConfig=t;let n=Sn(Le((0,On.resolveEndpointConfig)((0,Y.resolveHostHeaderConfig)((0,En.resolveRegionConfig)((0,Z.resolveRetryConfig)((0,X.resolveUserAgentConfig)(ze(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ne(this.config)),this.middlewareStack.use((0,X.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Z.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dn.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Y.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,wn.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Tn.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:Fe,identityProviderConfigProvider:async e=>new oe({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(fe(this.config))}destroy(){super.destroy()}}})),jn,Mn,$,Nn=e((()=>{jn=s(),Mn=o(),Ve(),L(),$=class extends Mn.Command.classBuilder().ep(Be).m(function(e,t,n,r){return[(0,jn.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s(`AWSSSOOIDCService`,`CreateToken`,{}).n(`SSOOIDCClient`,`CreateTokenCommand`).sc(cn).build(){}})),Pn,Fn,In,Ln=e((()=>{Pn=o(),Nn(),An(),Fn={CreateTokenCommand:$},In=class extends Q{},(0,Pn.createAggregatedClient)(Fn,In)})),Rn=e((()=>{Nn()})),zn=e((()=>{})),Bn=e((()=>{}));e((()=>{An(),Ln(),Rn(),L(),zn(),lt(),Bn(),w()}))();export{$ as CreateTokenCommand,Q as SSOOIDCClient}; \ No newline at end of file diff --git a/dist/sts-C5iilKLd.js b/dist/sts-C5iilKLd.js deleted file mode 100644 index bdf4fd4c..00000000 --- a/dist/sts-C5iilKLd.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,r as t}from"./chunk-BTyA9uPd.js";import{t as n}from"./dist-cjs-Qh8tJqb7.js";import{n as r,o as i,r as a,s as o}from"./client-BGPX0p_V.js";import{t as s}from"./dist-cjs-GIhSYq7f.js";import{B as c,H as l,K as u,Q as d,at as ee,rt as te,t as f}from"./dist-cjs-B_LTzHDO.js";import{A as ne,B as re,C as ie,D as ae,G as oe,K as se,M as ce,O as le,P as ue,R as de,S as fe,T as pe,W as me,_ as he,a as ge,b as p,f as _e,h as ve,i as ye,l as be,n as xe,p as Se,r as Ce,s as we,t as Te,u as Ee,w as De,x as Oe,y as ke}from"./dist-cjs-D0bofO8q.js";import{t as Ae}from"./dist-cjs-CKxbtVku.js";import{t as je}from"./dist-cjs-Da76Axwc.js";import{t as Me}from"./dist-cjs-BWu9uV-R.js";import{t as Ne}from"./package-1vOVG41v.js";var Pe,m,h,g,Fe,Ie,_,v,y,Le,Re,ze,Be,Ve,b,He,x,Ue,We,Ge,Ke,qe,Je=e((()=>{Pe=pe(),m=`ref`,h=-1,g=!0,Fe=`isSet`,Ie=`PartitionResult`,_=`booleanEquals`,v=`stringEquals`,y=`getAttr`,Le=`us-east-1`,Re=`sigv4`,ze=`sts`,Be=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Ve={[m]:`Endpoint`},b={[m]:`Region`},He={[m]:Ie},x={},Ue=[b],We={conditions:[[Fe,[Ve]],[Fe,Ue],[`aws.partition`,Ue,Ie],[_,[{[m]:`UseFIPS`},g]],[_,[{[m]:`UseDualStack`},g]],[v,[b,`aws-global`]],[_,[{[m]:`UseGlobalEndpoint`},g]],[v,[b,`eu-central-1`]],[_,[{fn:y,argv:[He,`supportsDualStack`]},g]],[_,[{fn:y,argv:[He,`supportsFIPS`]},g]],[v,[b,`ap-south-1`]],[v,[b,`eu-north-1`]],[v,[b,`eu-west-1`]],[v,[b,`eu-west-2`]],[v,[b,`eu-west-3`]],[v,[b,`sa-east-1`]],[v,[b,Le]],[v,[b,`us-east-2`]],[v,[b,`us-west-2`]],[v,[b,`us-west-1`]],[v,[b,`ca-central-1`]],[v,[b,`ap-southeast-1`]],[v,[b,`ap-northeast-1`]],[v,[b,`ap-southeast-2`]],[v,[{fn:y,argv:[He,`name`]},`aws-us-gov`]]],results:[[h],[`https://sts.amazonaws.com`,{authSchemes:[{name:Re,signingName:ze,signingRegion:Le}]}],[Be,{authSchemes:[{name:Re,signingName:ze,signingRegion:`{Region}`}]}],[h,`Invalid Configuration: FIPS and custom endpoint are not supported`],[h,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Ve,x],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,x],[h,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,x],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,x],[h,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,x],[h,`DualStack is enabled but this partition does not support DualStack`],[Be,x],[h,`Invalid Configuration: Missing Region`]]},Ge=2,Ke=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),qe=Pe.BinaryDecisionDiagram.from(Ke,Ge,We.conditions,We.results)})),Ye,Xe,Ze,Qe,$e=e((()=>{Ye=De(),Xe=pe(),Je(),Ze=new Xe.EndpointCache({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),Qe=(e,t={})=>Ze.get(e,()=>(0,Xe.decideEndpoint)(qe,{endpointParams:e,logger:t.logger})),Xe.customEndpointFunctions.aws=Ye.awsEndpointFunctions}));function et(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function tt(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function nt(e){return{schemeId:`smithy.api#noAuth`}}var rt,it,S,at,ot,st,ct,lt,ut,dt,ft,pt=e((()=>{we(),rt=je(),it=p(),S=d(),$e(),X(),at=e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=(0,S.getSmithyContext)(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await(0,it.resolveParams)(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)},ot=async(e,t,n)=>({operation:(0,S.getSmithyContext)(t).operation,region:await(0,S.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),st=at(ot),ct=(e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(rt.SignatureV4MultiRegion.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a},lt=e=>{let t=[];switch(e.operation){case`AssumeRoleWithWebIdentity`:t.push(nt(e)),t.push(tt(e));break;default:t.push(et(e)),t.push(tt(e))}return t},ut=ct(Qe,lt,{"aws.auth#sigv4":et,"aws.auth#sigv4a":tt,"smithy.api#noAuth":nt}),dt=e=>Object.assign(e,{stsClientCtor:Y}),ft=e=>{let t=_e(be(dt(e)));return Object.assign(t,{authSchemePreference:(0,S.normalizeProvider)(e.authSchemePreference??[])})}})),mt,ht,gt=e((()=>{mt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),ht={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),_t,C,w=e((()=>{_t=f(),C=class e extends _t.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),T,E,vt,D,O,k,A,yt=e((()=>{w(),T=class e extends C{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},E=class e extends C{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vt=class e extends C{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},D=class e extends C{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},O=class e extends C{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},k=class e extends C{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},A=class e extends C{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),bt,xt,St,Ct,wt,Tt,j,Et,Dt,Ot,kt,M,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,N,nn,rn,an,on,sn,cn,ln,un,dn,fn,P,F,pn,I,L,R,mn,hn,gn,z,_n,B,V,H,U,vn,yn,bn,xn,Sn,Cn,wn,Tn,W,En,Dn,On,kn,G,An,jn,Mn,Nn,Pn,Fn,In,Ln,K=e((()=>{c(),yt(),w(),bt=`Arn`,xt=`AccessKeyId`,St=`AssumeRole`,Ct=`AssumedRoleId`,wt=`AssumeRoleRequest`,Tt=`AssumeRoleResponse`,j=`AssumedRoleUser`,Et=`AssumeRoleWithWebIdentity`,Dt=`AssumeRoleWithWebIdentityRequest`,Ot=`AssumeRoleWithWebIdentityResponse`,kt=`Audience`,M=`Credentials`,At=`ContextAssertion`,jt=`DurationSeconds`,Mt=`Expiration`,Nt=`ExternalId`,Pt=`ExpiredTokenException`,Ft=`IDPCommunicationErrorException`,It=`IDPRejectedClaimException`,Lt=`InvalidIdentityTokenException`,Rt=`Key`,zt=`MalformedPolicyDocumentException`,Bt=`Policy`,Vt=`PolicyArns`,Ht=`ProviderArn`,Ut=`ProvidedContexts`,Wt=`ProvidedContextsListType`,Gt=`ProvidedContext`,Kt=`PolicyDescriptorType`,qt=`ProviderId`,Jt=`PackedPolicySize`,Yt=`PackedPolicyTooLargeException`,Xt=`Provider`,Zt=`RoleArn`,Qt=`RegionDisabledException`,$t=`RoleSessionName`,en=`SecretAccessKey`,tn=`SubjectFromWebIdentityToken`,N=`SourceIdentity`,nn=`SerialNumber`,rn=`SessionToken`,an=`Tags`,on=`TokenCode`,sn=`TransitiveTagKeys`,cn=`Tag`,ln=`Value`,un=`WebIdentityToken`,dn=`arn`,fn=`accessKeySecretType`,P=`awsQueryError`,F=`client`,pn=`clientTokenType`,I=`error`,L=`httpError`,R=`message`,mn=`policyDescriptorListType`,hn=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,gn=`tagListType`,z=`com.amazonaws.sts`,_n=l.for(hn),B=[-3,hn,`STSServiceException`,0,[],[]],_n.registerError(B,C),V=l.for(z),H=[-3,z,Pt,{[P]:[`ExpiredTokenException`,400],[I]:F,[L]:400},[R],[0]],V.registerError(H,T),U=[-3,z,Ft,{[P]:[`IDPCommunicationError`,400],[I]:F,[L]:400},[R],[0]],V.registerError(U,A),vn=[-3,z,It,{[P]:[`IDPRejectedClaim`,403],[I]:F,[L]:403},[R],[0]],V.registerError(vn,O),yn=[-3,z,Lt,{[P]:[`InvalidIdentityToken`,400],[I]:F,[L]:400},[R],[0]],V.registerError(yn,k),bn=[-3,z,zt,{[P]:[`MalformedPolicyDocument`,400],[I]:F,[L]:400},[R],[0]],V.registerError(bn,E),xn=[-3,z,Yt,{[P]:[`PackedPolicyTooLarge`,400],[I]:F,[L]:400},[R],[0]],V.registerError(xn,vt),Sn=[-3,z,Qt,{[P]:[`RegionDisabledException`,403],[I]:F,[L]:403},[R],[0]],V.registerError(Sn,D),Cn=[_n,V],wn=[0,z,fn,8,0],Tn=[0,z,pn,8,0],W=[3,z,j,0,[Ct,bt],[0,0],2],En=[3,z,wt,0,[Zt,$t,Vt,Bt,jt,an,sn,Nt,nn,on,N,Ut],[0,0,()=>Nn,0,1,()=>Fn,64,0,0,0,0,()=>Pn],2],Dn=[3,z,Tt,0,[M,j,Jt,N],[[()=>G,0],()=>W,1,0]],On=[3,z,Dt,0,[Zt,$t,un,qt,Vt,Bt,jt],[0,0,[()=>Tn,0],0,()=>Nn,0,1],3],kn=[3,z,Ot,0,[M,tn,j,Jt,Xt,kt,N],[[()=>G,0],0,()=>W,1,0,0,0]],G=[3,z,M,0,[xt,en,rn,Mt],[0,[()=>wn,0],0,4],4],An=[3,z,Kt,0,[dn],[0]],jn=[3,z,Gt,0,[Ht,At],[0,0]],Mn=[3,z,cn,0,[Rt,ln],[0,0],2],Nn=[1,z,mn,0,()=>An],Pn=[1,z,Wt,0,()=>jn],Fn=[1,z,gn,0,()=>Mn],In=[9,z,St,0,()=>En,()=>Dn],Ln=[9,z,Et,0,()=>On,()=>kn]})),Rn,zn,Bn,Vn,Hn,Un,Wn=e((()=>{we(),de(),Rn=je(),ae(),zn=f(),Bn=Ae(),Vn=ee(),Hn=s(),pt(),$e(),K(),Un=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Vn.fromBase64,base64Encoder:e?.base64Encoder??Vn.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Qe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ut,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new he},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new ve},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new le}],logger:e?.logger??new zn.NoOpLogger,protocol:e?.protocol??re,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:Cn,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Rn.SignatureV4MultiRegion,urlParser:e?.urlParser??Bn.parseUrl,utf8Decoder:e?.utf8Decoder??Hn.fromUtf8,utf8Encoder:e?.utf8Encoder??Hn.toUtf8})})),Gn,q,Kn,qn,J,Jn,Yn,Xn,Zn,Qn,$n,er=e((()=>{r(),we(),Gn=ge(),q=fe(),ae(),Kn=ye(),qn=ke(),J=Me(),Jn=te(),Yn=f(),Xn=Ce(),Zn=xe(),Qn=a(),Wn(),$n=e=>{(0,Yn.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Zn.resolveDefaultsModeConfig)(e),n=()=>t().then(Yn.loadConfigsForDefaultMode),r=Un(e);o(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,J.loadConfig)(Se,i),bodyLengthChecker:e?.bodyLengthChecker??Xn.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Gn.createDefaultUserAgentProvider)({serviceId:r.serviceId,clientVersion:Ne}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:t=>t.getIdentityProvider(`aws.auth#sigv4`)||(async t=>await e.credentialDefaultProvider(t?.__config||{})()),signer:new he},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new ve},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new le}],maxAttempts:e?.maxAttempts??(0,J.loadConfig)(qn.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,J.loadConfig)(q.NODE_REGION_CONFIG_OPTIONS,{...q.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:Jn.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,J.loadConfig)({...qn.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await n()).retryMode||Qn.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Kn.Hash.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,J.loadConfig)(Ee,i),streamCollector:e?.streamCollector??Jn.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,J.loadConfig)(q.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,J.loadConfig)(q.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,J.loadConfig)(Gn.NODE_APP_ID_CONFIG_OPTIONS,i)}}})),tr,nr,rr=e((()=>{tr=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},nr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),ir,ar,or,sr,cr=e((()=>{ir=Te(),ar=n(),or=f(),rr(),sr=(e,t)=>{let n=Object.assign((0,ir.getAwsRegionExtensionConfiguration)(e),(0,or.getDefaultExtensionConfiguration)(e),(0,ar.getHttpHandlerExtensionConfiguration)(e),tr(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,ir.resolveAwsRegionExtensionConfiguration)(n),(0,or.resolveDefaultRuntimeConfig)(n),(0,ar.resolveHttpHandlerRuntimeConfig)(n),nr(n))}})),lr,ur,dr,fr,pr,mr,hr,gr,_r,Y,X=e((()=>{lr=se(),ur=oe(),dr=me(),fr=ie(),pr=fe(),ae(),c(),mr=Oe(),hr=p(),gr=ke(),_r=f(),pt(),gt(),er(),cr(),Y=class extends _r.Client{config;constructor(...[e]){let t=$n(e||{});super(t),this.initConfig=t;let n=sr(ft((0,hr.resolveEndpointConfig)((0,lr.resolveHostHeaderConfig)((0,pr.resolveRegionConfig)((0,gr.resolveRetryConfig)((0,fr.resolveUserAgentConfig)(mt(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(u(this.config)),this.middlewareStack.use((0,fr.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,gr.getRetryPlugin)(this.config)),this.middlewareStack.use((0,mr.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,lr.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,ur.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,dr.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(ue(this.config,{httpAuthSchemeParametersProvider:st,identityProviderConfigProvider:async e=>new ne({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(ce(this.config))}destroy(){super.destroy()}}})),vr,yr,Z,br=e((()=>{vr=p(),yr=f(),gt(),K(),Z=class extends yr.Command.classBuilder().ep(ht).m(function(e,t,n,r){return[(0,vr.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRole`,{}).n(`STSClient`,`AssumeRoleCommand`).sc(In).build(){}})),xr,Sr,Q,Cr=e((()=>{xr=p(),Sr=f(),gt(),K(),Q=class extends Sr.Command.classBuilder().ep(ht).m(function(e,t,n,r){return[(0,xr.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoleWithWebIdentity`,{}).n(`STSClient`,`AssumeRoleWithWebIdentityCommand`).sc(Ln).build(){}})),wr,Tr,$,Er=e((()=>{wr=f(),br(),Cr(),X(),Tr={AssumeRoleCommand:Z,AssumeRoleWithWebIdentityCommand:Q},$=class extends Y{},(0,wr.createAggregatedClient)(Tr,$)})),Dr=e((()=>{br(),Cr()})),Or=e((()=>{})),kr,Ar,jr,Mr,Nr,Pr,Fr=e((()=>{r(),kr=Te(),br(),Cr(),Ar=e=>{if(typeof e?.Arn==`string`){let t=e.Arn.split(`:`);if(t.length>4&&t[4]!==``)return t[4]}},jr=async(e,t,n,r={})=>{let i=typeof e==`function`?await e():e,a=typeof t==`function`?await t():t,o=``,s=i??a??(o=await(0,kr.stsRegionDefaultResolver)(r)());return n?.debug?.(`@aws-sdk/client-sts::resolveRegion`,`accepting first of:`,`${i} (credential provider clientConfig)`,`${a} (contextual client)`,`${o} (STS default: AWS_REGION, profile region, or us-east-1)`),s},Mr=(e,t)=>{let n,r;return async(a,o)=>{if(r=a,!n){let{logger:i=e?.parentClientConfig?.logger,profile:a=e?.parentClientConfig?.profile,region:o,requestHandler:s=e?.parentClientConfig?.requestHandler,credentialProviderLogger:c,userAgentAppId:l=e?.parentClientConfig?.userAgentAppId}=e,u=await jr(o,e?.parentClientConfig?.region,c,{logger:i,profile:a}),d=!Pr(s);n=new t({...e,userAgentAppId:l,profile:a,credentialDefaultProvider:()=>async()=>r,region:u,requestHandler:d?s:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:c}=await n.send(new Z(o));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=Ar(c),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...l&&{accountId:l}};return i(u,`CREDENTIALS_STS_ASSUME_ROLE`,`i`),u}},Nr=(e,t)=>{let n;return async r=>{if(!n){let{logger:r=e?.parentClientConfig?.logger,profile:i=e?.parentClientConfig?.profile,region:a,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:s,userAgentAppId:c=e?.parentClientConfig?.userAgentAppId}=e,l=await jr(a,e?.parentClientConfig?.region,s,{logger:r,profile:i}),u=!Pr(o);n=new t({...e,userAgentAppId:c,profile:i,region:l,requestHandler:u?o:void 0,logger:r})}let{Credentials:a,AssumedRoleUser:o}=await n.send(new Q(r));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);let s=Ar(o),c={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...s&&{accountId:s}};return s&&i(c,`RESOLVED_ACCOUNT_ID`,`T`),i(c,`CREDENTIALS_STS_ASSUME_ROLE_WEB_ID`,`k`),c}},Pr=e=>e?.metadata?.handlerProtocol===`h2`})),Ir,Lr,Rr,zr,Br=e((()=>{Fr(),X(),Ir=(e,t)=>t?class extends e{constructor(e){super(e);for(let e of t)this.middlewareStack.use(e)}}:e,Lr=(e={},t)=>Mr(e,Ir(Y,t)),Rr=(e={},t)=>Nr(e,Ir(Y,t)),zr=e=>t=>e({roleAssumer:Lr(t),roleAssumerWithWebIdentity:Rr(t),...t})})),Vr=t({AssumeRole$:()=>In,AssumeRoleCommand:()=>Z,AssumeRoleRequest$:()=>En,AssumeRoleResponse$:()=>Dn,AssumeRoleWithWebIdentity$:()=>Ln,AssumeRoleWithWebIdentityCommand:()=>Q,AssumeRoleWithWebIdentityRequest$:()=>On,AssumeRoleWithWebIdentityResponse$:()=>kn,AssumedRoleUser$:()=>W,Credentials$:()=>G,ExpiredTokenException:()=>T,ExpiredTokenException$:()=>H,IDPCommunicationErrorException:()=>A,IDPCommunicationErrorException$:()=>U,IDPRejectedClaimException:()=>O,IDPRejectedClaimException$:()=>vn,InvalidIdentityTokenException:()=>k,InvalidIdentityTokenException$:()=>yn,MalformedPolicyDocumentException:()=>E,MalformedPolicyDocumentException$:()=>bn,PackedPolicyTooLargeException:()=>vt,PackedPolicyTooLargeException$:()=>xn,PolicyDescriptorType$:()=>An,ProvidedContext$:()=>jn,RegionDisabledException:()=>D,RegionDisabledException$:()=>Sn,STS:()=>$,STSClient:()=>Y,STSServiceException:()=>C,STSServiceException$:()=>B,Tag$:()=>Mn,__Client:()=>_r.Client,decorateDefaultCredentialProvider:()=>zr,errorTypeRegistries:()=>Cn,getDefaultRoleAssumer:()=>Lr,getDefaultRoleAssumerWithWebIdentity:()=>Rr}),Hr=e((()=>{X(),Er(),Dr(),K(),yt(),Or(),Br(),w()}));export{xn as A,O as B,W as C,vn as D,U as E,Mn as F,yt as G,E as H,Cn as I,C as K,K as L,jn as M,Sn as N,yn as O,B as P,T as R,kn as S,H as T,vt as U,k as V,D as W,In as _,Rr as a,Ln as b,Er as c,Z as d,yr as f,X as g,_r as h,Lr as i,An as j,bn as k,Q as l,Y as m,Vr as n,Br as o,br as p,w as q,zr as r,$ as s,Hr as t,Cr as u,En as v,G as w,On as x,Dn as y,A as z}; \ No newline at end of file diff --git a/dist/sts-CEHgKmja.js b/dist/sts-CEHgKmja.js deleted file mode 100644 index 1f5f7fa8..00000000 --- a/dist/sts-CEHgKmja.js +++ /dev/null @@ -1 +0,0 @@ -import{i as e,t}from"./sts-C5iilKLd.js";t();export{e as getDefaultRoleAssumer}; \ No newline at end of file diff --git a/dist/sts-DkzBNnVh.js b/dist/sts-DkzBNnVh.js new file mode 100644 index 00000000..9b848a10 --- /dev/null +++ b/dist/sts-DkzBNnVh.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-BTyA9uPd.js";import{A as t,B as n,E as r,G as i,H as a,I as o,J as s,M as c,P as l,Q as u,R as d,V as ee,W as te,Z as ne,_ as re,a as ie,c as ae,f as oe,m as se,n as f,q as ce,r as le,s as ue,u as de,w as fe,y as pe}from"./client-CtZmAvVy.js";import{E as me,F as he,Gt as ge,Ht as _e,I as ve,Jt as ye,K as p,L as be,Lt as m,Mt as xe,N as Se,Pt as Ce,Qt as we,Rt as Te,Sn as Ee,U as De,V as Oe,Wt as ke,Yt as Ae,b as je,c as Me,d as Ne,en as Pe,f as h,g as Fe,in as Ie,j as Le,jn as Re,jt as ze,k as Be,kt as Ve,mn as He,nn as Ue,p as We,r as Ge,tt as Ke,un as qe,vn as Je,w as Ye}from"./serde-Bngt0OLn.js";import{a as Xe,l as Ze,s as Qe,t as g}from"./protocols-D7c0rc_2.js";import{_ as $e,a as et,c as tt,f as nt,h as rt,i as it,n as at,s as ot,u as st}from"./httpAuthSchemes-D66OtRTv.js";import{t as ct}from"./dist-cjs-CwG3sq6u.js";import{t as lt}from"./dist-cjs-B33Pip5h.js";import{t as ut}from"./package-CWUbVncD.js";var _,v,y,dt,ft,b,x,S,C,w,T,E,D,O,k,A,pt,j,mt,ht,gt,_t=e((()=>{h(),_=`ref`,v=-1,y=!0,dt=`isSet`,ft=`PartitionResult`,b=`booleanEquals`,x=`stringEquals`,S=`getAttr`,C=`us-east-1`,w=`sigv4`,T=`sts`,E=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,D={[_]:`Endpoint`},O={[_]:`Region`},k={[_]:ft},A={},pt=[O],j={conditions:[[dt,[D]],[dt,pt],[`aws.partition`,pt,ft],[b,[{[_]:`UseFIPS`},y]],[b,[{[_]:`UseDualStack`},y]],[x,[O,`aws-global`]],[b,[{[_]:`UseGlobalEndpoint`},y]],[x,[O,`eu-central-1`]],[b,[{fn:S,argv:[k,`supportsDualStack`]},y]],[b,[{fn:S,argv:[k,`supportsFIPS`]},y]],[x,[O,`ap-south-1`]],[x,[O,`eu-north-1`]],[x,[O,`eu-west-1`]],[x,[O,`eu-west-2`]],[x,[O,`eu-west-3`]],[x,[O,`sa-east-1`]],[x,[O,C]],[x,[O,`us-east-2`]],[x,[O,`us-west-2`]],[x,[O,`us-west-1`]],[x,[O,`ca-central-1`]],[x,[O,`ap-southeast-1`]],[x,[O,`ap-northeast-1`]],[x,[O,`ap-southeast-2`]],[x,[{fn:S,argv:[k,`name`]},`aws-us-gov`]]],results:[[v],[`https://sts.amazonaws.com`,{authSchemes:[{name:w,signingName:T,signingRegion:C}]}],[E,{authSchemes:[{name:w,signingName:T,signingRegion:`{Region}`}]}],[v,`Invalid Configuration: FIPS and custom endpoint are not supported`],[v,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[D,A],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,A],[v,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,A],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,A],[v,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,A],[v,`DualStack is enabled but this partition does not support DualStack`],[E,A],[v,`Invalid Configuration: Missing Region`]]},mt=2,ht=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),gt=me.from(ht,mt,j.conditions,j.results)})),vt,M,yt=e((()=>{f(),h(),_t(),vt=new Ye({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),M=(e,t={})=>vt.get(e,()=>Fe(gt,{endpointParams:e,logger:t.logger})),je.aws=ae}));function bt(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function N(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function xt(e){return{schemeId:`smithy.api#noAuth`}}var St,Ct,wt,Tt,Et,Dt,Ot,kt,At=e((()=>{at(),St=ct(),m(),h(),yt(),Ct=e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Re(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Be(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)},wt=async(e,t,n)=>({operation:Re(t).operation,region:await Ee(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Tt=Ct(wt),Et=(e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(St.SignatureV4MultiRegion.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a},Dt=e=>{let t=[];switch(e.operation){case`AssumeRoleWithWebIdentity`:t.push(xt(e)),t.push(N(e));break;default:t.push(bt(e)),t.push(N(e))}return t},Ot=Et(M,Dt,{"aws.auth#sigv4":bt,"aws.auth#sigv4a":N,"smithy.api#noAuth":xt}),kt=e=>{let t=ot(it(e));return Object.assign(t,{authSchemePreference:Ee(e.authSchemePreference??[])})}})),jt,P,F=e((()=>{jt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),P={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),I,L=e((()=>{m(),I=class e extends Ae{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Mt,Nt,Pt,Ft,It,Lt,Rt,zt=e((()=>{L(),Mt=class e extends I{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nt=class e extends I{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pt=class e extends I{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ft=class e extends I{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},It=class e extends I{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lt=class e extends I{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rt=class e extends I{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}}})),Bt,Vt,Ht,Ut,Wt,Gt,R,Kt,qt,Jt,Yt,z,Xt,B,Zt,Qt,$t,en,tn,nn,rn,an,V,H,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,U,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,W,G,An,K,q,J,jn,Mn,Nn,Y,Pn,Fn,X,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,Z=e((()=>{Ue(),zt(),L(),Bt=`Arn`,Vt=`AccessKeyId`,Ht=`AssumeRole`,Ut=`AssumedRoleId`,Wt=`AssumeRoleRequest`,Gt=`AssumeRoleResponse`,R=`AssumedRoleUser`,Kt=`AssumeRoleWithWebIdentity`,qt=`AssumeRoleWithWebIdentityRequest`,Jt=`AssumeRoleWithWebIdentityResponse`,Yt=`Audience`,z=`Credentials`,Xt=`ContextAssertion`,B=`DurationSeconds`,Zt=`Expiration`,Qt=`ExternalId`,$t=`ExpiredTokenException`,en=`IDPCommunicationErrorException`,tn=`IDPRejectedClaimException`,nn=`InvalidIdentityTokenException`,rn=`Key`,an=`MalformedPolicyDocumentException`,V=`Policy`,H=`PolicyArns`,on=`ProviderArn`,sn=`ProvidedContexts`,cn=`ProvidedContextsListType`,ln=`ProvidedContext`,un=`PolicyDescriptorType`,dn=`ProviderId`,fn=`PackedPolicySize`,pn=`PackedPolicyTooLargeException`,mn=`Provider`,hn=`RoleArn`,gn=`RegionDisabledException`,_n=`RoleSessionName`,vn=`SecretAccessKey`,yn=`SubjectFromWebIdentityToken`,U=`SourceIdentity`,bn=`SerialNumber`,xn=`SessionToken`,Sn=`Tags`,Cn=`TokenCode`,wn=`TransitiveTagKeys`,Tn=`Tag`,En=`Value`,Dn=`WebIdentityToken`,On=`arn`,kn=`accessKeySecretType`,W=`awsQueryError`,G=`client`,An=`clientTokenType`,K=`error`,q=`httpError`,J=`message`,jn=`policyDescriptorListType`,Mn=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Nn=`tagListType`,Y=`com.amazonaws.sts`,Pn=Ie.for(Mn),Fn=[-3,Mn,`STSServiceException`,0,[],[]],Pn.registerError(Fn,I),X=Ie.for(Y),In=[-3,Y,$t,{[W]:[`ExpiredTokenException`,400],[K]:G,[q]:400},[J],[0]],X.registerError(In,Mt),Ln=[-3,Y,en,{[W]:[`IDPCommunicationError`,400],[K]:G,[q]:400},[J],[0]],X.registerError(Ln,Rt),Rn=[-3,Y,tn,{[W]:[`IDPRejectedClaim`,403],[K]:G,[q]:403},[J],[0]],X.registerError(Rn,It),zn=[-3,Y,nn,{[W]:[`InvalidIdentityToken`,400],[K]:G,[q]:400},[J],[0]],X.registerError(zn,Lt),Bn=[-3,Y,an,{[W]:[`MalformedPolicyDocument`,400],[K]:G,[q]:400},[J],[0]],X.registerError(Bn,Nt),Vn=[-3,Y,pn,{[W]:[`PackedPolicyTooLarge`,400],[K]:G,[q]:400},[J],[0]],X.registerError(Vn,Pt),Hn=[-3,Y,gn,{[W]:[`RegionDisabledException`,403],[K]:G,[q]:403},[J],[0]],X.registerError(Hn,Ft),Un=[Pn,X],Wn=[0,Y,kn,8,0],Gn=[0,Y,An,8,0],Kn=[3,Y,R,0,[Ut,Bt],[0,0],2],qn=[3,Y,Wt,0,[hn,_n,H,V,B,Sn,wn,Qt,bn,Cn,U,sn],[0,0,()=>tr,0,1,()=>rr,64,0,0,0,0,()=>nr],2],Jn=[3,Y,Gt,0,[z,R,fn,U],[[()=>Zn,0],()=>Kn,1,0]],Yn=[3,Y,qt,0,[hn,_n,Dn,dn,H,V,B],[0,0,[()=>Gn,0],0,()=>tr,0,1],3],Xn=[3,Y,Jt,0,[z,yn,R,fn,mn,Yt,U],[[()=>Zn,0],0,()=>Kn,1,0,0,0]],Zn=[3,Y,z,0,[Vt,vn,xn,Zt],[0,[()=>Wn,0],0,4],4],Qn=[3,Y,un,0,[On],[0]],$n=[3,Y,ln,0,[on,Xt],[0,0]],er=[3,Y,Tn,0,[rn,En],[0,0],2],tr=[1,Y,jn,0,()=>Qn],nr=[1,Y,cn,0,()=>$n],rr=[1,Y,Nn,0,()=>er],ir=[9,Y,Ht,0,()=>qn,()=>Jn],ar=[9,Y,Kt,0,()=>Yn,()=>Xn]})),or,sr,cr=e((()=>{at(),rt(),or=ct(),pe(),m(),g(),Ge(),At(),yt(),Z(),sr=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Ce,base64Encoder:e?.base64Encoder??ze,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??M,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ot,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new nt},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new st},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new fe}],logger:e?.logger??new Te,protocol:e?.protocol??$e,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:Un,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??or.SignatureV4MultiRegion,urlParser:e?.urlParser??Je,utf8Decoder:e?.utf8Decoder??xe,utf8Encoder:e?.utf8Encoder??Ve})})),Q,lr,ur=e((()=>{f(),at(),pe(),m(),Le(),a(),Ge(),Q=lt(),cr(),lr=e=>{ge(process.version);let t=Se(e),n=()=>t().then(ye),r=sr(e);u(process.version);let a={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??p(tt,a),bodyLengthChecker:e?.bodyLengthChecker??Ke,defaultUserAgentProvider:e?.defaultUserAgentProvider??oe({serviceId:r.serviceId,clientVersion:ut}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:t=>t.getIdentityProvider(`aws.auth#sigv4`)||(async t=>await e.credentialDefaultProvider(t?.__config||{})()),signer:new nt},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new st},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new fe}],maxAttempts:e?.maxAttempts??p(te,e),region:e?.region??p(be,{...ve,...a}),requestHandler:Q.NodeHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??p({...i,default:async()=>(await n()).retryMode||s},e),sha256:e?.sha256??Me.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??p(et,a),streamCollector:e?.streamCollector??Q.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??p(De,a),useFipsEndpoint:e?.useFipsEndpoint??p(Oe,a),userAgentAppId:e?.userAgentAppId??p(de,a)}}})),dr,fr,pr=e((()=>{dr=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},fr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),mr,hr=e((()=>{f(),m(),g(),pr(),mr=(e,t)=>{let n=Object.assign(le(e),_e(e),Qe(e),dr(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ie(n),ke(n),Ze(n),fr(n))}})),$,gr=e((()=>{f(),pe(),m(),Le(),h(),g(),a(),Ue(),At(),F(),ur(),hr(),$=class extends He{config;constructor(...[e]){let i=lr(e||{});super(i),this.initConfig=i;let a=mr(kt(We(n(he(ce(re(jt(i))))))),e?.extensions||[]);this.config=a,this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(se(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(d(this.config)),this.middlewareStack.use(o(this.config)),this.middlewareStack.use(l(this.config)),this.middlewareStack.use(c(this.config,{httpAuthSchemeParametersProvider:Tt,identityProviderConfigProvider:async e=>new r({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(t(this.config))}destroy(){super.destroy()}}})),_r,vr=e((()=>{m(),h(),F(),Z(),_r=class extends Pe.classBuilder().ep(P).m(function(e,t,n,r){return[Ne(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRole`,{}).n(`STSClient`,`AssumeRoleCommand`).sc(ir).build(){}})),yr,br=e((()=>{m(),h(),F(),Z(),yr=class extends Pe.classBuilder().ep(P).m(function(e,t,n,r){return[Ne(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoleWithWebIdentity`,{}).n(`STSClient`,`AssumeRoleWithWebIdentityCommand`).sc(ar).build(){}})),xr,Sr,Cr=e((()=>{m(),vr(),br(),gr(),xr={AssumeRoleCommand:_r,AssumeRoleWithWebIdentityCommand:yr},Sr=class extends ${},we(xr,Sr)})),wr=e((()=>{vr(),br()})),Tr=e((()=>{})),Er,Dr,Or,kr,Ar,jr=e((()=>{f(),vr(),br(),Er=e=>{if(typeof e?.Arn==`string`){let t=e.Arn.split(`:`);if(t.length>4&&t[4]!==``)return t[4]}},Dr=async(e,t,n,r={})=>{let i=typeof e==`function`?await e():e,a=typeof t==`function`?await t():t,o=``,s=i??a??(o=await ue(r)());return n?.debug?.(`@aws-sdk/client-sts::resolveRegion`,`accepting first of:`,`${i} (credential provider clientConfig)`,`${a} (contextual client)`,`${o} (STS default: AWS_REGION, profile region, or us-east-1)`),s},Or=(e,t)=>{let n,r;return async(i,a)=>{if(r=i,!n){let{logger:i=e?.parentClientConfig?.logger,profile:a=e?.parentClientConfig?.profile,region:o,requestHandler:s=e?.parentClientConfig?.requestHandler,credentialProviderLogger:c,userAgentAppId:l=e?.parentClientConfig?.userAgentAppId}=e,u=await Dr(o,e?.parentClientConfig?.region,c,{logger:i,profile:a}),d=!Ar(s);n=new t({...e,userAgentAppId:l,profile:a,credentialDefaultProvider:()=>async()=>r,region:u,requestHandler:d?s:void 0,logger:i})}let{Credentials:o,AssumedRoleUser:s}=await n.send(new _r(a));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${a.RoleArn}`);let c=Er(s),l={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...c&&{accountId:c}};return ne(l,`CREDENTIALS_STS_ASSUME_ROLE`,`i`),l}},kr=(e,t)=>{let n;return async r=>{if(!n){let{logger:r=e?.parentClientConfig?.logger,profile:i=e?.parentClientConfig?.profile,region:a,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:s,userAgentAppId:c=e?.parentClientConfig?.userAgentAppId}=e,l=await Dr(a,e?.parentClientConfig?.region,s,{logger:r,profile:i}),u=!Ar(o);n=new t({...e,userAgentAppId:c,profile:i,region:l,requestHandler:u?o:void 0,logger:r})}let{Credentials:i,AssumedRoleUser:a}=await n.send(new yr(r));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);let o=Er(a),s={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...o&&{accountId:o}};return o&&ne(s,`RESOLVED_ACCOUNT_ID`,`T`),ne(s,`CREDENTIALS_STS_ASSUME_ROLE_WEB_ID`,`k`),s}},Ar=e=>e?.metadata?.handlerProtocol===`h2`})),Mr,Nr,Pr,Fr=e((()=>{jr(),gr(),Mr=(e,t)=>t?class extends e{constructor(e){super(e);for(let e of t)this.middlewareStack.use(e)}}:e,Nr=(e={},t)=>Or(e,Mr($,t)),Pr=(e={},t)=>kr(e,Mr($,t))}));e((()=>{gr(),Cr(),wr(),Z(),zt(),Tr(),Fr(),L()}))();export{Nr as getDefaultRoleAssumer,Pr as getDefaultRoleAssumerWithWebIdentity}; \ No newline at end of file diff --git a/dist/tslib.es6-Bl8O1Dl_.js b/dist/tslib.es6-Bl8O1Dl_.js new file mode 100644 index 00000000..bd0dd839 --- /dev/null +++ b/dist/tslib.es6-Bl8O1Dl_.js @@ -0,0 +1 @@ +import{n as e,r as t}from"./chunk-BTyA9uPd.js";var n=t({__addDisposableResource:()=>A,__assign:()=>P,__asyncDelegator:()=>S,__asyncGenerator:()=>x,__asyncValues:()=>C,__await:()=>b,__awaiter:()=>f,__classPrivateFieldGet:()=>D,__classPrivateFieldIn:()=>k,__classPrivateFieldSet:()=>O,__createBinding:()=>F,__decorate:()=>a,__disposeResources:()=>j,__esDecorate:()=>s,__exportStar:()=>m,__extends:()=>r,__generator:()=>p,__importDefault:()=>E,__importStar:()=>T,__makeTemplateObject:()=>w,__metadata:()=>d,__param:()=>o,__propKey:()=>l,__read:()=>g,__rest:()=>i,__rewriteRelativeImportExtension:()=>M,__runInitializers:()=>c,__setFunctionName:()=>u,__spread:()=>_,__spreadArray:()=>y,__spreadArrays:()=>v,__values:()=>h,default:()=>z});function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);N(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function o(e,t){return function(n,r){t(n,r,e)}}function s(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function g(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof h==`function`?h(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=L(e),r=0;r{N=function(e,t){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},N(e,t)},P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n` mention in a +Discord channel bound to a repo drives OpenCode against that repo's cloned checkout, streaming the +agent's text response back into a Discord thread, with full run-state lifecycle and per-repo lock +coordination. + +**Topology decision (locked): Option A — remote attach.** The OpenCode SDK server runs *inside the +workspace container* (where the cloned repo + egress-filtered network live, per the brainstorm's +sandbox model). The gateway connects to it over HTTP+SSE via `createOpencodeClient({baseURL})` and +reuses the battle-tested runtime event-interpretation primitives (`processEventStream`, +`pollForSessionCompletion`). This preserves the sandbox boundary while reusing the streaming logic +that the 1.14.41 pin saga proved correct. + +**Scope (locked): MVP core only.** This plan covers mention → resolve binding → acquire lock → +create run-state → remote-execute → stream text back → lifecycle/lock release. Discord UX polish +(reactions, working-message heartbeat), approval buttons, the per-thread queue, and the ancillary +slash commands (`review`, `sessions`, `resume`, `clear-queue`, `approvals`, `force-release-lock`) +are explicitly deferred to a follow-up plan. + +## Problem Frame + +Unit 5 shipped the binding surface (`/fro-bot add-project` binds a channel to a repo and clones it +into the workspace). The announce webhook shipped the inbound control-plane slice. But the +user-facing payoff — actually *talking to the agent* — does not exist yet: `handleMention` in +`packages/gateway/src/discord/mentions.ts` is a v1 stub that creates a thread and replies `pong`, +explicitly marked "Proper session-aware naming arrives in Unit 6." + +The original Unit 6 spec (origin: `docs/plans/2026-04-18-001-feat-fro-bot-gateway-discord-v1-plan.md`, +lines 745-817) crams 15 new files into a single "unit." That is a multi-PR sequence, not a unit. This +plan carves the MVP core that makes `@fro-bot` genuinely work, de-risks the remote-attach topology +first, and leaves the UX/approval/queue layers for a follow-up. + +## Requirements Trace + +Carried from the origin Unit 6 spec (see origin: `docs/plans/2026-04-18-001-feat-fro-bot-gateway-discord-v1-plan.md`): + +- **AUTHZ** (added during deepening): only authorized members (trigger role or `ManageChannels`) may + trigger execution; the workspace OpenCode server requires a bearer token on the attach path; a global + concurrency cap bounds resource use. + +- **R1** (action-taking): `@fro-bot ` runs OpenCode against the bound repo's checkout. +- **R4** (local default): execution targets the workspace checkout, not a cloud dispatch. +- **R9** (Discord-native UX): response streams into a Discord thread; long responses fall back to a + `.md` attachment. (Reactions/working-message deferred.) +- **R11** (lifecycle): run-state PENDING → ACKNOWLEDGED → EXECUTING → COMPLETED/FAILED; per-repo lock + held throughout, released on terminal state; stale runs recovered on gateway restart. (Queue + deferred.) +- **S1-S6** (sandbox integrity): OpenCode executes inside the workspace container; the gateway never + touches the repo working tree or the egress-filtered network directly. + +## Scope Boundaries + +- No reactions (👀/🎉/😕) — deferred. +- No working-message heartbeat editor — deferred. +- No approval buttons / tool-permission embeds — deferred. +- No per-thread queue — MVP rejects a second concurrent mention in the same thread with a "busy" + reply rather than queuing (lock contention across channels still handled). +- No ancillary slash commands (`review`, `sessions`, `resume`, `clear-queue`, `approvals`, + `force-release-lock`) — deferred. +- No incoming file attachments — agent works only with the message text (matches origin spec). +- No smart message splitting — long responses always use the `.md` file fallback. +- No session resume / multi-turn conversation — each mention is a fresh session in MVP. (Within-thread + continuity deferred.) + +### Deferred to Separate Tasks + +- **Discord UX layer** (reactions, working-message heartbeat): follow-up plan, references origin + spec files `packages/gateway/src/discord/progress.ts`, `reactions.ts`. +- **Approvals** (button components, opaque-token S3 payloads): follow-up plan, references origin spec + `packages/gateway/src/discord/approvals.ts` + `commands/approvals.ts`. +- **Queue** (serial-per-thread): follow-up plan. +- **Ancillary slash commands**: follow-up plan, references origin spec `commands/{review,sessions,resume,clear-queue,force-release-lock}.ts`. + +## Context & Research + +### Relevant Code and Patterns + +Runtime (reuse — `packages/runtime/src/agent/`): +- **`processEventStream` is NOT a barrel export today** — it is consumed inside `runPromptAttempt` + via an injected `dependencies.processEventStream(...)` callback (`retry.ts`). To reuse the + event-interpretation logic (handles `message.part.delta`, `session.next.text.delta`, + `session.next.tool.{called,success}`, `message.part.updated`, `message.updated`, `session.error`, + `session.idle`), Unit 2 must add a small additive export from the runtime barrel (`index.ts`) — a + relocation, not a behavior change. This is a real prerequisite the plan owns, not free reuse. +- `pollForSessionCompletion(...)` + `runPromptAttempt(...)` — completion detection + retry/backoff + (verify export status when wiring; export additively if needed). +- `OpenCodeServerHandle = {client; server: {url; close()}; shutdown()}` — the injection seam. A + remote-attach handle can wrap `createOpencodeClient({baseURL})` with a no-op `close`/`shutdown` + (the gateway does not own the remote server). +- **Critical constraint (memory):** the `/event` SSE subscription MUST pass the workspace `directory` + — subscribing without it splits the SSE listener from the publisher and tool events never arrive. + The remote-attach path must thread `directory` through both `event.subscribe` and `promptAsync`. + +Coordination (reuse — `packages/runtime/src/coordination/`): +- `acquireLock(config, repo, holderId, surface, runId, logger)`, `releaseLock(config, repo, etag, logger)`. +- `createRun(config, identity, repo, runState, logger)`, `transitionRun(config, identity, repo, runId, newPhase, etag, logger)`, `findStaleRuns(config, identity, repo, logger)`. +- `createHeartbeatController(config, identity, repo, runId, lockEtag, logger)`. +- `RunPhase = 'PENDING'|'ACKNOWLEDGED'|'EXECUTING'|'COMPLETED'|'FAILED'|'CANCELLED'`; `Surface = 'github' | 'discord'` (use `'discord'`); full `RunState` shape (all fields required for construction): `run_id`, `surface`, `thread_id`, `entity_ref`, `phase`, `started_at`, `last_heartbeat`, `holder_id`, `details` (`packages/runtime/src/coordination/types.ts`). + +Gateway (extend — `packages/gateway/src/`): +- `discord/mentions.ts::handleMention(message, botUserId)` — the pong stub to replace. +- `bindings/store.ts::getBindingByChannelId(channelId)` → `Result` — resolve repo from channel. +- `program.ts::makeGatewayProgram` — wires `client.on('messageCreate', ...) → handleMention`; the + dependency-injection seam for the new execution deps. +- `shutdown.ts::installShutdownHandlers` + `isShuttingDown()` — refuse new mention work during drain; + stale-run recovery hook on startup. +- `config.ts` — `workspaceAgentUrl` exists; add `workspaceOpencodeUrl`. + +Workspace-agent (extend — `apps/workspace-agent/src/`): +- `server.ts::createApp(deps?)` — Hono app; only `GET /healthz` + `POST /clone` today. Add OpenCode + server lifecycle at boot. + +### Institutional Learnings + +- `docs/solutions/best-practices/discord-slash-command-orchestration-patterns-2026-05-27.md` — + **test the real dispatch path**: handler-only unit tests masked a bootstrap-wiring gap that shipped + green. Unit 4/5 here must assert the real `messageCreate → execution` wiring, not just the handler. +- `docs/solutions/code-quality/architectural-issues-type-safety-and-resource-cleanup.md` — guaranteed, + backend-agnostic cleanup; don't assume session ordering. Bears on lock/run-state release in `finally`. +- `docs/solutions/best-practices/signed-webhook-ingress-hardening-2026-05-29.md` — reserve side effects + before awaiting; fail-closed ordering. Bears on lock-before-execute ordering. + +### External References + +- **OpenCode SDK v1.14.41 remote attach (confirmed at the SDK level):** `createOpencodeClient({baseURL})` + exists and defaults to `OPENCODE_BASE_URL` / `http://localhost:54321`. `createOpencode()` is + convenience glue that spawns a *local* server then points a client at it — not required. The client + streams events over SSE, so remote attach is supported by the SDK. **Caveat (corrected after source + audit):** our runtime has **no remote-attach `baseURL` path at all today** — `execution.ts` uses + `createOpencode({signal})` (local spawn) and `retry.ts` subscribes with no `baseURL`. The plan's + earlier claim that "only `v2.session.wait()` is proven" was wrong; there is zero remote-attach code in + the harness. This makes the Unit 0 spike **essential, not confirmatory** — it proves a path that does + not exist yet. +- **discord.js v14:** `message.startThread({name})` (name 1-100 chars); thread posting needs + `SEND_MESSAGES_IN_THREADS`. `message.edit()` is internally rate-limit-queued (50 req/s global) but + caller throttling still advised. 2000-char content limit → `AttachmentBuilder` `.md` fallback. + `allowedMentions: {parse: []}` strips `@everyone`/role/user pings from agent text. + +## Key Technical Decisions + +- **Remote attach over HTTP+SSE (Option A).** The workspace container runs the OpenCode SDK server + bound to the cloned repo root; the gateway attaches via `createOpencodeClient({baseURL})`. Rationale: + preserves the sandbox boundary (repo + egress filter stay in workspace) while reusing the runtime + event loop. Rejected Option B (migrate the whole loop into workspace-agent — bigger build, throws + away reuse) and Option C (OpenCode in the gateway container — voids the sandbox model). +- **Reuse `processEventStream`/`pollForSessionCompletion`, not full `executeOpenCode`.** The full + `executeOpenCode` is coupled to the GitHub-flavored `buildAgentPrompt`. The gateway builds a fresh, + minimal Discord prompt (message text + repo context) and drives the SDK session directly, reusing + only the event-interpretation primitives. Matches the brainstorm's "gateway writes Discord + equivalents fresh" decision. +- **The workspace OpenCode server is unauthenticated and MUST be sandbox-net-internal only.** Same + trust model as the internal webhook HTTP: never host-exposed, no untrusted peers on the network. The + server binds to a network-reachable interface *within* the compose `sandbox-net` and nowhere else. +- **MVP = fresh session per mention, no queue.** A second concurrent mention in the same thread gets a + "busy — one task at a time" reply (the per-repo lock + a thread-level in-flight guard). Cross-channel + same-repo contention is handled by the lock (loser posts "waiting for "). **Both "busy" and + "waiting" are TERMINAL no-queue rejections** — the mention is dropped, not deferred or retried. The + user re-sends when ready. "waiting" is status text, not a queued retry. +- **Lock and run-state release in `finally`.** Terminal transition + lock release must be guaranteed + even on execution throw/timeout, per the resource-cleanup learning. +- **`directory` threaded through every SDK call.** Per the SSE-routing memory, `event.subscribe` and + `promptAsync` must both carry the workspace repo `directory` or tool events never arrive. +- **All Discord sends go through one helper that hardcodes `allowedMentions: {parse: []}`.** Not just + the stream sink — every write path (stream text, `.md` fallback, error replies, "busy"/"waiting" + replies, recovery notes) routes through the same helper so agent or interpolated text can never ping + `@everyone`/roles/users. Enforcement is a plan invariant, asserted per call site. +- **User-facing messages expose only coarse state.** "busy", "waiting for another task", "workspace not + reachable", "task failed". Internal identifiers — holder IDs, workspace paths/URLs, lock etags, + run IDs, raw exception text — are logged internally, never posted to the (public) Discord thread. +- **Global concurrency cap (security requirement, MVP).** The per-repo lock only serializes *within* a + repo; it does not bound concurrent sessions across *distinct* repos. A gateway-level cap on + simultaneous active runs (default small, e.g. 3) backstops resource exhaustion from a burst across + many bound channels. When the cap is hit, new mentions get a terminal "at capacity — try again + shortly" reply (same no-queue contract). +- **Credential containment (carried from Unit 5).** The workspace holds git credentials via the + `GIT_ASKPASS` helper (Unit 5: token never in argv/URLs/logs, `execFile` only). The MVP relies on + that containment and adds no new credential exposure: the gateway never sees the token, and the + OpenCode server runs with the workspace's existing least-privilege repo-scoped credential. Broadening + agent write/push capability or cross-repo access is out of scope and must stay technically bounded by + the workspace clone's credential scope. +- **Trigger authorization gate (locked decision).** A mention only runs OpenCode if the invoking member + is authorized. MVP gate: the invoking user must hold a configured trigger role + (`GATEWAY_TRIGGER_ROLE_ID`); if that env is unset, fall back to requiring guild-level + `ManageChannels` (the same authority `/fro-bot add-project` already enforces). The check uses + `guild.members.fetch(userId)` then guild-level `member.permissions`/role membership — NOT + `members.cache.get` (the documented false-negative trap; `fetch` works without the GuildMembers + privileged intent). Fail-closed: any fetch/permission error → a coarse "not authorized" reply, no + execution. Unauthorized mentions get a terminal "you're not authorized to run tasks here" reply. +- **Attach-path bearer token (locked decision).** OpenCode's SDK server has no native auth, so the + workspace fronts it with a thin reverse proxy that requires `Authorization: Bearer ` and + forwards authorized HTTP+SSE to the loopback-bound OpenCode server. The gateway sends the shared + secret (`WORKSPACE_OPENCODE_TOKEN`) on every attach call. This adds auth on top of network isolation + (defense-in-depth) so a compromised `sandbox-net` peer cannot drive workspace execution without the + secret. Secret compared with `timingSafeEqual`; never logged. + +## Open Questions + +### Resolved During Planning + +- *Where does OpenCode execute?* → Workspace container (Option A), gateway attaches remotely. +- *Reuse `executeOpenCode` or build fresh?* → Reuse event primitives only; fresh Discord orchestrator. +- *How does the gateway reach the server?* → New `WORKSPACE_OPENCODE_URL` config; both containers on + `sandbox-net`. +- *Queue in MVP?* → No; busy-reply + lock contention only. + +### Deferred to Implementation + +- Exact OpenCode server bind address/port inside the workspace container (depends on + `createOpencodeServer` options observed during the Unit 0 spike). +- Whether one long-lived server (attach with per-request `directory`) or per-session servers — Unit 0 + resolves this empirically. The plan assumes one long-lived server with per-request `directory` + (matches the runtime's existing `directory`-per-call model); Unit 0 confirms or forces the + per-session fallback. +- Final text-buffering/flush cadence to Discord (boundary on `session.idle` vs incremental) — tuned in + Unit 3 against observed event timing. + +## Output Structure + + packages/gateway/src/execute/ + opencode-attach.ts # remote-attach client → OpenCodeServerHandle wrapper + opencode-attach.test.ts + prompt.ts # minimal Discord prompt builder (message text + repo context) + prompt.test.ts + run-core.ts # Unit 2: execute+stream core (attach → session → processEventStream → text) + run-core.test.ts + run.ts # Unit 4: lifecycle wiring (lock → run-state → heartbeat → run-core → release) + run.test.ts + packages/gateway/src/discord/ + streaming.ts # SDK event stream → Discord thread sink (text + .md fallback) + streaming.test.ts + mentions.ts # MODIFIED: route @fro-bot → execute/run.ts + apps/workspace-agent/src/ + opencode-server.ts # OpenCode SDK server lifecycle (boot loopback-bound, hold, expose URL) + opencode-server.test.ts + opencode-proxy.ts # bearer-token reverse proxy → loopback OpenCode server (sandbox-net port) + opencode-proxy.test.ts + server.ts # MODIFIED: start server + proxy at boot; healthz reflects readiness + config.ts # MODIFIED: read WORKSPACE_OPENCODE_TOKEN secret + +## High-Level Technical Design + +> *This illustrates the intended approach and is directional guidance for review, not implementation +> specification. The implementing agent should treat it as context, not code to reproduce.* + +``` +Discord mention Gateway container Workspace container +───────────────── ───────────────── ─────────────────── +@fro-bot ──messageCreate──▶ handleMention + │ + ├─ getBindingByChannelId(channelId) ─▶ (S3) ─▶ {owner, repo} + │ └─ no binding → friendly "not bound" reply, stop + │ + ├─ thread in-flight? → "busy" reply, stop + │ + └─ runMention(message, binding, deps): + 1. startThread({name}) (Discord) + 2. acquireLock(repo, 'discord', runId) + └─ held by other → "waiting for ", stop + 3. createRun(PENDING) → transition ACKNOWLEDGED + 4. heartbeat.start() + 5. transition EXECUTING + 6. attach: createOpencodeClient({baseURL: WORKSPACE_OPENCODE_URL}) + wrap as OpenCodeServerHandle (no-op close/shutdown) + 7. session.create() ; promptAsync({parts, query:{directory}}) ──HTTP──▶ OpenCode server + event.subscribe({query:{directory}}) ◀──SSE── (bound to /workspace/repos/owner/repo) + 8. processEventStream(...) ─▶ DiscordStreamSink + └─ buffered text ─▶ thread.send / .md attachment if >2000 + 9. session.idle → transition COMPLETED ; final flush + 10. finally: heartbeat.stop() ; releaseLock(etag) + on throw/timeout → transition FAILED ; error reply +``` + +Startup recovery (Unit 5): on gateway boot, `findStaleRuns(surface='discord')` → any run left in +EXECUTING by a crash is transitioned FAILED, its lock released, and (best-effort) the thread gets a +"previous task interrupted" note. + +## Implementation Units + +- [ ] **Unit 0: Spike — prove remote-attach streaming (de-risk the topology)** + +**Goal:** Empirically confirm that `createOpencodeClient({baseURL})` against a *remote* OpenCode server +can run the full prompt → SSE stream → `session.idle` flow (not just `v2.session.wait()`), with tool +events arriving when `directory` is threaded through `event.subscribe`. This gates the entire plan. + +**Requirements:** R1, R4 (topology viability) + +**Dependencies:** None + +**Files:** +- Create (throwaway/spike, not shipped): a minimal harness script under `packages/gateway/` that boots + an OpenCode server in one process (simulating the workspace), attaches from another via `baseURL`, + sends a trivial prompt against a fixture directory, and logs every event kind received. +- Produce a named go/no-go artifact: `docs/plans/2026-05-30-001-unit-0-spike-findings.md` (a short + checklist: did text deltas arrive? did a `session.next.tool.*` event arrive? did `session.idle` + arrive? can the client send a custom `Authorization` header on HTTP AND SSE? — each ✅/❌ with the + observed event kinds + the header-injection mechanism). This artifact is the green-light contract + Units 1-5 depend on. + +**Approach:** +- Stand up `createOpencodeServer()` (or the workspace-agent's `opencode-server.ts` prototype from + Unit 1 if built first) bound to a fixture repo dir. +- From a separate client, `createOpencodeClient({baseURL})`, create a session, `promptAsync` with + `query: {directory}`, `event.subscribe` with `query: {directory}`, and run `processEventStream`. +- **Success criterion:** observe `message.part.delta` / `session.next.text.delta` text AND at least + one `session.next.tool.*` event AND a terminal `session.idle` over the remote SSE connection. +- **Also confirm (gates the bearer-token proxy):** can the OpenCode SDK client send a custom + `Authorization: Bearer ` header on BOTH its HTTP calls (`promptAsync`) AND its SSE + subscription (`event.subscribe`)? If the SDK exposes per-client headers (e.g. a `headers`/`fetch` + option on `createOpencodeClient`), confirm the proxy auth path is viable. If it does NOT support a + custom header on the SSE path, escalate — the proxy design may need a query-param token or a + different attach mechanism. Record the exact header-injection mechanism observed. +- **Fallback trigger:** if remote SSE does not deliver streaming events (only terminal/`wait`), STOP + and escalate — the plan falls back to Option B (execute-in-workspace), which is a re-plan, not a + patch. Document the observed behavior either way. + +**Execution note:** This is a spike — prove or disprove fast. Do not invest in production structure +until the topology is confirmed. The output is a go/no-go finding, not shippable code. + +**Test scenarios:** +- Test expectation: none — spike harness; the "test" is the manual go/no-go observation logged above. + +**Verification:** +- A written go/no-go note: remote streaming works (proceed to Unit 1) or does not (escalate, re-plan + to Option B). Capture the exact event kinds observed. + +- [ ] **Unit 1: Workspace-agent — OpenCode SDK server lifecycle** + +**Goal:** The workspace container runs an OpenCode SDK server at boot, bound to `/workspace/repos`, +reachable on the internal `sandbox-net`. `GET /healthz` reflects server readiness so the gateway can +gate on it. + +**Requirements:** R1, R4, S1-S6 + +**Dependencies:** Unit 0 (go decision) + +**Files:** +- Create: `apps/workspace-agent/src/opencode-server.ts` +- Create: `apps/workspace-agent/src/opencode-server.test.ts` +- Create: `apps/workspace-agent/src/opencode-proxy.ts` (bearer-token reverse proxy fronting the + loopback-bound OpenCode server; forwards authorized HTTP+SSE) +- Create: `apps/workspace-agent/src/opencode-proxy.test.ts` +- Modify: `apps/workspace-agent/src/server.ts` (start server + proxy at boot; surface readiness in `/healthz`) +- Modify: `apps/workspace-agent/src/config.ts` (read `WORKSPACE_OPENCODE_TOKEN` secret) +- Modify: `deploy/workspace.Dockerfile` + `deploy/compose.yaml` (the proxy port is `sandbox-net`-reachable; + the raw OpenCode port binds to loopback only — never on `sandbox-net`, never host-published) + +**Approach:** +- A `startOpencodeServer({rootDir, signal, logger})` that wraps `createOpencodeServer`, binds to + **loopback only** within the container, and returns `{url, close}`. The raw server is never directly + reachable from `sandbox-net`. +- A bearer-token reverse proxy (`opencode-proxy.ts`) binds the `sandbox-net`-reachable port, requires + `Authorization: Bearer ` (compared with `timingSafeEqual`, never logged), + and forwards authorized HTTP + SSE to the loopback OpenCode server. Unauthorized → 401, no oracle. +- Boot both from `createApp`/`main` lifecycle; hold handles for shutdown. +- `/healthz` returns `{ok: true, opencode: 'ready'|'starting'|'down'}` so the gateway can poll before + attaching. +- **Security:** only the PROXY port is on `sandbox-net`; the OpenCode server is loopback-bound. No + `ports:` host mapping for either. Defense-in-depth: network isolation + bearer token. + +**Patterns to follow:** +- `apps/workspace-agent/src/server.ts` Hono app + shutdown wiring. +- `packages/runtime/src/agent/server.ts::bootstrapOpenCodeServer` for `createOpencode`/server shape. + +**Test scenarios:** +- Happy path — `startOpencodeServer` resolves with a loopback `url`; `/healthz` reports `ready`. +- Happy path — proxy forwards an authorized request (correct bearer) to the OpenCode server and relays + the response/SSE stream. +- Edge case — server not yet up → `/healthz` reports `starting`, not `ready`. +- Error path — server spawn fails → `/healthz` reports `down`; clear log; process does not crash-loop. +- Error path — proxy request with missing/wrong bearer → 401, identical body (no oracle), not forwarded. +- Integration — `close()` on shutdown stops both the proxy and the OpenCode server (no leaked handles). + +**Verification:** +- Tests pass; manual: container boots, `/healthz` flips to `ready`, the OpenCode port answers from a + peer container on `sandbox-net` but not from the host. + +- [ ] **Unit 2: Gateway remote-attach client + execution orchestrator** + +**Goal:** A gateway-side module that attaches to the remote OpenCode server, creates a session, sends +a prompt against the repo `directory`, and drives it to completion using the reused runtime +primitives — returning a stream/result the Discord sink consumes. + +**Requirements:** R1, R4 + +**Dependencies:** Unit 1 + +**Files:** +- Create: `packages/gateway/src/execute/opencode-attach.ts` (build an `OpenCodeServerHandle` from + `createOpencodeClient({baseURL})` with no-op `close`/`shutdown`) +- Create: `packages/gateway/src/execute/opencode-attach.test.ts` +- Create: `packages/gateway/src/execute/prompt.ts` (minimal Discord prompt: message text + repo context) +- Create: `packages/gateway/src/execute/prompt.test.ts` +- Create: `packages/gateway/src/execute/run-core.ts` (the execute+stream core: attach → session → + prompt → `processEventStream` → accumulated text. Unit 4's `run.ts` wraps this with lifecycle.) +- Create: `packages/gateway/src/execute/run-core.test.ts` +- Modify: `packages/gateway/src/config.ts` (NEW fields, following the `workspaceAgentUrl`/`WORKSPACE_AGENT_URL` + pattern: `workspaceOpencodeUrl` from `WORKSPACE_OPENCODE_URL`; `workspaceOpencodeToken` from the + `WORKSPACE_OPENCODE_TOKEN` secret via `readSecret`) +- Add: additive export of `processEventStream` (and `pollForSessionCompletion` if not already exported) + from the runtime agent barrel `packages/runtime/src/agent/index.ts` + +**Approach:** +- `attachOpencode(baseURL, token): OpenCodeServerHandle` — wrap the remote client created with the + bearer token injected as an `Authorization` header (mechanism confirmed in Unit 0) on both HTTP and + SSE paths; `close`/`shutdown` are no-ops (the gateway does not own the remote server). The + `ownsServer` guard in the runtime means an injected handle is never closed by the loop. The token is + never logged. +- `buildDiscordPrompt({messageText, owner, repo})` — minimal text; no harness rules in MVP. Strip/clean + user text the same way external content is treated as untrusted. +- The orchestrator's execute core: `session.create()` → `promptAsync({parts, query:{directory}})` → + `event.subscribe({query:{directory}})` → `processEventStream(...)` → completion via + `pollForSessionCompletion`. Thread `directory` everywhere (SSE-routing constraint). +- Config: `workspaceOpencodeUrl` optional with a sane `sandbox-net` default; validate shape. + +**Execution note:** Test-first for the attach handle's no-op ownership contract — a regression that +makes the gateway close the remote server would break every subsequent mention. + +**Patterns to follow:** +- `packages/runtime/src/agent/execution.ts` (session create + prompt + retry shape). +- `packages/runtime/src/agent/retry.ts` / `streaming.ts` (event consumption). + +**Test scenarios:** +- Happy path — `attachOpencode(url)` yields a handle whose `close`/`shutdown` are no-ops (asserted). +- Happy path — execute core: a fake event stream emitting text deltas + `session.idle` resolves with + the accumulated text. +- Edge case — `buildDiscordPrompt` with empty/whitespace message → guarded (no empty prompt sent). +- Error path — `promptAsync` returns an LLM fetch error → existing retry/backoff path engages. +- Error path — remote server unreachable (attach/connect fails) → typed error surfaced to the caller + (Unit 4 maps it to a Discord "workspace not reachable" reply). +- Error path — proxy rejects the bearer token (401) → typed auth error surfaced; Unit 4 maps to a + coarse "workspace not reachable" reply (no auth detail leaked to Discord). +- Integration — the `Authorization: Bearer` header is present on both the `promptAsync` and + `event.subscribe` calls (assert the header is threaded; mirrors the `directory` assertion). +- Integration — `directory` is present on both the `promptAsync` and `event.subscribe` calls (assert + the query param is threaded — guards the SSE-routing regression). + +**Verification:** +- Tests pass; the execute core resolves text from a fake remote stream and never closes the injected + handle. + +- [ ] **Unit 3: Discord streaming sink** + +**Goal:** Consume the execution event stream and render the agent's text into the Discord thread — +incremental where sensible, with a `.md` attachment fallback for long output and `@everyone` stripped. + +**Requirements:** R9 + +**Dependencies:** Unit 2 + +**Files:** +- Create: `packages/gateway/src/discord/streaming.ts` +- Create: `packages/gateway/src/discord/streaming.test.ts` + +**Approach:** +- A `DiscordStreamSink(thread)` that buffers text from the execute core and flushes to the thread. + MVP cadence: flush on `session.idle` (final) and optionally on large buffer boundaries; keep it + simple — correctness over chattiness. +- Long-response fallback: if a flush exceeds 2000 chars, post a short summary line + the full text as a + `.md` `AttachmentBuilder`. No smart splitting. +- Every send uses `allowedMentions: {parse: []}` so agent-generated `@everyone`/role/user text never + pings. +- All sends go to the **thread** (`SEND_MESSAGES_IN_THREADS`), never the parent channel. + +**Patterns to follow:** +- `packages/gateway/src/discord/presence.ts` (`channel.send({embeds, allowedMentions})` shape). +- `apps/action/src/features/comments/writer.ts` (structure of a posting analog). + +**Test scenarios:** +- Happy path — short text (<2000) → single `thread.send` with `allowedMentions:{parse:[]}`. +- Happy path — long text (>2000) → summary message + `.md` attachment (assert no raw 2000+ send). +- Edge case — empty/whitespace final text → a clear "no output" message, not an empty send. +- Error path — `thread.send` rejects → error surfaced/logged; does not crash the run (Unit 4 maps to + FAILED). +- Error path — agent text contains `@everyone` → `allowedMentions:{parse:[]}` present on the send + (assert the option; nothing pings). + +**Verification:** +- Tests pass; manual: a short prompt renders inline in the thread; a long prompt yields a `.md` file. + +- [ ] **Unit 4: Mention → execution wiring + run-state lifecycle + lock** + +**Goal:** Replace the `pong` stub. On a real `@fro-bot` mention in a bound channel, run the full +orchestration: resolve binding → thread → lock → run-state lifecycle → execute (Unit 2) → stream +(Unit 3) → guaranteed release. + +**Requirements:** R1, R4, R11, S1-S6 + +**Dependencies:** Unit 2, Unit 3 + +**Files:** +- Modify: `packages/gateway/src/discord/mentions.ts` (replace stub with `runMention(message, deps)`) +- Create: `packages/gateway/src/execute/run.ts` lifecycle wiring (lock + run-state + heartbeat around + the Unit 2 `run-core.ts` execute core; `run.ts` owns lifecycle, `run-core.ts` owns execute+stream) +- Modify: `packages/gateway/src/program.ts` (inject execution deps: bindings store, coordination + config, attach URL, stream sink factory into the `messageCreate` handler) +- Test: `packages/gateway/src/discord/mentions.test.ts` (extend), `packages/gateway/src/execute/run.test.ts` (extend) + +**Approach:** +- `runMention` flow (mirrors the High-Level Technical Design): + 1. Skip if already in a thread or bot not actually mentioned (preserve existing guards). + 2. **Trigger authorization gate:** `guild.members.fetch(userId)` then check the configured trigger + role (`GATEWAY_TRIGGER_ROLE_ID`) or, if unset, guild-level `ManageChannels`. Unauthorized ⇒ + terminal "you're not authorized to run tasks here" reply, stop. Fetch/permission error ⇒ + fail-closed coarse "not authorized" reply. Uses `fetch` not `cache.get` (false-negative trap). + 3. `getBindingByChannelId(channelId)` → no binding ⇒ friendly "this channel isn't bound to a repo" + reply, stop. Store error/rejection ⇒ safe "try again" reply, no further work (fail-closed). + 4. **Global concurrency cap:** if active runs ≥ cap ⇒ terminal "at capacity — try again shortly" + reply, stop. + 5. Thread in-flight guard: if a run for this thread is already active ⇒ "busy — one task at a time" + reply, stop. (MVP's no-queue contract.) + 4. `startThread({name})`. + 6. `startThread({name})`. + 7. `acquireLock(repo, holderId, 'discord', runId)` → held by other ⇒ "waiting for " reply + (terminal, no queue), release nothing, stop. + 8. `createRun(PENDING)` → `transitionRun(ACKNOWLEDGED)` → `heartbeat.start()` → `transitionRun(EXECUTING)`. + 9. Execute (Unit 2 `run-core`) + stream (Unit 3). + 10. `session.idle` ⇒ `transitionRun(COMPLETED)`, final flush. + 11. **`finally`:** `heartbeat.stop()` + `releaseLock(etag)` + release the concurrency slot. On + throw/timeout ⇒ `transitionRun(FAILED)` + coarse "task failed" reply (workspace-unreachable and + proxy-401 both mapped to "workspace not reachable"; no internal detail leaked). +- Permission re-check before posting (defensive): if the bot lacks thread/send perms, fail clearly. + +**Execution note:** Test the **real wiring** (`messageCreate → runMention`), not just `runMention` in +isolation — the orchestration-patterns learning documents a bootstrap-wiring gap that passed +handler-only tests. + +**Patterns to follow:** +- `packages/gateway/src/discord/commands/add-project.ts` (multi-phase orchestration with guarded + early-returns + binding lookup). +- `packages/runtime/src/coordination/` (lock + run-state + heartbeat usage). + +**Test scenarios:** +- Happy path — authorized mention in a bound channel → thread created, lock acquired, run-state + PENDING→ACKNOWLEDGED→EXECUTING→COMPLETED, text streamed, lock + concurrency slot released. +- Error path — unauthorized member (lacks trigger role / ManageChannels) → "not authorized" reply; no + binding lookup, no thread, no lock, no run-state. +- Error path — `members.fetch` throws → fail-closed "not authorized" reply. +- Edge case — global concurrency cap reached → "at capacity" reply; no new run. +- Edge case — mention in an unbound channel → "not bound" reply; no lock, no run-state, no thread. +- Edge case — second mention in a thread with an active run → "busy" reply; first run unaffected. +- Edge case — already in a thread / bot not mentioned → no-op (existing guards preserved). +- Error path — binding store rejects → safe "try again" reply; no channel/lock side effects (fail-closed). +- Error path — lock held by another surface/channel for the same repo → "waiting for "; no + run-state created. +- Error path — execution throws / workspace unreachable → run-state FAILED, "task failed" reply, lock + released (assert release runs in `finally`). +- Error path — agent text contains `@everyone` → stripped by the sink (cross-checks Unit 3). +- Integration — real `messageCreate` dispatch reaches `runMention` (wiring asserted, not just the + handler). +- Integration — run-state lifecycle: lock held across EXECUTING, released exactly once on terminal + state (COMPLETED and FAILED both release). + +**Verification:** +- Tests pass; live smoke: `@fro-bot explain ` in a bound channel → thread → text response → + COMPLETED; S3 shows run-state + a released lock. + +- [ ] **Unit 5: Startup stale-run recovery + integration + docs** + +**Goal:** On gateway boot, recover runs a prior crash left mid-flight; wire the recovery into program +startup; document the MVP behavior and limitations. + +**Requirements:** R11 + +**Dependencies:** Unit 4 + +**Files:** +- Modify: `packages/gateway/src/program.ts` (call stale-run recovery before/just after login) +- Create: `packages/gateway/src/execute/recovery.ts` (`recoverStaleRuns(deps)` — find EXECUTING runs for + `surface='discord'`, transition FAILED, release their locks, best-effort thread note) +- Create: `packages/gateway/src/execute/recovery.test.ts` +- Modify: `packages/gateway/AGENTS.md` (document the mention loop + MVP limitations: no queue, no + approvals, fresh session per mention; the trigger authorization gate; the bearer-token attach path) +- Modify: `deploy/README.md` (the new `WORKSPACE_OPENCODE_URL`/`WORKSPACE_OPENCODE_TOKEN`/ + `GATEWAY_TRIGGER_ROLE_ID`; the loopback-bound OpenCode server + sandbox-net-only proxy port; the + shared-secret provisioning step) + +**Approach:** +- `recoverStaleRuns`: `findStaleRuns(surface='discord')` → for each, `transitionRun(FAILED)` + + `releaseLock` (best-effort, continue on per-run error so one bad record doesn't abort the sweep) + + best-effort "previous task interrupted on restart" note to the thread if `thread_id` resolves. +- **Why recovery scans only `EXECUTING`:** `ACKNOWLEDGED` is entered immediately after `createRun` + succeeds and `EXECUTING` just before the first SDK call — both within the synchronous setup block + before any interruptible await. Only `EXECUTING` can be stranded by a crash with a held lease + lock, + so it is the sole recovery target. +- Wire into `makeGatewayProgram` startup. Refuse new mentions while `isShuttingDown()` (drain gate). + +**Patterns to follow:** +- `packages/runtime/src/coordination/run-state.ts::findStaleRuns`. +- The `findStaleRuns` continue-on-bad-key resilience from the Unit 2 coordination review. + +**Test scenarios:** +- Happy path — one stale EXECUTING run on boot → transitioned FAILED, lock released, thread note posted. +- Edge case — no stale runs → recovery is a clean no-op. +- Edge case — stale run with an unresolvable `thread_id` → still FAILED + lock released; note skipped. +- Error path — one stale run's transition fails → sweep continues for the rest (no abort). +- Integration — boot with a planted EXECUTING run + held lock → after startup, run is FAILED and the + lock is releasable by a new mention. + +**Verification:** +- Tests pass; live smoke: kill the gateway mid-task, restart, confirm the run flips to FAILED and the + lock frees; AGENTS.md + deploy README reflect the new surface. + +## System-Wide Impact + +- **Interaction graph:** `messageCreate → handleMention/runMention` is the new hot path. It now touches + the bindings store (S3), the coordination layer (S3 lock + run-state), the remote OpenCode server + (HTTP+SSE), and Discord threads. The `program.ts` DI seam gains execution deps. +- **Error propagation:** binding-store rejections fail closed (safe reply, no side effects); lock + contention is a friendly "waiting"; execution failures become run-state FAILED + a thread reply; + remote-unreachable is mapped to a clear "workspace not reachable" message. +- **State lifecycle risks:** lock + run-state must release exactly once on every terminal path + (COMPLETED *and* FAILED) via `finally`. Crash mid-EXECUTING is covered by Unit 5 startup recovery. + Heartbeat must stop before lock release (renew-then-release ordering already in the controller). +- **API surface parity:** this is the Discord analog of the Action's execute path; it deliberately does + NOT change the Action. The runtime primitives are imported read-only (no behavior change to + `packages/runtime/`). +- **Integration coverage:** real `messageCreate` wiring (not handler-only); `directory` threaded + through both SDK calls; lock-held-across-EXECUTING; cross-channel same-repo contention. +- **Unchanged invariants:** `packages/runtime/src/agent/*` and `coordination/*` are reused without + modification. `executeOpenCode`/`buildAgentPrompt` (GitHub path) are untouched. The workspace-agent's + `POST /clone` contract is unchanged; only a new OpenCode-server lifecycle is added alongside it. + +## Risks & Dependencies + +| Risk | Mitigation | +|------|------------| +| Remote SSE streaming doesn't work over `baseURL` (only `wait` proven in our harness) | **Unit 0 spike gates everything.** Go/no-go before any production code. Documented fallback to Option B (execute-in-workspace) as a re-plan, not a patch. | +| Unauthenticated OpenCode server reachable beyond the sandbox | Defense-in-depth: OpenCode server binds loopback-only; a bearer-token reverse proxy (`timingSafeEqual`, 401 no-oracle) is the sole `sandbox-net`-reachable port; never host-published. A compromised peer cannot drive execution without `WORKSPACE_OPENCODE_TOKEN`. | +| Any guild member triggers code execution | Trigger authorization gate: configured trigger role (`GATEWAY_TRIGGER_ROLE_ID`) or fallback guild-level `ManageChannels`; `members.fetch` (not `cache.get`); fail-closed. | +| SSE tool events silently missing (the 1.14.41 `/event` directory-routing regression) | Thread `directory` through both `event.subscribe` and `promptAsync`; Unit 2 integration test asserts the query param is present on both. | +| Lock/run-state leak on crash or throw | Release in `finally`; Unit 5 startup `recoverStaleRuns` sweep; continue-on-error so one bad record doesn't strand the rest. | +| Concurrent mentions race the lock/run-state | Per-repo lock + per-thread in-flight guard; MVP "busy" reply instead of a queue. | +| discord.js edit/post rate limits | MVP flushes on completion (not a chatty heartbeat); library queues internally; thread-only sends. | +| Agent text pings `@everyone` | Single send helper hardcodes `allowedMentions:{parse:[]}`; asserted at every call site (Unit 3 + Unit 4 + recovery). | +| Burst across many distinct repos exhausts workspace capacity (per-repo lock doesn't bound distinct repos) | Gateway-level global concurrency cap (default ~3); over-cap mentions get a terminal "at capacity" reply. | +| Internal infra detail (paths, holder IDs, etags, stack traces) leaks into public Discord threads | Coarse-state user messages only; internal identifiers logged internally, never posted. | +| Agent abuses workspace git credentials (push, exfil, cross-repo) | Relies on Unit 5 `GIT_ASKPASS` containment + least-privilege repo-scoped credential; no new exposure; broadening capability is out of scope. | + +## Documentation / Operational Notes + +- New config (gateway): `WORKSPACE_OPENCODE_URL` (internal `sandbox-net` URL of the workspace OpenCode + PROXY), `WORKSPACE_OPENCODE_TOKEN` (shared bearer secret), `GATEWAY_TRIGGER_ROLE_ID` (optional trigger + role; unset → ManageChannels fallback), and the global concurrency cap (env or constant). +- New config (workspace-agent): `WORKSPACE_OPENCODE_TOKEN` (same shared secret the proxy validates). +- Both `WORKSPACE_OPENCODE_TOKEN` values are operator-provisioned secrets (Docker secret / `_FILE` + convention, matching the existing optional-secret pattern in `deploy/compose.yaml`). +- `packages/gateway/AGENTS.md`: document the mention loop and MVP limitations (no queue/approvals/UX, + fresh session per mention, sandbox-internal server). +- `deploy/README.md` + `deploy/compose.yaml`: the workspace OpenCode port is `sandbox-net`-internal. +- KNOWN-LIMITS (origin spec): incoming attachments ignored; no smart message splitting (file fallback). + +## Sources & References + +- **Origin document:** [docs/plans/2026-04-18-001-feat-fro-bot-gateway-discord-v1-plan.md](docs/plans/2026-04-18-001-feat-fro-bot-gateway-discord-v1-plan.md) (Unit 6, lines 745-817) +- Brainstorm: [docs/brainstorms/2026-04-17-fro-bot-gateway-discord-requirements.md](docs/brainstorms/2026-04-17-fro-bot-gateway-discord-requirements.md) (Cluster B extraction, Cluster C sandbox) +- Reuse: `packages/runtime/src/agent/{execution,retry,streaming,session-poll,server}.ts`, `packages/runtime/src/coordination/{lock,run-state,heartbeat}.ts` +- Extend: `packages/gateway/src/discord/mentions.ts`, `packages/gateway/src/bindings/store.ts`, `packages/gateway/src/program.ts`, `apps/workspace-agent/src/server.ts` +- Learnings: `docs/solutions/best-practices/discord-slash-command-orchestration-patterns-2026-05-27.md`, `docs/solutions/code-quality/architectural-issues-type-safety-and-resource-cleanup.md` diff --git a/docs/plans/2026-05-30-001-unit-0-spike-findings.md b/docs/plans/2026-05-30-001-unit-0-spike-findings.md new file mode 100644 index 00000000..019161ae --- /dev/null +++ b/docs/plans/2026-05-30-001-unit-0-spike-findings.md @@ -0,0 +1,58 @@ +--- +title: Unit 0 spike findings — remote-attach streaming + bearer-token proxy +status: complete +date: 2026-05-30 +plan: docs/plans/2026-05-30-001-feat-gateway-unit-6-mention-loop-plan.md +verdict: GO +--- + +# Unit 0 Spike — Go/No-Go + +**Verdict: GO.** The remote-attach topology (Option A) is viable, and both stricter +security decisions (bearer-token proxy on the attach path) are validated on HTTP **and** SSE. + +## What was proven + +Two evidence sources: (1) SDK source inspection at the pinned version, (2) a live throwaway +spike (`_spike.mjs`, deleted) that booted a real `opencode serve`, fronted it with a prototype +bearer-token reverse proxy, and attached a client through the proxy. + +| Question | Result | Evidence | +|---|---|---| +| `createOpencodeServer()` returns a reachable URL | ✅ | live: `server.url` resolved; `dist/server.d.ts` → `{url, close}` | +| `createOpencode()` is itself server + `createOpencodeClient({baseUrl})` | ✅ | source: `sdk/js/src/index.ts` — remote-attach is the **same transport production already uses** | +| Attach option name | ✅ `baseUrl` (camelCase) | `gen/client/types.gen.ts:10-17` (NOT `baseURL`/`url`) | +| Custom `Authorization` header on HTTP | ✅ honored | live: POST `/session` saw `hasAuth:true`; client config extends `RequestInit` (`headers`/`fetch`) | +| Custom `Authorization` header on **SSE `/event`** | ✅ honored | live: GET `/event` saw `hasAuth:true`; SSE is **fetch-based, not EventSource** (`gen/core/serverSentEvents.gen.ts:82-103`) | +| Proxy rejects missing/wrong bearer | ✅ 401, no forward | live: `negativeRejected:true` | + +## The key finding (gates the bearer-token proxy) + +The SDK's `event.subscribe()` SSE transport uses `fetch(request, {headers})`, **not** native +`EventSource`. Native `EventSource` cannot send custom headers; a fetch-based reader can. So +`Authorization: Bearer ` survives on the streaming path — the Unit 1 proxy design is sound +on both HTTP and SSE. Confirmed in source AND live (`seen.sse[].hasAuth === true`). + +## What was NOT re-proven live here (and why that's fine) + +Live tool-streaming events (`message.part.delta` / `session.next.tool.*` / `session.idle` under a +real LLM prompt) were **not** re-run in this spike, for two reasons: + +1. **Local binary is `opencode 1.15.12`** — squarely in the regressed range (1.14.42+ broke + `session.next.*` SSE; filed upstream as `anomalyco/opencode#27966`). A live streaming run here + would false-negative and prove nothing about our pinned `1.14.41`. +2. **Token cost** — a real prompt burns LLM tokens for a result already in evidence. + +Tool-streaming over this exact HTTP+SSE transport at the pinned `1.14.41` is already proven by +production CI on PR #621 (visible `| Bash` tool lines end-to-end). Remote attach changes only the +URL host (cross-container vs localhost), not the transport, so that evidence carries. + +## Implications for Units 1–5 + +- **Unit 1 proxy:** use a fetch/stream-piping reverse proxy (the spike's `http.request` pipe pattern + works for SSE). Bind OpenCode to loopback; expose only the proxy on `sandbox-net`. +- **Unit 2 attach:** `createOpencodeClient({baseUrl: , headers: {Authorization: Bearer }})`. + Header is threaded automatically to both HTTP and the `event.subscribe` SSE call — no special-casing. +- **Version pin:** the workspace container MUST run pinned `1.14.41` (not host `1.15.x`). Deploy must + install the pinned binary; do not rely on PATH drift. +- **No fallback to Option B needed** — the topology held. diff --git a/package.json b/package.json index c2ebfa76..19a96ec0 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@actions/exec": "3.0.0", "@actions/github": "9.1.1", "@actions/tool-cache": "4.0.0", - "@aws-sdk/client-s3": "3.1045.0", + "@aws-sdk/client-s3": "3.1054.0", "@bfra.me/es": "0.1.0", "@fro-bot/runtime": "workspace:*", "@octokit/auth-app": "8.2.0", @@ -59,12 +59,12 @@ "@semantic-release/exec": "7.1.0", "@semantic-release/git": "10.0.1", "@types/node": "24.12.2", - "@vitest/eslint-plugin": "1.6.17", + "@vitest/eslint-plugin": "1.6.18", "conventional-changelog-conventionalcommits": "9.3.1", "eslint": "10.4.0", "eslint-config-prettier": "10.1.8", "eslint-plugin-prettier": "5.5.5", - "generate-license-file": "4.1.1", + "generate-license-file": "4.2.1", "jiti": "2.7.0", "js-yaml": "4.1.1", "lint-staged": "16.4.0", @@ -74,7 +74,7 @@ "simple-git-hooks": "2.13.1", "tsdown": "0.22.0", "typescript": "6.0.3", - "vitest": "4.1.6" + "vitest": "4.1.7" }, "packageManager": "pnpm@10.33.4" } diff --git a/packages/gateway/AGENTS.md b/packages/gateway/AGENTS.md index 5ceb0fe7..40628fce 100644 --- a/packages/gateway/AGENTS.md +++ b/packages/gateway/AGENTS.md @@ -76,7 +76,66 @@ Existing deployments that need the privileged set must set this on the next deploy. The allowlist is intentionally narrow — operators cannot enable arbitrary Discord intents via this knob. -## Known limitations (v1) +## Mention-triggered execution loop + +When a guild member `@fro-bot`s in a channel, `discord/mentions.ts` handles the event: + +1. **Thread guard** — skips if the message is already inside a thread (avoids recursive loops). +2. **Authorization gate** — fetches the member via REST (`guild.members.fetch()`; never via cache, which requires a privileged intent). If `GATEWAY_TRIGGER_ROLE_ID` is configured the member must hold that role; otherwise guild-level `ManageChannels` is required. Any resolution failure is fail-closed: access denied. +3. **Binding lookup** — resolves the channel to a `RepoBinding` via the object-store index. If the channel has no binding the user is told to run `/fro-bot add-project` first. +4. **`runMention`** (`execute/run.ts`) — manages the full execution lifecycle inside a `finally`-guarded resource block: + - Global concurrency cap + per-channel in-flight guard (in-memory, resets on restart; stale-run recovery handles crash-time stranding). + - Thread creation on the source message. + - Repo lock acquisition via S3-conditional-write (`coordination/lock.ts`). + - Run-state lifecycle: PENDING → ACKNOWLEDGED → EXECUTING, with a heartbeat that renews the lock lease every `HEARTBEAT_INTERVAL_MS`. + - OpenCode execution via `execute/opencode-attach.ts` + `execute/run-core.ts`; streaming output is flushed to the thread by `discord/streaming.ts`. + - On completion: run transitions to COMPLETED, heartbeat stops, lock is released. + - On failure: run transitions to FAILED; a coarse error message (no internal detail) is posted to the thread. + +### Authorization details + +The trigger authorization gate is the security boundary between Discord users and agent execution. It is deliberately strict: + +- Uses `guild.members.fetch()` (REST) — not `members.cache.get()` (which silently returns `undefined` without the `GuildMembers` privileged intent). +- If `GATEWAY_TRIGGER_ROLE_ID` is set, only members with that role may trigger. Without it, only members with guild-level `ManageChannels` may trigger. +- Any permission-resolution error → deny (fail closed). The error is logged; the user receives a generic "not authorized" reply. + +### Bearer-token attach path + +The gateway connects to OpenCode running inside the workspace container via the `WORKSPACE_OPENCODE_URL` endpoint (default `http://workspace:9200`). Every request to that endpoint is authenticated with a shared bearer token read from `WORKSPACE_OPENCODE_TOKEN`. The token is never logged or posted to Discord. The workspace container reverse-proxies OpenCode and validates the token before forwarding. + +### OpenCode server port model + +The workspace container runs two listening ports: + +| Port | Service | Access | +| ---- | ------- | ------ | +| 9100 | Workspace agent (clone/setup API) | Internal sandbox network only | +| 9200 | OpenCode reverse proxy (bearer-authenticated) | Internal sandbox network only | + +Both ports are loopback-bound inside the sandbox network. The egress proxy (`mitmproxy`) only permits outbound traffic to the allowlisted hosts; inbound connections from outside the sandbox are not possible by network topology. The gateway reaches these ports via the Docker Compose service DNS name `workspace`. + +### Concurrent-run semantics + +There is no run queue. When capacity is exhausted or a channel already has an active run, the response is terminal: + +- **cap** — global `GATEWAY_MAX_CONCURRENT_RUNS` limit reached → "at capacity, try again shortly". +- **busy** — this channel already has an active run → "task already running, wait for it to finish". +- **waiting** — the repo lock is held by another run → "another task in progress for this repo, try again when it completes". + +Releasing is always done in a `finally` block so crashes leave the system in a recoverable state. + +### Startup stale-run recovery + +`execute/recovery.ts` (`recoverStaleRuns`) runs once after Discord login on every gateway startup. It scans all bound repos for runs that were left in the `EXECUTING` phase by a prior crash — the only phase that can be stranded with a held lock and lease (PENDING→ACKNOWLEDGED→EXECUTING all complete synchronously before any interruptible await). For each stranded run it: + +1. Transitions the run state to `FAILED` via a conditional-write against the current S3 object etag. +2. Releases the repo lock so the next mention can proceed. +3. Posts a brief "previous task interrupted on restart" note to the original thread (best-effort; skipped if the thread is unreachable). + +Per-run errors are logged and the sweep continues — one corrupted record does not block recovery for the rest. + +## Known limitations - **`add-project` is Discord-only.** The orchestration runs inside the slash command handler and requires a `ChatInputCommandInteraction`; there is no @@ -87,6 +146,24 @@ arbitrary Discord intents via this knob. Discord-independent `addProject(request, deps)` primitive is deferred until a non-Discord caller exists. +- **Mention-triggered execution is Discord-only.** A run starts only from an + authorized `@fro-bot` mention in a bound channel; there is no HTTP endpoint, + CLI, agent tool, or slash-command equivalent for starting a run. Extracting a + Discord-independent execution primitive and caller surface is deferred until a + non-Discord caller exists. + +- **No run queue.** Mentions that arrive while the concurrency cap or repo lock is held are rejected immediately. There is no persistent queue, no back-pressure mechanism, and no retry. Users must manually re-send their message when the system is free. + +- **No approval flow.** The authorization gate is a role check or permission check; there is no interactive approval step between an authorized mention and agent execution. + +- **Fresh session per mention.** Each mention starts a new OpenCode session from scratch. There is no conversational continuity across mentions (session persistence is planned but not yet wired into the Discord surface). + +- **In-memory concurrency state.** The concurrency registry is per-process and resets on gateway restart. Startup stale-run recovery handles lock/run-state cleanup, but the in-flight concurrency counter is not persisted. + +- **Output is posted at run completion, not streamed incrementally.** The sink accumulates the full agent response in memory and flushes it to the Discord thread when the run completes (or, on failure, best-effort partial output is flushed before the coarse error reply). Output is NOT streamed incrementally to Discord during execution. + +- **`heartbeat.stop()` failure can leave a run stuck.** If `heartbeat.stop()` returns an error, the gateway logs a warning and proceeds with last-known etags, but the run may remain in EXECUTING with the lock held until the lease expires. The next startup recovery sweep will detect and heal the stale run automatically. + ## Build ```bash diff --git a/packages/gateway/src/config.test.ts b/packages/gateway/src/config.test.ts index 9fbf66e1..9c4d6ca3 100644 --- a/packages/gateway/src/config.test.ts +++ b/packages/gateway/src/config.test.ts @@ -59,6 +59,11 @@ beforeEach(() => { 'GATEWAY_PRESENCE_CHANNEL_ID_FILE', 'GATEWAY_HTTP_PORT', 'WORKSPACE_AGENT_URL', + 'WORKSPACE_OPENCODE_URL', + 'WORKSPACE_OPENCODE_TOKEN', + 'WORKSPACE_OPENCODE_TOKEN_FILE', + 'GATEWAY_TRIGGER_ROLE_ID', + 'GATEWAY_MAX_CONCURRENT_RUNS', ]) { delete process.env[key] } @@ -405,6 +410,7 @@ function setRequiredEnv(): void { process.env.GITHUB_APP_PRIVATE_KEY_FILE = keyFile process.env.GATEWAY_WEBHOOK_SECRET = 'test-webhook-secret' process.env.GATEWAY_PRESENCE_CHANNEL_ID = 'test-presence-channel-id' + process.env.WORKSPACE_OPENCODE_TOKEN = 'test-opencode-token' } describe('loadGatewayConfig', () => { @@ -1044,6 +1050,118 @@ describe('loadGatewayConfig — webhook secret, presence channel, http port', () expect(config.httpPort).toBe(65535) }) + // --------------------------------------------------------------------------- + // workspaceOpencodeUrl / workspaceOpencodeToken / triggerRoleId / maxConcurrentRuns + // --------------------------------------------------------------------------- + + it('defaults workspaceOpencodeUrl to http://workspace:9200 when WORKSPACE_OPENCODE_URL is unset', () => { + // #given + setRequiredEnv() + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.workspaceOpencodeUrl).toBe('http://workspace:9200') + }) + + it('reads WORKSPACE_OPENCODE_URL from env', () => { + // #given + setRequiredEnv() + process.env.WORKSPACE_OPENCODE_URL = 'http://custom-workspace:9200' + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.workspaceOpencodeUrl).toBe('http://custom-workspace:9200') + }) + + it('reads WORKSPACE_OPENCODE_TOKEN from env', () => { + // #given + setRequiredEnv() + process.env.WORKSPACE_OPENCODE_TOKEN = 'my-secret-token' + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.workspaceOpencodeToken).toBe('my-secret-token') + }) + + it('throws when WORKSPACE_OPENCODE_TOKEN is missing', () => { + // #given + setRequiredEnv() + delete process.env.WORKSPACE_OPENCODE_TOKEN + + // #when / #then + expect(() => loadGatewayConfig()).toThrow('Missing required secret: WORKSPACE_OPENCODE_TOKEN') + }) + + it('defaults triggerRoleId to null when GATEWAY_TRIGGER_ROLE_ID is unset', () => { + // #given + setRequiredEnv() + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.triggerRoleId).toBeNull() + }) + + it('reads GATEWAY_TRIGGER_ROLE_ID from env', () => { + // #given + setRequiredEnv() + process.env.GATEWAY_TRIGGER_ROLE_ID = '1234567890' + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.triggerRoleId).toBe('1234567890') + }) + + it('defaults maxConcurrentRuns to 3 when GATEWAY_MAX_CONCURRENT_RUNS is unset', () => { + // #given + setRequiredEnv() + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.maxConcurrentRuns).toBe(3) + }) + + it('reads GATEWAY_MAX_CONCURRENT_RUNS from env', () => { + // #given + setRequiredEnv() + process.env.GATEWAY_MAX_CONCURRENT_RUNS = '5' + + // #when + const config = loadGatewayConfig() + + // #then + expect(config.maxConcurrentRuns).toBe(5) + }) + + it('throws when GATEWAY_MAX_CONCURRENT_RUNS is not a positive integer', () => { + // #given + setRequiredEnv() + process.env.GATEWAY_MAX_CONCURRENT_RUNS = 'banana' + + // #when / #then + expect(() => loadGatewayConfig()).toThrow('Invalid GATEWAY_MAX_CONCURRENT_RUNS') + }) + + it('throws when GATEWAY_MAX_CONCURRENT_RUNS is 0 (below minimum)', () => { + // #given + setRequiredEnv() + process.env.GATEWAY_MAX_CONCURRENT_RUNS = '0' + + // #when / #then + expect(() => loadGatewayConfig()).toThrow('Invalid GATEWAY_MAX_CONCURRENT_RUNS') + }) + it('edge: GATEWAY_WEBHOOK_SECRET_FILE with trailing newline → trimmed and accepted', () => { // #given setRequiredEnv() diff --git a/packages/gateway/src/config.ts b/packages/gateway/src/config.ts index df43382e..3ea342df 100644 --- a/packages/gateway/src/config.ts +++ b/packages/gateway/src/config.ts @@ -27,6 +27,19 @@ export interface GatewayConfig { readonly githubAppPrivateKey: string readonly gatewayGitHubAppInstallUrl: string readonly workspaceAgentUrl: string + /** Full base URL of the workspace OpenCode proxy (e.g. `http://workspace:9200`). */ + readonly workspaceOpencodeUrl: string + /** Bearer token for the workspace OpenCode proxy. Never logged. */ + readonly workspaceOpencodeToken: string + /** + * Discord role ID that grants trigger authorization. + * `null` if unset — falls back to guild-level `ManageChannels`. + */ + readonly triggerRoleId: string | null + /** Maximum number of simultaneous active runs across all channels. */ + readonly maxConcurrentRuns: number + /** Maximum wall-clock milliseconds a single run may take before being aborted. */ + readonly runTimeoutMs: number readonly webhookSecret: string readonly presenceChannelId: string readonly httpPort: number @@ -319,6 +332,32 @@ export function loadGatewayConfig(): GatewayConfig { const workspaceAgentUrl = readOptionalSecret('WORKSPACE_AGENT_URL') ?? 'http://workspace:9100' + const workspaceOpencodeUrl = readOptionalSecret('WORKSPACE_OPENCODE_URL') ?? 'http://workspace:9200' + const workspaceOpencodeToken = readSecret('WORKSPACE_OPENCODE_TOKEN') + const triggerRoleId = readOptionalSecret('GATEWAY_TRIGGER_ROLE_ID') + + const rawMaxConcurrent = readOptionalSecret('GATEWAY_MAX_CONCURRENT_RUNS') ?? '3' + if (/^[1-9]\d*$/.test(rawMaxConcurrent) === false) { + throw new Error(`Invalid GATEWAY_MAX_CONCURRENT_RUNS value: "${rawMaxConcurrent}" (must be a positive integer)`) + } + const maxConcurrentRuns = Number.parseInt(rawMaxConcurrent, 10) + if ( + Number.isFinite(maxConcurrentRuns) === false || + Number.isInteger(maxConcurrentRuns) === false || + maxConcurrentRuns < 1 + ) { + throw new Error(`Invalid GATEWAY_MAX_CONCURRENT_RUNS value: "${rawMaxConcurrent}" (must be a positive integer)`) + } + + const rawRunTimeout = readOptionalSecret('GATEWAY_RUN_TIMEOUT_MS') ?? '600000' + if (/^[1-9]\d*$/.test(rawRunTimeout) === false) { + throw new Error(`Invalid GATEWAY_RUN_TIMEOUT_MS value: "${rawRunTimeout}" (must be a positive integer)`) + } + const runTimeoutMs = Number.parseInt(rawRunTimeout, 10) + if (Number.isFinite(runTimeoutMs) === false || Number.isInteger(runTimeoutMs) === false || runTimeoutMs < 1) { + throw new Error(`Invalid GATEWAY_RUN_TIMEOUT_MS value: "${rawRunTimeout}" (must be a positive integer)`) + } + const webhookSecret = readSecret('GATEWAY_WEBHOOK_SECRET') const presenceChannelId = readSecret('GATEWAY_PRESENCE_CHANNEL_ID') @@ -340,6 +379,11 @@ export function loadGatewayConfig(): GatewayConfig { githubAppPrivateKey, gatewayGitHubAppInstallUrl, workspaceAgentUrl, + workspaceOpencodeUrl, + workspaceOpencodeToken, + triggerRoleId, + maxConcurrentRuns, + runTimeoutMs, webhookSecret, presenceChannelId, httpPort, diff --git a/packages/gateway/src/discord/commands/add-project.ts b/packages/gateway/src/discord/commands/add-project.ts index e608cc42..2f8e4c60 100644 --- a/packages/gateway/src/discord/commands/add-project.ts +++ b/packages/gateway/src/discord/commands/add-project.ts @@ -576,9 +576,7 @@ async function runAddProject(interaction: ChatInputCommandInteraction, deps: Add description: [ `This channel is bound to ${owner}/${repo}.`, '', - "Once the interaction loop (Unit 6) ships, you'll be able to @-mention me here to ask questions or have me act on the repo.", - '', - 'Until then, this channel is reserved for future use.', + '@-mention fro-bot in this channel to ask questions or have it act on the repo.', ].join('\n'), color: 0x57f287, // success-green }, diff --git a/packages/gateway/src/discord/mentions.test.ts b/packages/gateway/src/discord/mentions.test.ts index 851534ee..4c55a5ee 100644 --- a/packages/gateway/src/discord/mentions.test.ts +++ b/packages/gateway/src/discord/mentions.test.ts @@ -1,148 +1,427 @@ -import type {Message, TextChannel} from 'discord.js' +import type {Guild, GuildMember, Message, TextChannel} from 'discord.js' +import type {BindingsStore} from '../bindings/store.js' +import type {MentionDeps} from './mentions.js' + +import {PermissionsBitField} from 'discord.js' import {Effect} from 'effect' -import {describe, expect, it, vi} from 'vitest' +import {beforeEach, describe, expect, it, vi} from 'vitest' + +// --------------------------------------------------------------------------- +// Mock execute/run so mentions.test.ts does not need a full coordination stack +// --------------------------------------------------------------------------- + +vi.mock('../execute/run.js', () => ({ + runMention: vi.fn().mockResolvedValue(undefined), +})) const BOT_USER_ID = 'bot-user-123' +const CHANNEL_ID = 'ch-abc' +const TRIGGER_ROLE_ID = 'role-xyz' + +// --------------------------------------------------------------------------- +// Test doubles +// --------------------------------------------------------------------------- + +function makeGuildMember(overrides: {hasRole?: boolean; hasManageChannels?: boolean} = {}): GuildMember { + const {hasRole = false, hasManageChannels = false} = overrides + const permissions = new PermissionsBitField(hasManageChannels ? PermissionsBitField.Flags.ManageChannels : 0n) + return { + roles: { + cache: { + has: (roleId: string) => hasRole && roleId === TRIGGER_ROLE_ID, + }, + }, + permissions, + } as unknown as GuildMember +} + +function makeGuild(member: GuildMember | null | 'throw'): Guild { + return { + members: { + fetch: async (_userId: string): Promise => { + if (member === 'throw') throw new Error('fetch failed') + if (member === null) throw new Error('unknown member') + return member + }, + }, + } as unknown as Guild +} + +function makeReplyFn(): ReturnType { + return vi.fn().mockResolvedValue(undefined) +} function makeMessage( overrides: Partial<{ isThread: boolean mentionsBot: boolean - sendFn: ReturnType - startThreadFn: ReturnType - reactFn: ReturnType + guildMember: GuildMember | null | 'throw' + guild: Guild | null replyFn: ReturnType - }>, + startThreadFn: ReturnType + content: string + }> = {}, ): Message { const { isThread = false, mentionsBot = true, - sendFn = vi.fn().mockResolvedValue(undefined), - startThreadFn, - reactFn = vi.fn().mockResolvedValue(undefined), - replyFn = vi.fn().mockResolvedValue(undefined), + guild: guildOverride, + guildMember = makeGuildMember({hasManageChannels: true}), + replyFn = makeReplyFn(), + startThreadFn = vi.fn().mockResolvedValue({id: 'thread-1', send: vi.fn().mockResolvedValue(undefined)}), + content = 'please do the thing', } = overrides - const startThread = startThreadFn ?? vi.fn().mockResolvedValue({send: sendFn}) + const guild = guildOverride === undefined ? makeGuild(guildMember) : guildOverride return { channel: { + id: CHANNEL_ID, isThread: () => isThread, } as unknown as TextChannel, mentions: { has: (id: string) => mentionsBot && id === BOT_USER_ID, }, - startThread, - react: reactFn, + author: {id: 'user-111', bot: false}, + guild, + startThread: startThreadFn, reply: replyFn, - _startThread: startThread, // expose for assertions + content, } as unknown as Message } +function makeBindingsStore(result: 'found' | 'not-found' | 'error'): BindingsStore { + const getBindingByChannelId = vi.fn(async (_channelId: string) => { + if (result === 'found') { + return { + success: true as const, + data: { + owner: 'acme', + repo: 'widget', + channelId: CHANNEL_ID, + channelName: 'widget-dev', + workspacePath: '/repo', + createdAt: '2026-01-01T00:00:00Z', + createdByDiscordId: 'user-1', + }, + } + } + if (result === 'not-found') { + return {success: true as const, data: null} + } + // error + return {success: false as const, error: new Error('store connection error')} + }) + return {getBindingByChannelId} as unknown as BindingsStore +} + +function makeRunMentionDeps(): MentionDeps['run'] { + return { + coordinationConfig: {} as MentionDeps['run']['coordinationConfig'], + identity: 'discord-gateway', + concurrency: { + tryAcquire: vi.fn().mockReturnValue('ok'), + release: vi.fn(), + activeCount: vi.fn().mockReturnValue(0), + max: 3, + }, + attachUrl: 'http://workspace:9200', + attachToken: 'secret-token', + runTimeoutMs: 600_000, + botUserId: 'bot-user-id', + logger: { + debug: vi.fn(), + info: vi.fn(), + warn: vi.fn(), + error: vi.fn(), + }, + } +} + +function makeNoopLogger(): MentionDeps['logger'] { + return {debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn()} +} + +function makeDeps(overrides: Partial = {}): MentionDeps { + return { + bindingsStore: overrides.bindingsStore ?? makeBindingsStore('found'), + triggerRoleId: overrides.triggerRoleId === undefined ? null : overrides.triggerRoleId, + run: overrides.run ?? makeRunMentionDeps(), + logger: overrides.logger ?? makeNoopLogger(), + } +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + describe('handleMention', () => { - it('creates a thread and replies "pong" when bot is mentioned in a non-thread channel', async () => { - // #given - const {handleMention} = await import('./mentions.js') - const sendFn = vi.fn().mockResolvedValue(undefined) - const message = makeMessage({isThread: false, mentionsBot: true, sendFn}) - - // #when - await Effect.runPromise(handleMention(message, BOT_USER_ID)) - - // #then - expect((message as unknown as {_startThread: ReturnType})._startThread).toHaveBeenCalledWith({ - name: 'fro-bot session', - }) - expect(sendFn).toHaveBeenCalledWith('pong') + let runMentionMock: ReturnType + + beforeEach(async () => { + const runModule = await import('../execute/run.js') + runMentionMock = vi.mocked(runModule.runMention) + runMentionMock.mockReset() + runMentionMock.mockResolvedValue(undefined) }) - it('skips when message is already in a thread', async () => { - // #given - const {handleMention} = await import('./mentions.js') - const message = makeMessage({isThread: true, mentionsBot: true}) + // ── Early guards ──────────────────────────────────────────────────────────── + + describe('early guards', () => { + it('skips (no-op) when message is already in a thread', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const replyFn0 = makeReplyFn() + const message = makeMessage({isThread: true, replyFn: replyFn0}) + const deps = makeDeps() - // #when - await Effect.runPromise(handleMention(message, BOT_USER_ID)) + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — no reply, no runMention + expect(replyFn0).not.toHaveBeenCalled() + expect(runMentionMock).not.toHaveBeenCalled() + }) - // #then — no thread created - expect((message as unknown as {_startThread: ReturnType})._startThread).not.toHaveBeenCalled() + it('skips (no-op) when bot is not actually mentioned (reply-chain only)', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const replyFn1 = makeReplyFn() + const message = makeMessage({mentionsBot: false, replyFn: replyFn1}) + const deps = makeDeps() + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then + expect(replyFn1).not.toHaveBeenCalled() + expect(runMentionMock).not.toHaveBeenCalled() + }) }) - it('skips when bot is not actually mentioned (reply-chain only)', async () => { - // #given - const {handleMention} = await import('./mentions.js') - const message = makeMessage({isThread: false, mentionsBot: false}) + // ── Authorization gate ────────────────────────────────────────────────────── + + describe('authorization gate', () => { + it('denies with "not authorized" reply when member lacks triggerRoleId', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasRole: false, hasManageChannels: true}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({triggerRoleId: TRIGGER_ROLE_ID}) - // #when - await Effect.runPromise(handleMention(message, BOT_USER_ID)) + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) - // #then — no thread created - expect((message as unknown as {_startThread: ReturnType})._startThread).not.toHaveBeenCalled() + // #then + expect(replyFn).toHaveBeenCalledOnce() + const reply0 = replyFn.mock.calls[0]?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(reply0?.content).toContain('not authorized') + expect(reply0?.allowedMentions).toEqual({parse: []}) + expect(runMentionMock).not.toHaveBeenCalled() + }) + + it('allows when member has the triggerRoleId', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasRole: true}) + const message = makeMessage({guildMember: member}) + const deps = makeDeps({triggerRoleId: TRIGGER_ROLE_ID}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — runMention was called (not blocked) + expect(runMentionMock).toHaveBeenCalledOnce() + }) + + it('denies with "not authorized" reply when triggerRoleId is null and member lacks ManageChannels', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: false}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({triggerRoleId: null}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then + expect(replyFn).toHaveBeenCalledOnce() + const reply1 = replyFn.mock.calls[0]?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(reply1?.content).toContain('not authorized') + expect(reply1?.allowedMentions).toEqual({parse: []}) + expect(runMentionMock).not.toHaveBeenCalled() + }) + + it('allows when triggerRoleId is null and member has ManageChannels', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const message = makeMessage({guildMember: member}) + const deps = makeDeps({triggerRoleId: null}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — runMention called + expect(runMentionMock).toHaveBeenCalledOnce() + }) + + it('fails closed (denies) when guild.members.fetch throws', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: 'throw', replyFn}) + const deps = makeDeps({triggerRoleId: null}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — fail-closed: deny, no execution + expect(replyFn).toHaveBeenCalledOnce() + const reply2 = replyFn.mock.calls[0]?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(reply2?.content).toContain('not authorized') + expect(reply2?.allowedMentions).toEqual({parse: []}) + expect(runMentionMock).not.toHaveBeenCalled() + }) + + it('skips (no-op) when guild is null (DM context)', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const replyFn = makeReplyFn() + const message = makeMessage({guild: null, replyFn}) + const deps = makeDeps() + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — no reply, no execution (silently skipped — DM with no guild) + expect(replyFn).not.toHaveBeenCalled() + expect(runMentionMock).not.toHaveBeenCalled() + }) }) - it('still attempts fallback reply when both startThread and react fail, then fails with the original error', async () => { - // #given startThread rejects AND react also rejects (e.g. global rate limit) - const {handleMention} = await import('./mentions.js') - const startThreadError = new Error('startThread rate limit') - const startThreadFn = vi.fn().mockRejectedValue(startThreadError) - const reactFn = vi.fn().mockRejectedValue(new Error('react also rate limited')) - const replyFn = vi.fn().mockResolvedValue(undefined) - const message = makeMessage({startThreadFn, reactFn, replyFn}) - - // #when - const result = await Effect.runPromise(Effect.either(handleMention(message, BOT_USER_ID))) - - // #then — Effect still fails with the ORIGINAL startThread error - expect(result._tag).toBe('Left') - expect((result as {_tag: 'Left'; left: unknown}).left).toBeInstanceOf(Error) - expect(((result as {_tag: 'Left'; left: unknown}).left as Error).message).toContain('startThread rate limit') - // #and — react was attempted (and failed) - expect(reactFn).toHaveBeenCalledWith('❌') - // #and — fallback reply was still attempted despite react failing - expect(replyFn).toHaveBeenCalledOnce() + // ── Binding lookup ────────────────────────────────────────────────────────── + + describe('binding lookup', () => { + it('replies with "not bound" when no binding exists for the channel', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({bindingsStore: makeBindingsStore('not-found'), triggerRoleId: null}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then + expect(replyFn).toHaveBeenCalledOnce() + const reply3 = replyFn.mock.calls[0]?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(reply3?.content).toContain('not bound') + expect(reply3?.allowedMentions).toEqual({parse: []}) + expect(runMentionMock).not.toHaveBeenCalled() + }) + + it('replies with "try again" when binding store returns an error', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({bindingsStore: makeBindingsStore('error'), triggerRoleId: null}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — coarse message, no internal detail + expect(replyFn).toHaveBeenCalledOnce() + const call = replyFn.mock.calls[0]?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(call?.allowedMentions).toEqual({parse: []}) + // Must not leak the internal error message + expect(call?.content).not.toContain('store connection error') + expect(runMentionMock).not.toHaveBeenCalled() + }) }) - it('preserves the original startThread error when fallback reply also fails', async () => { - // #given startThread rejects, react succeeds, reply rejects - const {handleMention} = await import('./mentions.js') - const startThreadError = new Error('startThread permission denied') - const startThreadFn = vi.fn().mockRejectedValue(startThreadError) - const reactFn = vi.fn().mockResolvedValue(undefined) - const replyFn = vi.fn().mockRejectedValue(new Error('reply also failed')) - const message = makeMessage({startThreadFn, reactFn, replyFn}) - - // #when - const result = await Effect.runPromise(Effect.either(handleMention(message, BOT_USER_ID))) - - // #then — Effect fails with the original startThread error, not the reply error - expect(result._tag).toBe('Left') - expect((result as {_tag: 'Left'; left: unknown}).left).toBeInstanceOf(Error) - expect(((result as {_tag: 'Left'; left: unknown}).left as Error).message).toContain('startThread permission denied') - expect(((result as {_tag: 'Left'; left: unknown}).left as Error).message).not.toContain('reply also failed') + // ── Happy path ────────────────────────────────────────────────────────────── + + describe('authorized happy path', () => { + it('calls runMention with the correct binding after auth + binding succeed', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const message = makeMessage({guildMember: member}) + const runDeps = makeRunMentionDeps() + const deps = makeDeps({triggerRoleId: null, run: runDeps}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then — runMention called with the right binding + expect(runMentionMock).toHaveBeenCalledOnce() + const [calledMessage, calledBinding, calledDeps] = runMentionMock.mock.calls[0] as [Message, unknown, unknown] + const binding = calledBinding as {owner: string; repo: string} + expect(calledMessage).toBe(message) + expect(binding.owner).toBe('acme') + expect(binding.repo).toBe('widget') + expect(calledDeps).toBe(runDeps) + }) + + it('does not expose binding lookup result to binding store errors (no runMention call)', async () => { + // #given + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const message = makeMessage({guildMember: member}) + const deps = makeDeps({bindingsStore: makeBindingsStore('error')}) + + // #when + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + + // #then + expect(runMentionMock).not.toHaveBeenCalled() + }) }) - it('reacts ❌ and sends fallback reply when startThread fails, then fails with the original error', async () => { - // #given - const {handleMention} = await import('./mentions.js') - const threadError = new Error('Missing Permissions') - const startThreadFn = vi.fn().mockRejectedValue(threadError) - const reactFn = vi.fn().mockResolvedValue(undefined) - const replyFn = vi.fn().mockResolvedValue(undefined) - const message = makeMessage({isThread: false, mentionsBot: true, startThreadFn, reactFn, replyFn}) + // ── allowedMentions invariant ─────────────────────────────────────────────── - // #when - const result = await Effect.runPromise(Effect.either(handleMention(message, BOT_USER_ID))) + describe('allowedMentions: {parse: []} invariant', () => { + const expectSafeReply = (replyFn: ReturnType) => { + for (const call of replyFn.mock.calls) { + const arg = call[0] as {allowedMentions?: unknown} + expect(arg.allowedMentions).toEqual({parse: []}) + } + } - // #then — react was called with ❌ - expect(reactFn).toHaveBeenCalledWith('❌') + it('unauthorized reply uses allowedMentions: {parse: []}', async () => { + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: false}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({triggerRoleId: null}) + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + expectSafeReply(replyFn) + }) - // #and — fallback reply was sent with the expected content - expect(replyFn).toHaveBeenCalledWith({ - content: 'Could not start a session here — please try again or check channel permissions.', + it('not-bound reply uses allowedMentions: {parse: []}', async () => { + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({bindingsStore: makeBindingsStore('not-found')}) + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + expectSafeReply(replyFn) }) - // #and — the Effect still fails with the original startThread error - expect(result._tag).toBe('Left') - expect((result as {_tag: 'Left'; left: unknown}).left).toBe(threadError) + it('store-error reply uses allowedMentions: {parse: []}', async () => { + const {handleMention} = await import('./mentions.js') + const member = makeGuildMember({hasManageChannels: true}) + const replyFn = makeReplyFn() + const message = makeMessage({guildMember: member, replyFn}) + const deps = makeDeps({bindingsStore: makeBindingsStore('error')}) + await Effect.runPromise(handleMention(message, BOT_USER_ID, deps)) + expectSafeReply(replyFn) + }) }) }) diff --git a/packages/gateway/src/discord/mentions.ts b/packages/gateway/src/discord/mentions.ts index 207bcf3d..aadc5e04 100644 --- a/packages/gateway/src/discord/mentions.ts +++ b/packages/gateway/src/discord/mentions.ts @@ -1,73 +1,160 @@ -import type {Message} from 'discord.js' +/** + * Discord mention router — handles `@fro-bot` mentions in guild channels. + * + * Responsibility boundary: + * - Early guards: skip if message is in a thread, or if bot is not actually mentioned. + * - Trigger authorization gate: resolve the invoking member via REST and check the + * configured trigger role (or guild-level ManageChannels as fallback). + * - Binding lookup: resolve the repo binding for the source channel. + * - Hand off to `runMention` in `execute/run.ts` for the full execution lifecycle. + * + * Security invariants (MUST NOT be weakened): + * - Authorization gate uses `guild.members.fetch()` (REST) not `members.cache.get()` + * (which returns undefined without the GuildMembers privileged intent — documented + * false-negative trap). Fail CLOSED: any fetch/permission error → deny. + * - Unauthorized → terminal "not authorized" reply, no further work. + * - Every Discord send routes through `safeReply` which enforces + * `allowedMentions: { parse: [] }`. + * - No internal detail (error messages, IDs, paths) is ever posted to Discord. + */ +import type {Guild, Message} from 'discord.js' + +import type {BindingsStore} from '../bindings/store.js' +import type {RunMentionDeps} from '../execute/run.js' +import type {GatewayLogger} from './client.js' +import {PermissionFlagsBits} from 'discord.js' import {Effect} from 'effect' +import {runMention} from '../execute/run.js' + +// --------------------------------------------------------------------------- +// Deps +// --------------------------------------------------------------------------- + +export interface MentionDeps { + /** Bindings store for channel → repo resolution. */ + readonly bindingsStore: BindingsStore + /** + * Discord role ID that confers trigger authorization. + * + * - If set: invoking member must have this role. + * - If `null`: invoking member must have guild-level `ManageChannels`. + */ + readonly triggerRoleId: string | null + /** Run-lifecycle deps forwarded verbatim to `runMention`. */ + readonly run: RunMentionDeps + readonly logger: GatewayLogger +} + +// --------------------------------------------------------------------------- +// Internal Discord send helper — ALL replies route through here. +// --------------------------------------------------------------------------- + +async function safeReply(message: Message, content: string): Promise { + await message.reply({content, allowedMentions: {parse: []}}) +} + +// --------------------------------------------------------------------------- +// Authorization gate +// --------------------------------------------------------------------------- + /** - * Handle a direct `@fro-bot` mention in a guild channel. + * Resolve whether the invoking user is authorized to trigger an execution. * - * Behaviour: - * - If the message is already inside a thread → skip (log and return). - * - If the bot user is not actually mentioned (e.g. reply-chain only) → skip. - * - Otherwise: create a thread on the message and reply "pong" inside it. + * Uses `guild.members.fetch()` (REST call) — NOT `members.cache.get()` — to + * guarantee correct resolution regardless of intent configuration. + * Fails CLOSED: any resolution error returns `false`. + */ +async function userIsAuthorized( + guild: Guild, + userId: string, + triggerRoleId: string | null, + logger: GatewayLogger, +): Promise { + try { + // REST call — works without the privileged GuildMembers intent. + // Do NOT use guild.members.cache.get() — returns undefined without the intent. + const member = await guild.members.fetch(userId) + + if (triggerRoleId !== null) { + return member.roles.cache.has(triggerRoleId) + } + + // Fallback: guild-level ManageChannels (no channel overwrites — mirrors add-project.ts). + return member.permissions.has(PermissionFlagsBits.ManageChannels) + } catch (error) { + // Fail closed: if we cannot resolve member permissions, deny. + logger.warn( + {err: error instanceof Error ? error.message : String(error)}, + 'mention: member permission resolution failed — denying', + ) + return false + } +} + +// --------------------------------------------------------------------------- +// Public handler +// --------------------------------------------------------------------------- + +/** + * Handle a direct `@fro-bot` mention in a guild channel. * - * Thread naming is intentionally minimal for v1 ("fro-bot session"). - * Proper session-aware naming arrives in Unit 6. + * Returns an `Effect` so the caller (program.ts) can handle failures uniformly. + * Internal errors are logged; coarse user-visible messages are posted to Discord. */ -export function handleMention(message: Message, botUserId: string): Effect.Effect { - // Skip if already in a thread +export function handleMention(message: Message, botUserId: string, deps: MentionDeps): Effect.Effect { + const {bindingsStore, triggerRoleId, run: runDeps, logger} = deps + + // ── Guard 1: Skip if already in a thread ──────────────────────────────── if (message.channel.isThread()) { return Effect.void } - // Skip if bot is not actually mentioned (e.g. reply-chain only) - if (!message.mentions.has(botUserId)) { + // ── Guard 2: Skip if bot is not actually mentioned (reply-chain only) ──── + if (message.mentions.has(botUserId) === false) { return Effect.void } return Effect.tryPromise({ try: async () => { - const thread = await message.startThread({name: 'fro-bot session'}) - await thread.send('pong') + // ── Step 2: Trigger authorization gate ────────────────────────────── + // Guild is always present for guild channel messages; narrowing is defensive. + const guild = message.guild + if (guild === null) { + logger.warn({}, 'mention: guild is null — skipping (DM or uncached guild)') + return + } + + const authorized = await userIsAuthorized(guild, message.author.id, triggerRoleId, logger) + if (authorized === false) { + logger.info({userId: message.author.id}, 'mention: unauthorized user') + await safeReply(message, 'You are not authorized to run tasks here.') + return + } + + // ── Step 3: Binding lookup ─────────────────────────────────────────── + const bindingResult = await bindingsStore.getBindingByChannelId(message.channel.id) + + if (bindingResult.success === false) { + // Store error — fail safely without leaking internal details. + logger.error({channelId: message.channel.id, err: bindingResult.error.message}, 'mention: binding store error') + await safeReply(message, 'Something went wrong looking up this channel. Please try again.') + return + } + + if (bindingResult.data === null) { + // No binding — channel not connected to a repo. + await safeReply(message, 'This channel is not bound to a repository. Use `/fro-bot add-project` first.') + return + } + + const binding = bindingResult.data + logger.info({channelId: message.channel.id, repo: `${binding.owner}/${binding.repo}`}, 'mention: binding found') + + // ── Steps 4–11: Execution lifecycle (concurrency + lock + run-state) ─ + await runMention(message, binding, runDeps) }, - catch: error => (error instanceof Error ? error : new Error(String(error))), - }).pipe( - Effect.catchAll(threadError => - Effect.gen(function* () { - console.warn( - JSON.stringify({level: 'warn', msg: 'handleMention: startThread failed', err: String(threadError)}), - ) - yield* Effect.tryPromise({ - try: async () => message.react('❌'), - catch: (err: unknown) => (err instanceof Error ? err : new Error(String(err))), - }).pipe( - Effect.tapError(err => - Effect.sync(() => { - console.warn(JSON.stringify({level: 'warn', msg: 'handleMention: react failed', err: String(err)})) - }), - ), - Effect.catchAll(() => Effect.void), - ) - yield* Effect.tryPromise({ - try: async () => - message.reply({content: 'Could not start a session here — please try again or check channel permissions.'}), - catch: (err: unknown) => (err instanceof Error ? err : new Error(String(err))), - }).pipe( - Effect.tapError(err => - Effect.sync(() => { - console.warn( - JSON.stringify({level: 'warn', msg: 'handleMention: fallback reply failed', err: String(err)}), - ) - }), - ), - // Defense-in-depth: the inner Effect.catchAll branches above already - // swallow react and reply rejections, so this outer catchAll should - // never fire. Kept defensively in case a future refactor changes the - // inner shape — it ensures the fallback chain can never re-fail the - // outer Effect with a non-original error. - Effect.catchAll(() => Effect.void), - ) - return yield* Effect.fail(threadError) - }), - ), - ) + catch: (error: unknown) => (error instanceof Error ? error : new Error(String(error))), + }) } diff --git a/packages/gateway/src/discord/streaming.test.ts b/packages/gateway/src/discord/streaming.test.ts new file mode 100644 index 00000000..9d1ea2ba --- /dev/null +++ b/packages/gateway/src/discord/streaming.test.ts @@ -0,0 +1,281 @@ +import type {SinkThread} from './streaming.js' +import {AttachmentBuilder} from 'discord.js' +import {describe, expect, it, vi} from 'vitest' + +import {createDiscordStreamSink} from './streaming.js' + +// --------------------------------------------------------------------------- +// Test doubles +// --------------------------------------------------------------------------- + +function makeThread(sendFn: ReturnType = vi.fn().mockResolvedValue(undefined)): SinkThread & { + readonly _send: ReturnType +} { + return { + send: sendFn, + _send: sendFn, + } as unknown as SinkThread & {readonly _send: ReturnType} +} + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +/** Extract the first argument of the first call to a mock function. */ +function firstCallArg(fn: ReturnType): T { + const call = fn.mock.calls[0] + if (call === undefined) throw new Error('Expected at least one call') + return call[0] as T +} + +const SHORT_TEXT = 'Hello from the agent!' +const LONG_TEXT = 'x'.repeat(2001) + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +describe('createDiscordStreamSink', () => { + describe('happy path — short text (<= 2000 chars)', () => { + it('sends the buffered text in a single message', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(SHORT_TEXT) + + // #when + const result = await sink.flush() + + // #then + expect(result.kind).toBe('sent') + expect(thread._send).toHaveBeenCalledOnce() + }) + + it('hardcodes allowedMentions:{parse:[]} on the send', async () => { + // #given — agent text contains @everyone, @here, and a role ping + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append('@everyone @here <@&12345> come look at this!') + + // #when + await sink.flush() + + // #then — allowedMentions MUST be {parse:[]} so nothing pings + const call = firstCallArg<{allowedMentions: {parse: string[]}}>(thread._send) + expect(call.allowedMentions).toEqual({parse: []}) + }) + + it('includes the buffered text as content', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append('agent says hi') + + // #when + await sink.flush() + + // #then + const call = firstCallArg<{content: string}>(thread._send) + expect(call.content).toBe('agent says hi') + }) + + it('coalesces multiple appended deltas into one send', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append('Hello ') + sink.append('world') + sink.append('!') + + // #when + const result = await sink.flush() + + // #then — one send, full text + expect(result.kind).toBe('sent') + expect(thread._send).toHaveBeenCalledOnce() + const call = firstCallArg<{content: string}>(thread._send) + expect(call.content).toBe('Hello world!') + }) + }) + + describe('happy path — long text (> 2000 chars)', () => { + it('posts summary + .md attachment instead of raw long text', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(LONG_TEXT) + + // #when + const result = await sink.flush() + + // #then — attachment fallback + expect(result.kind).toBe('attachment') + expect(thread._send).toHaveBeenCalledOnce() + + const call = firstCallArg<{content: string; files: AttachmentBuilder[]}>(thread._send) + expect(call.files).toHaveLength(1) + expect(call.files[0]).toBeInstanceOf(AttachmentBuilder) + // Must NOT contain the raw long text as a content string + expect(call.content).not.toBe(LONG_TEXT) + }) + + it('hardcodes allowedMentions:{parse:[]} on the attachment send', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(LONG_TEXT) + + // #when + await sink.flush() + + // #then + const call = firstCallArg<{allowedMentions: {parse: string[]}}>(thread._send) + expect(call.allowedMentions).toEqual({parse: []}) + }) + + it('does not send more than 2000 chars as content', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(LONG_TEXT) + + // #when + await sink.flush() + + // #then — content must be a short summary, not the full 2001-char text + const call = firstCallArg<{content?: string}>(thread._send) + const contentLength = call.content?.length ?? 0 + expect(contentLength).toBeLessThanOrEqual(2000) + }) + }) + + describe('edge case — empty / whitespace output', () => { + it('sends a clear "no output" message when buffer is empty', async () => { + // #given — nothing appended + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + + // #when + const result = await sink.flush() + + // #then + expect(result.kind).toBe('empty') + expect(thread._send).toHaveBeenCalledOnce() + const call = firstCallArg<{content: string}>(thread._send) + expect(call.content.trim().length).toBeGreaterThan(0) // not an empty string + }) + + it('sends a clear "no output" message when buffer is only whitespace', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(' \n\t ') + + // #when + const result = await sink.flush() + + // #then + expect(result.kind).toBe('empty') + const call = firstCallArg<{content: string}>(thread._send) + expect(call.content.trim().length).toBeGreaterThan(0) + }) + + it('hardcodes allowedMentions:{parse:[]} on the empty-output send', async () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + + // #when + await sink.flush() + + // #then + const call = firstCallArg<{allowedMentions: {parse: string[]}}>(thread._send) + expect(call.allowedMentions).toEqual({parse: []}) + }) + }) + + describe('error path — thread.send rejects', () => { + it('returns {kind:"error"} on short-text send failure without throwing', async () => { + // #given + const sendFn = vi.fn().mockRejectedValue(new Error('Missing Permissions')) + const thread = makeThread(sendFn) + const sink = createDiscordStreamSink(thread) + sink.append('some text') + + // #when / #then — must NOT throw + const result = await sink.flush() + expect(result.kind).toBe('error') + }) + + it('returns {kind:"error"} on attachment send failure without throwing', async () => { + // #given + const sendFn = vi.fn().mockRejectedValue(new Error('attachment upload failed')) + const thread = makeThread(sendFn) + const sink = createDiscordStreamSink(thread) + sink.append(LONG_TEXT) + + // #when / #then — must NOT throw + const result = await sink.flush() + expect(result.kind).toBe('error') + }) + + it('returns {kind:"error"} on empty-output send failure without throwing', async () => { + // #given + const sendFn = vi.fn().mockRejectedValue(new Error('rate limited')) + const thread = makeThread(sendFn) + const sink = createDiscordStreamSink(thread) + + // #when / #then — must NOT throw + const result = await sink.flush() + expect(result.kind).toBe('error') + }) + }) + + describe('allowedMentions invariant — asserted across all send paths', () => { + it('sHORT path: allowedMentions.parse is an empty array', async () => { + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append('short text') + await sink.flush() + const call = firstCallArg<{allowedMentions: {parse: unknown[]}}>(thread._send) + expect(Array.isArray(call.allowedMentions.parse)).toBe(true) + expect(call.allowedMentions.parse).toHaveLength(0) + }) + + it('lONG path: allowedMentions.parse is an empty array', async () => { + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append(LONG_TEXT) + await sink.flush() + const call = firstCallArg<{allowedMentions: {parse: unknown[]}}>(thread._send) + expect(Array.isArray(call.allowedMentions.parse)).toBe(true) + expect(call.allowedMentions.parse).toHaveLength(0) + }) + + it('eMPTY path: allowedMentions.parse is an empty array', async () => { + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + await sink.flush() + const call = firstCallArg<{allowedMentions: {parse: unknown[]}}>(thread._send) + expect(Array.isArray(call.allowedMentions.parse)).toBe(true) + expect(call.allowedMentions.parse).toHaveLength(0) + }) + }) + + describe('buffered()', () => { + it('returns the current accumulated buffer without side-effects', () => { + // #given + const thread = makeThread() + const sink = createDiscordStreamSink(thread) + sink.append('alpha') + sink.append(' beta') + + // #when + const snapshot = sink.buffered() + + // #then — read-only, no send triggered + expect(snapshot).toBe('alpha beta') + expect(thread._send).not.toHaveBeenCalled() + }) + }) +}) diff --git a/packages/gateway/src/discord/streaming.ts b/packages/gateway/src/discord/streaming.ts new file mode 100644 index 00000000..b3282c59 --- /dev/null +++ b/packages/gateway/src/discord/streaming.ts @@ -0,0 +1,167 @@ +/** + * Discord streaming sink — takes accumulated agent text and flushes it into a + * Discord thread with `allowedMentions: {parse: []}` on every send path. + * + * Behavior: + * - Flush on demand: the caller drives when to flush (`session.idle` is the primary trigger). + * - Long-response fallback: if text exceeds 2000 chars, post a summary line + `.md` attachment. + * - Empty/whitespace output: post a clear "no output" message, not an empty send. + * - Every send — stream text, `.md` fallback, error messages — hardcodes `allowedMentions:{parse:[]}`. + * - All sends go to the thread; never to the parent channel. + */ + +import type {MessageMentionTypes} from 'discord.js' +import type {GatewayLogger} from './client.js' + +import {Buffer} from 'node:buffer' +import {AttachmentBuilder} from 'discord.js' + +// --------------------------------------------------------------------------- +// Constants +// --------------------------------------------------------------------------- + +/** Discord's hard content-length limit for a single message. */ +const DISCORD_MESSAGE_CHAR_LIMIT = 2000 + +/** Fallback message shown when a flush yields nothing. */ +const EMPTY_OUTPUT_MESSAGE = '_(no output)_' + +/** Summary line shown before the `.md` attachment fallback. */ +const LONG_OUTPUT_SUMMARY = '_(response too long — full output attached as a file)_' + +// --------------------------------------------------------------------------- +// Types +// --------------------------------------------------------------------------- + +/** + * Minimal thread interface required by the sink. Typed narrowly so test doubles + * don't need to implement the full `ThreadChannel` API. + */ +export interface SinkThread { + readonly send: (options: SendOptions) => Promise +} + +/** Message payload shape passed to `thread.send`. */ +interface SendOptions { + readonly content?: string + readonly files?: AttachmentBuilder[] + readonly allowedMentions: {readonly parse: readonly MessageMentionTypes[]} +} + +/** Discriminated result of a flush attempt. */ +export type FlushResult = + | {readonly kind: 'sent'; readonly charCount: number} + | {readonly kind: 'attachment'; readonly charCount: number} + | {readonly kind: 'empty'} + | {readonly kind: 'error'; readonly message: string} + +/** Dependencies injected into the sink factory. */ +export interface StreamSinkDeps { + readonly logger?: GatewayLogger +} + +// --------------------------------------------------------------------------- +// Internal helper — ALL Discord sends route through here +// --------------------------------------------------------------------------- + +/** + * The SINGLE send helper that enforces `allowedMentions: {parse: []}` on + * every Discord write. No code in this module calls `thread.send` directly. + * + * Invariant: agent or interpolated text can NEVER ping `@everyone`, roles, or + * users. Asserted at every call site in tests. + */ +async function safeSend(thread: SinkThread, options: Omit): Promise { + await thread.send({ + ...options, + allowedMentions: {parse: []}, + }) +} + +// --------------------------------------------------------------------------- +// Public API +// --------------------------------------------------------------------------- + +/** + * A `DiscordStreamSink` accumulates agent text deltas and flushes them to + * a Discord thread on demand. + * + * Usage: + * ```ts + * const sink = createDiscordStreamSink(thread, deps) + * sink.append(textDelta) // called on each text event + * const result = await sink.flush() // called on session.idle + * ``` + */ +export interface DiscordStreamSink { + /** Append a text delta to the internal buffer. */ + readonly append: (text: string) => void + /** + * Flush the current buffer to the Discord thread. + * - Short text (≤2000 chars): single message send. + * - Long text (>2000 chars): summary line + `.md` attachment. + * - Empty/whitespace: "no output" message. + * - On `thread.send` rejection: returns `{kind:'error'}` (does not throw). + */ + readonly flush: () => Promise + /** Read the current buffered text without flushing. */ + readonly buffered: () => string +} + +/** + * Create a `DiscordStreamSink` bound to `thread`. + * + * All sends are routed through `safeSend`, which hardcodes + * `allowedMentions: {parse: []}`. + */ +export function createDiscordStreamSink(thread: SinkThread, deps: StreamSinkDeps = {}): DiscordStreamSink { + const {logger} = deps + let buffer = '' + + const append = (text: string): void => { + buffer += text + } + + const buffered = (): string => buffer + + const flush = async (): Promise => { + const text = buffer + + // Empty / whitespace → post a clear "no output" message + if (text.trim().length === 0) { + try { + await safeSend(thread, {content: EMPTY_OUTPUT_MESSAGE}) + return {kind: 'empty'} + } catch (sendError) { + const message = sendError instanceof Error ? sendError.message : String(sendError) + logger?.warn({err: message}, 'streaming sink: empty-output send failed') + return {kind: 'error', message} + } + } + + // Long output → summary line + .md attachment fallback + if (text.length > DISCORD_MESSAGE_CHAR_LIMIT) { + try { + const attachment = new AttachmentBuilder(Buffer.from(text, 'utf-8'), {name: 'response.md'}) + await safeSend(thread, {content: LONG_OUTPUT_SUMMARY, files: [attachment]}) + return {kind: 'attachment', charCount: text.length} + } catch (sendError) { + const message = sendError instanceof Error ? sendError.message : String(sendError) + logger?.warn({err: message}, 'streaming sink: attachment send failed') + return {kind: 'error', message} + } + } + + // Short output → single message + try { + await safeSend(thread, {content: text}) + return {kind: 'sent', charCount: text.length} + } catch (sendError) { + const message = sendError instanceof Error ? sendError.message : String(sendError) + logger?.warn({err: message}, 'streaming sink: text send failed') + return {kind: 'error', message} + } + } + + return {append, flush, buffered} +} diff --git a/packages/gateway/src/execute/concurrency.test.ts b/packages/gateway/src/execute/concurrency.test.ts new file mode 100644 index 00000000..eb667893 --- /dev/null +++ b/packages/gateway/src/execute/concurrency.test.ts @@ -0,0 +1,86 @@ +import {describe, expect, it} from 'vitest' + +import {createConcurrencyRegistry, DEFAULT_MAX_CONCURRENT_RUNS} from './concurrency.js' + +describe('createConcurrencyRegistry', () => { + it('exports DEFAULT_MAX_CONCURRENT_RUNS = 3', () => { + expect(DEFAULT_MAX_CONCURRENT_RUNS).toBe(3) + }) + + it('allows acquisition up to max (global cap)', () => { + // #given + const registry = createConcurrencyRegistry(2) + + // #when + const r1 = registry.tryAcquire('ch-1') + const r2 = registry.tryAcquire('ch-2') + const r3 = registry.tryAcquire('ch-3') + + // #then + expect(r1).toBe('ok') + expect(r2).toBe('ok') + expect(r3).toBe('cap') + expect(registry.activeCount()).toBe(2) + }) + + it('blocks a second acquire for the same channel (busy)', () => { + // #given + const registry = createConcurrencyRegistry(3) + + // #when + const r1 = registry.tryAcquire('ch-a') + const r2 = registry.tryAcquire('ch-a') + + // #then — second is busy even though global cap not reached + expect(r1).toBe('ok') + expect(r2).toBe('busy') + expect(registry.activeCount()).toBe(1) + }) + + it('returns cap before busy when cap is 0', () => { + // #given + const registry = createConcurrencyRegistry(0) + + // #when / #then + expect(registry.tryAcquire('ch-1')).toBe('cap') + }) + + it('release decrements count and allows re-acquisition for same channel', () => { + // #given + const registry = createConcurrencyRegistry(2) + registry.tryAcquire('ch-1') + + // #when + registry.release('ch-1') + const r2 = registry.tryAcquire('ch-1') + + // #then + expect(r2).toBe('ok') + expect(registry.activeCount()).toBe(1) + }) + + it('release is idempotent — calling it on an unknown channel is a no-op', () => { + // #given + const registry = createConcurrencyRegistry(2) + registry.tryAcquire('ch-1') + + // #when — release a channel that was never acquired + registry.release('ch-unknown') + + // #then — count unchanged + expect(registry.activeCount()).toBe(1) + }) + + it('after releasing a capped slot, another channel can acquire', () => { + // #given cap = 1 + const registry = createConcurrencyRegistry(1) + registry.tryAcquire('ch-1') + expect(registry.tryAcquire('ch-2')).toBe('cap') + + // #when + registry.release('ch-1') + + // #then + expect(registry.tryAcquire('ch-2')).toBe('ok') + }) +}) diff --git a/packages/gateway/src/execute/concurrency.ts b/packages/gateway/src/execute/concurrency.ts new file mode 100644 index 00000000..acca5ccd --- /dev/null +++ b/packages/gateway/src/execute/concurrency.ts @@ -0,0 +1,59 @@ +/** + * In-memory global concurrency registry for gateway mention runs. + * + * Tracks two concurrent dimensions: + * 1. Global cap — bounds total active runs across all repos/channels. + * 2. Per-channel in-flight guard — prevents two concurrent runs originating + * from the same source channel. + * + * In-memory state is intentional — gateway restart resets it. + * Recovery sweeps handle runs left in EXECUTING at crash time. + */ + +/** Default maximum simultaneous active runs across all channels. */ +export const DEFAULT_MAX_CONCURRENT_RUNS = 3 + +export interface ConcurrencyRegistry { + /** + * Attempt to acquire a global slot and the per-channel in-flight slot. + * + * - `'ok'` — both slots acquired; caller MUST call `release(channelId)` in a finally block. + * - `'cap'` — global cap reached; NO slot acquired; do not call `release`. + * - `'busy'` — channel already has an active run; NO slot acquired; do not call `release`. + */ + readonly tryAcquire: (channelId: string) => 'ok' | 'cap' | 'busy' + /** + * Release the global slot and the per-channel slot for `channelId`. + * + * Idempotent: safe to call even if the channel was not in the active set + * (e.g. called in a finally block where the run never actually started). + */ + readonly release: (channelId: string) => void + /** Current number of globally active runs (informational). */ + readonly activeCount: () => number + /** Configured maximum concurrent runs. */ + readonly max: number +} + +export function createConcurrencyRegistry(max: number = DEFAULT_MAX_CONCURRENT_RUNS): ConcurrencyRegistry { + let active = 0 + const activeChannels = new Set() + + return { + tryAcquire: (channelId: string): 'ok' | 'cap' | 'busy' => { + if (active >= max) return 'cap' + if (activeChannels.has(channelId) === true) return 'busy' + active++ + activeChannels.add(channelId) + return 'ok' + }, + release: (channelId: string): void => { + if (activeChannels.has(channelId) === true) { + activeChannels.delete(channelId) + if (active > 0) active-- + } + }, + activeCount: (): number => active, + max, + } +} diff --git a/packages/gateway/src/execute/opencode-attach.test.ts b/packages/gateway/src/execute/opencode-attach.test.ts new file mode 100644 index 00000000..1468e426 --- /dev/null +++ b/packages/gateway/src/execute/opencode-attach.test.ts @@ -0,0 +1,85 @@ +/** + * Tests for `attachOpencode` — remote-attach client factory. + * + * Convention: `as unknown as ` in test doubles is permitted per the + * established gateway test pattern (mirrors `streaming.test.ts`). + */ + +import type {OpenCodeServerHandle} from '@fro-bot/runtime' + +import {describe, expect, it} from 'vitest' + +import {attachOpencode} from './opencode-attach.js' + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +describe('attachOpencode', () => { + it('returns an OpenCodeServerHandle', () => { + // #given / #when + const handle = attachOpencode('http://workspace:9200', 'secret-token') + + // #then — the handle has the expected shape + expect(handle).toHaveProperty('client') + expect(handle).toHaveProperty('server') + expect(typeof handle.shutdown).toBe('function') + }) + + describe('no-op close and shutdown', () => { + it('server.close() is a no-op (does not throw)', () => { + // #given + const handle = attachOpencode('http://workspace:9200', 'secret-token') + + // #when / #then + expect(() => handle.server.close()).not.toThrow() + }) + + it('shutdown() is a no-op (does not throw)', () => { + // #given + const handle = attachOpencode('http://workspace:9200', 'secret-token') + + // #when / #then + expect(() => handle.shutdown()).not.toThrow() + }) + + it('server.close() returns undefined (not a promise)', () => { + // #given + const handle = attachOpencode('http://workspace:9200', 'secret-token') + + // #when + const result = handle.server.close() + + // #then + expect(result).toBeUndefined() + }) + + it('shutdown() returns undefined (not a promise)', () => { + // #given + const handle = attachOpencode('http://workspace:9200', 'secret-token') + + // #when + const result = handle.shutdown() + + // #then + expect(result).toBeUndefined() + }) + }) + + it('server.url reflects the baseURL', () => { + // #given / #when + const handle = attachOpencode('http://workspace:9200', 'my-token') + + // #then + expect(handle.server.url).toBe('http://workspace:9200') + }) + + it('the handle satisfies the OpenCodeServerHandle shape', () => { + // #given / #when + const handle = attachOpencode('http://workspace:9200', 'my-token') + + // #then — structural: can assign to the interface type (TS-level test via cast) + const typedHandle: OpenCodeServerHandle = handle + expect(typedHandle).toBeDefined() + }) +}) diff --git a/packages/gateway/src/execute/opencode-attach.ts b/packages/gateway/src/execute/opencode-attach.ts new file mode 100644 index 00000000..275e86bc --- /dev/null +++ b/packages/gateway/src/execute/opencode-attach.ts @@ -0,0 +1,31 @@ +/** + * Remote-attach client for the gateway. + * + * Wraps `createRemoteOpenCodeHandle` from the runtime, injecting the + * workspace bearer token as an `Authorization` header. The header is + * threaded automatically to both HTTP calls (e.g. `promptAsync`) and the + * SSE `/event` subscription — the SDK uses fetch-based SSE, so custom + * headers survive on the stream path. + * + * Security invariant: the token is NEVER logged. + */ + +import type {OpenCodeServerHandle} from '@fro-bot/runtime' + +import {createRemoteOpenCodeHandle} from '@fro-bot/runtime' + +/** + * Build an `OpenCodeServerHandle` attached to a remote workspace OpenCode + * server. + * + * `close` and `shutdown` on the returned handle are no-ops — the gateway + * does not own the remote server and must not shut it down. + * + * @param baseURL Full base URL of the workspace proxy + * (e.g. `http://workspace:9200`). + * @param token Bearer secret for the workspace proxy. Never logged. + */ +export function attachOpencode(baseURL: string, token: string): OpenCodeServerHandle { + // Authorization header injected here — never passed through to a logger. + return createRemoteOpenCodeHandle(baseURL, {Authorization: `Bearer ${token}`}) +} diff --git a/packages/gateway/src/execute/prompt.test.ts b/packages/gateway/src/execute/prompt.test.ts new file mode 100644 index 00000000..dc17db1b --- /dev/null +++ b/packages/gateway/src/execute/prompt.test.ts @@ -0,0 +1,62 @@ +/** + * Tests for `buildDiscordPrompt`. + */ + +import {describe, expect, it} from 'vitest' + +import {buildDiscordPrompt, EmptyPromptError} from './prompt.js' + +describe('buildDiscordPrompt', () => { + describe('happy path', () => { + it('includes the repository context', () => { + // #given / #when + const result = buildDiscordPrompt({messageText: 'Fix the bug', owner: 'acme', repo: 'api'}) + + // #then + expect(result).toContain('acme/api') + }) + + it('includes the trimmed message text', () => { + // #given / #when + const result = buildDiscordPrompt({messageText: ' Fix the bug ', owner: 'acme', repo: 'api'}) + + // #then + expect(result).toContain('Fix the bug') + expect(result).not.toContain(' Fix') + }) + + it('structures prompt with repo header then user text', () => { + // #given / #when + const result = buildDiscordPrompt({messageText: 'Do the thing', owner: 'org', repo: 'myrepo'}) + + // #then + expect(result).toBe('Repository: org/myrepo\n\nDo the thing') + }) + }) + + describe('empty / whitespace guard', () => { + it('throws EmptyPromptError for empty string', () => { + // #given / #when / #then + expect(() => buildDiscordPrompt({messageText: '', owner: 'org', repo: 'repo'})).toThrow(EmptyPromptError) + }) + + it('throws EmptyPromptError for whitespace-only string', () => { + // #given / #when / #then + expect(() => buildDiscordPrompt({messageText: ' \t\n ', owner: 'org', repo: 'repo'})).toThrow(EmptyPromptError) + }) + + it('thrown EmptyPromptError has the correct name', () => { + // #given / #when + let caught: unknown + try { + buildDiscordPrompt({messageText: '', owner: 'org', repo: 'repo'}) + } catch (error) { + caught = error + } + + // #then + expect(caught).toBeInstanceOf(EmptyPromptError) + expect((caught as EmptyPromptError).name).toBe('EmptyPromptError') + }) + }) +}) diff --git a/packages/gateway/src/execute/prompt.ts b/packages/gateway/src/execute/prompt.ts new file mode 100644 index 00000000..57aada0f --- /dev/null +++ b/packages/gateway/src/execute/prompt.ts @@ -0,0 +1,73 @@ +/** + * Minimal Discord prompt builder. + * + * Keeps prompt construction separate from execution so it is independently + * testable and the execution core (`run-core.ts`) stays free of string + * formatting concerns. + */ + +/** Parameters for building a Discord agent prompt. */ +export interface DiscordPromptParams { + /** Raw message text from the Discord mention (treated as untrusted input). */ + readonly messageText: string + /** Repository owner (GitHub org or user). */ + readonly owner: string + /** Repository name. */ + readonly repo: string + /** + * Discord user ID of the bot. When provided, leading mention tokens of the + * form `<@ID>` or `<@!ID>` are stripped from `messageText` before the + * empty-prompt check. This prevents a bare bot mention from silently + * dispatching a no-op run. + */ + readonly botUserId?: string +} + +/** + * Thrown when `messageText` is empty (or only contains a bot mention) after + * stripping leading mention tokens. `run.ts` catches this and posts a coarse + * "empty message" reply — no prompt is sent to the agent. + */ +export class EmptyPromptError extends Error { + constructor() { + super('Cannot build a prompt from empty or whitespace-only message text.') + this.name = 'EmptyPromptError' + } +} + +/** + * Strip leading Discord mention token(s) (`<@ID>` or `<@!ID>`) that match + * `botUserId` from the start of `text`. Removes as many consecutive leading + * matches as are present, then trims the result. + */ +function stripLeadingMentions(text: string, botUserId: string): string { + // A single mention pattern: optional whitespace, then <@ID> or <@!ID>. + const mentionPattern = new RegExp(String.raw`^\s*<@!?${botUserId}>`, '') + let result = text + let prev: string + do { + prev = result + result = result.replace(mentionPattern, '') + } while (result !== prev) + return result.trim() +} + +/** + * Build a minimal Discord prompt for the OpenCode agent. + * + * The user text is stripped of leading bot-mention tokens (e.g. `<@1234>`) + * and trimmed before use. If the remaining text is empty, `EmptyPromptError` + * is thrown so callers can reply with a coarse "nothing to do" message + * without dispatching a run. + * + * @throws {EmptyPromptError} if `messageText` is empty, whitespace-only, or + * contains only bot mention token(s) after stripping. + */ +export function buildDiscordPrompt(params: DiscordPromptParams): string { + const {messageText, owner, repo, botUserId} = params + const stripped = botUserId === undefined ? messageText.trim() : stripLeadingMentions(messageText, botUserId) + if (stripped.length === 0) { + throw new EmptyPromptError() + } + return `Repository: ${owner}/${repo}\n\n${stripped}` +} diff --git a/packages/gateway/src/execute/recovery.test.ts b/packages/gateway/src/execute/recovery.test.ts new file mode 100644 index 00000000..f5f82fb5 --- /dev/null +++ b/packages/gateway/src/execute/recovery.test.ts @@ -0,0 +1,448 @@ +import type {CoordinationConfig, RunPhase, RunState} from '@fro-bot/runtime' +import type {BindingsStore} from '../bindings/store.js' +import type {GatewayLogger} from '../discord/client.js' +import type {SinkThread} from '../discord/streaming.js' +import type {RecoverStaleRunsDeps} from './recovery.js' + +import * as runtimeModule from '@fro-bot/runtime' +import {beforeEach, describe, expect, it, vi} from 'vitest' + +import {recoverStaleRuns} from './recovery.js' +// --------------------------------------------------------------------------- +// Mock @fro-bot/runtime +// --------------------------------------------------------------------------- + +vi.mock('@fro-bot/runtime', () => ({ + buildObjectStoreKey: vi.fn(), + findStaleRuns: vi.fn(), + transitionRun: vi.fn(), + releaseLock: vi.fn(), +})) + +// --------------------------------------------------------------------------- +// Typed mock accessors +// --------------------------------------------------------------------------- + +const mockBuildObjectStoreKey = vi.mocked(runtimeModule.buildObjectStoreKey) +const mockFindStaleRuns = vi.mocked(runtimeModule.findStaleRuns) +const mockTransitionRun = vi.mocked(runtimeModule.transitionRun) +const mockReleaseLock = vi.mocked(runtimeModule.releaseLock) + +// --------------------------------------------------------------------------- +// Test constants +// --------------------------------------------------------------------------- + +const OWNER = 'acme' +const REPO = 'widget' +const REPO_SLUG = `${OWNER}/${REPO}` +const RUN_ID = 'run-stale-001' +const THREAD_ID = 'thread-123' +const RUN_KEY = 'state/identity/acme/widget/runs/run-stale-001.json' +const LOCK_KEY = 'state/coordination/acme/widget/locks/repo.json' +const RUN_ETAG = 'etag-run-1' +const LOCK_ETAG = 'etag-lock-1' +const COORDINATION_IDENTITY = 'coordination' + +// --------------------------------------------------------------------------- +// Factories +// --------------------------------------------------------------------------- + +function makeLogger(): GatewayLogger { + return { + debug: vi.fn(), + info: vi.fn(), + warn: vi.fn(), + error: vi.fn(), + } +} + +function makeStaleRun(overrides: Partial<{run_id: string; thread_id: string; phase: RunPhase}> = {}): RunState { + return { + run_id: overrides.run_id ?? RUN_ID, + thread_id: overrides.thread_id ?? THREAD_ID, + entity_ref: REPO_SLUG, + surface: 'discord' as const, + phase: overrides.phase ?? 'EXECUTING', + started_at: new Date(Date.now() - 300_000).toISOString(), + last_heartbeat: new Date(Date.now() - 300_000).toISOString(), + holder_id: 'discord-gateway', + details: {}, + } +} + +function makeBinding() { + return {owner: OWNER, repo: REPO, channelId: 'ch-1', workspacePath: '/workspace/repos/acme/widget'} +} + +function makeBindingsStore(overrides: {listBindings?: () => Promise} = {}): BindingsStore { + return { + createBinding: vi.fn(), + getBindingByRepo: vi.fn(), + getBindingByChannelId: vi.fn(), + listBindings: + overrides.listBindings ?? + (vi.fn().mockResolvedValue({success: true, data: [makeBinding()]}) as BindingsStore['listBindings']), + } as unknown as BindingsStore +} + +function makeCoordinationConfig(): CoordinationConfig { + const getObject = vi.fn().mockImplementation(async (key: string) => { + if (key === RUN_KEY) return {success: true, data: {data: '{}', etag: RUN_ETAG}} + if (key === LOCK_KEY) return {success: true, data: {data: JSON.stringify({run_id: RUN_ID}), etag: LOCK_ETAG}} + return {success: false, error: new Error('not found')} + }) + + return { + storeAdapter: { + upload: vi.fn(), + download: vi.fn(), + list: vi.fn(), + getObject, + }, + storeConfig: {enabled: true, bucket: 'test', region: 'us-east-1', prefix: 'state'}, + lockTtlSeconds: 900, + heartbeatIntervalMs: 30_000, + staleThresholdMs: 60_000, + } +} + +function makeResolveThread(thread: SinkThread | null = null): (id: string) => Promise { + return vi.fn().mockResolvedValue(thread) +} + +function makeThread(): SinkThread { + return {send: vi.fn().mockResolvedValue(undefined)} +} + +function makeDeps(overrides: Partial = {}): RecoverStaleRunsDeps { + return { + coordinationConfig: overrides.coordinationConfig ?? makeCoordinationConfig(), + identity: overrides.identity ?? 'discord-gateway', + bindingsStore: overrides.bindingsStore ?? makeBindingsStore(), + resolveThread: overrides.resolveThread ?? makeResolveThread(), + logger: overrides.logger ?? makeLogger(), + } +} + +// Helper to create a ValidationError-shaped object that satisfies the runtime type +function makeValidationError(message: string): Error & {readonly code: 'VALIDATION_ERROR'} { + const error = new Error(message) as Error & {code: 'VALIDATION_ERROR'} + error.code = 'VALIDATION_ERROR' + return error +} + +type BuildKeyResult = ReturnType + +function okKey(key: string): BuildKeyResult { + return {success: true, data: key} +} + +function errKey(message: string): BuildKeyResult { + return {success: false, error: makeValidationError(message)} as unknown as BuildKeyResult +} + +// --------------------------------------------------------------------------- +// Default runtime mock wiring (success path) +// --------------------------------------------------------------------------- + +beforeEach(() => { + vi.clearAllMocks() + + mockBuildObjectStoreKey.mockImplementation((_config, _identity, _repo, _type, suffix) => { + if (suffix === `${RUN_ID}.json`) return okKey(RUN_KEY) + if (suffix === 'repo.json') return okKey(LOCK_KEY) + return errKey('unexpected key') + }) + + mockFindStaleRuns.mockResolvedValue({success: true, data: []}) + mockTransitionRun.mockResolvedValue({ + success: true, + data: {etag: 'etag-run-2', state: makeStaleRun({phase: 'FAILED'})}, + }) + mockReleaseLock.mockResolvedValue({success: true, data: undefined}) +}) + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +describe('recoverStaleRuns', () => { + describe('no stale runs', () => { + it('is a clean no-op when there are no bindings', async () => { + // #given + const deps = makeDeps({ + bindingsStore: makeBindingsStore({ + listBindings: vi.fn().mockResolvedValue({success: true, data: []}), + }), + }) + + // #when + await recoverStaleRuns(deps) + + // #then + expect(mockFindStaleRuns).not.toHaveBeenCalled() + expect(mockTransitionRun).not.toHaveBeenCalled() + expect(mockReleaseLock).not.toHaveBeenCalled() + }) + + it('is a clean no-op when findStaleRuns returns an empty list', async () => { + // #given + mockFindStaleRuns.mockResolvedValue({success: true, data: []}) + const deps = makeDeps() + + // #when + await recoverStaleRuns(deps) + + // #then + expect(mockFindStaleRuns).toHaveBeenCalledOnce() + expect(mockTransitionRun).not.toHaveBeenCalled() + expect(mockReleaseLock).not.toHaveBeenCalled() + }) + }) + + describe('happy path — one stale run', () => { + it('transitions run to FAILED, releases lock, and posts thread note', async () => { + // #given + const staleRun = makeStaleRun() + mockFindStaleRuns.mockResolvedValue({success: true, data: [staleRun]}) + + const thread = makeThread() + const resolveThread = makeResolveThread(thread) + const deps = makeDeps({resolveThread}) + + // #when + await recoverStaleRuns(deps) + + // #then + expect(mockTransitionRun).toHaveBeenCalledWith( + expect.anything(), + 'discord-gateway', + REPO_SLUG, + RUN_ID, + 'FAILED', + RUN_ETAG, + expect.anything(), + ) + expect(mockReleaseLock).toHaveBeenCalledWith(expect.anything(), REPO_SLUG, LOCK_ETAG, expect.anything()) + expect(resolveThread).toHaveBeenCalledWith(THREAD_ID) + expect(thread.send).toHaveBeenCalledWith(expect.objectContaining({allowedMentions: {parse: []}})) + }) + }) + + describe('edge cases', () => { + it('skips thread note when thread_id cannot be resolved', async () => { + // #given + const staleRun = makeStaleRun() + mockFindStaleRuns.mockResolvedValue({success: true, data: [staleRun]}) + + const resolveThread = makeResolveThread(null) // thread not found + const deps = makeDeps({resolveThread}) + + // #when + await recoverStaleRuns(deps) + + // #then — FAILED + lock release still run; just no thread note + expect(mockTransitionRun).toHaveBeenCalled() + expect(mockReleaseLock).toHaveBeenCalled() + const thread = {send: vi.fn()} + expect(thread.send).not.toHaveBeenCalled() + }) + + it('continues sweep when resolveThread throws', async () => { + // #given + const staleRun = makeStaleRun() + mockFindStaleRuns.mockResolvedValue({success: true, data: [staleRun]}) + + const resolveThread: (id: string) => Promise = vi + .fn() + .mockRejectedValue(new Error('discord error')) + const logger = makeLogger() + const deps = makeDeps({resolveThread, logger}) + + // #when — must not throw + await expect(recoverStaleRuns(deps)).resolves.toBeUndefined() + + // #then — still transitioned and released despite the throw + expect(mockTransitionRun).toHaveBeenCalled() + expect(mockReleaseLock).toHaveBeenCalled() + expect(logger.warn).toHaveBeenCalledWith( + expect.objectContaining({runId: RUN_ID}), + expect.stringContaining('thread note'), + ) + }) + }) + + describe('error paths', () => { + it('continues sweep when one run transition fails', async () => { + // #given + const run1 = makeStaleRun({run_id: 'run-001'}) + const run2 = makeStaleRun({run_id: 'run-002'}) + mockFindStaleRuns.mockResolvedValue({success: true, data: [run1, run2]}) + + const RUN_KEY_2 = 'state/identity/acme/widget/runs/run-002.json' + + mockBuildObjectStoreKey.mockImplementation((_config, identity, _repo, _type, suffix) => { + if (suffix === 'run-001.json') return okKey(RUN_KEY) + if (suffix === 'run-002.json') return okKey(RUN_KEY_2) + if (suffix === 'repo.json' && identity === COORDINATION_IDENTITY) return okKey(LOCK_KEY) + return errKey('unexpected') + }) + + // Make getObject return etags for both run keys — typed cast is test-only + const getObjectFn = vi.fn().mockImplementation(async (key: string) => { + if (key === RUN_KEY) return {success: true, data: {data: '{}', etag: RUN_ETAG}} + if (key === RUN_KEY_2) return {success: true, data: {data: '{}', etag: 'etag-run-2'}} + if (key === LOCK_KEY) return {success: true, data: {data: JSON.stringify({run_id: 'run-002'}), etag: LOCK_ETAG}} + return {success: false, error: new Error('not found')} + }) + const coordConfig: CoordinationConfig = { + ...makeCoordinationConfig(), + storeAdapter: { + ...makeCoordinationConfig().storeAdapter, + getObject: getObjectFn, + }, + } + + // run-001 transition fails; run-002 should still be processed + mockTransitionRun + .mockResolvedValueOnce({success: false, error: new Error('write conflict')}) + .mockResolvedValueOnce({success: true, data: {etag: 'etag-r2', state: makeStaleRun({phase: 'FAILED'})}}) + + const logger = makeLogger() + const deps = makeDeps({coordinationConfig: coordConfig, logger}) + + // #when — must not throw + await expect(recoverStaleRuns(deps)).resolves.toBeUndefined() + + // #then — both runs attempted; warning logged for run-001; only run-002 releases lock (it owns it) + expect(mockTransitionRun).toHaveBeenCalledTimes(2) + expect(mockReleaseLock).toHaveBeenCalledTimes(1) + expect(logger.warn).toHaveBeenCalledWith( + expect.objectContaining({runId: 'run-001'}), + expect.stringContaining('transitionRun FAILED'), + ) + }) + + it('continues sweep when one repo findStaleRuns fails', async () => { + // #given + const binding1 = {owner: 'acme', repo: 'widget', channelId: 'ch-1', workspacePath: '/w/widget'} + const binding2 = {owner: 'acme', repo: 'other', channelId: 'ch-2', workspacePath: '/w/other'} + + const bindingsStore = makeBindingsStore({ + listBindings: vi.fn().mockResolvedValue({success: true, data: [binding1, binding2]}), + }) + + // First repo fails; second succeeds with no stale runs + mockFindStaleRuns + .mockResolvedValueOnce({success: false, error: new Error('list failed')}) + .mockResolvedValueOnce({success: true, data: []}) + + const logger = makeLogger() + const deps = makeDeps({bindingsStore, logger}) + + // #when + await expect(recoverStaleRuns(deps)).resolves.toBeUndefined() + + // #then + expect(mockFindStaleRuns).toHaveBeenCalledTimes(2) + expect(logger.warn).toHaveBeenCalledWith( + expect.objectContaining({repo: 'acme/widget'}), + expect.stringContaining('findStaleRuns failed'), + ) + }) + + it('logs an error and returns early when listBindings fails', async () => { + // #given + const bindingsStore = makeBindingsStore({ + listBindings: vi.fn().mockResolvedValue({success: false, error: new Error('S3 error')}), + }) + const logger = makeLogger() + const deps = makeDeps({bindingsStore, logger}) + + // #when + await expect(recoverStaleRuns(deps)).resolves.toBeUndefined() + + // #then + expect(mockFindStaleRuns).not.toHaveBeenCalled() + expect(logger.error).toHaveBeenCalledWith( + expect.objectContaining({err: 'S3 error'}), + expect.stringContaining('listBindings failed'), + ) + }) + }) + + describe('integration — boot with stale run and held lock', () => { + it('leaves run as FAILED and lock released so a new mention can proceed', async () => { + // #given — simulate a stale EXECUTING run with a held lock + const staleRun = makeStaleRun() + mockFindStaleRuns.mockResolvedValue({success: true, data: [staleRun]}) + mockTransitionRun.mockResolvedValue({ + success: true, + data: {etag: 'new-etag', state: {...staleRun, phase: 'FAILED'}}, + }) + mockReleaseLock.mockResolvedValue({success: true, data: undefined}) + + const thread = makeThread() + const deps = makeDeps({resolveThread: makeResolveThread(thread)}) + + // #when + await recoverStaleRuns(deps) + + // #then — state is FAILED, lock is released, thread notified + expect(mockTransitionRun).toHaveBeenCalledWith( + expect.anything(), + 'discord-gateway', + REPO_SLUG, + RUN_ID, + 'FAILED', + RUN_ETAG, + expect.anything(), + ) + expect(mockReleaseLock).toHaveBeenCalledWith(expect.anything(), REPO_SLUG, LOCK_ETAG, expect.anything()) + expect(thread.send).toHaveBeenCalledWith(expect.objectContaining({allowedMentions: {parse: []}})) + }) + + it('skips lock release when fetchLockRecord returns runId: null (unparseable/missing run_id)', async () => { + // #given — stale run with lock content that has no parseable run_id + const staleRun = makeStaleRun() + mockFindStaleRuns.mockResolvedValue({success: true, data: [staleRun]}) + mockTransitionRun.mockResolvedValue({ + success: true, + data: {etag: 'new-etag', state: {...staleRun, phase: 'FAILED'}}, + }) + + // Build a coordination config where the lock content has no run_id field + const getObjectFn = vi.fn().mockImplementation(async (key: string) => { + if (key === RUN_KEY) return {success: true, data: {etag: RUN_ETAG, data: JSON.stringify({phase: 'EXECUTING'})}} + if (key === LOCK_KEY) { + // Lock exists but has NO run_id — fetchLockRecord will return {etag, runId: null} + return {success: true, data: {etag: LOCK_ETAG, data: JSON.stringify({holder: 'some-unknown-holder'})}} + } + return {success: false, error: new Error('not found')} + }) + const base = makeCoordinationConfig() + const coordConfig: CoordinationConfig = { + ...base, + storeAdapter: {...base.storeAdapter, getObject: getObjectFn}, + } + + const deps = makeDeps({coordinationConfig: coordConfig}) + + // #when + await recoverStaleRuns(deps) + + // #then — lock release is NOT called (ownership mismatch — runId: null !== stale RUN_ID) + expect(mockReleaseLock).not.toHaveBeenCalled() + // #and — transition still happened + expect(mockTransitionRun).toHaveBeenCalledWith( + expect.anything(), + 'discord-gateway', + REPO_SLUG, + RUN_ID, + 'FAILED', + RUN_ETAG, + expect.anything(), + ) + }) + }) +}) diff --git a/packages/gateway/src/execute/recovery.ts b/packages/gateway/src/execute/recovery.ts new file mode 100644 index 00000000..3e2621db --- /dev/null +++ b/packages/gateway/src/execute/recovery.ts @@ -0,0 +1,304 @@ +/** + * Startup stale-run recovery. + * + * On gateway boot, scans every bound repo for execution runs that were left + * in the EXECUTING phase by a prior crash (the only phase that can be stranded + * with a held lock+lease, since PENDING→ACKNOWLEDGED→EXECUTING all complete + * within a synchronous setup block before any interruptible await). + * + * For each stranded run the sweep: + * 1. Transitions the run state to FAILED. + * 2. Releases the repo lock (frees the next mention to proceed). + * 3. Posts a brief "previous task interrupted" note to the original thread + * (best-effort — skipped if the thread cannot be resolved). + * + * Any per-run error is logged and the sweep continues — one corrupted record + * must not block recovery for the rest. + */ + +import type {CoordinationConfig} from '@fro-bot/runtime' + +import type {BindingsStore} from '../bindings/store.js' +import type {GatewayLogger} from '../discord/client.js' +import type {SinkThread} from '../discord/streaming.js' +import {buildObjectStoreKey, findStaleRuns, releaseLock, transitionRun} from '@fro-bot/runtime' + +// --------------------------------------------------------------------------- +// Public interface +// --------------------------------------------------------------------------- + +export interface RecoverStaleRunsDeps { + /** Coordination config (provides store adapter, store config, stale threshold). */ + readonly coordinationConfig: CoordinationConfig + /** Gateway identity — must match the identity used when runs were created. */ + readonly identity: string + /** Bindings store used to enumerate all repos to scan. */ + readonly bindingsStore: BindingsStore + /** + * Resolve a Discord thread by its ID. + * + * Returns the thread if reachable, or `null` if not. Called once per stale + * run to post a brief interruption note; a `null` return simply skips the + * note without failing the recovery sweep. + */ + readonly resolveThread: (threadId: string) => Promise + readonly logger: GatewayLogger +} + +// --------------------------------------------------------------------------- +// Internal helpers +// --------------------------------------------------------------------------- + +/** Lock identity constant — matches the hardcoded value in coordination/lock.ts */ +// INVARIANT: must stay in sync with the private `COORDINATION_IDENTITY` constant in +// `packages/runtime/src/coordination/lock.ts` (line 8). That constant is not exported — +// if it is ever exported, import it here instead of maintaining a local copy. +const COORDINATION_IDENTITY = 'coordination' + +/** Narrow logger adapter for runtime coordination functions. */ +function toCoordLogger(logger: GatewayLogger): {debug: (message: string, context?: Record) => void} { + return { + debug: (msg, ctx) => logger.debug(ctx ?? {}, msg), + } +} + +/** + * Resolve the current object-store etag for a given key. + * + * Returns `null` when the adapter does not expose `getObject`, the key does + * not exist, or any other error occurs — all of which are logged. + */ +async function resolveEtag( + config: CoordinationConfig, + key: string, + label: string, + logger: GatewayLogger, +): Promise { + if (config.storeAdapter.getObject == null) { + logger.warn({key, label}, 'recovery: store adapter does not support getObject — cannot resolve etag') + return null + } + + const result = await config.storeAdapter.getObject(key) + if (result.success === false) { + logger.warn({key, label, err: result.error.message}, 'recovery: getObject failed — cannot resolve etag') + return null + } + + return result.data.etag +} + +interface LockFetchResult { + readonly etag: string + readonly runId: string | null +} + +/** + * Fetch the current lock object and parse the `run_id` from its content. + * + * Returns `null` when the adapter does not support `getObject`, the key does + * not exist, or any other fetch error occurs. Returns a result with + * `runId: null` when the content cannot be parsed or lacks a `run_id` field. + */ +async function fetchLockRecord( + config: CoordinationConfig, + key: string, + logger: GatewayLogger, +): Promise { + if (config.storeAdapter.getObject == null) { + logger.warn({key}, 'recovery: store adapter does not support getObject — cannot verify lock ownership') + return null + } + + const result = await config.storeAdapter.getObject(key) + if (result.success === false) { + logger.warn({key, err: result.error.message}, 'recovery: getObject failed — cannot verify lock ownership') + return null + } + + const {etag, data: rawJson} = result.data + + let runId: string | null = null + try { + const parsed: unknown = JSON.parse(rawJson) + if (parsed !== null && typeof parsed === 'object' && 'run_id' in parsed && typeof parsed.run_id === 'string') { + runId = parsed.run_id + } + } catch { + // Unparseable lock content — treat run_id as unknown. + } + + return {etag, runId} +} + +// --------------------------------------------------------------------------- +// recoverStaleRuns +// --------------------------------------------------------------------------- + +/** + * Sweep all bound repos for stale EXECUTING runs and recover them on startup. + * + * Should be called once after the Discord client login completes and before + * the gateway begins handling new mentions. + */ +export async function recoverStaleRuns(deps: RecoverStaleRunsDeps): Promise { + const {coordinationConfig, identity, bindingsStore, resolveThread, logger} = deps + const coordLogger = toCoordLogger(logger) + + // Enumerate all repos that have bindings + const bindingsResult = await bindingsStore.listBindings() + if (bindingsResult.success === false) { + logger.error({err: bindingsResult.error.message}, 'recovery: listBindings failed — skipping stale-run sweep') + return + } + + const bindings = bindingsResult.data + if (bindings.length === 0) { + logger.info({}, 'recovery: no bindings found — stale-run sweep is a no-op') + return + } + + logger.info({repoCount: bindings.length}, 'recovery: scanning repos for stale runs') + + for (const binding of bindings) { + const repo = `${binding.owner}/${binding.repo}` + + const staleResult = await findStaleRuns(coordinationConfig, identity, repo, coordLogger) + if (staleResult.success === false) { + logger.warn({repo, err: staleResult.error.message}, 'recovery: findStaleRuns failed — skipping repo') + continue + } + + const staleRuns = staleResult.data + if (staleRuns.length === 0) { + continue + } + + logger.info({repo, count: staleRuns.length}, 'recovery: found stale runs') + + for (const run of staleRuns) { + await recoverOneRun({run, repo, coordinationConfig, identity, resolveThread, coordLogger, logger}) + } + } + + logger.info({}, 'recovery: stale-run sweep complete') +} + +// --------------------------------------------------------------------------- +// Per-run recovery helper +// --------------------------------------------------------------------------- + +interface RecoverOneRunOpts { + readonly run: { + readonly run_id: string + readonly thread_id: string + readonly phase: string + readonly entity_ref: string + } + readonly repo: string + readonly coordinationConfig: CoordinationConfig + readonly identity: string + readonly resolveThread: (threadId: string) => Promise + readonly coordLogger: {debug: (message: string, context?: Record) => void} + readonly logger: GatewayLogger +} + +async function recoverOneRun(opts: RecoverOneRunOpts): Promise { + const {run, repo, coordinationConfig, identity, resolveThread, coordLogger, logger} = opts + + logger.info({runId: run.run_id, repo, threadId: run.thread_id}, 'recovery: recovering stale run') + + // ── 1. Transition run state to FAILED ─────────────────────────────────── + + const runKeyResult = buildObjectStoreKey(coordinationConfig.storeConfig, identity, repo, 'runs', `${run.run_id}.json`) + + if (runKeyResult.success === false) { + logger.warn( + {runId: run.run_id, repo, err: runKeyResult.error.message}, + 'recovery: could not build run key — skipping', + ) + return + } + + const runEtag = await resolveEtag(coordinationConfig, runKeyResult.data, 'run', logger) + + if (runEtag !== null) { + const transitionResult = await transitionRun( + coordinationConfig, + identity, + repo, + run.run_id, + 'FAILED', + runEtag, + coordLogger, + ) + + if (transitionResult.success === false) { + logger.warn( + {runId: run.run_id, repo, err: transitionResult.error.message}, + 'recovery: transitionRun FAILED — continuing', + ) + } else { + logger.info({runId: run.run_id, repo}, 'recovery: run transitioned to FAILED') + } + } + + // ── 2. Release the repo lock ───────────────────────────────────────────── + + const lockKeyResult = buildObjectStoreKey( + coordinationConfig.storeConfig, + COORDINATION_IDENTITY, + repo, + 'locks', + 'repo.json', + ) + + if (lockKeyResult.success === false) { + logger.warn({runId: run.run_id, repo, err: lockKeyResult.error.message}, 'recovery: could not build lock key') + } else { + const lockFetch = await fetchLockRecord(coordinationConfig, lockKeyResult.data, logger) + + if (lockFetch !== null) { + // Only release the lock when it belongs to this stale run. If another run + // acquired the lock after the stale run's lease expired, releasing here would + // delete an active run's lock and allow concurrent execution. + if (lockFetch.runId === run.run_id) { + const releaseResult = await releaseLock(coordinationConfig, repo, lockFetch.etag, coordLogger) + + if (releaseResult.success === false) { + logger.warn( + {runId: run.run_id, repo, err: releaseResult.error.message}, + 'recovery: releaseLock failed — continuing', + ) + } else { + logger.info({runId: run.run_id, repo}, 'recovery: lock released') + } + } else { + logger.warn( + {runId: run.run_id, repo, lockRunId: lockFetch.runId}, + 'recovery: lock.run_id does not match stale run — skipping release (lock belongs to a different run)', + ) + } + } + } + + // ── 3. Best-effort thread note ─────────────────────────────────────────── + + try { + const thread = await resolveThread(run.thread_id) + if (thread === null) { + logger.info({runId: run.run_id, threadId: run.thread_id}, 'recovery: thread not resolved — skipping note') + } else { + await thread.send({ + content: 'The previous task was interrupted when the service restarted. Please re-send your request.', + allowedMentions: {parse: []}, + }) + logger.info({runId: run.run_id, threadId: run.thread_id}, 'recovery: interruption note posted') + } + } catch (error: unknown) { + logger.warn( + {runId: run.run_id, threadId: run.thread_id, err: error instanceof Error ? error.message : String(error)}, + 'recovery: failed to post thread note — continuing', + ) + } +} diff --git a/packages/gateway/src/execute/run-core.test.ts b/packages/gateway/src/execute/run-core.test.ts new file mode 100644 index 00000000..59c673c5 --- /dev/null +++ b/packages/gateway/src/execute/run-core.test.ts @@ -0,0 +1,698 @@ +/** + * Tests for `runOpenCodeCore`. + * + * Convention: `as unknown as ` for test doubles is permitted per gateway + * test pattern (mirrors `streaming.test.ts` / `mentions.test.ts`). + * + * All network calls are faked via `OpenCodeServerHandle` test doubles — no real + * SDK client is constructed in these tests. + */ + +import type {OpenCodeServerHandle} from '@fro-bot/runtime' +import type {GatewayLogger} from '../discord/client.js' +import type {DiscordStreamSink} from '../discord/streaming.js' + +import {describe, expect, it, vi} from 'vitest' + +import {RunCoreError, runOpenCodeCore} from './run-core.js' + +// --------------------------------------------------------------------------- +// Test-double helpers +// --------------------------------------------------------------------------- + +/** A fake sink that records appended text and always resolves flush. */ +function makeSink(): DiscordStreamSink & {readonly _appended: string[]} { + const appended: string[] = [] + let buffer = '' + return { + _appended: appended, + append: (text: string) => { + appended.push(text) + buffer += text + }, + flush: vi.fn().mockResolvedValue({kind: 'sent', charCount: buffer.length}), + buffered: () => buffer, + } +} + +/** Silent logger for tests. */ +function makeLogger(): GatewayLogger { + return { + debug: vi.fn(), + info: vi.fn(), + warn: vi.fn(), + error: vi.fn(), + } +} + +/** Build an async generator that yields the given events then terminates. */ +async function* makeEventStream(events: readonly object[]): AsyncGenerator { + for (const event of events) { + yield event + } +} + +/** Standard "session created" response. */ +async function sessionCreateOk(id = 'sess-123') { + return Promise.resolve({data: {id}, error: null}) +} + +/** Standard "prompt sent" response. */ +async function promptAsyncOk() { + return Promise.resolve({data: {}, error: null}) +} + +/** Standard "event subscribed" response wrapping an async event stream. */ +async function subscribeOk(events: readonly object[]) { + return Promise.resolve({stream: makeEventStream(events)}) +} + +// --------------------------------------------------------------------------- +// Event factory helpers — match the PROVEN action-tier event shapes +// --------------------------------------------------------------------------- + +/** `message.part.delta` with object delta {type:'text', text:string} */ +function partDeltaObjectEvent(text: string, sessionID = 'sess-123'): object { + return { + type: 'message.part.delta', + properties: {sessionID, delta: {type: 'text', text}, field: 'text'}, + } +} + +/** `message.part.delta` with plain-string delta (field === 'text') */ +function partDeltaStringEvent(text: string, sessionID = 'sess-123'): object { + return { + type: 'message.part.delta', + properties: {sessionID, delta: text, field: 'text'}, + } +} + +/** `session.next.text.delta` with plain-string delta */ +function nextTextDeltaStringEvent(text: string, sessionID = 'sess-123'): object { + return { + type: 'session.next.text.delta', + properties: {sessionID, delta: text}, + } +} + +/** `session.next.text.delta` with object delta {type:'text', text:string} */ +function nextTextDeltaObjectEvent(text: string, sessionID = 'sess-123'): object { + return { + type: 'session.next.text.delta', + properties: {sessionID, delta: {type: 'text', text}}, + } +} + +/** `session.next.tool.called` */ +function toolCalledEvent(callID: string, tool: string, input: object, sessionID = 'sess-123'): object { + return { + type: 'session.next.tool.called', + properties: {sessionID, callID, tool, input}, + } +} + +/** `session.next.tool.success` */ +function toolSuccessEvent(callID: string, structured: object | null = null, sessionID = 'sess-123'): object { + return { + type: 'session.next.tool.success', + properties: { + sessionID, + callID, + ...(structured === null ? {} : {structured}), + }, + } +} + +/** `session.idle` event for a given session. */ +function sessionIdleEvent(sessionID: string): object { + return {type: 'session.idle', properties: {sessionID}} +} + +/** `session.error` event for a given session. */ +function sessionErrorEvent(sessionID: string, error = 'LLM error'): object { + return {type: 'session.error', properties: {sessionID, error}} +} + +/** + * Build a minimal `OpenCodeServerHandle` test double. + * All SDK methods are vi.fn() by default; callers override what they need. + */ +function makeHandle( + overrides: { + readonly sessionCreate?: () => Promise + readonly promptAsync?: (args: unknown) => Promise + readonly subscribe?: (args: unknown) => Promise + } = {}, +): OpenCodeServerHandle { + const sessionCreate = overrides.sessionCreate ?? (async () => sessionCreateOk()) + const promptAsync = overrides.promptAsync ?? (async () => promptAsyncOk()) + const subscribe = overrides.subscribe ?? (async () => subscribeOk([sessionIdleEvent('sess-123')])) + + const client = { + session: { + create: vi.fn().mockImplementation(sessionCreate), + promptAsync: vi.fn().mockImplementation(promptAsync), + }, + event: { + subscribe: vi.fn().mockImplementation(subscribe), + }, + } + + return { + client, + server: {url: 'http://workspace:9200', close: vi.fn()}, + shutdown: vi.fn(), + } as unknown as OpenCodeServerHandle +} + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +const BASE_PARAMS = { + directory: '/workspace/repo', + promptText: 'Fix the bug please', +} + +function buildParams( + handle: OpenCodeServerHandle, + overrides: Partial = {}, +): Parameters[0] { + return { + handle, + directory: overrides.directory ?? BASE_PARAMS.directory, + promptText: overrides.promptText ?? BASE_PARAMS.promptText, + sink: makeSink(), + signal: new AbortController().signal, + logger: makeLogger(), + } +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +describe('runOpenCodeCore', () => { + describe('happy path — text deltas + session.idle', () => { + it('resolves without throwing when session.idle is received', async () => { + // #given + const handle = makeHandle() + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).resolves.toBeUndefined() + }) + + it('appends text from message.part.delta (object delta)', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([partDeltaObjectEvent('Hello'), partDeltaObjectEvent(' world'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toEqual(['Hello', ' world']) + expect(sink.buffered()).toBe('Hello world') + }) + + it('appends text from message.part.delta (plain string delta, field=text)', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([partDeltaStringEvent('Hi'), partDeltaStringEvent(' there'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toEqual(['Hi', ' there']) + }) + + it('appends text from session.next.text.delta (plain string)', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + nextTextDeltaStringEvent('Alpha'), + nextTextDeltaStringEvent(' Beta'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toEqual(['Alpha', ' Beta']) + }) + + it('appends text from session.next.text.delta (object delta)', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => subscribeOk([nextTextDeltaObjectEvent('Gamma'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toEqual(['Gamma']) + }) + + it('ignores message.part.delta from other sessions', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([partDeltaObjectEvent('ignored', 'other-session'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toHaveLength(0) + }) + + it('ignores session.next.text.delta from other sessions', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([nextTextDeltaStringEvent('ignored', 'other-session'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toHaveLength(0) + }) + + it('skips session.idle from a different session', async () => { + // #given + const sink = makeSink() + const events = [ + {type: 'session.idle', properties: {sessionID: 'other-session'}}, + partDeltaObjectEvent('real text'), + sessionIdleEvent('sess-123'), + ] + const handle = makeHandle({subscribe: async () => subscribeOk(events)}) + const params = {...buildParams(handle), sink} + + // #when + const p = runOpenCodeCore(params).then(() => { + // resolvedEarly check — should have appended before idle resolved + }) + await p + + // #then — resolved only after receiving the matching session.idle + expect(sink._appended).toContain('real text') + }) + }) + + describe('tool call progress (session.next.tool.called + session.next.tool.success)', () => { + it('appends a progress line for a bash tool using input.command as title', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-1', 'bash', {command: 'pnpm test'}), + toolSuccessEvent('call-1'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + const combined = sink.buffered() + expect(combined).toContain('pnpm test') + expect(combined).toContain('bash') + }) + + it('uses input.cmd as fallback for bash when command is absent', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-1', 'bash', {cmd: 'ls -la'}), + toolSuccessEvent('call-1'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink.buffered()).toContain('ls -la') + }) + + it('uses structured.title when present (wins over input.command)', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-1', 'bash', {command: 'some command'}), + toolSuccessEvent('call-1', {title: 'Structured Title'}), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink.buffered()).toContain('Structured Title') + // Should NOT fall through to the raw command + expect(sink.buffered()).not.toContain('some command') + }) + + it('uses tool name as title for non-bash tools', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-1', 'read_file', {path: '/foo/bar.ts'}), + toolSuccessEvent('call-1'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink.buffered()).toContain('read_file') + }) + + it('uses input.title when present for non-bash tools', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-1', 'edit_file', {title: 'Fix the handler', path: '/x.ts'}), + toolSuccessEvent('call-1'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink.buffered()).toContain('Fix the handler') + }) + + it('ignores tool events from other sessions', async () => { + // #given + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => + subscribeOk([ + toolCalledEvent('call-x', 'bash', {command: 'rm -rf /'}, 'other-session'), + toolSuccessEvent('call-x', null, 'other-session'), + sessionIdleEvent('sess-123'), + ]), + }) + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then — no progress line appended + expect(sink._appended).toHaveLength(0) + }) + }) + + describe('header + directory threading', () => { + it('threads directory to promptAsync query', async () => { + // #given + const handle = makeHandle() + const params = buildParams(handle, {directory: '/repos/myrepo'}) + + // #when + await runOpenCodeCore(params) + + // #then — promptAsync must receive directory in query + const {session} = handle.client as unknown as {session: {promptAsync: ReturnType}} + const callArgs = (session.promptAsync.mock.calls[0] as [{query?: {directory?: string}}])[0] + expect(callArgs.query?.directory).toBe('/repos/myrepo') + }) + + it('threads directory to event.subscribe query', async () => { + // #given + const handle = makeHandle() + const params = buildParams(handle, {directory: '/repos/myrepo'}) + + // #when + await runOpenCodeCore(params) + + // #then — subscribe must receive directory in query + const {event} = handle.client as unknown as {event: {subscribe: ReturnType}} + const callArgs = (event.subscribe.mock.calls[0] as [{query?: {directory?: string}}])[0] + expect(callArgs.query?.directory).toBe('/repos/myrepo') + }) + }) + + describe('error path — server unreachable', () => { + it('throws RunCoreError with kind "unreachable" when session.create throws', async () => { + // #given + const handle = makeHandle({ + sessionCreate: async () => Promise.reject(new TypeError('fetch failed')), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toThrow(RunCoreError) + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'unreachable'}) + }) + + it('throws RunCoreError with kind "unreachable" when session.create returns an error', async () => { + // #given + const handle = makeHandle({ + sessionCreate: async () => Promise.resolve({data: null, error: {message: 'ECONNREFUSED'}}), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'unreachable'}) + }) + + it('throws RunCoreError with kind "unreachable" when promptAsync throws', async () => { + // #given + const handle = makeHandle({ + promptAsync: async () => Promise.reject(new TypeError('fetch failed')), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'unreachable'}) + }) + }) + + describe('error path — proxy 401 (auth error)', () => { + it('throws RunCoreError with kind "auth" when session.create returns 401 error', async () => { + // #given + const handle = makeHandle({ + sessionCreate: async () => Promise.resolve({data: null, error: {status: 401, message: '401 Unauthorized'}}), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'auth'}) + }) + + it('throws RunCoreError with kind "auth" when promptAsync returns 401 error', async () => { + // #given + const handle = makeHandle({ + promptAsync: async () => Promise.resolve({data: null, error: {status: 401, message: '401 Unauthorized'}}), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'auth'}) + }) + + it('throws RunCoreError with kind "auth" on 403 forbidden response', async () => { + // #given — 403 Forbidden with numeric status (after tightening isAuthError to numeric-only) + const handle = makeHandle({ + sessionCreate: async () => Promise.resolve({data: null, error: {status: 403, message: 'Forbidden'}}), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'auth'}) + }) + }) + + describe('error path — session.error event', () => { + it('throws RunCoreError with kind "session-error" on session.error event', async () => { + // #given + const handle = makeHandle({ + subscribe: async () => subscribeOk([sessionErrorEvent('sess-123', 'LLM quota exceeded')]), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toMatchObject({kind: 'session-error'}) + }) + + it('thrown RunCoreError is an instance of RunCoreError', async () => { + // #given + const handle = makeHandle({ + subscribe: async () => subscribeOk([sessionErrorEvent('sess-123')]), + }) + const params = buildParams(handle) + + // #when / #then + await expect(runOpenCodeCore(params)).rejects.toBeInstanceOf(RunCoreError) + }) + }) + + describe('session.idle completion', () => { + it('resolves after the matching session.idle event', async () => { + // #given + const handle = makeHandle({ + subscribe: async () => subscribeOk([partDeltaObjectEvent('Done!'), sessionIdleEvent('sess-123')]), + }) + const sink = makeSink() + const params = {...buildParams(handle), sink} + + // #when + await runOpenCodeCore(params) + + // #then + expect(sink._appended).toContain('Done!') + }) + }) + + describe('abort signal', () => { + it('throws RunCoreError with kind "timeout" when signal is already aborted', async () => { + // #given — signal pre-aborted simulates an expired AbortSignal.timeout() + const controller = new AbortController() + controller.abort() + + const sink = makeSink() + const handle = makeHandle({ + subscribe: async () => subscribeOk([partDeltaObjectEvent('should not appear'), sessionIdleEvent('sess-123')]), + }) + const params = {...buildParams(handle), sink, signal: controller.signal} + + // #when — aborted signal → timeout kind thrown before any events processed + await expect(runOpenCodeCore(params)).rejects.toThrow(RunCoreError) + + // #then — no content was appended + expect(sink._appended).toHaveLength(0) + }) + }) + + describe('isAuthError classification', () => { + it('classifies numeric status 401 as auth error', async () => { + // #given — session.create returns an error with status 401 + const handle = makeHandle({ + sessionCreate: async () => ({ + data: null, + error: {status: 401, message: 'Unauthorized'}, + }), + }) + const params = buildParams(handle) + + // #when / #then — RunCoreError with kind 'auth' + const err = await runOpenCodeCore(params).catch((error: unknown) => error) + expect(err).toBeInstanceOf(RunCoreError) + expect((err as RunCoreError).kind).toBe('auth') + }) + + it('classifies numeric status 403 as auth error', async () => { + // #given + const handle = makeHandle({ + sessionCreate: async () => ({ + data: null, + error: {status: 403, message: 'Forbidden'}, + }), + }) + const params = buildParams(handle) + + // #when / #then + const err = await runOpenCodeCore(params).catch((error: unknown) => error) + expect(err).toBeInstanceOf(RunCoreError) + expect((err as RunCoreError).kind).toBe('auth') + }) + + it('does NOT classify as auth when message contains "401" but status is not 401/403', async () => { + // #given — error message happens to contain "401" but is not a real auth failure + const handle = makeHandle({ + sessionCreate: async () => ({ + data: null, + error: {status: 500, message: 'Internal error: connection pool 401-queue exhausted'}, + }), + }) + const params = buildParams(handle) + + // #when / #then — should be 'unreachable', NOT 'auth' + const err = await runOpenCodeCore(params).catch((error: unknown) => error) + expect(err).toBeInstanceOf(RunCoreError) + expect((err as RunCoreError).kind).not.toBe('auth') + expect((err as RunCoreError).kind).toBe('unreachable') + }) + + it('does NOT classify as auth when message contains "unauthorized" but has no numeric auth status', async () => { + // #given + const handle = makeHandle({ + sessionCreate: async () => ({ + data: null, + error: {message: 'The token is unauthorized for this operation', status: 500}, + }), + }) + const params = buildParams(handle) + + // #when / #then + const err = await runOpenCodeCore(params).catch((error: unknown) => error) + expect(err).toBeInstanceOf(RunCoreError) + expect((err as RunCoreError).kind).not.toBe('auth') + }) + + it('does NOT classify as auth when error has no status field at all', async () => { + // #given — error object with no status (pure network failure) + const handle = makeHandle({ + sessionCreate: async () => ({ + data: null, + error: {message: 'ECONNREFUSED'}, + }), + }) + const params = buildParams(handle) + + // #when / #then — falls through to 'unreachable' + const err = await runOpenCodeCore(params).catch((error: unknown) => error) + expect(err).toBeInstanceOf(RunCoreError) + expect((err as RunCoreError).kind).toBe('unreachable') + }) + }) +}) diff --git a/packages/gateway/src/execute/run-core.ts b/packages/gateway/src/execute/run-core.ts new file mode 100644 index 00000000..e0fa4923 --- /dev/null +++ b/packages/gateway/src/execute/run-core.ts @@ -0,0 +1,345 @@ +/** + * Execute+stream core for the gateway. + * + * Responsibility boundary: + * - Owns: session creation, prompt send, event subscription, event → sink + * routing, resolution on `session.idle`. + * - Does NOT own: lock, run-state lifecycle, heartbeat, mention routing, + * authorization gate. Those live in `run.ts`. + * + * Error surface: throws `RunCoreError` on attach/connect failure, proxy 401, + * session error, prompt rejection, run timeout, or premature stream close. + * `run.ts` maps `kind` to coarse Discord replies (no internal detail leaked). + * + * Critical constraint (SSE-routing memory): BOTH `promptAsync` AND + * `event.subscribe` must carry the workspace repo `directory` in their query + * params. Subscribing without `directory` splits the SSE listener from the + * publisher — tool events never arrive. + * + * Event-stream semantics mirror `src/features/agent/streaming.ts` exactly. + * Cannot import from that module (backwards-dependency ban); accessors are + * replicated locally. + */ + +import type {OpenCodeServerHandle} from '@fro-bot/runtime' +import type {GatewayLogger} from '../discord/client.js' +import type {DiscordStreamSink} from '../discord/streaming.js' + +// --------------------------------------------------------------------------- +// Typed error +// --------------------------------------------------------------------------- + +/** Discriminant for `RunCoreError` — `run.ts` maps these to coarse Discord replies. */ +export type RunCoreErrorKind = + | 'unreachable' // network error / server not reachable + | 'auth' // proxy rejected the bearer token (401) + | 'session-error' // OpenCode `session.error` event received + | 'prompt-error' // `promptAsync` returned an error + | 'timeout' // run exceeded the configured wall-clock timeout + | 'stream-ended' // event stream closed before session.idle was received + +/** + * Error thrown by `runOpenCodeCore` on any failure path. + * + * The `message` field is for internal logging only — never post it to Discord. + * `run.ts` maps `kind` to coarse user-visible replies. + */ +export class RunCoreError extends Error { + readonly kind: RunCoreErrorKind + + constructor(kind: RunCoreErrorKind, internalMessage: string) { + super(internalMessage) + this.name = 'RunCoreError' + this.kind = kind + } +} + +// --------------------------------------------------------------------------- +// Params +// --------------------------------------------------------------------------- + +/** Parameters for the execute+stream core. */ +export interface RunCoreParams { + /** Handle to the remote OpenCode server (attach result from `opencode-attach.ts`). */ + readonly handle: OpenCodeServerHandle + /** + * Absolute path to the workspace repo checkout. + * Threaded to BOTH `promptAsync` and `event.subscribe` — required for SSE + * routing to deliver tool events. + */ + readonly directory: string + /** + * Pre-built prompt text (from `buildDiscordPrompt`). + * Must be non-empty — callers are expected to validate before calling. + */ + readonly promptText: string + /** + * Streaming sink that receives text deltas. + * Caller is responsible for calling `sink.flush()` after `runOpenCodeCore` + * resolves (`run.ts` does this after transitioning to COMPLETED). + */ + readonly sink: DiscordStreamSink + /** Abort signal — aborts event iteration when signalled. */ + readonly signal: AbortSignal + /** Injected logger. Internal details only — never leak session internals to Discord. */ + readonly logger: GatewayLogger +} + +// --------------------------------------------------------------------------- +// Local typed accessor helpers (mirrors streaming.ts — no import allowed) +// --------------------------------------------------------------------------- + +function getStringProperty(value: unknown, property: string): string | null { + if (value == null || typeof value !== 'object') return null + const descriptor = Object.getOwnPropertyDescriptor(value, property) + return typeof descriptor?.value === 'string' ? descriptor.value : null +} + +function getObjectProperty(value: unknown, property: string): unknown { + if (value == null || typeof value !== 'object') return null + return Object.getOwnPropertyDescriptor(value, property)?.value ?? null +} + +function getSessionID(value: unknown): string | null { + return getStringProperty(value, 'sessionID') +} + +/** + * Extract the event kind from a raw server event. + * Mirrors `getEventKind` in streaming.ts: + * - Non-sync events: return `event.type` as-is. + * - Sync events: return `event.name` with trailing `.N` index stripped. + */ +function getEventKind(event: unknown): string | null { + const eventType = getStringProperty(event, 'type') + if (eventType !== 'sync') return eventType + return getStringProperty(event, 'name')?.replace(/\.\d+$/, '') ?? eventType +} + +/** + * Extract the canonical payload from a raw server event. + * Mirrors `getEventPayload` in streaming.ts: prefers `properties`, falls back + * to `data` (sync events carry their payload in `data`). + */ +function getEventPayload(event: unknown): unknown { + return getObjectProperty(event, 'properties') ?? getObjectProperty(event, 'data') +} + +/** + * Extract the session ID from a raw server event. + * Mirrors `getEventSessionID` in streaming.ts: checks `properties.sessionID` + * then `data.sessionID`. + */ +function getEventSessionID(event: unknown): string | null { + return getSessionID(getObjectProperty(event, 'properties')) ?? getSessionID(getObjectProperty(event, 'data')) +} + +// --------------------------------------------------------------------------- +// Tool-call correlation table +// --------------------------------------------------------------------------- + +interface ToolCallInfo { + readonly tool: string + readonly input: unknown +} + +// --------------------------------------------------------------------------- +// Core +// --------------------------------------------------------------------------- + +/** + * Execute a single OpenCode prompt against a remote server and pipe text + * events to the provided `DiscordStreamSink`. + * + * Flow: + * 1. `session.create()` + * 2. `session.promptAsync({..., query: {directory}})` — blocks until queued + * 3. `event.subscribe({query: {directory}})` — SSE stream (directory REQUIRED) + * 4. Iterate events: + * - `message.part.delta` (this session) → `sink.append(text)` + * - `session.next.text.delta` (this session) → `sink.append(text)` + * - `session.next.tool.called` (this session) → cache call info + * - `session.next.tool.success` (this session) → append progress line to sink + * - `session.idle` for this session → resolve + * - `session.error` for this session → throw `RunCoreError('session-error')` + * 5. Caller calls `sink.flush()` after this resolves. + * + * @throws {RunCoreError} on unreachable server, 401 auth rejection, + * session error, or prompt rejection. + */ +export async function runOpenCodeCore(params: RunCoreParams): Promise { + const {handle, directory, promptText, sink, signal, logger} = params + const {client} = handle + + // ── 1. Create session ────────────────────────────────────────────────────── + let sessionId: string + try { + const sessionResponse = await client.session.create() + if (sessionResponse.error != null) { + const errMsg = String(sessionResponse.error) + if (isAuthError(sessionResponse)) { + logger.error({detail: 'session.create 401'}, 'run-core: workspace proxy rejected bearer token') + throw new RunCoreError('auth', `Session create rejected: ${errMsg}`) + } + throw new RunCoreError('unreachable', `Session create failed: ${errMsg}`) + } + if (sessionResponse.data == null) { + throw new RunCoreError('unreachable', 'Session create returned no data') + } + sessionId = sessionResponse.data.id + logger.info({sessionId}, 'run-core: session created') + } catch (error) { + if (error instanceof RunCoreError) throw error + const message = error instanceof Error ? error.message : String(error) + logger.error({detail: message}, 'run-core: session create threw (server unreachable?)') + throw new RunCoreError('unreachable', `Session create threw: ${message}`) + } + + // ── 2. Send prompt — directory threaded to query ─────────────────────────── + try { + const promptResponse = await client.session.promptAsync({ + path: {id: sessionId}, + body: {parts: [{type: 'text', text: promptText}]}, + query: {directory}, + }) + if (promptResponse.error != null) { + const errMsg = String(promptResponse.error) + if (isAuthError(promptResponse)) { + logger.error({sessionId, detail: 'promptAsync 401'}, 'run-core: workspace proxy rejected bearer token') + throw new RunCoreError('auth', `PromptAsync rejected: ${errMsg}`) + } + logger.error({sessionId, detail: errMsg}, 'run-core: promptAsync returned error') + throw new RunCoreError('prompt-error', `PromptAsync error: ${errMsg}`) + } + logger.info({sessionId, directory}, 'run-core: prompt sent') + } catch (error) { + if (error instanceof RunCoreError) throw error + const message = error instanceof Error ? error.message : String(error) + logger.error({sessionId, detail: message}, 'run-core: promptAsync threw (server unreachable?)') + throw new RunCoreError('unreachable', `PromptAsync threw: ${message}`) + } + + // ── 3. Subscribe to events — directory threaded to query (SSE-routing) ───── + let eventStream: AsyncIterable + try { + const eventsResult = await client.event.subscribe({query: {directory}}) + eventStream = eventsResult.stream as AsyncIterable + logger.info({sessionId, directory}, 'run-core: event stream subscribed') + } catch (error) { + const message = error instanceof Error ? error.message : String(error) + logger.error({sessionId, detail: message}, 'run-core: event.subscribe threw') + throw new RunCoreError('unreachable', `Event subscribe threw: ${message}`) + } + + // ── 4. Consume event stream ──────────────────────────────────────────────── + // V2 sync tool lifecycle: correlate called→success by callID. + const pendingToolCalls = new Map() + + for await (const rawEvent of eventStream) { + if (signal.aborted) break + + const eventType = getEventKind(rawEvent) + const eventPayload = getEventPayload(rawEvent) + + if (eventType === 'message.part.delta') { + // New SDK shape: streaming text delta events. + // delta may be {type:'text', text:string} or a plain string when field === 'text'. + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === sessionId) { + const delta = getObjectProperty(eventPayload, 'delta') + const deltaType = getStringProperty(delta, 'type') + const deltaText = getStringProperty(delta, 'text') + if (deltaType === 'text' && deltaText != null) { + sink.append(deltaText) + } else if (typeof delta === 'string' && getStringProperty(eventPayload, 'field') === 'text') { + sink.append(delta) + } + } + } else if (eventType === 'session.next.text.delta') { + // Sync/session.next shape: delta is a plain string or {type:'text', text:string}. + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === sessionId) { + const deltaRaw = getObjectProperty(eventPayload, 'delta') + const deltaText = typeof deltaRaw === 'string' ? deltaRaw : (getStringProperty(deltaRaw, 'text') ?? null) + if (deltaText != null) sink.append(deltaText) + } + } else if (eventType === 'session.next.tool.called') { + // V2 sync tool lifecycle: cache call info for correlation with success event. + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === sessionId) { + const callID = getStringProperty(eventPayload, 'callID') + const tool = getStringProperty(eventPayload, 'tool') + const input = getObjectProperty(eventPayload, 'input') + if (callID != null && tool != null) { + pendingToolCalls.set(callID, {tool, input}) + logger.debug({callID, tool}, 'run-core: tool called') + } + } + } else if (eventType === 'session.next.tool.success') { + // V2 sync tool lifecycle: resolve title and surface progress line to Discord. + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === sessionId) { + const callID = getStringProperty(eventPayload, 'callID') + if (callID !== null) { + const callInfo = pendingToolCalls.get(callID) + if (callInfo !== undefined) { + pendingToolCalls.delete(callID) + const {tool, input} = callInfo + // Title resolution: structured.title → input.title → bash command → tool name. + const structured = getObjectProperty(eventPayload, 'structured') + const title = + getStringProperty(structured, 'title') ?? + getStringProperty(input, 'title') ?? + (tool.toLowerCase() === 'bash' + ? String(getObjectProperty(input, 'command') ?? getObjectProperty(input, 'cmd') ?? tool) + : tool) + logger.debug({callID, tool, title}, 'run-core: tool success') + sink.append(`\n🔧 ${tool}: ${title}\n`) + } + } + } + } else if (eventType === 'session.idle') { + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === sessionId) { + logger.info({sessionId}, 'run-core: session.idle received — stream complete') + return + } + } else if (eventType === 'session.error') { + const eventSessionID = getEventSessionID(rawEvent) + if (eventSessionID === null || eventSessionID === sessionId) { + const errorDetail = getStringProperty(eventPayload, 'error') ?? 'unknown session error' + logger.error({sessionId, detail: errorDetail}, 'run-core: session.error received') + throw new RunCoreError('session-error', `Session error: ${errorDetail}`) + } + } + } + + // Stream exhausted. Distinguish timeout (signal aborted) from premature close. + if (signal.aborted === true) { + logger.warn({sessionId}, 'run-core: stream ended due to timeout signal') + throw new RunCoreError('timeout', 'Run timed out: event stream aborted by timeout signal') + } + + // Stream closed without session.idle and not aborted by us → OpenCode + // may still be working; mark as failed so the run is not silently completed. + logger.error({sessionId}, 'run-core: event stream closed before session.idle') + throw new RunCoreError('stream-ended', 'Event stream closed before session.idle was received') +} + +// --------------------------------------------------------------------------- +// Internal helpers +// --------------------------------------------------------------------------- + +/** Detect a proxy/server 401 response in an SDK response envelope. */ +function isAuthError(response: {readonly error?: unknown}): boolean { + if (response.error == null) return false + const error = response.error + // Rely solely on the numeric status field (SDK wraps HTTP responses as {status, message}). + // String-substring matching on "401"/"unauthorized"/"forbidden" produced false positives + // when non-auth error messages contained those tokens. + if (typeof error === 'object' && error !== null) { + const statusLike = (error as Record).status + if (statusLike === 401 || statusLike === 403) return true + } + return false +} diff --git a/packages/gateway/src/execute/run.test.ts b/packages/gateway/src/execute/run.test.ts new file mode 100644 index 00000000..98a56e65 --- /dev/null +++ b/packages/gateway/src/execute/run.test.ts @@ -0,0 +1,725 @@ +import type {CoordinationConfig, HeartbeatController} from '@fro-bot/runtime' +import type {Message, ThreadChannel} from 'discord.js' +import type {RepoBinding} from '../bindings/types.js' +import type {RunMentionDeps} from './run.js' + +import * as runtimeModule from '@fro-bot/runtime' +import {beforeEach, describe, expect, it, vi} from 'vitest' +import * as streamingModule from '../discord/streaming.js' +import * as attachModule from './opencode-attach.js' +import * as promptModule from './prompt.js' +import * as runCoreModule from './run-core.js' + +// --------------------------------------------------------------------------- +// Mock external collaborators so run.test.ts does not need real AWS/S3/Discord +// --------------------------------------------------------------------------- + +vi.mock('@fro-bot/runtime', () => ({ + acquireLock: vi.fn(), + releaseLock: vi.fn(), + createRun: vi.fn(), + transitionRun: vi.fn(), + createHeartbeatController: vi.fn(), +})) + +vi.mock('./opencode-attach.js', () => ({ + attachOpencode: vi.fn().mockReturnValue({promptAsync: vi.fn(), subscribe: vi.fn()}), +})) + +vi.mock('../discord/streaming.js', () => ({ + createDiscordStreamSink: vi.fn().mockReturnValue({ + append: vi.fn(), + flush: vi.fn().mockResolvedValue({kind: 'sent', charCount: 10}), + buffered: vi.fn().mockReturnValue(''), + }), +})) + +vi.mock('./prompt.js', () => ({ + buildDiscordPrompt: vi.fn().mockReturnValue('Repository: acme/widget\n\ndo the thing'), + EmptyPromptError: class EmptyPromptError extends Error { + constructor() { + super('empty') + this.name = 'EmptyPromptError' + } + }, +})) + +vi.mock('./run-core.js', () => ({ + runOpenCodeCore: vi.fn().mockResolvedValue(undefined), + RunCoreError: class RunCoreError extends Error { + readonly kind: string + constructor(kind: string, message: string) { + super(message) + this.kind = kind + this.name = 'RunCoreError' + } + }, +})) + +// --------------------------------------------------------------------------- +// Typed mocks +// --------------------------------------------------------------------------- + +const mockRuntime = vi.mocked(runtimeModule) +const mockRunOpenCodeCore = vi.mocked(runCoreModule.runOpenCodeCore) +const mockCreateDiscordStreamSink = vi.mocked(streamingModule.createDiscordStreamSink) + +// --------------------------------------------------------------------------- +// Test doubles +// --------------------------------------------------------------------------- + +const CHANNEL_ID = 'ch-test' +const OWNER = 'acme' +const REPO = 'widget' + +function makeBinding(): RepoBinding { + return { + owner: OWNER, + repo: REPO, + channelId: CHANNEL_ID, + channelName: 'widget-dev', + workspacePath: '/workspace/acme/widget', + createdAt: '2026-01-01T00:00:00Z', + createdByDiscordId: 'user-1', + } +} + +function makeThread(): ThreadChannel & {send: ReturnType} { + const sendFn = vi.fn(async (opts: unknown) => opts) + return { + id: 'thread-99', + send: sendFn, + } as unknown as ThreadChannel & {send: ReturnType} +} + +function makeMessage(thread?: ReturnType): Message & { + startThread: ReturnType + reply: ReturnType + _thread: ReturnType +} { + const t = thread ?? makeThread() + return { + channel: {id: CHANNEL_ID, isThread: () => false}, + author: {id: 'user-111', bot: false}, + guild: null, + startThread: vi.fn().mockResolvedValue(t), + reply: vi.fn().mockResolvedValue(undefined), + content: 'do the thing', + _thread: t, + } as unknown as Message & { + startThread: ReturnType + reply: ReturnType + _thread: ReturnType + } +} + +function makeDefaultConcurrency() { + return { + tryAcquire: vi.fn().mockReturnValue('ok'), + release: vi.fn(), + activeCount: vi.fn().mockReturnValue(1), + max: 3, + } +} + +function makeDeps(overrides: Partial = {}): RunMentionDeps { + return { + coordinationConfig: {} as CoordinationConfig, + identity: 'discord-gateway', + concurrency: overrides.concurrency ?? makeDefaultConcurrency(), + attachUrl: 'http://workspace:9200', + attachToken: 'secret-bearer-token', + runTimeoutMs: overrides.runTimeoutMs ?? 600000, + botUserId: overrides.botUserId ?? 'bot-123', + logger: overrides.logger ?? {debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn()}, + ...overrides, + } +} +/** Set up default happy-path returns for all runtime mocks. */ +function setupHappyPath(heartbeatOverrides?: {start?: ReturnType; stop?: ReturnType}) { + mockRuntime.acquireLock.mockResolvedValue({ + success: true as const, + data: {acquired: true as const, etag: 'lock-etag-v1', holder: null}, + }) + mockRuntime.releaseLock.mockResolvedValue({success: true as const, data: undefined}) + mockRuntime.createRun.mockResolvedValue({success: true as const, data: {etag: 'run-etag-v1'}}) + mockRuntime.transitionRun.mockResolvedValue({ + success: true as const, + data: {etag: 'run-etag-v2', state: {} as unknown as import('@fro-bot/runtime').RunState}, + }) + mockRuntime.createHeartbeatController.mockReturnValue({ + start: (heartbeatOverrides?.start ?? vi.fn()) as unknown as HeartbeatController['start'], + stop: (heartbeatOverrides?.stop ?? + vi.fn().mockResolvedValue({ + success: true, + data: { + runEtag: 'run-etag-after-heartbeat', + lockEtag: 'lock-etag-after-heartbeat', + runState: {} as unknown as import('@fro-bot/runtime').RunState, + }, + })) as unknown as HeartbeatController['stop'], + isRunning: false, + }) + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: vi.fn().mockResolvedValue({kind: 'sent' as const, charCount: 10}), + buffered: vi.fn().mockReturnValue(''), + }) + mockRunOpenCodeCore.mockResolvedValue(undefined) + vi.mocked(attachModule.attachOpencode).mockReturnValue({ + server: {url: 'http://workspace:9200'}, + session: { + create: vi.fn(), + prompt: vi.fn(), + }, + } as unknown as ReturnType) + vi.mocked(promptModule.buildDiscordPrompt).mockReturnValue('Repository: acme/widget\n\ndo the thing') +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +describe('runMention', () => { + beforeEach(() => { + vi.clearAllMocks() + }) + + // ── Global concurrency cap ─────────────────────────────────────────────── + + describe('concurrency cap', () => { + it('replies "at capacity" and returns early when global cap is reached', async () => { + // #given + const {runMention} = await import('./run.js') + const deps = makeDeps({ + concurrency: { + tryAcquire: vi.fn().mockReturnValue('cap'), + release: vi.fn(), + activeCount: vi.fn().mockReturnValue(3), + max: 3, + }, + }) + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(message.reply).toHaveBeenCalledOnce() + const call = (message.reply as ReturnType).mock.calls[0]?.[0] as { + content: string + allowedMentions: unknown + } + expect(call.content).toContain('capacity') + expect(call.allowedMentions).toEqual({parse: []}) + // No thread created + expect(message.startThread).not.toHaveBeenCalled() + }) + + it('does NOT release concurrency slot when cap was returned (slot was never acquired)', async () => { + // #given + const {runMention} = await import('./run.js') + const releaseFn = vi.fn() + const deps = makeDeps({ + concurrency: { + tryAcquire: vi.fn().mockReturnValue('cap'), + release: releaseFn, + activeCount: vi.fn().mockReturnValue(3), + max: 3, + }, + }) + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — slot was NOT acquired; release is not called + expect(releaseFn).not.toHaveBeenCalled() + }) + }) + + // ── Per-channel in-flight guard ───────────────────────────────────────── + + describe('per-channel in-flight guard', () => { + it('replies "busy" when channel already has an active run', async () => { + // #given + const {runMention} = await import('./run.js') + const deps = makeDeps({ + concurrency: { + tryAcquire: vi.fn().mockReturnValue('busy'), + release: vi.fn(), + activeCount: vi.fn().mockReturnValue(1), + max: 3, + }, + }) + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(message.reply).toHaveBeenCalledOnce() + const call = (message.reply as ReturnType).mock.calls[0]?.[0] as { + content: string + allowedMentions: unknown + } + expect(call.content).toContain('already a task') + expect(call.allowedMentions).toEqual({parse: []}) + expect(message.startThread).not.toHaveBeenCalled() + }) + }) + + // ── Lock acquisition ──────────────────────────────────────────────────── + + describe('lock acquisition', () => { + it('replies to thread "waiting" when lock is held by another — terminal, no queue', async () => { + // #given + const {runMention} = await import('./run.js') + const thread = makeThread() + const message = makeMessage(thread) + const releaseFn = vi.fn() + const deps = makeDeps({ + concurrency: { + tryAcquire: vi.fn().mockReturnValue('ok'), + release: releaseFn, + activeCount: vi.fn().mockReturnValue(1), + max: 3, + }, + }) + + mockRuntime.acquireLock.mockResolvedValue({ + success: true as const, + data: {acquired: false as const, etag: null, holder: {holder_id: 'other-gateway', etag: 'abc'} as unknown}, + } as Awaited>) + + // #when + await runMention(message, makeBinding(), deps) + + // #then — "waiting" sent to thread (coarse message, no holder ID) + expect(thread.send).toHaveBeenCalledOnce() + const call = thread.send.mock.calls[0]?.[0] as {content: string; allowedMentions: unknown} + expect(call.allowedMentions).toEqual({parse: []}) + expect(call.content).toContain('in progress') + // MUST NOT leak holder ID + expect(call.content).not.toContain('other-gateway') + // Concurrency slot released in finally + expect(releaseFn).toHaveBeenCalledWith(CHANNEL_ID) + }) + + it('replies coarse error to thread when acquireLock itself errors (no S3 detail)', async () => { + // #given + const {runMention} = await import('./run.js') + const thread = makeThread() + const message = makeMessage(thread) + + mockRuntime.acquireLock.mockResolvedValue({ + success: false as const, + error: new Error('S3 timeout — internal'), + }) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — coarse reply, no S3 error detail + expect(thread.send).toHaveBeenCalledOnce() + const call = thread.send.mock.calls[0]?.[0] as {content: string; allowedMentions: unknown} + expect(call.allowedMentions).toEqual({parse: []}) + expect(call.content).not.toContain('S3') + expect(call.content).not.toContain('internal') + }) + }) + + // ── Run-state lifecycle ───────────────────────────────────────────────── + + describe('authorized happy path — lifecycle', () => { + it('transitions PENDING → ACKNOWLEDGED → EXECUTING → COMPLETED and flushes sink', async () => { + // #given + const {runMention} = await import('./run.js') + setupHappyPath() + + const flushMock = vi.fn().mockResolvedValue(undefined) + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: flushMock, + buffered: vi.fn().mockReturnValue(''), + }) + + const deps = makeDeps() + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — run-state transitions in order + expect(mockRuntime.createRun).toHaveBeenCalledOnce() + const transitionPhases = mockRuntime.transitionRun.mock.calls.map((c: unknown[]) => c[4] as string) + expect(transitionPhases).toContain('ACKNOWLEDGED') + expect(transitionPhases).toContain('EXECUTING') + expect(transitionPhases).toContain('COMPLETED') + + // #and — execution happened + expect(mockRunOpenCodeCore).toHaveBeenCalledOnce() + + // #and — sink flushed + expect(flushMock).toHaveBeenCalledOnce() + + // #and — lock released + expect(mockRuntime.releaseLock).toHaveBeenCalledOnce() + + // #and — concurrency slot released + const releaseFn = deps.concurrency.release as ReturnType + expect(releaseFn).toHaveBeenCalledWith(CHANNEL_ID) + }) + + it('starts and stops heartbeat around execution', async () => { + // #given + const {runMention} = await import('./run.js') + const startMock = vi.fn() + const stopMock = vi.fn().mockResolvedValue({ + success: true as const, + data: {runEtag: 'r-etag', lockEtag: 'l-etag', runState: {}}, + }) + setupHappyPath({start: startMock, stop: stopMock}) + + const deps = makeDeps() + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(startMock).toHaveBeenCalledOnce() + expect(stopMock).toHaveBeenCalledOnce() + }) + }) + + // ── Error paths ───────────────────────────────────────────────────────── + + describe('run-core error handling', () => { + it('maps RunCoreError(unreachable) to "workspace not reachable" and transitions to FAILED', async () => { + // #given + const {runMention} = await import('./run.js') + const {RunCoreError} = runCoreModule + setupHappyPath() + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('unreachable', 'connect ECONNREFUSED')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — coarse "workspace not reachable" message, no internal detail + expect(thread.send).toHaveBeenCalled() + const lastCall = thread.send.mock.calls.at(-1)?.[0] as { + content: string + allowedMentions: unknown + } + expect(lastCall.allowedMentions).toEqual({parse: []}) + expect(lastCall.content).toContain('not reachable') + expect(lastCall.content).not.toContain('ECONNREFUSED') + + // #and — FAILED transition + const transitionPhases = mockRuntime.transitionRun.mock.calls.map((c: unknown[]) => c[4] as string) + expect(transitionPhases).toContain('FAILED') + + // #and — lock and concurrency released + expect(mockRuntime.releaseLock).toHaveBeenCalledOnce() + const releaseFn = deps.concurrency.release as ReturnType + expect(releaseFn).toHaveBeenCalledWith(CHANNEL_ID) + }) + + it('maps RunCoreError(auth) to "workspace not reachable" — not to generic task failed', async () => { + // #given + const {runMention} = await import('./run.js') + const {RunCoreError} = runCoreModule + setupHappyPath() + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('auth', '401 Unauthorized')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — "not reachable" (same message as unreachable), no "401" leaked + const lastCall = thread.send.mock.calls.at(-1)?.[0] as { + content: string + allowedMentions: unknown + } + expect(lastCall.content).toContain('not reachable') + expect(lastCall.content).not.toContain('401') + expect(lastCall.content).not.toContain('Unauthorized') + + // #and — FAILED transition + const transitionPhases = mockRuntime.transitionRun.mock.calls.map((c: unknown[]) => c[4] as string) + expect(transitionPhases).toContain('FAILED') + }) + + it('maps generic Error to "task failed" (not "not reachable")', async () => { + // #given + const {runMention} = await import('./run.js') + setupHappyPath() + mockRunOpenCodeCore.mockRejectedValue(new Error('something unknown happened')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — generic error message, no internal detail + const calls = thread.send.mock.calls + const lastCallArg = calls.at(-1)?.[0] as {content?: string; allowedMentions?: unknown} | undefined + expect(lastCallArg?.content).toContain('failed') + expect(lastCallArg?.content).not.toContain('unknown happened') + // NOT "not reachable" — only for RunCoreError(unreachable|auth) + expect(lastCallArg?.content).not.toContain('not reachable') + }) + + it('releases lock and concurrency slot in finally even when run-core throws', async () => { + // #given + const {runMention} = await import('./run.js') + setupHappyPath() + mockRunOpenCodeCore.mockRejectedValue(new Error('boom')) + + const deps = makeDeps() + const message = makeMessage() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(mockRuntime.releaseLock).toHaveBeenCalledOnce() + const releaseFn = deps.concurrency.release as ReturnType + expect(releaseFn).toHaveBeenCalledWith(CHANNEL_ID) + }) + + it('flushes partial sink output on timeout path before posting error', async () => { + // #given + const {runMention} = await import('./run.js') + const {RunCoreError} = runCoreModule + setupHappyPath() + const flushMock = vi.fn().mockResolvedValue({kind: 'sent' as const, charCount: 5}) + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: flushMock, + buffered: vi.fn().mockReturnValue('partial output'), + }) + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('timeout', 'timed out')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — flush called on error path + expect(flushMock).toHaveBeenCalledOnce() + // #and — error message sent after flush + const lastCall = thread.send.mock.calls.at(-1)?.[0] as {content: string} + expect(lastCall.content).toContain('timed out') + }) + + it('flushes partial sink output on stream-ended path before posting error', async () => { + // #given + const {runMention} = await import('./run.js') + const {RunCoreError} = runCoreModule + setupHappyPath() + const flushMock = vi.fn().mockResolvedValue({kind: 'sent' as const, charCount: 5}) + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: flushMock, + buffered: vi.fn().mockReturnValue('partial'), + }) + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('stream-ended', 'stream closed')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(flushMock).toHaveBeenCalledOnce() + }) + + it('flushes partial sink output on session-error path before posting error', async () => { + // #given + const {runMention} = await import('./run.js') + const {RunCoreError} = runCoreModule + setupHappyPath() + const flushMock = vi.fn().mockResolvedValue({kind: 'sent' as const, charCount: 5}) + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: flushMock, + buffered: vi.fn().mockReturnValue('partial'), + }) + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('session-error', 'LLM quota exceeded')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then + expect(flushMock).toHaveBeenCalledOnce() + const lastCall = thread.send.mock.calls.at(-1)?.[0] as {content: string} + expect(lastCall.content).toContain('failed') + }) + + it('does not flush when sink was never created (pre-EXECUTING error)', async () => { + // #given — transitionRun(EXECUTING) throws before sink is created + const {runMention} = await import('./run.js') + const flushMock = vi.fn() + mockCreateDiscordStreamSink.mockReturnValue({ + append: vi.fn(), + flush: flushMock, + buffered: vi.fn().mockReturnValue(''), + }) + setupHappyPath() + // Make EXECUTING transition fail — error caught before sink is created + mockRuntime.transitionRun + .mockResolvedValueOnce({ + success: true as const, + data: {etag: 'ack-etag', state: {} as unknown as import('@fro-bot/runtime').RunState}, + }) // ACKNOWLEDGED + .mockRejectedValueOnce(new Error('EXECUTING transition threw')) // EXECUTING + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — flush NOT called because sink was never initialized + expect(flushMock).not.toHaveBeenCalled() + }) + }) + + // ── Security invariants ────────────────────────────────────────────────── + + describe('security invariants', () => { + it('does not post raw exception message to Discord on any error path', async () => { + // #given + const {runMention} = await import('./run.js') + setupHappyPath() + const internalDetail = 'secret-internal-database-key-xyz' + mockRunOpenCodeCore.mockRejectedValue(new Error(internalDetail)) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — the internal detail is NOT in any Discord send + for (const call of thread.send.mock.calls) { + const arg = call[0] as {content?: string} + expect(arg.content ?? '').not.toContain(internalDetail) + } + for (const call of (message.reply as ReturnType).mock.calls) { + const arg = call[0] as {content?: string} + expect(arg.content ?? '').not.toContain(internalDetail) + } + }) + + it('uses allowedMentions: {parse: []} on all thread sends in error path', async () => { + // #given + const {runMention} = await import('./run.js') + setupHappyPath() + mockRunOpenCodeCore.mockRejectedValue(new Error('boom')) + + const thread = makeThread() + const message = makeMessage(thread) + const deps = makeDeps() + + // #when + await runMention(message, makeBinding(), deps) + + // #then — every thread send has allowedMentions: {parse: []} + for (const call of thread.send.mock.calls) { + const arg = call[0] as {allowedMentions?: unknown} + expect(arg.allowedMentions).toEqual({parse: []}) + } + }) + }) + + // ── Heartbeat stop failure ─────────────────────────────────────────────── + + describe('heartbeat stop failure', () => { + it('logs, proceeds with last-known etags, transitions to terminal state, releases lock — does not throw', async () => { + // #given + const {runMention} = await import('./run.js') + const stopError = new Error('heartbeat stop S3 error') + const stopMock = vi.fn().mockResolvedValue({success: false, error: stopError}) + setupHappyPath({stop: stopMock}) + // run-core throws so we reach the error catch with a stopped heartbeat + const {RunCoreError} = runCoreModule + mockRunOpenCodeCore.mockRejectedValue(new RunCoreError('timeout', 'timed out')) + + const logger = {debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn()} + const deps = makeDeps({logger}) + const thread = makeThread() + const message = makeMessage(thread) + + // #when — must not throw + await expect(runMention(message, makeBinding(), deps)).resolves.toBeUndefined() + + // #then — warning logged for heartbeat stop failure + expect(logger.warn).toHaveBeenCalledWith( + expect.objectContaining({err: stopError.message}), + expect.stringContaining('heartbeat stop failed'), + ) + + // #and — terminal FAILED transition still attempted + const transitionPhases = mockRuntime.transitionRun.mock.calls.map((c: unknown[]) => c[4] as string) + expect(transitionPhases).toContain('FAILED') + + // #and — lock release still attempted in finally + expect(mockRuntime.releaseLock).toHaveBeenCalledOnce() + + // #and — concurrency slot released + const releaseFn = deps.concurrency.release as ReturnType + expect(releaseFn).toHaveBeenCalledWith(CHANNEL_ID) + }) + + it('on success path: heartbeat.stop() failure logs warning and continues to COMPLETED', async () => { + // #given + const {runMention} = await import('./run.js') + const stopError = new Error('stop S3 timeout') + const stopMock = vi.fn().mockResolvedValue({success: false, error: stopError}) + setupHappyPath({stop: stopMock}) + + const logger = {debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn()} + const deps = makeDeps({logger}) + const message = makeMessage() + + // #when + await expect(runMention(message, makeBinding(), deps)).resolves.toBeUndefined() + + // #then — warning logged + expect(logger.warn).toHaveBeenCalledWith( + expect.objectContaining({err: stopError.message}), + expect.stringContaining('heartbeat stop failed'), + ) + + // #and — COMPLETED transition still attempted + const transitionPhases = mockRuntime.transitionRun.mock.calls.map((c: unknown[]) => c[4] as string) + expect(transitionPhases).toContain('COMPLETED') + + // #and — lock released + expect(mockRuntime.releaseLock).toHaveBeenCalledOnce() + }) + }) +}) diff --git a/packages/gateway/src/execute/run.ts b/packages/gateway/src/execute/run.ts new file mode 100644 index 00000000..fd32eb45 --- /dev/null +++ b/packages/gateway/src/execute/run.ts @@ -0,0 +1,334 @@ +import type {CoordinationConfig} from '@fro-bot/runtime' +import type {Message} from 'discord.js' +import type {RepoBinding} from '../bindings/types.js' +import type {GatewayLogger} from '../discord/client.js' +import type {SinkThread} from '../discord/streaming.js' +import type {ConcurrencyRegistry} from './concurrency.js' + +import {acquireLock, createHeartbeatController, createRun, releaseLock, transitionRun} from '@fro-bot/runtime' + +import {createDiscordStreamSink} from '../discord/streaming.js' +import {attachOpencode} from './opencode-attach.js' +import {buildDiscordPrompt, EmptyPromptError} from './prompt.js' +import {RunCoreError, runOpenCodeCore} from './run-core.js' + +// --------------------------------------------------------------------------- +// Public interfaces +// --------------------------------------------------------------------------- + +export interface RunMentionDeps { + readonly coordinationConfig: CoordinationConfig + readonly identity: string + readonly concurrency: ConcurrencyRegistry + readonly attachUrl: string + readonly attachToken: string + /** Wall-clock milliseconds before an in-progress run is timed out. */ + readonly runTimeoutMs: number + /** + * Discord user ID of the bot. Used to strip leading mention tokens from + * the message before building the agent prompt, so a bare `@bot` mention + * does not silently dispatch a no-op run. + */ + readonly botUserId: string + readonly logger: GatewayLogger +} +// --------------------------------------------------------------------------- +// Internal helpers +// --------------------------------------------------------------------------- + +/** + * Send a message to a Discord channel/thread with mentions disabled. + * ALL Discord sends in this module MUST go through this helper — never call + * `.send()` directly with user-controlled content. + */ +async function safeSend(target: SinkThread, content: string): Promise { + await target.send({content, allowedMentions: {parse: []}}) +} + +/** + * Reply to the original mention message with mentions disabled. + */ +async function safeReply(message: Message, content: string): Promise { + await message.reply({content, allowedMentions: {parse: []}}) +} + +/** Narrow logger adapter for runtime coordination functions. */ +function toCoordLogger(logger: GatewayLogger): {debug: (message: string, context?: Record) => void} { + return { + debug: (msg, ctx) => logger.debug(ctx ?? {}, msg), + } +} + +// --------------------------------------------------------------------------- +// runMention — the lifecycle wrapper +// --------------------------------------------------------------------------- + +/** + * Execute a mention-triggered OpenCode run with full lifecycle management. + * + * Called by `mentions.ts` after authorization and binding lookup succeed. + * Owns: concurrency registry, thread creation, lock, run-state, heartbeat, + * execution, and release of all resources in a `finally` block. + * + * Hard invariants: + * - "busy", "cap", "waiting" are TERMINAL — no queue, no retry. * - Internal identifiers (lock etags, holder IDs, workspace URLs, run IDs, + * raw errors) are logged but NEVER posted to Discord. + * - Bearer token (`attachToken`) is never logged. + * - Every Discord send uses `allowedMentions: {parse: []}`. + */ +export async function runMention(message: Message, binding: RepoBinding, deps: RunMentionDeps): Promise { + const {concurrency, coordinationConfig, identity, attachUrl, attachToken, runTimeoutMs, botUserId, logger} = deps + const channelId = message.channel.id + const repo = `${binding.owner}/${binding.repo}` + + // ── Concurrency cap + per-channel in-flight guard ────────── + + const slotResult = concurrency.tryAcquire(channelId) + + if (slotResult === 'cap') { + await safeReply(message, 'fro-bot is at capacity right now — please try again shortly.') + return + } + + if (slotResult === 'busy') { + await safeReply(message, 'There is already a task running in this channel — please wait for it to finish.') + return + } + + // Slot acquired — MUST release in outer finally + try { + // ── Create response thread ───────────────────────────────────────────────────────────────── + + const runId = crypto.randomUUID() + const rawThread = await message.startThread({name: `fro-bot: ${binding.repo}`}) + const threadId = rawThread.id + const thread: SinkThread = rawThread + + // ── Acquire repo lock ───────────────────────────────────────────────────────────────────────── + + const coordLogger = toCoordLogger(logger) + const lockResult = await acquireLock(coordinationConfig, repo, identity, 'discord', runId, coordLogger) + + if (lockResult.success === false) { + logger.error({repo, runId, err: lockResult.error.message}, 'run: lock acquisition error') + await safeSend(thread, 'Could not start the task — please try again.') + return + } + + if (lockResult.data.acquired === false) { + // Lock held — terminal "waiting" reply; do NOT expose holder ID to Discord + logger.info({repo, runId, holder: lockResult.data.holder?.holder_id ?? 'unknown'}, 'run: lock held by another') + await safeSend(thread, 'Another task is already in progress for this repo. Try again when it completes.') + return + } + + // Lock acquired — must release in inner finally + if (lockResult.data.etag === null) { + logger.error({repo, runId}, 'run: lock acquired without etag') + await safeSend(thread, 'Could not start the task — please try again.') + return + } + let lockEtag = lockResult.data.etag + + // ── Run-state lifecycle + heartbeat ──────────────────────────────────────────────────────── + + const now = new Date().toISOString() + const initialRunState = { + run_id: runId, + surface: 'discord' as const, + thread_id: threadId, + entity_ref: repo, + phase: 'PENDING' as const, + started_at: now, + last_heartbeat: now, + holder_id: identity, + details: {channelId, owner: binding.owner, repo: binding.repo}, + } + + const createResult = await createRun(coordinationConfig, identity, repo, initialRunState, coordLogger) + if (createResult.success === false) { + logger.error({repo, runId, err: createResult.error.message}, 'run: createRun failed') + await safeSend(thread, 'Could not start the task — please try again.') + await releaseLock(coordinationConfig, repo, lockEtag, coordLogger) + return + } + + let runEtag = createResult.data.etag + + const ackResult = await transitionRun( + coordinationConfig, + identity, + repo, + runId, + 'ACKNOWLEDGED', + runEtag, + coordLogger, + ) + if (ackResult.success === false) { + logger.error({repo, runId, err: ackResult.error.message}, 'run: transitionRun ACKNOWLEDGED failed') + await safeSend(thread, 'Could not start the task — please try again.') + await releaseLock(coordinationConfig, repo, lockEtag, coordLogger) + return + } + runEtag = ackResult.data.etag + + const heartbeat = createHeartbeatController(coordinationConfig, identity, repo, runId, lockEtag, coordLogger) + heartbeat.start() + + let heartbeatStopped = false + let sink: ReturnType | null = null + + try { + const execResult = await transitionRun( + coordinationConfig, + identity, + repo, + runId, + 'EXECUTING', + runEtag, + coordLogger, + ) + if (execResult.success === false) { + throw new Error(`transitionRun EXECUTING failed: ${execResult.error.message}`) + } + runEtag = execResult.data.etag + + // ── Execute prompt via OpenCode ───────────────────────────────────────────────────────────────────────────────────────── + + const handle = attachOpencode(attachUrl, attachToken) + sink = createDiscordStreamSink(thread, {logger}) + const promptText = buildDiscordPrompt({ + messageText: message.content, + owner: binding.owner, + repo: binding.repo, + botUserId, + }) + const timeoutSignal = AbortSignal.timeout(runTimeoutMs) + + await runOpenCodeCore({ + handle, + directory: binding.workspacePath, + promptText, + sink, + signal: timeoutSignal, + logger, + }) + + // ── session.idle received — transition to COMPLETED ────────────────────────────────────── + + const stopResult = await heartbeat.stop() + heartbeatStopped = true + + if (stopResult.success === true) { + runEtag = stopResult.data.runEtag + lockEtag = stopResult.data.lockEtag + } else { + logger.warn({repo, runId, err: stopResult.error.message}, 'run: heartbeat stop failed; using last known etags') + } + + const completedResult = await transitionRun( + coordinationConfig, + identity, + repo, + runId, + 'COMPLETED', + runEtag, + coordLogger, + ) + if (completedResult.success === false) { + logger.error({repo, runId, err: completedResult.error.message}, 'run: transitionRun COMPLETED failed') + // Non-fatal: continue to flush sink and release resources + } + + await sink.flush() + } catch (execError: unknown) { + // ── Error classification ─────────────────────────────────────────────── + + const isCoreError = execError instanceof RunCoreError + const isTimeout = isCoreError && execError.kind === 'timeout' + const isStreamEnded = isCoreError && execError.kind === 'stream-ended' + const isReachability = isCoreError && (execError.kind === 'unreachable' || execError.kind === 'auth') + const isEmptyPrompt = execError instanceof EmptyPromptError + + logger.error( + { + repo, + runId, + kind: isCoreError ? execError.kind : 'unknown', + err: execError instanceof Error ? execError.message : String(execError), + }, + 'run: execution failed', + ) + + // Stop heartbeat (best-effort) if not already stopped + if (heartbeatStopped === false) { + const stopResult = await heartbeat.stop() + heartbeatStopped = true + if (stopResult.success === true) { + runEtag = stopResult.data.runEtag + lockEtag = stopResult.data.lockEtag + } else { + logger.warn( + {repo, runId, err: stopResult.error.message}, + 'run: heartbeat stop failed; using last known etags', + ) + } + } + + // Transition to FAILED (best-effort) + const failedResult = await transitionRun( + coordinationConfig, + identity, + repo, + runId, + 'FAILED', + runEtag, + coordLogger, + ) + if (failedResult.success === false) { + logger.error({repo, runId, err: failedResult.error.message}, 'run: transitionRun FAILED failed') + } + + // Flush partial output (best-effort) so the user sees whatever streamed before the failure. + // Wrapped in its own try/catch so a flush failure does not mask the original error. + // Guard against double-post: sink is null when the error occurred before createDiscordStreamSink. + if (sink !== null) { + await sink.flush().catch((flushError: unknown) => { + logger.warn({repo, runId, err: String(flushError)}, 'run: sink.flush failed in error path') + }) + } + + // Coarse user message — no internal detail + const userMessage = + isTimeout === true + ? 'The task timed out. Please try again.' + : isReachability === true + ? 'The workspace is not reachable right now. Please try again later.' + : isEmptyPrompt === true + ? 'Nothing to do — please include a task in your message.' + : isStreamEnded === true + ? 'The task stream closed unexpectedly. Please try again.' + : 'The task failed. Please try again.' + + await safeSend(thread, userMessage).catch((error: unknown) => { + logger.warn({repo, runId, err: String(error)}, 'run: failed to send error reply to thread') + }) + } finally { + // Stop heartbeat if not yet stopped (defensive — should not normally happen) + if (heartbeatStopped === false) { + await heartbeat.stop().catch(() => { + /* best-effort */ + }) + } + + // Release lock (best-effort) + const releaseResult = await releaseLock(coordinationConfig, repo, lockEtag, coordLogger) + if (releaseResult.success === false) { + logger.warn({repo, runId, err: releaseResult.error.message}, 'run: releaseLock failed') + } + } + } finally { + // ALWAYS release the concurrency slot + concurrency.release(channelId) + } +} diff --git a/packages/gateway/src/http/server.ts b/packages/gateway/src/http/server.ts index d7c3c069..65d1a045 100644 --- a/packages/gateway/src/http/server.ts +++ b/packages/gateway/src/http/server.ts @@ -2,7 +2,7 @@ * Hono HTTP server for the POST /v1/announce webhook. * * createAnnounceServer builds a Hono app, wires the announce handler, and - * returns the @hono/node-server handle so the caller (program.ts / Unit 7) + * returns the @hono/node-server handle so the caller (program.ts) * can close it during graceful shutdown. * * Content-length pre-check is performed before reading the body to avoid diff --git a/packages/gateway/src/program.test.ts b/packages/gateway/src/program.test.ts index 9404217e..d742cfaa 100644 --- a/packages/gateway/src/program.test.ts +++ b/packages/gateway/src/program.test.ts @@ -101,6 +101,11 @@ function makeFakeConfig(overrides: Partial = {}): GatewayConfig { githubAppPrivateKey: '-----BEGIN RSA PRIVATE KEY-----\nfake\n-----END RSA PRIVATE KEY-----', gatewayGitHubAppInstallUrl: 'https://github.com/apps/fro-bot/installations/new', workspaceAgentUrl: 'http://workspace:9100', + workspaceOpencodeUrl: 'http://workspace:9200', + workspaceOpencodeToken: 'test-opencode-token', + triggerRoleId: null, + maxConcurrentRuns: 3, + runTimeoutMs: 600_000, webhookSecret: 'test-webhook-secret', presenceChannelId: 'test-presence-channel-id', httpPort: 3000, diff --git a/packages/gateway/src/program.ts b/packages/gateway/src/program.ts index 50551868..4d9ab5bf 100644 --- a/packages/gateway/src/program.ts +++ b/packages/gateway/src/program.ts @@ -1,16 +1,22 @@ import type {Client, GatewayIntentBits, Message} from 'discord.js' import type {GatewayConfig} from './config.js' import type {GatewayLogger} from './discord/client.js' +import type {SinkThread} from './discord/streaming.js' import type {AnnounceServerConfig, AnnounceServerDeps} from './http/server.js' import type {CloseableServer} from './shutdown.js' - -import {createS3Adapter} from '@fro-bot/runtime' +import { + createS3Adapter, + DEFAULT_HEARTBEAT_INTERVAL_MS, + DEFAULT_LOCK_TTL_SECONDS, + DEFAULT_STALE_THRESHOLD_MS, +} from '@fro-bot/runtime' import {Effect} from 'effect' - import {createBindingsStore} from './bindings/store.js' import {createDiscordClient} from './discord/client.js' import {dispatchCommand, getCommandRegistry, registerSlashCommands} from './discord/commands/index.js' import {handleMention} from './discord/mentions.js' +import {createConcurrencyRegistry} from './execute/concurrency.js' +import {recoverStaleRuns} from './execute/recovery.js' import {createAppClient} from './github/app-client.js' import {installShutdownHandlers, isShuttingDown} from './shutdown.js' import {createWorkspaceClient} from './workspace-api/client.js' @@ -109,6 +115,7 @@ export function makeGatewayProgram(deps: GatewayProgramDeps, config: GatewayConf } const s3Adapter = createS3Adapter(config.objectStore, runtimeLogger) + const concurrencyRegistry = createConcurrencyRegistry(config.maxConcurrentRuns) const bindingsStore = createBindingsStore({ adapter: s3Adapter, storeConfig: config.objectStore, @@ -150,13 +157,51 @@ export function makeGatewayProgram(deps: GatewayProgramDeps, config: GatewayConf }) }) + // Track in-flight mention run promises so SIGTERM can await them before tearing down. + const inFlightRuns = new Set>() + client.on('messageCreate', (message: Message) => { if (message.author.bot) return if (client.user === null) return if (!message.mentions.has(client.user.id)) return - Effect.runPromise(handleMention(message, client.user.id)).catch((error: unknown) => { - logger.error({err: error}, 'mention handler failed') - }) + // Stop accepting new mentions once shutdown has been requested. + if (isShuttingDown()) return + + const mentionDeps = { + bindingsStore, + triggerRoleId: config.triggerRoleId, + run: { + coordinationConfig: { + storeAdapter: s3Adapter, + storeConfig: config.objectStore, + lockTtlSeconds: DEFAULT_LOCK_TTL_SECONDS, + heartbeatIntervalMs: DEFAULT_HEARTBEAT_INTERVAL_MS, + staleThresholdMs: DEFAULT_STALE_THRESHOLD_MS, + }, + identity: config.identity, + concurrency: concurrencyRegistry, + attachUrl: config.workspaceOpencodeUrl, + attachToken: config.workspaceOpencodeToken, + runTimeoutMs: config.runTimeoutMs, + botUserId: client.user.id, + logger, + }, + logger, + } + + const runPromise: Promise = Effect.runPromise(handleMention(message, client.user.id, mentionDeps)).catch( + (error: unknown) => { + logger.error({err: error}, 'mention handler failed') + }, + ) + inFlightRuns.add(runPromise) + runPromise + .finally(() => { + inFlightRuns.delete(runPromise) + }) + .catch(() => { + // Errors are already handled in runPromise; finally() cannot throw here. + }) }) // g. Start announce HTTP server (before shutdown handlers so the handle is available) @@ -173,8 +218,10 @@ export function makeGatewayProgram(deps: GatewayProgramDeps, config: GatewayConf }, ) - // h. Install shutdown handlers — pass server handle so it is closed on drain - installShutdownHandlers(client, logger, undefined, serverHandle) + // h. Install shutdown handlers — drain in-flight mention runs before client.destroy() + installShutdownHandlers(client, logger, undefined, serverHandle, async () => + Promise.all(inFlightRuns).then(() => {}), + ) // i. Login yield* Effect.tryPromise({ @@ -182,7 +229,37 @@ export function makeGatewayProgram(deps: GatewayProgramDeps, config: GatewayConf catch: error => (error instanceof Error ? error : new Error(String(error))), }) - // j. Log startup + // j. Stale-run recovery — transition any runs left EXECUTING by a prior crash. + // Called after login so the Discord client is available for best-effort thread notes. + // Errors are logged internally; the startup sequence continues regardless. + yield* Effect.tryPromise({ + try: async () => + recoverStaleRuns({ + coordinationConfig: { + storeAdapter: s3Adapter, + storeConfig: config.objectStore, + lockTtlSeconds: DEFAULT_LOCK_TTL_SECONDS, + heartbeatIntervalMs: DEFAULT_HEARTBEAT_INTERVAL_MS, + staleThresholdMs: DEFAULT_STALE_THRESHOLD_MS, + }, + identity: config.identity, + bindingsStore, + resolveThread: async (threadId: string): Promise => { + try { + const channel = await client.channels.fetch(threadId) + if (channel === null) return null + if (!('send' in channel)) return null + return channel + } catch { + return null + } + }, + logger, + }), + catch: error => (error instanceof Error ? error : new Error(String(error))), + }) + + // k. Log startup logger.info({applicationId: config.discordApplicationId}, 'gateway started') }) } diff --git a/packages/gateway/src/shutdown.test.ts b/packages/gateway/src/shutdown.test.ts index e5a63c0b..b3cc71ee 100644 --- a/packages/gateway/src/shutdown.test.ts +++ b/packages/gateway/src/shutdown.test.ts @@ -224,7 +224,7 @@ describe('installShutdownHandlers', () => { }) // --------------------------------------------------------------------------- - // Server handle tests (Unit 7) + // Server handle tests // --------------------------------------------------------------------------- it('calls server.close() during shutdown when a server handle is provided', async () => { diff --git a/packages/gateway/src/shutdown.ts b/packages/gateway/src/shutdown.ts index 2b618d90..68eaaec4 100644 --- a/packages/gateway/src/shutdown.ts +++ b/packages/gateway/src/shutdown.ts @@ -54,11 +54,12 @@ export interface CloseableServer { * * On signal: * 1. Log 'shutdown initiated' at info. - * 2. Race `client.destroy()` AND `server.close()` (if provided) against a drain timer (default 25 s). - * 3. If both win → log 'shutdown clean', exit 0. - * 4. If timer wins → log 'shutdown timeout', exit 1. - * 5. If destroy rejects → log 'shutdown failed', exit 1. - * 6. If server.close() fails → log a warning but do NOT prevent client teardown result. + * 2. Optionally await in-flight runs via `awaitInFlight` (bounded by the same drain timer). + * 3. Race `client.destroy()` AND `server.close()` (if provided) against a drain timer (default 25 s). + * 4. If both win → log 'shutdown clean', exit 0. + * 5. If timer wins → log 'shutdown timeout', exit 1. + * 6. If destroy rejects → log 'shutdown failed', exit 1. + * 7. If server.close() fails → log a warning but do NOT prevent client teardown result. * * Returns a cleanup function that removes both signal listeners (useful in tests). * @@ -70,6 +71,7 @@ export function installShutdownHandlers( logger: GatewayLogger, drainMs: number = DEFAULT_DRAIN_MS, server?: CloseableServer, + awaitInFlight?: () => Promise, ): () => void { const handler = (signal: string) => { if (shuttingDown) { @@ -86,9 +88,12 @@ export function installShutdownHandlers( drainTimer = setTimeout(() => resolve('timeout'), drainMs) }) - // Todo 007: return 'failed' on rejection instead of lying with 'clean'. - const destroyPromise = client - .destroy() + // Drain in-flight runs (if a drain function was provided) before destroying the client. + // Both steps are subject to the same drain timer — if the timer wins first, we proceed. + const inFlightDrain: Promise = awaitInFlight === undefined ? Promise.resolve() : awaitInFlight() + + const destroyPromise = inFlightDrain + .then(async () => client.destroy()) .then(() => 'clean' as const) .catch((error: unknown) => { logger.warn({err: error}, 'client.destroy() rejected during shutdown') diff --git a/packages/runtime/src/agent/index.ts b/packages/runtime/src/agent/index.ts index 8a33f708..212c8489 100644 --- a/packages/runtime/src/agent/index.ts +++ b/packages/runtime/src/agent/index.ts @@ -22,7 +22,9 @@ export { export {buildAgentPrompt, buildTaskSection, getTriggerDirective} from './prompt.js' export type {TriggerDirective} from './prompt.js' export {materializeReferenceFiles} from './reference-files.js' +export {createRemoteOpenCodeHandle} from './remote-client.js' export {MAX_LLM_RETRIES, runPromptAttempt} from './retry.js' +export type {ActivityTracker, EventStreamResult, PromptAttemptDependencies} from './retry.js' export {bootstrapOpenCodeServer, ensureOpenCodeAvailable} from './server.js' export type {OpenCodeServerHandle} from './server.js' export type {SetupAdapter} from './setup-adapter.js' diff --git a/packages/runtime/src/agent/remote-client.ts b/packages/runtime/src/agent/remote-client.ts new file mode 100644 index 00000000..fa2a7bf2 --- /dev/null +++ b/packages/runtime/src/agent/remote-client.ts @@ -0,0 +1,34 @@ +import type {OpenCodeServerHandle} from './server.js' + +import {createOpencodeClient} from '@opencode-ai/sdk' + +/** + * Create an `OpenCodeServerHandle` backed by a remote OpenCode server. + * + * `close` and `shutdown` are intentional no-ops — the gateway does NOT own the + * remote server. The `ownsServer` guard in `execution.ts` means an injected + * handle is never closed by the execution loop. + * + * @param baseUrl Base URL of the remote server (camelCase per SDK convention). + * @param headers HTTP headers merged onto every request, including the SSE + * `/event` subscription (the SDK uses fetch-based SSE, not + * `EventSource`, so custom headers survive on the stream path). + */ +export function createRemoteOpenCodeHandle( + baseUrl: string, + headers: Readonly> = {}, +): OpenCodeServerHandle { + const client = createOpencodeClient({baseUrl, headers}) + return { + client, + server: { + url: baseUrl, + close: () => { + // no-op: gateway does not own the remote server + }, + }, + shutdown: () => { + // no-op: gateway does not own the remote server + }, + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6509e289..9ccfd712 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,8 +43,8 @@ importers: specifier: 4.0.0 version: 4.0.0 '@aws-sdk/client-s3': - specifier: 3.1045.0 - version: 3.1045.0 + specifier: 3.1054.0 + version: 3.1054.0 '@bfra.me/es': specifier: 0.1.0 version: 0.1.0 @@ -60,7 +60,7 @@ importers: devDependencies: '@bfra.me/eslint-config': specifier: 0.51.1 - version: 0.51.1(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/rule-tester@8.57.0(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.4(typescript@6.0.3))(@typescript-eslint/utils@8.59.4(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@vitest/eslint-plugin@1.6.17(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))))(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint-plugin-prettier@5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3) + version: 0.51.1(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/rule-tester@8.57.0(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.4(typescript@6.0.3))(@typescript-eslint/utils@8.59.4(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@vitest/eslint-plugin@1.6.18(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))))(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint-plugin-prettier@5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3) '@bfra.me/prettier-config': specifier: 0.16.9 version: 0.16.9(prettier@3.8.3) @@ -80,8 +80,8 @@ importers: specifier: 24.12.2 version: 24.12.2 '@vitest/eslint-plugin': - specifier: 1.6.17 - version: 1.6.17(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))) + specifier: 1.6.18 + version: 1.6.18(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))) conventional-changelog-conventionalcommits: specifier: 9.3.1 version: 9.3.1 @@ -95,8 +95,8 @@ importers: specifier: 5.5.5 version: 5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3) generate-license-file: - specifier: 4.1.1 - version: 4.1.1(typescript@6.0.3) + specifier: 4.2.1 + version: 4.2.1(typescript@6.0.3) jiti: specifier: 2.7.0 version: 2.7.0 @@ -125,8 +125,8 @@ importers: specifier: 6.0.3 version: 6.0.3 vitest: - specifier: 4.1.6 - version: 4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) + specifier: 4.1.7 + version: 4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) apps/action: dependencies: @@ -144,8 +144,8 @@ importers: version: 4.12.23 devDependencies: vitest: - specifier: 4.1.6 - version: 4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) + specifier: 4.1.7 + version: 4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) packages/gateway: dependencies: @@ -229,136 +229,96 @@ packages: '@aws-crypto/util@5.2.0': resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} - '@aws-sdk/client-s3@3.1045.0': - resolution: {integrity: sha512-fsuO3Y6t+3Ro9Bsg41DKj4Sfy53CGSrhnMldNplWmG8Tx0UbYk+YDa4RD1hVlJpERw4JBmPkl0+J9qlxMh1pcA==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/core@3.974.8': - resolution: {integrity: sha512-njR2qoG6ZuB0kvAS2FyICsFZJ6gmCcf2X/7JcD14sUvGDm26wiZ5BrA6LOiUxKFEF+IVe7kdroxyE00YlkiYsw==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/crc64-nvme@3.972.7': - resolution: {integrity: sha512-QUagVVBbC8gODCF6e1aV0mE2TXWB9Opz4k8EJFdNrujUVQm5R4AjJa1mpOqzwOuROBzqJU9zawzig7M96L8Ejg==} + '@aws-sdk/client-s3@3.1054.0': + resolution: {integrity: sha512-2ue7uVqaHYX4rytkcrLySYU/m/ZlRbL8KojWefbR24B0/TcFkqN2IovpBFrnmla/dtZAn9eVSlhHeEddOghZ5w==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-env@3.972.34': - resolution: {integrity: sha512-XT0jtf8Fw9JE6ppsQeoNnZRiG+jqRixMT1v1ZR17G60UvVdsQmTG8nbEyHuEPfMxDXEhfdARaM/XiEhca4lGHQ==} + '@aws-sdk/core@3.974.15': + resolution: {integrity: sha512-UpA0rTGW/tHGITcCqHisbuuEPraYg9GG+mWmXjY5+RxZBMLGe6aL9oe0ix50LztwAcPIkGZLH0yWdMIkCM10hw==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-http@3.972.36': - resolution: {integrity: sha512-DPoGWfy7J7RKxvbf5kOKIGQkD2ek3dbKgzKIGrnLuvZBz5myU+Im/H6pmc14QcnFbqHMqxvtWSgRDSJW3qXLQg==} + '@aws-sdk/crc64-nvme@3.972.9': + resolution: {integrity: sha512-P+QGozmXn2mZZI7sDgk+aUm+RTI61MPSFB+Ir2vjEjEbEsE4e7hYtzrDvAUxZy9ko81h53e11+F/GYlvwDkaOQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-ini@3.972.38': - resolution: {integrity: sha512-oDzUBu2MGJFgoar05sPMCwSrhw44ASyccrHzj66vO69OZqi7I6hZZxXfuPLC8OCzW7C+sU+bI73XHij41yekgQ==} + '@aws-sdk/credential-provider-env@3.972.41': + resolution: {integrity: sha512-n1EbJ98yvPWWdHZZv8bRBMqqDQJrtgtxyJ4xLy2Uqrh25BCOZQ7nnS1CsFXvuH8r0b0KVHDZEGEH5FxmEMP8jg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-login@3.972.38': - resolution: {integrity: sha512-g1NosS8qe4OF++G2UFCM5ovSkgipC7YYor5KCWatG0UoMSO5YFj9C8muePlyVmOBV/WTI16Jo3/s1NUo/o1Bww==} + '@aws-sdk/credential-provider-http@3.972.43': + resolution: {integrity: sha512-TT76RN1NkI9WoyZqCNxOw6/WBMF7pYOTJcXbMokNFU+euSG40Kaf/t/FhDACVZWP+43wEM6ZynIPIkzS1wR1iA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-node@3.972.39': - resolution: {integrity: sha512-HEswDQyxUtadoZ/bJsPPENHg7R0Lzym5LuMksJeHvqhCOpP+rtkDLKI4/ZChH4w3cf5kG8n6bZuI8PzajoiqMg==} + '@aws-sdk/credential-provider-ini@3.972.46': + resolution: {integrity: sha512-hvcgcwOiS0nb2XFb5Op1Pz/vYaWz5K8kKullziGpdNRuG0NwzRXseuPt2CoBqknHGaSPVesu1aOn2OcctEYdCA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-process@3.972.34': - resolution: {integrity: sha512-T3IFs4EVmVi1dVN5RciFnklCANSzvrQd/VuHY9ThHSQmYkTogjcGkoJEr+oNUPQZnso52183088NqysMPji1/Q==} + '@aws-sdk/credential-provider-login@3.972.45': + resolution: {integrity: sha512-MZQv4SNjByk1iOKmrqmzcUF/uCB05wjvEHyXKxmGQTUANTIVayX6HPUF0bzkWLvtnkH7sAn9kUCfkXbSpj9sDA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-sso@3.972.38': - resolution: {integrity: sha512-5ZxG+t0+3Q3QPh8KEjX6syskhgNf7I0MN7oGioTf6Lm1NTjfP7sIcYGNsthXC2qR8vcD3edNZwCr2ovfSSWuRA==} + '@aws-sdk/credential-provider-node@3.972.47': + resolution: {integrity: sha512-HrId+C0DWA5qDIyLG64/kjUB2RNtPypxmABnIctK+TA1P1kHlOYoE/Wf5T5tKOMKgb08P7k/zNyhvfJ3lh5Oag==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-web-identity@3.972.38': - resolution: {integrity: sha512-lYHFF30DGI20jZcYX8cm6Ns0V7f1dDN6g/MBDLTyD/5iw+bXs3yBr2iAiHDkx4RFU5JgsnZvCHYKiRVPRdmOgw==} + '@aws-sdk/credential-provider-process@3.972.41': + resolution: {integrity: sha512-7I/n1zkysouLOWvkEhjNEP4vMnD2v4kzzr3/3QBdrripEpn7ap1/I5DF3Hou1SUqkKWo1f3oPGMyFAA1FAMvsQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-bucket-endpoint@3.972.10': - resolution: {integrity: sha512-Vbc2frZH7wXlMNd+ZZSXUEs/l1Sv8Jj4zUnIfwrYF5lwaLdXHZ9xx4U3rjUcaye3HRhFVc+E5DbBxpRAbB16BA==} + '@aws-sdk/credential-provider-sso@3.972.45': + resolution: {integrity: sha512-oHgbz/eFD8IKiksqDsz9ZMU4A59BpQq4QwJedBnGD80ZqYcHPPHZBwjBnxLVkB7iRVVHWpDclR8yWdD2PkQIUA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-expect-continue@3.972.10': - resolution: {integrity: sha512-2Yn0f1Qiq/DjxYR3wfI3LokXnjOhFM7Ssn4LTdFDIxRMCE6I32MAsVnhPX1cUZsuVA9tiZtwwhlSLAtFGxAZlQ==} + '@aws-sdk/credential-provider-web-identity@3.972.45': + resolution: {integrity: sha512-CDhzKdb2onv5bpnjn/acgdNmJOQthPDLsPizU7rZflsEcgMMp8Mlri+U5hdxf8ldvZJpvM3vLU6D56vfJm5AMQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-flexible-checksums@3.974.16': - resolution: {integrity: sha512-6ru8doI0/XzszqLIPXf0E/V7HhAw1Pu94010XCKYtBUfD0LxF0BuOzrUf8OQGR6j2o6wgKTHUniOmndQycHwCA==} + '@aws-sdk/middleware-bucket-endpoint@3.972.17': + resolution: {integrity: sha512-lbDmWuHenc+kiwCNrxz4MyN6nkxCWyTXPIWuspJN0ibziu+8CXci7vI1bK9MAkwy8cwJOEXNu0gBM5S0uTGRIg==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-host-header@3.972.10': - resolution: {integrity: sha512-IJSsIMeVQ8MMCPbuh1AbltkFhLBLXn7aejzfX5YKT/VLDHn++Dcz8886tXckE+wQssyPUhaXrJhdakO2VilRhg==} + '@aws-sdk/middleware-expect-continue@3.972.14': + resolution: {integrity: sha512-3TNFEVGO4sWZj9TEXOCZLzGEctXHnaO4fk2EQ8KVaboTbwHmEPEQrm17Xb9koImUIXEw0sgi2xtHjg7LuTS3rA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-location-constraint@3.972.10': - resolution: {integrity: sha512-rI3NZvJcEvjoD0+0PI0iUAwlPw2IlSlhyvgBK/3WkKJQE/YiKFedd9dMN2lVacdNxPNhxL/jzQaKQdrGtQagjQ==} + '@aws-sdk/middleware-flexible-checksums@3.974.23': + resolution: {integrity: sha512-4nPKARo2lfKvQGUt2fPA5NlS/mEohckdxpuC9ecbjVfj7B7NFFYHeTg+Bf5BEQwdn3yRfUIzFiEkPp8Yuaw3wA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-logger@3.972.10': - resolution: {integrity: sha512-OOuGvvz1Dm20SjZo5oEBePFqxt5nf8AwkNDSyUHvD9/bfNASmstcYxFAHUowy4n6Io7mWUZ04JURZwSBvyQanQ==} + '@aws-sdk/middleware-location-constraint@3.972.11': + resolution: {integrity: sha512-hkfspNUP4criAH6ton6BGKgnm5dZx+7bUOy1YqlTfejDeUPAM23D81q/IX+hdlS3KUsfwGz5ADTqZWKBEUpf4A==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-recursion-detection@3.972.11': - resolution: {integrity: sha512-+zz6f79Kj9V5qFK2P+D8Ehjnw4AhphAlCAsPjUqEcInA9umtSSKMrHbSagEeOIsDNuvVrH98bjRHcyQukTrhaQ==} + '@aws-sdk/middleware-sdk-s3@3.972.44': + resolution: {integrity: sha512-8HQsRg1NpX8vR4vNl1E8pyLnqZroq9VSL2vZQVSgBqp6wv6365LzYD08/c9FFh/9FTg7YRc7aTtEmXF0ir/pqg==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-sdk-s3@3.972.37': - resolution: {integrity: sha512-Km7M+i8DrLArVzrid1gfxeGhYHBd3uxvE77g0s5a52zPSVosxzQBnJ0gwWb6NIp/DOk8gsBMhi7V+cpJG0ndTA==} + '@aws-sdk/middleware-ssec@3.972.11': + resolution: {integrity: sha512-7PQvGNhtveKlvVqNahqWx5yrwxP7ecwAoB1dYBf8eKwfo2tzzCbNnW+q2nO3N066ktQaB4iBQbDRWtizm+amoQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-ssec@3.972.10': - resolution: {integrity: sha512-Gli9A0u8EVVb+5bFDGS/QbSVg28w/wpEidg1ggVcSj65BDTdGR6punsOcVjqdiu1i42WHWo51MCvARPIIz9juw==} + '@aws-sdk/nested-clients@3.997.13': + resolution: {integrity: sha512-2pA6eyb5nSo/ZD2cayhOTEMoGQYgspq0RI05GDLkzQ3ajZ6isS6waV6E92Am/hz4LIlLUTrbwPLurJ/fuiHvkg==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-user-agent@3.972.38': - resolution: {integrity: sha512-iz+B29TXcAZsJpwB+AwG/TTGA5l/VnmMZ2UxtiySOZjI6gCdmviXPwdgzcmuazMy16rXoPY4mYCGe7zdNKfx5A==} + '@aws-sdk/signature-v4-multi-region@3.996.30': + resolution: {integrity: sha512-HULDLMVzkmTSEv6//7kx2kRevp/VYUpm8hJNNFbmhxDn0fUiGTxVcM9yg31TukvTq8nyOBDUN2gH0o5IRbKjdw==} engines: {node: '>=20.0.0'} - '@aws-sdk/nested-clients@3.997.6': - resolution: {integrity: sha512-WBDnqatJl+kGObpfmfSxqnXeYTu3Me8wx8WCtvoxX3pfWrrTv8I4WTMSSs7PZqcRcVh8WeUKMgGFjMG+52SR1w==} + '@aws-sdk/token-providers@3.1056.0': + resolution: {integrity: sha512-81duvlltQlsfn5K+o8zILcystBRdbT1G2JJYVCML5NZHBz4CL/zf+sAemCtBh/uh6RQUMyInGeZLQ7/8igZhbA==} engines: {node: '>=20.0.0'} - '@aws-sdk/region-config-resolver@3.972.13': - resolution: {integrity: sha512-CvJ2ZIjK/jVD/lbOpowBVElJyC1YxLTIJ13yM0AEo0t2v7swOzGjSA6lJGH+DwZXQhcjUjoYwc8bVYCX5MDr1A==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/signature-v4-multi-region@3.996.25': - resolution: {integrity: sha512-+CMIt3e1VzlklAECmG+DtP1sV8iKq25FuA0OKpnJ4KA0kxUtd7CgClY7/RU6VzJBQwbN4EJ9Ue6plvqx1qGadw==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/token-providers@3.1041.0': - resolution: {integrity: sha512-Th7kPI6YPtvJUcdznooXJMy+9rQWjmEF81LxaJssngBzuysK4a/x+l8kjm1zb7nYsUPbndnBdUnwng/3PLvtGw==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/types@3.973.8': - resolution: {integrity: sha512-gjlAdtHMbtR9X5iIhVUvbVcy55KnznpC6bkDUWW9z915bi0ckdUr5cjf16Kp6xq0bP5HBD2xzgbL9F9Quv5vUw==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/util-arn-parser@3.972.3': - resolution: {integrity: sha512-HzSD8PMFrvgi2Kserxuff5VitNq2sgf3w9qxmskKDiDTThWfVteJxuCS9JXiPIPtmCrp+7N9asfIaVhBFORllA==} - engines: {node: '>=20.0.0'} - - '@aws-sdk/util-endpoints@3.996.8': - resolution: {integrity: sha512-oOZHcRDihk5iEe5V25NVWg45b3qEA8OpHWVdU/XQh8Zj4heVPAJqWvMphQnU7LkufmUo10EpvFPZuQMiFLJK3g==} + '@aws-sdk/types@3.973.9': + resolution: {integrity: sha512-kuBfgQVdcz5Bmapc4A13YbpVw/pXkesfhetcFYwbntqas8sF41OHyd4o28+/TG2ZQdHBsv90Lsu5y6oitvYCdg==} engines: {node: '>=20.0.0'} '@aws-sdk/util-locate-window@3.965.5': resolution: {integrity: sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-user-agent-browser@3.972.10': - resolution: {integrity: sha512-FAzqXvfEssGdSIz8ejatan0bOdx1qefBWKF/gWmVBXIP1HkS7v/wjjaqrAGGKvyihrXTXW00/2/1nTJtxpXz7g==} - - '@aws-sdk/util-user-agent-node@3.973.24': - resolution: {integrity: sha512-ZWwlkjcIp7cEL8ZfTpTAPNkwx25p7xol0xlKoWVVf22+nsjwmLcHYtTPjIV1cSpmB/b6DaK4cb1fSkvCXHgRdw==} - engines: {node: '>=20.0.0'} - peerDependencies: - aws-crt: '>=1.0.0' - peerDependenciesMeta: - aws-crt: - optional: true - - '@aws-sdk/xml-builder@3.972.22': - resolution: {integrity: sha512-PMYKKtJd70IsSG0yHrdAbxBr+ZWBKLvzFZfD3/urxgf6hXVMzuU5M+3MJ5G67RpOmLBu1fAUN65SbWuKUCOlAA==} + '@aws-sdk/xml-builder@3.972.26': + resolution: {integrity: sha512-cDbrqvDS73whl6YAPSPq0U6whzG6UWI9PuWh0wrUuGoZexhWEqhdunbukV7iBoaWnFV1AODutM5hOD6rtn439g==} engines: {node: '>=20.0.0'} '@aws/lambda-invoke-store@0.2.4': @@ -813,10 +773,6 @@ packages: resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} - '@isaacs/cliui@9.0.0': - resolution: {integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==} - engines: {node: '>=18'} - '@isaacs/fs-minipass@4.0.1': resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} engines: {node: '>=18.0.0'} @@ -1346,219 +1302,42 @@ packages: resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} engines: {node: '>=18'} - '@smithy/chunked-blob-reader-native@4.2.3': - resolution: {integrity: sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==} - engines: {node: '>=18.0.0'} - - '@smithy/chunked-blob-reader@5.2.2': - resolution: {integrity: sha512-St+kVicSyayWQca+I1rGitaOEH6uKgE8IUWoYnnEX26SWdWQcL6LvMSD19Lg+vYHKdT9B2Zuu7rd3i6Wnyb/iw==} - engines: {node: '>=18.0.0'} - - '@smithy/config-resolver@4.4.17': - resolution: {integrity: sha512-TzDZcAnhTyAHbXVxWZo7/tEcrIeFq20IBk8So3OLOetWpR8EwY/yEqBMBFaJMeyEiREDq4NfEl+qO3OAUD+vbQ==} - engines: {node: '>=18.0.0'} - - '@smithy/core@3.23.17': - resolution: {integrity: sha512-x7BlLbUFL8NWCGjMF9C+1N5cVCxcPa7g6Tv9B4A2luWx3be3oU8hQ96wIwxe/s7OhIzvoJH73HAUSg5JXVlEtQ==} + '@smithy/core@3.24.5': + resolution: {integrity: sha512-Kt8phUg45M15EjhYAbZ+fFikYneijLu9Liugz8ZsYz2i8j0hzGv27LWKpEHYRfvj+LyCOSijpcR/2i8RouV+cA==} engines: {node: '>=18.0.0'} - '@smithy/credential-provider-imds@4.2.14': - resolution: {integrity: sha512-Au28zBN48ZAoXdooGUHemuVBrkE+Ie6RPmGNIAJsFqj33Vhb6xAgRifUydZ2aY+M+KaMAETAlKk5NC5h1G7wpg==} + '@smithy/credential-provider-imds@4.3.6': + resolution: {integrity: sha512-tHhdiWZfG1ZIh2YcRfPJmY2gHcBmqbAzqm3ER4TIDFYsSEqTD5tICT7cgQ/kI8LRakxp12myOYyK68XPn7MnHw==} engines: {node: '>=18.0.0'} - '@smithy/eventstream-codec@4.2.14': - resolution: {integrity: sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw==} - engines: {node: '>=18.0.0'} - - '@smithy/eventstream-serde-browser@4.2.14': - resolution: {integrity: sha512-8IelTCtTctWRbb+0Dcy+C0aICh1qa0qWXqgjcXDmMuCvPJRnv26hiDZoAau2ILOniki65mCPKqOQs/BaWvO4CQ==} - engines: {node: '>=18.0.0'} - - '@smithy/eventstream-serde-config-resolver@4.3.14': - resolution: {integrity: sha512-sqHiHpYRYo3FJlaIxD1J8PhbcmJAm7IuM16mVnwSkCToD7g00IBZzKuiLNMGmftULmEUX6/UAz8/NN5uMP8bVA==} - engines: {node: '>=18.0.0'} - - '@smithy/eventstream-serde-node@4.2.14': - resolution: {integrity: sha512-Ht/8BuGlKfFTy0H3+8eEu0vdpwGztCnaLLXtpXNdQqiR7Hj4vFScU3T436vRAjATglOIPjJXronY+1WxxNLSiw==} - engines: {node: '>=18.0.0'} - - '@smithy/eventstream-serde-universal@4.2.14': - resolution: {integrity: sha512-lWyt4T2XQZUZgK3tQ3Wn0w3XBvZsK/vjTuJl6bXbnGZBHH0ZUSONTYiK9TgjTTzU54xQr3DRFwpjmhp0oLm3gg==} - engines: {node: '>=18.0.0'} - - '@smithy/fetch-http-handler@5.3.17': - resolution: {integrity: sha512-bXOvQzaSm6MnmLaWA1elgfQcAtN4UP3vXqV97bHuoOrHQOJiLT3ds6o9eo5bqd0TJfRFpzdGnDQdW3FACiAVdw==} - engines: {node: '>=18.0.0'} - - '@smithy/hash-blob-browser@4.2.15': - resolution: {integrity: sha512-0PJ4Al3fg2nM4qKrAIxyNcApgqHAXcBkN8FeizOz69z0rb26uZ6lMESYtxegaTlXB5Hj84JfwMPavMrwDMjucA==} - engines: {node: '>=18.0.0'} - - '@smithy/hash-node@4.2.14': - resolution: {integrity: sha512-8ZBDY2DD4wr+GGjTpPtiglEsqr0lUP+KHqgZcWczFf6qeZ/YRjMIOoQWVQlmwu7EtxKTd8YXD8lblmYcpBIA1g==} - engines: {node: '>=18.0.0'} - - '@smithy/hash-stream-node@4.2.14': - resolution: {integrity: sha512-tw4GANWkZPb6+BdD4Fgucqzey2+r73Z/GRo9zklsCdwrnxxumUV83ZIaBDdudV4Ylazw3EPTiJZhpX42105ruQ==} - engines: {node: '>=18.0.0'} - - '@smithy/invalid-dependency@4.2.14': - resolution: {integrity: sha512-c21qJiTSb25xvvOp+H2TNZzPCngrvl5vIPqPB8zQ/DmJF4QWXO19x1dWfMJZ6wZuuWUPPm0gV8C0cU3+ifcWuw==} + '@smithy/fetch-http-handler@5.4.5': + resolution: {integrity: sha512-SK3VMeH0fibgdTg2QeB+O4p7Yy/2E5HBOHJeC58FshkDdeuX8lOgO7PfjYfLyPLP1ch55j91cQqKBzDS0mRjSQ==} engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} engines: {node: '>=14.0.0'} - '@smithy/is-array-buffer@4.2.2': - resolution: {integrity: sha512-n6rQ4N8Jj4YTQO3YFrlgZuwKodf4zUFs7EJIWH86pSCWBaAtAGBFfCM7Wx6D2bBJ2xqFNxGBSrUWswT3M0VJow==} - engines: {node: '>=18.0.0'} - - '@smithy/md5-js@4.2.14': - resolution: {integrity: sha512-V2v0vx+h0iUSNG1Alt+GNBMSLGCrl9iVsdd+Ap67HPM9PN479x12V8LkuMoKImNZxn3MXeuyUjls+/7ZACZghA==} - engines: {node: '>=18.0.0'} - - '@smithy/middleware-content-length@4.2.14': - resolution: {integrity: sha512-xhHq7fX4/3lv5NHxLUk3OeEvl0xZ+Ek3qIbWaCL4f9JwgDZEclPBElljaZCAItdGPQl/kSM4LPMOpy1MYgprpw==} - engines: {node: '>=18.0.0'} - - '@smithy/middleware-endpoint@4.4.32': - resolution: {integrity: sha512-ZZkgyjnJppiZbIm6Qbx92pbXYi1uzenIvGhBSCDlc7NwuAkiqSgS75j1czAD25ZLs2FjMjYy1q7gyRVWG6JA0Q==} - engines: {node: '>=18.0.0'} - - '@smithy/middleware-retry@4.5.7': - resolution: {integrity: sha512-bRt6ZImqVSeTk39Nm81K20ObIiAZ3WefY7G6+iz/0tZjs4dgRRjvRX2sgsH+zi6iDCRR/aQvQofLKxxz4rPBZg==} - engines: {node: '>=18.0.0'} - - '@smithy/middleware-serde@4.2.20': - resolution: {integrity: sha512-Lx9JMO9vArPtiChE3wbEZ5akMIDQpWQtlu90lhACQmNOXcGXRbaDywMHDzuDZ2OkZzP+9wQfZi3YJT9F67zTQQ==} - engines: {node: '>=18.0.0'} - - '@smithy/middleware-stack@4.2.14': - resolution: {integrity: sha512-2dvkUKLuFdKsCRmOE4Mn63co0Djtsm+JMh0bYZQupN1pJwMeE8FmQmRLLzzEMN0dnNi7CDCYYH8F0EVwWiPBeA==} - engines: {node: '>=18.0.0'} - - '@smithy/node-config-provider@4.3.14': - resolution: {integrity: sha512-S+gFjyo/weSVL0P1b9Ts8C/CwIfNCgUPikk3sl6QVsfE/uUuO+QsF+NsE/JkpvWqqyz1wg7HFdiaZuj5CoBMRg==} - engines: {node: '>=18.0.0'} - - '@smithy/node-http-handler@4.6.1': - resolution: {integrity: sha512-iB+orM4x3xrr57X3YaXazfKnntl0LHlZB1kcXSGzMV1Tt0+YwEjGlbjk/44qEGtBzXAz6yFDzkYTKSV6Pj2HUg==} - engines: {node: '>=18.0.0'} - - '@smithy/property-provider@4.2.14': - resolution: {integrity: sha512-WuM31CgfsnQ/10i7NYr0PyxqknD72Y5uMfUMVSniPjbEPceiTErb4eIqJQ+pdxNEAUEWrewrGjIRjVbVHsxZiQ==} - engines: {node: '>=18.0.0'} - - '@smithy/protocol-http@5.3.14': - resolution: {integrity: sha512-dN5F8kHx8RNU0r+pCwNmFZyz6ChjMkzShy/zup6MtkRmmix4vZzJdW+di7x//b1LiynIev88FM18ie+wwPcQtQ==} - engines: {node: '>=18.0.0'} - - '@smithy/querystring-builder@4.2.14': - resolution: {integrity: sha512-XYA5Z0IqTeF+5XDdh4BBmSA0HvbgVZIyv4cmOoUheDNR57K1HgBp9ukUMx3Cr3XpDHHpLBnexPE3LAtDsZkj2A==} - engines: {node: '>=18.0.0'} - - '@smithy/querystring-parser@4.2.14': - resolution: {integrity: sha512-hr+YyqBD23GVvRxGGrcc/oOeNlK3PzT5Fu4dzrDXxzS1LpFiuL2PQQqKPs87M79aW7ziMs+nvB3qdw77SqE7Lw==} - engines: {node: '>=18.0.0'} - - '@smithy/service-error-classification@4.3.1': - resolution: {integrity: sha512-aUQuDGh760ts/8MU+APjIZhlLPKhIIfqyzZaJikLEIMrdxFvxuLYD0WxWzaYWpmLbQlXDe9p7EWM3HsBe0K6Gw==} - engines: {node: '>=18.0.0'} - - '@smithy/shared-ini-file-loader@4.4.9': - resolution: {integrity: sha512-495/V2I15SHgedSJoDPD23JuSfKAp726ZI1V0wtjB07Wh7q/0tri/0e0DLefZCHgxZonrGKt/OCTpAtP1wE1kQ==} + '@smithy/node-http-handler@4.7.5': + resolution: {integrity: sha512-3dA9TQ+ybRSZ/m0wnbZhiBy4Dezjgq1Ib/ZZrYTpJDBgpoLLU/SDzZc/g0x0MNAdOJe1wPcM+x2PBRmoOur+Sw==} engines: {node: '>=18.0.0'} - '@smithy/signature-v4@5.3.14': - resolution: {integrity: sha512-1D9Y/nmlVjCeSivCbhZ7hgEpmHyY1h0GvpSZt3l0xcD9JjmjVC1CHOozS6+Gh+/ldMH8JuJ6cujObQqfayAVFA==} + '@smithy/signature-v4@5.4.5': + resolution: {integrity: sha512-QBJKWGqIknH0dc9LWpfH1mkdokAx6iXYN3UcQ3eY6uIEyScuoQAhfl94ge7ozUy9WgFUdE8xsvwBjaYBbWmPNA==} engines: {node: '>=18.0.0'} - '@smithy/smithy-client@4.12.13': - resolution: {integrity: sha512-y/Pcj1V9+qG98gyu1gvftHB7rDpdh+7kIBIggs55yGm3JdtBV8GT8IFF3a1qxZ79QnaJHX9GXzvBG6tAd+czJA==} - engines: {node: '>=18.0.0'} - - '@smithy/types@4.14.1': - resolution: {integrity: sha512-59b5HtSVrVR/eYNei3BUj3DCPKD/G7EtDDe7OEJE7i7FtQFugYo6MxbotS8mVJkLNVf8gYaAlEBwwtJ9HzhWSg==} - engines: {node: '>=18.0.0'} - - '@smithy/url-parser@4.2.14': - resolution: {integrity: sha512-p06BiBigJ8bTA3MgnOfCtDUWnAMY0YfedO/GRpmc7p+wg3KW8vbXy1xwSu5ASy0wV7rRYtlfZOIKH4XqfhjSQQ==} - engines: {node: '>=18.0.0'} - - '@smithy/util-base64@4.3.2': - resolution: {integrity: sha512-XRH6b0H/5A3SgblmMa5ErXQ2XKhfbQB+Fm/oyLZ2O2kCUrwgg55bU0RekmzAhuwOjA9qdN5VU2BprOvGGUkOOQ==} - engines: {node: '>=18.0.0'} - - '@smithy/util-body-length-browser@4.2.2': - resolution: {integrity: sha512-JKCrLNOup3OOgmzeaKQwi4ZCTWlYR5H4Gm1r2uTMVBXoemo1UEghk5vtMi1xSu2ymgKVGW631e2fp9/R610ZjQ==} - engines: {node: '>=18.0.0'} - - '@smithy/util-body-length-node@4.2.3': - resolution: {integrity: sha512-ZkJGvqBzMHVHE7r/hcuCxlTY8pQr1kMtdsVPs7ex4mMU+EAbcXppfo5NmyxMYi2XU49eqaz56j2gsk4dHHPG/g==} + '@smithy/types@4.14.2': + resolution: {integrity: sha512-P+otAxbV4CqBybp7EkcJCrig63yE2E7PuNVOmilVMRcx/O+QDzGULTrKsq4DV13gSfak9ObPrWaHl/9bL5YcWw==} engines: {node: '>=18.0.0'} '@smithy/util-buffer-from@2.2.0': resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} engines: {node: '>=14.0.0'} - '@smithy/util-buffer-from@4.2.2': - resolution: {integrity: sha512-FDXD7cvUoFWwN6vtQfEta540Y/YBe5JneK3SoZg9bThSoOAC/eGeYEua6RkBgKjGa/sz6Y+DuBZj3+YEY21y4Q==} - engines: {node: '>=18.0.0'} - - '@smithy/util-config-provider@4.2.2': - resolution: {integrity: sha512-dWU03V3XUprJwaUIFVv4iOnS1FC9HnMHDfUrlNDSh4315v0cWyaIErP8KiqGVbf5z+JupoVpNM7ZB3jFiTejvQ==} - engines: {node: '>=18.0.0'} - - '@smithy/util-defaults-mode-browser@4.3.49': - resolution: {integrity: sha512-a5bNrdiONYB/qE2BuKegvUMd/+ZDwdg4vsNuuSzYE8qs2EYAdK9CynL+Rzn29PbPiUqoz/cbpRbcLzD5lEevHw==} - engines: {node: '>=18.0.0'} - - '@smithy/util-defaults-mode-node@4.2.54': - resolution: {integrity: sha512-g1cvrJvOnzeJgEdf7AE4luI7gp6L8weE0y9a9wQUSGtjb8QRHDbCJYuE4Sy0SD9N8RrnNPFsPltAz/OSoBR9Zw==} - engines: {node: '>=18.0.0'} - - '@smithy/util-endpoints@3.4.2': - resolution: {integrity: sha512-a55Tr+3OKld4TTtnT+RhKOQHyPxm3j/xL4OR83WBUhLJaKDS9dnJ7arRMOp3t31dcLhApwG9bgvrRXBHlLdIkg==} - engines: {node: '>=18.0.0'} - - '@smithy/util-hex-encoding@4.2.2': - resolution: {integrity: sha512-Qcz3W5vuHK4sLQdyT93k/rfrUwdJ8/HZ+nMUOyGdpeGA1Wxt65zYwi3oEl9kOM+RswvYq90fzkNDahPS8K0OIg==} - engines: {node: '>=18.0.0'} - - '@smithy/util-middleware@4.2.14': - resolution: {integrity: sha512-1Su2vj9RYNDEv/V+2E+jXkkwGsgR7dc4sfHn9Z7ruzQHJIEni9zzw5CauvRXlFJfmgcqYP8fWa0dkh2Q2YaQyw==} - engines: {node: '>=18.0.0'} - - '@smithy/util-retry@4.3.6': - resolution: {integrity: sha512-p6/FO1n2KxMeQyna067i0uJ6TSbb165ZhnRtCpWh4Foxqbfc6oW+XITaL8QkFJj3KFnDe2URt4gOhgU06EP9ew==} - engines: {node: '>=18.0.0'} - deprecated: '@smithy/util-retry v4.3.6 contains a bug in Adaptive Retry, see https://github.com/smithy-lang/smithy-typescript/issues/1993. Upgrade to 4.3.7+' - - '@smithy/util-stream@4.5.25': - resolution: {integrity: sha512-/PFpG4k8Ze8Ei+mMKj3oiPICYekthuzePZMgZbCqMiXIHHf4n2aZ4Ps0aSRShycFTGuj/J6XldmC0x0DwednIA==} - engines: {node: '>=18.0.0'} - - '@smithy/util-uri-escape@4.2.2': - resolution: {integrity: sha512-2kAStBlvq+lTXHyAZYfJRb/DfS3rsinLiwb+69SstC9Vb0s9vNWkRwpnj918Pfi85mzi42sOqdV72OLxWAISnw==} - engines: {node: '>=18.0.0'} - '@smithy/util-utf8@2.3.0': resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} engines: {node: '>=14.0.0'} - '@smithy/util-utf8@4.2.2': - resolution: {integrity: sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==} - engines: {node: '>=18.0.0'} - - '@smithy/util-waiter@4.3.0': - resolution: {integrity: sha512-JyjYmLAfS+pdxF92o4yLgEoy0zhayKTw73FU1aofLWwLcJw7iSqIY2exGmMTrl/lmZugP5p/zxdFSippJDfKWA==} - engines: {node: '>=18.0.0'} - - '@smithy/uuid@1.1.2': - resolution: {integrity: sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==} - engines: {node: '>=18.0.0'} - '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} @@ -1882,8 +1661,8 @@ packages: cpu: [x64] os: [win32] - '@vitest/eslint-plugin@1.6.17': - resolution: {integrity: sha512-sIVY9ZeVcXyPxFCNRkIt8Yw4keKIcUyp9/8qnmuomPwE+ST1htw5sZsbqdUMTiah9SmCg1JYoK9RqdDtPeNYYg==} + '@vitest/eslint-plugin@1.6.18': + resolution: {integrity: sha512-J6U4X0jH3NwTuYouvrJn6I8ypTOU+GhKEjyVwpoPnDuc23usa/xi/R0caWLBbNp3xLy3/rL1YkuJuneTMVV4Mg==} engines: {node: '>=18'} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -1898,11 +1677,11 @@ packages: vitest: optional: true - '@vitest/expect@4.1.6': - resolution: {integrity: sha512-7EHDquPthALSV0jhhjgEW8FXaviMx7rSqu8W6oqCoAuOhKov814P99QDV1pxMA3QPv21YudvJngIhjrNI4opLg==} + '@vitest/expect@4.1.7': + resolution: {integrity: sha512-1R+tw0ortHEbZDGMymm+pN7/AFQ/RkFFdtd7EN+VBpynKmLbP8A3rpEXdshBJ7+8hQ9zBJh/i1s0yKNtxAnU7w==} - '@vitest/mocker@4.1.6': - resolution: {integrity: sha512-MCFc63czMjEInOlcY2cpQCvCN+KgbAn+60xu9cMgP4sKaLC5JNAKw7JH8QdAnoAC88hW1IiSNZ+GgVXlN1UcMQ==} + '@vitest/mocker@4.1.7': + resolution: {integrity: sha512-vY7nuamKgfvpA1Koa3oYIw/k7D6kZnpGyNMZW8loow2bsBYla1TFdqTaXncWdRn4pgwNs+90RhnXhJScDwQeJA==} peerDependencies: msw: ^2.4.9 vite: 8.0.14 @@ -1912,20 +1691,20 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.6': - resolution: {integrity: sha512-h5SxD/IzNhZYnrSZRsUZQIC+vD0GY8cUvq0iwsmkFKixRCKLLWqCXa/FIQ4S1R+sI+PGoojkHsdNrbZiM9Qpgw==} + '@vitest/pretty-format@4.1.7': + resolution: {integrity: sha512-umgCarTOYQWIaDMvGDRZij+6b9oVeLIyJzfN+AS88e0ZOU3QTgNNSTtjQOpcvWr3np1N0j4WgZj+sb3oYBDscw==} - '@vitest/runner@4.1.6': - resolution: {integrity: sha512-nOPCmn2+yD0ZNmKdsXGv/UxMMWbMuKeD6GyYncNwdkYDxpQvrPSKYj2rWuDjC2Y4b6w6hjip5dBKFzEUuZe3vA==} + '@vitest/runner@4.1.7': + resolution: {integrity: sha512-BapjmAQ2aI78WdMEfeUWivnfVzB+VPGwWRQcJE0OUq7qEeEcBsCSf+0T5iREBNE5nBb4wA5Ya0W6IA+sghdEFw==} - '@vitest/snapshot@4.1.6': - resolution: {integrity: sha512-YhsdE6xAVfTDmzjxL2ZDUvjj+ZsgyOKe+TdQzqkD72wIOmHka8NuGQ6NpTNZv9D2Z63fbwWKJPeVpEw4EQgYxw==} + '@vitest/snapshot@4.1.7': + resolution: {integrity: sha512-ZacLzja+TmJeZ1h14xW2FB/WpeimUD3haBXQPyJqxvo8jQTmfeA8zv58mtjN2C7EHXZDYVcVYdYmAxjkWVvKCw==} - '@vitest/spy@4.1.6': - resolution: {integrity: sha512-JFKxMx6udhwKh/Ldo270e17QX710vgunMkuPAvXjHSvC6oqLWAHhVhjg/I71q0u0CBSErIODV1Kjv0FQNSWjdg==} + '@vitest/spy@4.1.7': + resolution: {integrity: sha512-kbkI5LMWakyuTIvs6fUJ5qdIVb1XVKsYJAT4OJ938cHMROYMSfmoQdZy0aaAnjbbc8F61vkoTqz/Az+/HiIu5Q==} - '@vitest/utils@4.1.6': - resolution: {integrity: sha512-FxIY+U81R3LGKCxaHHFRQ5+g6/iRgGLmeHWdp2Amj4ljQRrEIWHmZyDfDYBRZlpyqA7qKxtS9DD1dhk8RnRIVQ==} + '@vitest/utils@4.1.7': + resolution: {integrity: sha512-T532WBu791cBxJlCl6SO+J14l81DQx6uQHm1bQbmCDY7nqlEIgkza/UFnSBNaUtSf41unldDFjdOBYEQC4b5Hw==} '@vladfrangu/async_event_emitter@2.4.7': resolution: {integrity: sha512-Xfe6rpCTxSxfbswi/W/Pz7zp1WWSNn4A0eW4mLkQUewCrXXtMj31lCg+iQyTkh/CkusZSq9eDflu7tjEDXUY6g==} @@ -2872,8 +2651,8 @@ packages: resolution: {integrity: sha512-939eZS4gJ3htTHAldmyyuzlrD58P03fHG49v2JfFXbV6OhvZKRC9j2yAtdHw/zrp2zXHuv05zMIy40F0ge7spA==} engines: {node: '>=18'} - generate-license-file@4.1.1: - resolution: {integrity: sha512-hh2UnFsUiUkw/NdO1tdwBM4xVKnFPHEnR+2yU9NxDLIupIQNRZf4i0UpzGdJu1wUTSzlMHzy4C+2xv+Tex9suA==} + generate-license-file@4.2.1: + resolution: {integrity: sha512-0As00it8cbFYxp8W5vFqGgyEDgsNFoTMycoIMChmPqmw9ablhWHdO78KzjkedUnszWpLdTspby+tEV4WI0KscA==} hasBin: true get-caller-file@2.0.5: @@ -2925,12 +2704,6 @@ packages: deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true - glob@11.1.0: - resolution: {integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==} - engines: {node: 20 || >=22} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me - hasBin: true - glob@13.0.6: resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} engines: {node: 18 || 20 || >=22} @@ -3162,10 +2935,6 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jackspeak@4.2.3: - resolution: {integrity: sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==} - engines: {node: 20 || >=22} - java-properties@1.0.2: resolution: {integrity: sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==} engines: {node: '>= 0.6.0'} @@ -4789,20 +4558,20 @@ packages: yaml: optional: true - vitest@4.1.6: - resolution: {integrity: sha512-6lvjbS3p9b4CrdCmguzbh2/4uoXhGE2q71R4OX5sqF9R1bo9Xd6fGrMAfvp5wnCzlBnFVdCOp6onuTQVbo8iUQ==} + vitest@4.1.7: + resolution: {integrity: sha512-flYyaFd2CgoCoU+0UKt3pxksgC+S02iTDN0n3LtqaMeXsI9SBcdNujc2k0DeFLzUn/0k538yNjOSdwgCqcrwJA==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.6 - '@vitest/browser-preview': 4.1.6 - '@vitest/browser-webdriverio': 4.1.6 - '@vitest/coverage-istanbul': 4.1.6 - '@vitest/coverage-v8': 4.1.6 - '@vitest/ui': 4.1.6 + '@vitest/browser-playwright': 4.1.7 + '@vitest/browser-preview': 4.1.7 + '@vitest/browser-webdriverio': 4.1.7 + '@vitest/coverage-istanbul': 4.1.7 + '@vitest/coverage-v8': 4.1.7 + '@vitest/ui': 4.1.7 happy-dom: '*' jsdom: '*' vite: 8.0.14 @@ -4946,8 +4715,8 @@ packages: resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} - zod@3.25.76: - resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -5037,20 +4806,20 @@ snapshots: '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 tslib: 2.8.1 '@aws-crypto/crc32c@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 tslib: 2.8.1 '@aws-crypto/sha1-browser@5.2.0': dependencies: '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 '@aws-sdk/util-locate-window': 3.965.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -5060,7 +4829,7 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 '@aws-sdk/util-locate-window': 3.965.5 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -5068,7 +4837,7 @@ snapshots: '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': @@ -5077,405 +4846,220 @@ snapshots: '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.973.8 + '@aws-sdk/types': 3.973.9 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 - '@aws-sdk/client-s3@3.1045.0': + '@aws-sdk/client-s3@3.1054.0': dependencies: '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.974.8 - '@aws-sdk/credential-provider-node': 3.972.39 - '@aws-sdk/middleware-bucket-endpoint': 3.972.10 - '@aws-sdk/middleware-expect-continue': 3.972.10 - '@aws-sdk/middleware-flexible-checksums': 3.974.16 - '@aws-sdk/middleware-host-header': 3.972.10 - '@aws-sdk/middleware-location-constraint': 3.972.10 - '@aws-sdk/middleware-logger': 3.972.10 - '@aws-sdk/middleware-recursion-detection': 3.972.11 - '@aws-sdk/middleware-sdk-s3': 3.972.37 - '@aws-sdk/middleware-ssec': 3.972.10 - '@aws-sdk/middleware-user-agent': 3.972.38 - '@aws-sdk/region-config-resolver': 3.972.13 - '@aws-sdk/signature-v4-multi-region': 3.996.25 - '@aws-sdk/types': 3.973.8 - '@aws-sdk/util-endpoints': 3.996.8 - '@aws-sdk/util-user-agent-browser': 3.972.10 - '@aws-sdk/util-user-agent-node': 3.973.24 - '@smithy/config-resolver': 4.4.17 - '@smithy/core': 3.23.17 - '@smithy/eventstream-serde-browser': 4.2.14 - '@smithy/eventstream-serde-config-resolver': 4.3.14 - '@smithy/eventstream-serde-node': 4.2.14 - '@smithy/fetch-http-handler': 5.3.17 - '@smithy/hash-blob-browser': 4.2.15 - '@smithy/hash-node': 4.2.14 - '@smithy/hash-stream-node': 4.2.14 - '@smithy/invalid-dependency': 4.2.14 - '@smithy/md5-js': 4.2.14 - '@smithy/middleware-content-length': 4.2.14 - '@smithy/middleware-endpoint': 4.4.32 - '@smithy/middleware-retry': 4.5.7 - '@smithy/middleware-serde': 4.2.20 - '@smithy/middleware-stack': 4.2.14 - '@smithy/node-config-provider': 4.3.14 - '@smithy/node-http-handler': 4.6.1 - '@smithy/protocol-http': 5.3.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - '@smithy/util-base64': 4.3.2 - '@smithy/util-body-length-browser': 4.2.2 - '@smithy/util-body-length-node': 4.2.3 - '@smithy/util-defaults-mode-browser': 4.3.49 - '@smithy/util-defaults-mode-node': 4.2.54 - '@smithy/util-endpoints': 3.4.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-retry': 4.3.6 - '@smithy/util-stream': 4.5.25 - '@smithy/util-utf8': 4.2.2 - '@smithy/util-waiter': 4.3.0 - tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - - '@aws-sdk/core@3.974.8': - dependencies: - '@aws-sdk/types': 3.973.8 - '@aws-sdk/xml-builder': 3.972.22 - '@smithy/core': 3.23.17 - '@smithy/node-config-provider': 4.3.14 - '@smithy/property-provider': 4.2.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/signature-v4': 5.3.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/util-base64': 4.3.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-retry': 4.3.6 - '@smithy/util-utf8': 4.2.2 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/credential-provider-node': 3.972.47 + '@aws-sdk/middleware-bucket-endpoint': 3.972.17 + '@aws-sdk/middleware-expect-continue': 3.972.14 + '@aws-sdk/middleware-flexible-checksums': 3.974.23 + '@aws-sdk/middleware-location-constraint': 3.972.11 + '@aws-sdk/middleware-sdk-s3': 3.972.44 + '@aws-sdk/middleware-ssec': 3.972.11 + '@aws-sdk/signature-v4-multi-region': 3.996.30 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/fetch-http-handler': 5.4.5 + '@smithy/node-http-handler': 4.7.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/crc64-nvme@3.972.7': + '@aws-sdk/core@3.974.15': dependencies: - '@smithy/types': 4.14.1 + '@aws-sdk/types': 3.973.9 + '@aws-sdk/xml-builder': 3.972.26 + '@aws/lambda-invoke-store': 0.2.4 + '@smithy/core': 3.24.5 + '@smithy/signature-v4': 5.4.5 + '@smithy/types': 4.14.2 + bowser: 2.14.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-env@3.972.34': + '@aws-sdk/crc64-nvme@3.972.9': dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@aws-sdk/credential-provider-http@3.972.36': - dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/types': 3.973.8 - '@smithy/fetch-http-handler': 5.3.17 - '@smithy/node-http-handler': 4.6.1 - '@smithy/property-provider': 4.2.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/util-stream': 4.5.25 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.972.38': - dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/credential-provider-env': 3.972.34 - '@aws-sdk/credential-provider-http': 3.972.36 - '@aws-sdk/credential-provider-login': 3.972.38 - '@aws-sdk/credential-provider-process': 3.972.34 - '@aws-sdk/credential-provider-sso': 3.972.38 - '@aws-sdk/credential-provider-web-identity': 3.972.38 - '@aws-sdk/nested-clients': 3.997.6 - '@aws-sdk/types': 3.973.8 - '@smithy/credential-provider-imds': 4.2.14 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - - '@aws-sdk/credential-provider-login@3.972.38': + '@aws-sdk/credential-provider-env@3.972.41': dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/nested-clients': 3.997.6 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - - '@aws-sdk/credential-provider-node@3.972.39': - dependencies: - '@aws-sdk/credential-provider-env': 3.972.34 - '@aws-sdk/credential-provider-http': 3.972.36 - '@aws-sdk/credential-provider-ini': 3.972.38 - '@aws-sdk/credential-provider-process': 3.972.34 - '@aws-sdk/credential-provider-sso': 3.972.38 - '@aws-sdk/credential-provider-web-identity': 3.972.38 - '@aws-sdk/types': 3.973.8 - '@smithy/credential-provider-imds': 4.2.14 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - '@aws-sdk/credential-provider-process@3.972.34': + '@aws-sdk/credential-provider-http@3.972.43': dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/fetch-http-handler': 5.4.5 + '@smithy/node-http-handler': 4.7.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.972.38': - dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/nested-clients': 3.997.6 - '@aws-sdk/token-providers': 3.1041.0 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 + '@aws-sdk/credential-provider-ini@3.972.46': + dependencies: + '@aws-sdk/core': 3.974.15 + '@aws-sdk/credential-provider-env': 3.972.41 + '@aws-sdk/credential-provider-http': 3.972.43 + '@aws-sdk/credential-provider-login': 3.972.45 + '@aws-sdk/credential-provider-process': 3.972.41 + '@aws-sdk/credential-provider-sso': 3.972.45 + '@aws-sdk/credential-provider-web-identity': 3.972.45 + '@aws-sdk/nested-clients': 3.997.13 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/credential-provider-imds': 4.3.6 + '@smithy/types': 4.14.2 tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - '@aws-sdk/credential-provider-web-identity@3.972.38': + '@aws-sdk/credential-provider-login@3.972.45': dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/nested-clients': 3.997.6 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/nested-clients': 3.997.13 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - '@aws-sdk/middleware-bucket-endpoint@3.972.10': - dependencies: - '@aws-sdk/types': 3.973.8 - '@aws-sdk/util-arn-parser': 3.972.3 - '@smithy/node-config-provider': 4.3.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-config-provider': 4.2.2 + '@aws-sdk/credential-provider-node@3.972.47': + dependencies: + '@aws-sdk/credential-provider-env': 3.972.41 + '@aws-sdk/credential-provider-http': 3.972.43 + '@aws-sdk/credential-provider-ini': 3.972.46 + '@aws-sdk/credential-provider-process': 3.972.41 + '@aws-sdk/credential-provider-sso': 3.972.45 + '@aws-sdk/credential-provider-web-identity': 3.972.45 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/credential-provider-imds': 4.3.6 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-expect-continue@3.972.10': + '@aws-sdk/credential-provider-process@3.972.41': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-flexible-checksums@3.974.16': + '@aws-sdk/credential-provider-sso@3.972.45': dependencies: - '@aws-crypto/crc32': 5.2.0 - '@aws-crypto/crc32c': 5.2.0 - '@aws-crypto/util': 5.2.0 - '@aws-sdk/core': 3.974.8 - '@aws-sdk/crc64-nvme': 3.972.7 - '@aws-sdk/types': 3.973.8 - '@smithy/is-array-buffer': 4.2.2 - '@smithy/node-config-provider': 4.3.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-stream': 4.5.25 - '@smithy/util-utf8': 4.2.2 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/nested-clients': 3.997.13 + '@aws-sdk/token-providers': 3.1056.0 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-host-header@3.972.10': + '@aws-sdk/credential-provider-web-identity@3.972.45': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/nested-clients': 3.997.13 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-location-constraint@3.972.10': + '@aws-sdk/middleware-bucket-endpoint@3.972.17': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-logger@3.972.10': + '@aws-sdk/middleware-expect-continue@3.972.14': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/types': 4.14.1 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-recursion-detection@3.972.11': + '@aws-sdk/middleware-flexible-checksums@3.974.23': dependencies: - '@aws-sdk/types': 3.973.8 - '@aws/lambda-invoke-store': 0.2.4 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 + '@aws-crypto/crc32': 5.2.0 + '@aws-crypto/crc32c': 5.2.0 + '@aws-crypto/util': 5.2.0 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/crc64-nvme': 3.972.9 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-sdk-s3@3.972.37': - dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/types': 3.973.8 - '@aws-sdk/util-arn-parser': 3.972.3 - '@smithy/core': 3.23.17 - '@smithy/node-config-provider': 4.3.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/signature-v4': 5.3.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/util-config-provider': 4.2.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-stream': 4.5.25 - '@smithy/util-utf8': 4.2.2 + '@aws-sdk/middleware-location-constraint@3.972.11': + dependencies: + '@aws-sdk/types': 3.973.9 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-ssec@3.972.10': + '@aws-sdk/middleware-sdk-s3@3.972.44': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/signature-v4-multi-region': 3.996.30 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/middleware-user-agent@3.972.38': + '@aws-sdk/middleware-ssec@3.972.11': dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/types': 3.973.8 - '@aws-sdk/util-endpoints': 3.996.8 - '@smithy/core': 3.23.17 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-retry': 4.3.6 + '@aws-sdk/types': 3.973.9 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/nested-clients@3.997.6': + '@aws-sdk/nested-clients@3.997.13': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.974.8 - '@aws-sdk/middleware-host-header': 3.972.10 - '@aws-sdk/middleware-logger': 3.972.10 - '@aws-sdk/middleware-recursion-detection': 3.972.11 - '@aws-sdk/middleware-user-agent': 3.972.38 - '@aws-sdk/region-config-resolver': 3.972.13 - '@aws-sdk/signature-v4-multi-region': 3.996.25 - '@aws-sdk/types': 3.973.8 - '@aws-sdk/util-endpoints': 3.996.8 - '@aws-sdk/util-user-agent-browser': 3.972.10 - '@aws-sdk/util-user-agent-node': 3.973.24 - '@smithy/config-resolver': 4.4.17 - '@smithy/core': 3.23.17 - '@smithy/fetch-http-handler': 5.3.17 - '@smithy/hash-node': 4.2.14 - '@smithy/invalid-dependency': 4.2.14 - '@smithy/middleware-content-length': 4.2.14 - '@smithy/middleware-endpoint': 4.4.32 - '@smithy/middleware-retry': 4.5.7 - '@smithy/middleware-serde': 4.2.20 - '@smithy/middleware-stack': 4.2.14 - '@smithy/node-config-provider': 4.3.14 - '@smithy/node-http-handler': 4.6.1 - '@smithy/protocol-http': 5.3.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - '@smithy/util-base64': 4.3.2 - '@smithy/util-body-length-browser': 4.2.2 - '@smithy/util-body-length-node': 4.2.3 - '@smithy/util-defaults-mode-browser': 4.3.49 - '@smithy/util-defaults-mode-node': 4.2.54 - '@smithy/util-endpoints': 3.4.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-retry': 4.3.6 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - - '@aws-sdk/region-config-resolver@3.972.13': - dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/config-resolver': 4.4.17 - '@smithy/node-config-provider': 4.3.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@aws-sdk/signature-v4-multi-region@3.996.25': - dependencies: - '@aws-sdk/middleware-sdk-s3': 3.972.37 - '@aws-sdk/types': 3.973.8 - '@smithy/protocol-http': 5.3.14 - '@smithy/signature-v4': 5.3.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@aws-sdk/token-providers@3.1041.0': - dependencies: - '@aws-sdk/core': 3.974.8 - '@aws-sdk/nested-clients': 3.997.6 - '@aws-sdk/types': 3.973.8 - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 + '@aws-sdk/core': 3.974.15 + '@aws-sdk/signature-v4-multi-region': 3.996.30 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/fetch-http-handler': 5.4.5 + '@smithy/node-http-handler': 4.7.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - transitivePeerDependencies: - - aws-crt - '@aws-sdk/types@3.973.8': + '@aws-sdk/signature-v4-multi-region@3.996.30': dependencies: - '@smithy/types': 4.14.1 + '@aws-sdk/types': 3.973.9 + '@smithy/signature-v4': 5.4.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/util-arn-parser@3.972.3': + '@aws-sdk/token-providers@3.1056.0': dependencies: + '@aws-sdk/core': 3.974.15 + '@aws-sdk/nested-clients': 3.997.13 + '@aws-sdk/types': 3.973.9 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@aws-sdk/util-endpoints@3.996.8': + '@aws-sdk/types@3.973.9': dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - '@smithy/util-endpoints': 3.4.2 + '@smithy/types': 4.14.2 tslib: 2.8.1 '@aws-sdk/util-locate-window@3.965.5': dependencies: tslib: 2.8.1 - '@aws-sdk/util-user-agent-browser@3.972.10': - dependencies: - '@aws-sdk/types': 3.973.8 - '@smithy/types': 4.14.1 - bowser: 2.14.1 - tslib: 2.8.1 - - '@aws-sdk/util-user-agent-node@3.973.24': + '@aws-sdk/xml-builder@3.972.26': dependencies: - '@aws-sdk/middleware-user-agent': 3.972.38 - '@aws-sdk/types': 3.973.8 - '@smithy/node-config-provider': 4.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-config-provider': 4.2.2 - tslib: 2.8.1 - - '@aws-sdk/xml-builder@3.972.22': - dependencies: - '@nodable/entities': 2.1.0 - '@smithy/types': 4.14.1 + '@smithy/types': 4.14.2 fast-xml-parser: 5.7.2 tslib: 2.8.1 @@ -5632,7 +5216,7 @@ snapshots: dependencies: is-in-ci: 2.0.0 - '@bfra.me/eslint-config@0.51.1(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/rule-tester@8.57.0(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.4(typescript@6.0.3))(@typescript-eslint/utils@8.59.4(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@vitest/eslint-plugin@1.6.17(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))))(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint-plugin-prettier@5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)': + '@bfra.me/eslint-config@0.51.1(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/rule-tester@8.57.0(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.4(typescript@6.0.3))(@typescript-eslint/utils@8.59.4(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(@vitest/eslint-plugin@1.6.18(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))))(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint-plugin-prettier@5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)': dependencies: '@bfra.me/es': 0.1.0 '@eslint-community/eslint-plugin-eslint-comments': 4.7.1(eslint@10.4.0(jiti@2.7.0)) @@ -5661,7 +5245,7 @@ snapshots: sort-package-json: 3.6.1 typescript-eslint: 8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3) optionalDependencies: - '@vitest/eslint-plugin': 1.6.17(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))) + '@vitest/eslint-plugin': 1.6.18(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))) eslint-config-prettier: 10.1.8(eslint@10.4.0(jiti@2.7.0)) eslint-plugin-prettier: 5.5.5(eslint-config-prettier@10.1.8(eslint@10.4.0(jiti@2.7.0)))(eslint@10.4.0(jiti@2.7.0))(prettier@3.8.3) transitivePeerDependencies: @@ -5954,8 +5538,6 @@ snapshots: wrap-ansi: 8.1.0 wrap-ansi-cjs: wrap-ansi@7.0.0 - '@isaacs/cliui@9.0.0': {} - '@isaacs/fs-minipass@4.0.1': dependencies: minipass: 7.1.3 @@ -6537,250 +6119,41 @@ snapshots: '@sindresorhus/merge-streams@4.0.0': {} - '@smithy/chunked-blob-reader-native@4.2.3': - dependencies: - '@smithy/util-base64': 4.3.2 - tslib: 2.8.1 - - '@smithy/chunked-blob-reader@5.2.2': - dependencies: - tslib: 2.8.1 - - '@smithy/config-resolver@4.4.17': - dependencies: - '@smithy/node-config-provider': 4.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-config-provider': 4.2.2 - '@smithy/util-endpoints': 3.4.2 - '@smithy/util-middleware': 4.2.14 - tslib: 2.8.1 - - '@smithy/core@3.23.17': - dependencies: - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - '@smithy/util-base64': 4.3.2 - '@smithy/util-body-length-browser': 4.2.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-stream': 4.5.25 - '@smithy/util-utf8': 4.2.2 - '@smithy/uuid': 1.1.2 - tslib: 2.8.1 - - '@smithy/credential-provider-imds@4.2.14': - dependencies: - '@smithy/node-config-provider': 4.3.14 - '@smithy/property-provider': 4.2.14 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - tslib: 2.8.1 - - '@smithy/eventstream-codec@4.2.14': + '@smithy/core@3.24.5': dependencies: '@aws-crypto/crc32': 5.2.0 - '@smithy/types': 4.14.1 - '@smithy/util-hex-encoding': 4.2.2 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@smithy/eventstream-serde-browser@4.2.14': + '@smithy/credential-provider-imds@4.3.6': dependencies: - '@smithy/eventstream-serde-universal': 4.2.14 - '@smithy/types': 4.14.1 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@smithy/eventstream-serde-config-resolver@4.3.14': + '@smithy/fetch-http-handler@5.4.5': dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/eventstream-serde-node@4.2.14': - dependencies: - '@smithy/eventstream-serde-universal': 4.2.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/eventstream-serde-universal@4.2.14': - dependencies: - '@smithy/eventstream-codec': 4.2.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/fetch-http-handler@5.3.17': - dependencies: - '@smithy/protocol-http': 5.3.14 - '@smithy/querystring-builder': 4.2.14 - '@smithy/types': 4.14.1 - '@smithy/util-base64': 4.3.2 - tslib: 2.8.1 - - '@smithy/hash-blob-browser@4.2.15': - dependencies: - '@smithy/chunked-blob-reader': 5.2.2 - '@smithy/chunked-blob-reader-native': 4.2.3 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/hash-node@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - '@smithy/util-buffer-from': 4.2.2 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/hash-stream-node@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/invalid-dependency@4.2.14': - dependencies: - '@smithy/types': 4.14.1 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 '@smithy/is-array-buffer@2.2.0': dependencies: tslib: 2.8.1 - '@smithy/is-array-buffer@4.2.2': - dependencies: - tslib: 2.8.1 - - '@smithy/md5-js@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/middleware-content-length@4.2.14': - dependencies: - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/middleware-endpoint@4.4.32': - dependencies: - '@smithy/core': 3.23.17 - '@smithy/middleware-serde': 4.2.20 - '@smithy/node-config-provider': 4.3.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 - '@smithy/url-parser': 4.2.14 - '@smithy/util-middleware': 4.2.14 - tslib: 2.8.1 - - '@smithy/middleware-retry@4.5.7': - dependencies: - '@smithy/core': 3.23.17 - '@smithy/node-config-provider': 4.3.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/service-error-classification': 4.3.1 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-retry': 4.3.6 - '@smithy/uuid': 1.1.2 - tslib: 2.8.1 - - '@smithy/middleware-serde@4.2.20': - dependencies: - '@smithy/core': 3.23.17 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/middleware-stack@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/node-config-provider@4.3.14': - dependencies: - '@smithy/property-provider': 4.2.14 - '@smithy/shared-ini-file-loader': 4.4.9 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/node-http-handler@4.6.1': - dependencies: - '@smithy/protocol-http': 5.3.14 - '@smithy/querystring-builder': 4.2.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/property-provider@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/protocol-http@5.3.14': + '@smithy/node-http-handler@4.7.5': dependencies: - '@smithy/types': 4.14.1 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@smithy/querystring-builder@4.2.14': + '@smithy/signature-v4@5.4.5': dependencies: - '@smithy/types': 4.14.1 - '@smithy/util-uri-escape': 4.2.2 + '@smithy/core': 3.24.5 + '@smithy/types': 4.14.2 tslib: 2.8.1 - '@smithy/querystring-parser@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/service-error-classification@4.3.1': - dependencies: - '@smithy/types': 4.14.1 - - '@smithy/shared-ini-file-loader@4.4.9': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/signature-v4@5.3.14': - dependencies: - '@smithy/is-array-buffer': 4.2.2 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-hex-encoding': 4.2.2 - '@smithy/util-middleware': 4.2.14 - '@smithy/util-uri-escape': 4.2.2 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/smithy-client@4.12.13': - dependencies: - '@smithy/core': 3.23.17 - '@smithy/middleware-endpoint': 4.4.32 - '@smithy/middleware-stack': 4.2.14 - '@smithy/protocol-http': 5.3.14 - '@smithy/types': 4.14.1 - '@smithy/util-stream': 4.5.25 - tslib: 2.8.1 - - '@smithy/types@4.14.1': - dependencies: - tslib: 2.8.1 - - '@smithy/url-parser@4.2.14': - dependencies: - '@smithy/querystring-parser': 4.2.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-base64@4.3.2': - dependencies: - '@smithy/util-buffer-from': 4.2.2 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/util-body-length-browser@4.2.2': - dependencies: - tslib: 2.8.1 - - '@smithy/util-body-length-node@4.2.3': + '@smithy/types@4.14.2': dependencies: tslib: 2.8.1 @@ -6789,87 +6162,11 @@ snapshots: '@smithy/is-array-buffer': 2.2.0 tslib: 2.8.1 - '@smithy/util-buffer-from@4.2.2': - dependencies: - '@smithy/is-array-buffer': 4.2.2 - tslib: 2.8.1 - - '@smithy/util-config-provider@4.2.2': - dependencies: - tslib: 2.8.1 - - '@smithy/util-defaults-mode-browser@4.3.49': - dependencies: - '@smithy/property-provider': 4.2.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-defaults-mode-node@4.2.54': - dependencies: - '@smithy/config-resolver': 4.4.17 - '@smithy/credential-provider-imds': 4.2.14 - '@smithy/node-config-provider': 4.3.14 - '@smithy/property-provider': 4.2.14 - '@smithy/smithy-client': 4.12.13 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-endpoints@3.4.2': - dependencies: - '@smithy/node-config-provider': 4.3.14 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-hex-encoding@4.2.2': - dependencies: - tslib: 2.8.1 - - '@smithy/util-middleware@4.2.14': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-retry@4.3.6': - dependencies: - '@smithy/service-error-classification': 4.3.1 - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/util-stream@4.5.25': - dependencies: - '@smithy/fetch-http-handler': 5.3.17 - '@smithy/node-http-handler': 4.6.1 - '@smithy/types': 4.14.1 - '@smithy/util-base64': 4.3.2 - '@smithy/util-buffer-from': 4.2.2 - '@smithy/util-hex-encoding': 4.2.2 - '@smithy/util-utf8': 4.2.2 - tslib: 2.8.1 - - '@smithy/util-uri-escape@4.2.2': - dependencies: - tslib: 2.8.1 - '@smithy/util-utf8@2.3.0': dependencies: '@smithy/util-buffer-from': 2.2.0 tslib: 2.8.1 - '@smithy/util-utf8@4.2.2': - dependencies: - '@smithy/util-buffer-from': 4.2.2 - tslib: 2.8.1 - - '@smithy/util-waiter@4.3.0': - dependencies: - '@smithy/types': 4.14.1 - tslib: 2.8.1 - - '@smithy/uuid@1.1.2': - dependencies: - tslib: 2.8.1 - '@standard-schema/spec@1.1.0': {} '@stylistic/eslint-plugin@5.10.0(eslint@10.4.0(jiti@2.7.0))': @@ -7230,7 +6527,7 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.1': optional: true - '@vitest/eslint-plugin@1.6.17(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)))': + '@vitest/eslint-plugin@1.6.18(@typescript-eslint/eslint-plugin@8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3)(vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)))': dependencies: '@typescript-eslint/scope-manager': 8.59.4 '@typescript-eslint/utils': 8.59.4(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3) @@ -7238,48 +6535,48 @@ snapshots: optionalDependencies: '@typescript-eslint/eslint-plugin': 8.59.3(@typescript-eslint/parser@8.59.3(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.4.0(jiti@2.7.0))(typescript@6.0.3) typescript: 6.0.3 - vitest: 4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) + vitest: 4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) transitivePeerDependencies: - supports-color - '@vitest/expect@4.1.6': + '@vitest/expect@4.1.7': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.1.6 - '@vitest/utils': 4.1.6 + '@vitest/spy': 4.1.7 + '@vitest/utils': 4.1.7 chai: 6.2.2 tinyrainbow: 3.1.0 - '@vitest/mocker@4.1.6(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))': + '@vitest/mocker@4.1.7(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3))': dependencies: - '@vitest/spy': 4.1.6 + '@vitest/spy': 4.1.7 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: vite: 8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3) - '@vitest/pretty-format@4.1.6': + '@vitest/pretty-format@4.1.7': dependencies: tinyrainbow: 3.1.0 - '@vitest/runner@4.1.6': + '@vitest/runner@4.1.7': dependencies: - '@vitest/utils': 4.1.6 + '@vitest/utils': 4.1.7 pathe: 2.0.3 - '@vitest/snapshot@4.1.6': + '@vitest/snapshot@4.1.7': dependencies: - '@vitest/pretty-format': 4.1.6 - '@vitest/utils': 4.1.6 + '@vitest/pretty-format': 4.1.7 + '@vitest/utils': 4.1.7 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@4.1.6': {} + '@vitest/spy@4.1.7': {} - '@vitest/utils@4.1.6': + '@vitest/utils@4.1.7': dependencies: - '@vitest/pretty-format': 4.1.6 + '@vitest/pretty-format': 4.1.7 convert-source-map: 2.0.0 tinyrainbow: 3.1.0 @@ -8306,7 +7603,7 @@ snapshots: function-timeout@1.0.2: {} - generate-license-file@4.1.1(typescript@6.0.3): + generate-license-file@4.2.1(typescript@6.0.3): dependencies: '@commander-js/extra-typings': 14.0.0(commander@14.0.3) '@npmcli/arborist': 9.4.1 @@ -8314,11 +7611,11 @@ snapshots: commander: 14.0.3 cosmiconfig: 9.0.1(typescript@6.0.3) enquirer: 2.4.1 - glob: 11.1.0 + glob: 13.0.6 json5: 2.2.3 ora: 5.4.1 tslib: 2.8.1 - zod: 3.25.76 + zod: 4.4.3 transitivePeerDependencies: - supports-color - typescript @@ -8372,15 +7669,6 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - glob@11.1.0: - dependencies: - foreground-child: 3.3.1 - jackspeak: 4.2.3 - minimatch: 10.2.5 - minipass: 7.1.3 - package-json-from-dist: 1.0.1 - path-scurry: 2.0.2 - glob@13.0.6: dependencies: minimatch: 10.2.5 @@ -8560,10 +7848,6 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jackspeak@4.2.3: - dependencies: - '@isaacs/cliui': 9.0.0 - java-properties@1.0.2: {} jiti@2.7.0: {} @@ -10336,15 +9620,15 @@ snapshots: jiti: 2.7.0 yaml: 2.8.3 - vitest@4.1.6(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)): + vitest@4.1.7(@types/node@24.12.2)(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)): dependencies: - '@vitest/expect': 4.1.6 - '@vitest/mocker': 4.1.6(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) - '@vitest/pretty-format': 4.1.6 - '@vitest/runner': 4.1.6 - '@vitest/snapshot': 4.1.6 - '@vitest/spy': 4.1.6 - '@vitest/utils': 4.1.6 + '@vitest/expect': 4.1.7 + '@vitest/mocker': 4.1.7(vite@8.0.14(@types/node@24.12.2)(esbuild@0.27.7)(jiti@2.7.0)(yaml@2.8.3)) + '@vitest/pretty-format': 4.1.7 + '@vitest/runner': 4.1.7 + '@vitest/snapshot': 4.1.7 + '@vitest/spy': 4.1.7 + '@vitest/utils': 4.1.7 es-module-lexer: 2.0.0 expect-type: 1.3.0 magic-string: 0.30.21 @@ -10462,6 +9746,6 @@ snapshots: compress-commons: 6.0.2 readable-stream: 4.7.0 - zod@3.25.76: {} + zod@4.4.3: {} zwitch@2.0.4: {}